diff --git a/layouts/partials/matomo.html b/layouts/partials/matomo.html
index 35052d3..26cca2b 100644
--- a/layouts/partials/matomo.html
+++ b/layouts/partials/matomo.html
@@ -6,7 +6,7 @@
_paq.push(['trackPageView']);
_paq.push(['enableLinkTracking']);
(function() {
- var u="{{- .Site.Params.matomoAnalytics.rootURL -}};
+ var u="{{- .Site.Params.matomoAnalytics.rootURL -}}/";
_paq.push(['setTrackerUrl', u+'matomo.php']);
_paq.push(['setSiteId', '{{- .Site.Params.matomoAnalytics.siteID -}}']);
var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];