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]
|
||||
AuthorName = "Elnu"
|
||||
FontAwesomeKit = "c3c3b565dc"
|
||||
MatomoURL = "matomo.elnu.com"
|
||||
MatomoSiteId = "4"
|
||||
|
||||
[permalinks]
|
||||
challenges = "/:filename"
|
||||
|
|
|
@ -26,5 +26,20 @@
|
|||
secondary.addEventListener("touchmove", scrollHandler);
|
||||
};
|
||||
</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>
|
||||
</head>
|
Loading…
Add table
Reference in a new issue