Add Matomo tracking code

This commit is contained in:
Dorian Niemiec 2024-04-24 16:29:26 +02:00
parent 91f205c4fa
commit fa0b4f1146

View file

@ -52,4 +52,20 @@
<%- css('css/index-page.css'); %>
<% } %>
<%- css('css/highlight.css'); %>
<!-- Matomo -->
<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="//analytics.svrjs.org/";
_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=u+'matomo.js'; s.parentNode.insertBefore(g,s);
})();
</script>
<!-- End Matomo Code -->
</head>