Optimized Cross-Domain Tracking

This commit is contained in:
Kevin Veen-Birkenbach 2023-11-24 12:19:34 +01:00
parent 973c05b333
commit 1722c4f841

View File

@ -1,4 +1,5 @@
var _paq = window._paq = window._paq || [];
_paq.push(["setDocumentTitle", document.domain + "/" + document.title]);
_paq.push(["setCookieDomain", "*.{{base_domain}}"]);
_paq.push(["setDomains", ["*.{{base_domain}}"]]);
_paq.push(["enableCrossDomainLinking"]);
@ -11,4 +12,4 @@ _paq.push(["enableLinkTracking"]);
_paq.push(["setSiteId", "{{matomo_site_id}}"]);
var d=document, g=d.createElement("script"), s=d.getElementsByTagName("script")[0];
g.async=true; g.src=u+"matomo.js"; s.parentNode.insertBefore(g,s);
})();
})();