Added Matomo code

This commit is contained in:
Nathan Schneider
2025-05-05 11:44:38 -06:00
parent 29adbecffa
commit b8491ec460

View File

@ -78,6 +78,24 @@
<!-- CSS Styles --> <!-- CSS Styles -->
{{ partial "css.html" . }} {{ partial "css.html" . }}
<!-- Matomo -->
<script>
var _paq = window._paq = window._paq || [];
/* tracker methods like "setCustomDimension" should be called before "trackPageView" */
_paq.push(['trackPageView']);
_paq.push(['enableLinkTracking']);
(function() {
var u="https://analytics.medlab.host/";
_paq.push(['setTrackerUrl', u+'matomo.php']);
_paq.push(['setSiteId', '8']);
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);
})();
</script>
<!-- End Matomo Code -->
</head> </head>
<body class=""> <body class="">
{{ partial "header.html" . }} {{ partial "header.html" . }}