Skip to content

Commit

Permalink
add tracking analytics via matomo
Browse files Browse the repository at this point in the history
  • Loading branch information
cpauvert committed Jun 11, 2024
1 parent 62ecd77 commit e0591a5
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions pkgdown/extra.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<!-- Matomo -->
var _paq = window._paq = window._paq || [];
/* tracker methods like "setCustomDimension" should be called before "trackPageView" */
_paq.push(["setDocumentTitle", document.domain + "/" + document.title]);
_paq.push(['trackPageView']);
_paq.push(['enableLinkTracking']);
(function() {
var u="https://piwik.cebitec.uni-bielefeld.de/";
_paq.push(['setTrackerUrl', u+'matomo.php']);
_paq.push(['setSiteId', '24']);
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);
})();
<!-- End Matomo Code -->

0 comments on commit e0591a5

Please sign in to comment.