Update Matomo tracking code to enable full tracking features
ci/woodpecker/push/woodpecker Pipeline was successful
Details
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:
parent
f29321803e
commit
1c1bb4ebb9
|
|
@ -4,10 +4,6 @@
|
||||||
<script>
|
<script>
|
||||||
var _paq = window._paq = window._paq || [];
|
var _paq = window._paq = window._paq || [];
|
||||||
/* tracker methods like "setCustomDimension" should be called before "trackPageView" */
|
/* 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(['trackPageView']);
|
||||||
_paq.push(['enableLinkTracking']);
|
_paq.push(['enableLinkTracking']);
|
||||||
(function() {
|
(function() {
|
||||||
|
|
@ -15,10 +11,9 @@
|
||||||
_paq.push(['setTrackerUrl', u+'matomo.php']);
|
_paq.push(['setTrackerUrl', u+'matomo.php']);
|
||||||
_paq.push(['setSiteId', '3']);
|
_paq.push(['setSiteId', '3']);
|
||||||
var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
|
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>
|
</script>
|
||||||
<noscript><p><img referrerpolicy="no-referrer-when-downgrade" src="//metrics.nixc.us/matomo.php?idsite=3&rec=1" style="border:0;" alt="" /></p></noscript>
|
|
||||||
<!-- End Matomo Code -->
|
<!-- End Matomo Code -->
|
||||||
|
|
||||||
<div class="theme-switch">
|
<div class="theme-switch">
|
||||||
|
|
|
||||||
|
|
@ -63,3 +63,5 @@
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue