diff options
author | lxf <sng@luxagraf.net> | 2019-09-14 15:05:36 +0000 |
---|---|---|
committer | lxf <sng@luxagraf.net> | 2019-09-14 15:05:36 +0000 |
commit | af7472b6e198c25baded825cd33df7d2782f461a (patch) | |
tree | bb118c1d8c39f41f2180300a1acc330b9d66c889 /design/templates | |
parent | aca44010b0d34cc83491be7ef3a0de147598cc0b (diff) |
added matomo back to all pages
Diffstat (limited to 'design/templates')
-rw-r--r-- | design/templates/base.html | 28 |
1 files changed, 15 insertions, 13 deletions
diff --git a/design/templates/base.html b/design/templates/base.html index 4ba62a1..33aa440 100644 --- a/design/templates/base.html +++ b/design/templates/base.html @@ -89,19 +89,21 @@ if (navigator.serviceWorker) { }); } //--> -<!-- Fathom analytics - https://github.com/usefathom/fathom --> -(function(f, a, t, h, o, m){ - a[h]=a[h]||function(){ - (a[h].q=a[h].q||[]).push(arguments) - }; - o=f.createElement('script'), - m=f.getElementsByTagName('script')[0]; - o.async=1; o.src=t; o.id='fathom-script'; - m.parentNode.insertBefore(o,m) -})(document, window, '//stats.luxagraf.net/tracker.js', 'fathom'); -fathom('set', 'siteId', 'KYEED'); -fathom('trackPageview'); + +<!-- Matomo --> +<script type="text/javascript"> +var _paq = window._paq || []; +_paq.push(['trackPageView']); +_paq.push(['enableLinkTracking']); +(function() { + var u="//stats.luxagraf.net/"; + _paq.push(['setTrackerUrl', u+'matomo.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+'matomo.js'; s.parentNode.insertBefore(g,s); +})(); </script> -<!-- / Fathom --> +<!-- End Matomo Code --> + </body> </html> |