Skip to content

Commit

Permalink
Add Matomo tracking script (#109)
Browse files Browse the repository at this point in the history
  • Loading branch information
vincenthongzy authored Jul 8, 2024
1 parent 238900f commit 28fdbdc
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,18 @@
<div id="root"></div>
<script src="/src/main.jsx" type="module"></script>
</body>
<script type="text/javascript">
var _paq = window._paq = window._paq || [];
/* tracker methods like "setCustomDimension" should be called before "trackPageView" */
_paq.push(["disableCookies"]);
_paq.push(['trackPageView']);
_paq.push(['enableLinkTracking']);
(function () {
var u = "https://nethermind.matomo.cloud/";
_paq.push(['setTrackerUrl', u + 'matomo.php']);
_paq.push(['setSiteId', '4']);
var d = document, g = d.createElement('script'), s = d.getElementsByTagName('script')[0];
g.async = true; g.src = '//cdn.matomo.cloud/nethermind.matomo.cloud/matomo.js'; s.parentNode.insertBefore(g, s);
})();
</script>
</html>

0 comments on commit 28fdbdc

Please sign in to comment.