Skip to content

Commit

Permalink
Merge pull request #482 from apache/matamo
Browse files Browse the repository at this point in the history
[hotfix] Add Matamo
  • Loading branch information
andrewmusselman authored Jan 21, 2025
2 parents 2eb3f48 + 36509f7 commit 396c817
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion website/_includes/analytics.html
Original file line number Diff line number Diff line change
@@ -1 +1,17 @@

<!-- Matomo -->
<script>
var _paq = window._paq = window._paq || [];
/* tracker methods like "setCustomDimension" should be called before "trackPageView" */
_paq.push(["setDoNotTrack", true]);
_paq.push(["disableCookies"]);
_paq.push(['trackPageView']);
_paq.push(['enableLinkTracking']);
(function() {
var u="https://analytics.apache.org/";
_paq.push(['setTrackerUrl', u+'matomo.php']);
_paq.push(['setSiteId', '70']);
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 396c817

Please sign in to comment.