Skip to content

Commit 9a25e72

Browse files
committed
Add Matomo support
1 parent b86a3e1 commit 9a25e72

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

apps/model_catalog/index.html

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,22 @@
2727
<title>EBRAINS Model Catalog</title>
2828
<link href="https://fonts.googleapis.com/css2?family=Rajdhani:wght@700" rel="stylesheet">
2929

30+
<!-- Matomo -->
31+
<script>
32+
var _paq = window._paq = window._paq || [];
33+
/* tracker methods like "setCustomDimension" should be called before "trackPageView" */
34+
_paq.push(['trackPageView']);
35+
_paq.push(['enableLinkTracking']);
36+
(function() {
37+
var u="https://stats.humanbrainproject.eu/";
38+
_paq.push(['setTrackerUrl', u+'matomo.php']);
39+
_paq.push(['setSiteId', '21']);
40+
var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
41+
g.async=true; g.src=u+'matomo.js'; s.parentNode.insertBefore(g,s);
42+
})();
43+
</script>
44+
<!-- End Matomo Code -->
45+
3046
</head>
3147
<body>
3248
<noscript>You need to enable JavaScript to run this app.</noscript>

0 commit comments

Comments
 (0)