summaryrefslogtreecommitdiff
path: root/themes/archie/layouts/partials
diff options
context:
space:
mode:
Diffstat (limited to 'themes/archie/layouts/partials')
-rw-r--r--themes/archie/layouts/partials/footer.html8
1 files changed, 5 insertions, 3 deletions
diff --git a/themes/archie/layouts/partials/footer.html b/themes/archie/layouts/partials/footer.html
index 6063791..ec5b28b 100644
--- a/themes/archie/layouts/partials/footer.html
+++ b/themes/archie/layouts/partials/footer.html
@@ -17,10 +17,11 @@
{{ if not .Site.IsServer }}
<!-- Matomo -->
<script type="text/javascript">
- var _paq = window._paq || [];
+ var _paq = window._paq = window._paq || [];
/* tracker methods like "setCustomDimension" should be called before "trackPageView" */
_paq.push(["setDocumentTitle", document.domain + "/" + document.title]);
- _paq.push(["setDomains", ["*.blog.rogs.me"]]);
+ _paq.push(["setCookieDomain", "*.rogs.me"]);
+ _paq.push(["setDomains", ["*.rogs.me"]]);
_paq.push(['trackPageView']);
_paq.push(['enableLinkTracking']);
(function() {
@@ -28,10 +29,11 @@
_paq.push(['setTrackerUrl', u+'matomo.php']);
_paq.push(['setSiteId', '2']);
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+'matomo.js'; s.parentNode.insertBefore(g,s);
+ g.type='text/javascript'; g.async=true; g.src=u+'matomo.js'; s.parentNode.insertBefore(g,s);
})();
</script>
<!-- End Matomo Code -->
+<!-- End Matomo Code -->
{{ end }}