Skip to content

Commit 93c7ee3

Browse files
committed
feat: add matomo
1 parent 61a8759 commit 93c7ee3

1 file changed

Lines changed: 19 additions & 0 deletions

File tree

index.html

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,5 +40,24 @@
4040
<body>
4141
<div id="root"></div>
4242
<script type="module" src="/src/main.tsx"></script>
43+
<!-- Matomo Analytics -->
44+
<script type="text/javascript">
45+
var _paq = (window._paq = window._paq || []);
46+
/* tracker methods like "setCustomDimension" should be called before "trackPageView" */
47+
_paq.push(['trackPageView']);
48+
_paq.push(['enableLinkTracking']);
49+
(function () {
50+
var u = 'https://overnet.education/analytics/';
51+
_paq.push(['setTrackerUrl', u + 'matomo.php']);
52+
_paq.push(['setSiteId', '10']);
53+
var d = document,
54+
g = d.createElement('script'),
55+
s = d.getElementsByTagName('script')[0];
56+
g.async = true;
57+
g.src = u + 'matomo.js';
58+
s.parentNode.insertBefore(g, s);
59+
})();
60+
</script>
61+
<!-- End Matomo Code -->
4362
</body>
4463
</html>

0 commit comments

Comments
 (0)