Add Matomo analytics code

This commit is contained in:
Davide Depau 2018-12-09 01:50:27 +01:00
parent 5d2c679973
commit ef769053ad
Signed by: depau
GPG key ID: C7D999B6A55EFE86

View file

@ -128,4 +128,23 @@
</script> </script>
<!-- End AddThis --> <!-- End AddThis -->
{% endif %} {% endif %}
<!-- Matomo -->
<script type="text/javascript">
var _paq = _paq || [];
/* tracker methods like "setCustomDimension" should be called before "trackPageView" */
_paq.push(["setDoNotTrack", true]);
_paq.push(['trackPageView']);
_paq.push(['enableLinkTracking']);
(function() {
var u="//analytics.depau.eu/";
_paq.push(['setTrackerUrl', u+'piwik.php']);
_paq.push(['setSiteId', '3']);
var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
g.type='text/javascript'; g.async=true; g.defer=true; g.src=u+'piwik.js'; s.parentNode.insertBefore(g,s);
})();
</script>
<noscript><p><img src="//analytics.depau.eu/piwik.php?idsite=3&amp;rec=1" style="border:0;" alt="" /></p></noscript>
<!-- End Matomo Code -->
</head> </head>