Skip to content

Commit 988db1c

Browse files
committed
index.html: add Matomo tracking script code
1 parent 260ff94 commit 988db1c

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

dist/index.html

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,22 @@
1414

1515
<link rel="stylesheet" href="assets/css/normalize.css" />
1616
<link rel="stylesheet" href="assets/css/primary.css" />
17+
18+
<!-- Matomo -->
19+
<script type="text/javascript">
20+
var _paq = window._paq || [];
21+
/* tracker methods like "setCustomDimension" should be called before "trackPageView" */
22+
_paq.push(['trackPageView']);
23+
_paq.push(['enableLinkTracking']);
24+
(function() {
25+
var u="//analytics.codidact.org/";
26+
_paq.push(['setTrackerUrl', u+'matomo.php']);
27+
_paq.push(['setSiteId', '2']);
28+
var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
29+
g.type='text/javascript'; g.async=true; g.defer=true; g.src=u+'matomo.js'; s.parentNode.insertBefore(g,s);
30+
})();
31+
</script>
32+
<!-- End Matomo Code -->
1733
</head>
1834

1935
<body>

0 commit comments

Comments
 (0)