Skip to content

Commit

Permalink
Add Matomo tracking.
Browse files Browse the repository at this point in the history
  • Loading branch information
samwilson authored Jun 10, 2024
1 parent 019b52f commit 8d97093
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -112,5 +112,22 @@ <h2>Events</h2>
<script>
$.backstretch('https://upload.wikimedia.org/wikipedia/commons/thumb/4/46/6_and_8_Cliff_Street%2C_Fremantle.jpg/1920px-6_and_8_Cliff_Street%2C_Fremantle.jpg');
</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="//stats.wikimedia.org.au/";
_paq.push(['setTrackerUrl', u+'matomo.php']);
_paq.push(['setSiteId', '2']);
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 -->

</body>
</html>

0 comments on commit 8d97093

Please sign in to comment.