summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorluxagraf <sng@luxagraf.net>2019-04-13 13:14:09 -0500
committerluxagraf <sng@luxagraf.net>2019-04-13 13:14:09 -0500
commitd83f3c6581fce37d553eeb79b92a883bf29876ca (patch)
tree00042597bbbd912aa56148bba20d4c2502d7d4dd
parentfff2d74815d0cb147e97d64c7d6bc633c308c60f (diff)
added fathom analytics
-rw-r--r--design/templates/base.html33
1 files changed, 14 insertions, 19 deletions
diff --git a/design/templates/base.html b/design/templates/base.html
index 9dd324f..d658b90 100644
--- a/design/templates/base.html
+++ b/design/templates/base.html
@@ -90,25 +90,20 @@ if (navigator.serviceWorker) {
});
}
//-->
+<!-- Fathom analytics - https://github.com/usefathom/fathom -->
+<script>
+(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');
</script>
- {%comment%}
-<!-- Piwik -->
-<script type="text/javascript">
-var _paq = _paq || [];
-_paq.push(["disableCookies"]);
-_paq.push(['trackPageView']);
-_paq.push(['enableLinkTracking']);
-(function() {
- var u="//stats.luxagraf.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="//stats.luxagraf.net/piwik.php?idsite=1" style="border:0;" alt="" /></p></noscript>
-<!-- End Piwik Code -->
-{%endcomment%}
-
+<!-- / Fathom -->
</body>
</html>