From 7f8393cd684be228e0490bb4ab1d116c898fb74e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Palancher?= Date: Fri, 5 Nov 2021 11:23:33 +0100 Subject: 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. --- layouts/partials/head.html | 4 ++-- 1 file 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); })(); -- cgit v1.2.3