Skip to content

Commit e9562d7

Browse files
committed
head: add matomo tracking code
1 parent 15b00d2 commit e9562d7

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

theme/head.hbs

+16
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,19 @@
1010

1111
<!-- MathML polyfill for Chrome -->
1212
<script src="https://fred-wang.github.io/mathml.css/mspace.js"></script>
13+
14+
<!-- Matomo tracking code -->
15+
<script>
16+
var _paq = window._paq = window._paq || [];
17+
/* tracker methods like "setCustomDimension" should be called before "trackPageView" */
18+
_paq.push(['trackPageView']);
19+
_paq.push(['enableLinkTracking']);
20+
(function() {
21+
var u="//stats.gbdev.io/";
22+
_paq.push(['setTrackerUrl', u+'matomo.php']);
23+
_paq.push(['setSiteId', '1']);
24+
var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
25+
g.async=true; g.src=u+'matomo.js'; s.parentNode.insertBefore(g,s);
26+
})();
27+
</script>
28+
<!-- End Matomo Code -->

0 commit comments

Comments
 (0)