Skip to content

Commit

Permalink
Add Matomo analytics
Browse files Browse the repository at this point in the history
  • Loading branch information
MMore committed Oct 25, 2024
1 parent dd8a02d commit ca6e921
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions _includes/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,20 @@
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png">
<link rel="manifest" href="/site.webmanifest">
<!-- Matomo (without cookies) -->
<script>
var _paq = window._paq = window._paq || [];
/* tracker methods like "setCustomDimension" should be called before "trackPageView" */
_paq.push(["disableCookies"]);
_paq.push(['trackPageView']);
_paq.push(['enableLinkTracking']);
(function () {
var u = "https://ssotax.matomo.cloud/";
_paq.push(['setTrackerUrl', u + 'matomo.php']);
_paq.push(['setSiteId', '1']);
var d = document, g = d.createElement('script'), s = d.getElementsByTagName('script')[0];
g.async = true; g.src = 'https://cdn.matomo.cloud/ssotax.matomo.cloud/matomo.js'; s.parentNode.insertBefore(g, s);
})();
</script>
<!-- End Matomo Code -->
</head>

0 comments on commit ca6e921

Please sign in to comment.