Skip to content

Commit

Permalink
Add Matomo
Browse files Browse the repository at this point in the history
  • Loading branch information
saundefined authored and pronskiy committed May 7, 2024
1 parent ca0dc3e commit 443f335
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions source/_layouts/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,22 @@
<script>hljs.highlightAll();</script>

<script src="https://cdn.usefathom.com/script.js" data-site="PJKRZUTE" defer></script>
<!-- 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.thephp.foundation/";
_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>
<noscript><p><img referrerpolicy="no-referrer-when-downgrade" src="https://analytics.thephp.foundation/matomo.php?idsite=1&amp;rec=1" style="border:0;" alt="" /></p></noscript>
<!-- End Matomo Code -->

</body>
</html>

0 comments on commit 443f335

Please sign in to comment.