1
Fork 0

Add matomo tracking

This commit is contained in:
Jake Howard 2018-11-17 17:02:22 +00:00
parent c98f5a3a46
commit 26fe958baa
Signed by: jake
GPG key ID: 57AFB45680EDD477
2 changed files with 18 additions and 0 deletions

View file

@ -28,5 +28,7 @@
{{ partial "script.html" "js/bootstrap.min.js" }}
{{ partial "script.html" "js/mermaid.min.js" }}
{{ partial "script.html" "js/app.js" }}
{{ partial "matomo.html" . }}
</body>
</html>

View file

@ -0,0 +1,16 @@
<!-- Matomo -->
<script type="text/javascript">
var _paq = _paq || [];
/* tracker methods like "setCustomDimension" should be called before "trackPageView" */
_paq.push(['trackPageView']);
_paq.push(['enableLinkTracking']);
(function() {
var u="//matomo.theorangeone.net/";
_paq.push(['setTrackerUrl', u+'piwik.php']);
_paq.push(['setSiteId', '1']);
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="//matomo.theorangeone.net/piwik.php?idsite=1&amp;rec=1" style="border:0;" alt="" /></p></noscript>
<!-- End Matomo Code -->