Skip to content

Commit

Permalink
added matomo tracking js snippet
Browse files Browse the repository at this point in the history
  • Loading branch information
qtrinh2 committed Nov 19, 2024
1 parent 4bebdf4 commit 92dbc23
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,23 @@
<link rel="stylesheet" href="{% static 'css/custom.css' %}" />
<script src="{% static 'js/denig.js' %}"></script>
{% block extrahead %}{% endblock extrahead %}

<!-- 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://stats.rrchnm.org/";
_paq.push(['setTrackerUrl', u+'matomo.php']);
_paq.push(['setSiteId', '117']);
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 -->

</head>

<body class="font-serif">
Expand Down Expand Up @@ -128,4 +145,4 @@
</footer>
</body>

</html>
</html>

0 comments on commit 92dbc23

Please sign in to comment.