Skip to content

Commit

Permalink
adds matomo analytics
Browse files Browse the repository at this point in the history
  • Loading branch information
Geert van Geest committed Aug 28, 2024
1 parent d843a1d commit c072fe6
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions _quarto.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,19 @@ format:
css: styles.css
toc: true
link-external-newwindow: true
header-includes: |
<!-- 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://matomo.sib.swiss/";
_paq.push(['setTrackerUrl', u+'matomo.php']);
_paq.push(['setSiteId', '220']);
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 -->

0 comments on commit c072fe6

Please sign in to comment.