Update Matomo tracking code to enable full tracking features
ci/woodpecker/push/woodpecker Pipeline was successful Details

- Simplified Matomo code in header.html to use standard tracking configuration
- Removed tracking-limiting settings (setDocumentTitle, setCookieDomain, setDomains, disableCookies)
- Fixed matomo.js script source to load from metrics.nixc.us domain
- All pages using includes system now have full Matomo tracking enabled
This commit is contained in:
Colin 2025-11-18 14:49:49 -05:00
parent f29321803e
commit 1c1bb4ebb9
Signed by: colin
SSH Key Fingerprint: SHA256:nRPCQTeMFLdGytxRQmPVK9VXY3/ePKQ5lGRyJhT5DY8
2 changed files with 3 additions and 6 deletions

View File

@ -4,10 +4,6 @@
<script>
var _paq = window._paq = window._paq || [];
/* tracker methods like "setCustomDimension" should be called before "trackPageView" */
_paq.push(["setDocumentTitle", document.domain + "/" + document.title]);
_paq.push(["setCookieDomain", "*.colinknapp.com"]);
_paq.push(["setDomains", ["*.colinknapp.com"]]);
_paq.push(["disableCookies"]);
_paq.push(['trackPageView']);
_paq.push(['enableLinkTracking']);
(function() {
@ -15,10 +11,9 @@
_paq.push(['setTrackerUrl', u+'matomo.php']);
_paq.push(['setSiteId', '3']);
var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
g.async=true; g.src='/matomo.js'; s.parentNode.insertBefore(g,s);
g.async=true; g.src=u+'matomo.js'; s.parentNode.insertBefore(g,s);
})();
</script>
<noscript><p><img referrerpolicy="no-referrer-when-downgrade" src="//metrics.nixc.us/matomo.php?idsite=3&amp;rec=1" style="border:0;" alt="" /></p></noscript>
<!-- End Matomo Code -->
<div class="theme-switch">

View File

@ -63,3 +63,5 @@