Skip to content

Commit 5b56bac

Browse files
committed
+ Matomo tracking
1 parent 14f5346 commit 5b56bac

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

frontend/index.html

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,21 @@
2222
</script>
2323

2424
<title>HOT Portal</title>
25+
<!-- Matomo -->
26+
<script>
27+
var _paq = window._paq = window._paq || [];
28+
/* tracker methods like "setCustomDimension" should be called before "trackPageView" */
29+
_paq.push(['trackPageView']);
30+
_paq.push(['enableLinkTracking']);
31+
(function() {
32+
var u="//matomo.hotosm.org/";
33+
_paq.push(['setTrackerUrl', u+'matomo.php']);
34+
_paq.push(['setSiteId', '38']);
35+
var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
36+
g.async=true; g.src=u+'matomo.js'; s.parentNode.insertBefore(g,s);
37+
})();
38+
</script>
39+
<!-- End Matomo Code -->
2540
<meta
2641
name="description"
2742
content="A unified entry point for the HOT Tech Suite ecosystem"

0 commit comments

Comments
 (0)