diff options
author | RĂ©mi Palancher <remi@rezib.org> | 2021-11-05 13:23:33 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-05 13:23:33 +0300 |
commit | 7f8393cd684be228e0490bb4ab1d116c898fb74e (patch) | |
tree | 85c5d1af2e61ef7794dd7b113185b47c8d658b90 | |
parent | e1c94cb5907e052be50797e00305b88ef4a3064f (diff) |
Use matomo.{js,php} in matomo tracking code
The Matomo documentation states the tracking code should use matomo named files:
https://developer.matomo.org/guides/tracking-javascript-guide
The `piwik.*` files are still available in latest versions of Matomo but I suspect they could remove them at any time since they are incrementally getting rid ot this old name.
-rw-r--r-- | layouts/partials/head.html | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 7ea6eef..2e9cd2f 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -127,14 +127,14 @@ _paq.push(['enableLinkTracking']); (function () { var u = "{{.url|safeURL}}"; - _paq.push(['setTrackerUrl', u + 'piwik.php']); + _paq.push(['setTrackerUrl', u + 'matomo.php']); _paq.push(['setSiteId', '{{.id}}']); var d = document, g = d.createElement('script'), s = d.getElementsByTagName('script')[0]; g.type = 'text/javascript'; g.async = true; - g.src = u + 'piwik.js'; + g.src = u + 'matomo.js'; s.parentNode.insertBefore(g, s); })(); </script> |