Add Matomo tracking code
This commit is contained in:
parent
91f205c4fa
commit
fa0b4f1146
1 changed files with 16 additions and 0 deletions
|
@ -52,4 +52,20 @@
|
||||||
<%- css('css/index-page.css'); %>
|
<%- css('css/index-page.css'); %>
|
||||||
<% } %>
|
<% } %>
|
||||||
<%- css('css/highlight.css'); %>
|
<%- css('css/highlight.css'); %>
|
||||||
|
<!-- Matomo -->
|
||||||
|
<script>
|
||||||
|
var _paq = window._paq = window._paq || [];
|
||||||
|
/* tracker methods like "setCustomDimension" should be called before "trackPageView" */
|
||||||
|
_paq.push(["disableCookies"]);
|
||||||
|
_paq.push(['trackPageView']);
|
||||||
|
_paq.push(['enableLinkTracking']);
|
||||||
|
(function() {
|
||||||
|
var u="//analytics.svrjs.org/";
|
||||||
|
_paq.push(['setTrackerUrl', u+'matomo.php']);
|
||||||
|
_paq.push(['setSiteId', '1']);
|
||||||
|
var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
|
||||||
|
g.async=true; g.src=u+'matomo.js'; s.parentNode.insertBefore(g,s);
|
||||||
|
})();
|
||||||
|
</script>
|
||||||
|
<!-- End Matomo Code -->
|
||||||
</head>
|
</head>
|
||||||
|
|
Reference in a new issue