Add Matomo
This commit is contained in:
parent
71b28ac30a
commit
731d3d0629
2 changed files with 17 additions and 0 deletions
|
@ -8,6 +8,8 @@ disableKinds = ["taxonomy", "taxonomyTerm"]
|
||||||
[params]
|
[params]
|
||||||
AuthorName = "Elnu"
|
AuthorName = "Elnu"
|
||||||
FontAwesomeKit = "c3c3b565dc"
|
FontAwesomeKit = "c3c3b565dc"
|
||||||
|
MatomoURL = "matomo.elnu.com"
|
||||||
|
MatomoSiteId = "4"
|
||||||
|
|
||||||
[permalinks]
|
[permalinks]
|
||||||
challenges = "/:filename"
|
challenges = "/:filename"
|
||||||
|
|
|
@ -26,5 +26,20 @@
|
||||||
secondary.addEventListener("touchmove", scrollHandler);
|
secondary.addEventListener("touchmove", scrollHandler);
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
<!-- Matomo -->
|
||||||
|
<script>
|
||||||
|
var _paq = window._paq = window._paq || [];
|
||||||
|
/* tracker methods like "setCustomDimension" should be called before "trackPageView" */
|
||||||
|
_paq.push(['trackPageView']);
|
||||||
|
_paq.push(['enableLinkTracking']);
|
||||||
|
(function() {
|
||||||
|
var u="https://{{ .Site.Params.MatomoURL }}/";
|
||||||
|
_paq.push(['setTrackerUrl', u+'matomo.php']);
|
||||||
|
_paq.push(['setSiteId', '{{ .Site.Params.SiteId }}']);
|
||||||
|
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 -->
|
||||||
<script src="https://kit.fontawesome.com/{{ .Site.Params.FontAwesomeKit }}.js" crossorigin="anonymous"></script>
|
<script src="https://kit.fontawesome.com/{{ .Site.Params.FontAwesomeKit }}.js" crossorigin="anonymous"></script>
|
||||||
</head>
|
</head>
|
Loading…
Add table
Reference in a new issue