From d72dae5772bb16d802bdfb03ede44de51b28debc Mon Sep 17 00:00:00 2001 From: Ben Sima Date: Sat, 23 Feb 2019 13:26:33 -0800 Subject: ibb: Add fathom tracker script --- ibb/Main.hs | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/ibb/Main.hs b/ibb/Main.hs index 4940396..27506d8 100644 --- a/ibb/Main.hs +++ b/ibb/Main.hs @@ -76,6 +76,18 @@ homepage peopleList = [shamlet| crossorigin="anonymous"> #{title} | #{subtitle} + <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.simatime.com/tracker.js', 'fathom'); + fathom('set', 'siteId', 'IJATN'); + fathom('trackPageview'); <body> <div .container.mt-5> <div .jumbotron> -- cgit v1.2.3