diff --git a/.ci/deploy.sh b/.ci/deploy.sh
index e0ca644cba7415cae05ace56d00c43ad53c9da75..0903e33c65cbf29d7fd794935a4f419a023d29a6 100644
--- a/.ci/deploy.sh
+++ b/.ci/deploy.sh
@@ -48,9 +48,9 @@ do
                 ln -s ../../theme theme
 
                 # add matomo
-                sed -i "/matomohead/r./.ci/analytics/head.html" theme/templates/_index.html
-                sed -i "/matomopolicy/r./.ci/analytics/policy.html" theme/templates/_index.html
-                sed -i "/matomobanner/r./.ci/analytics/gdpr-banner.html" theme/templates/_index.html
+                sed -i "/matomohead/r./../../.ci/analytics/head.html" theme/templates/_index.html
+                sed -i "/matomopolicy/r./../../.ci/analytics/policy.html" theme/templates/_index.html
+                sed -i "/matomobanner/r./../../.ci/analytics/gdpr-banner.html" theme/templates/_index.html
 
                 # install npm
                 yarn global add grunt-cli generator-reveal