Skip to content

Commit a07b650

Browse files
committed
feat: add Matomo tracking script to index.html
1 parent a645729 commit a07b650

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

index.html

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,21 @@
155155
</footer>
156156
</div>
157157
<script type="module" src="src/main.js"></script>
158+
<!-- Matomo -->
159+
<script>
160+
var _paq = window._paq = window._paq || [];
161+
/* tracker methods like "setCustomDimension" should be called before "trackPageView" */
162+
_paq.push(['trackPageView']);
163+
_paq.push(['enableLinkTracking']);
164+
(function() {
165+
var u="https://stats.humanbrainproject.eu/";
166+
_paq.push(['setTrackerUrl', u+'matomo.php']);
167+
_paq.push(['setSiteId', '29']);
168+
var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
169+
g.async=true; g.src=u+'matomo.js'; s.parentNode.insertBefore(g,s);
170+
})();
171+
</script>
172+
<!-- End Matomo Code -->
158173
</body>
159174

160175
</html>

0 commit comments

Comments
 (0)