Add matomo tracking
This commit is contained in:
parent
c98f5a3a46
commit
26fe958baa
2 changed files with 18 additions and 0 deletions
|
@ -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>
|
||||
|
|
16
layouts/partials/matomo.html
Normal file
16
layouts/partials/matomo.html
Normal 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&rec=1" style="border:0;" alt="" /></p></noscript>
|
||||
<!-- End Matomo Code -->
|
Loading…
Reference in a new issue