1
Fork 0

Install fathom analytics

This commit is contained in:
Jake Howard 2019-05-18 21:19:30 +01:00
parent 2724b33340
commit ab83a6a622
Signed by: jake
GPG key ID: 57AFB45680EDD477
2 changed files with 19 additions and 0 deletions

View file

@ -47,5 +47,9 @@
{{ end }}
{{ partial "script_async.html" "js/app.js" }}
{{ if not .Site.IsServer }}
{{ partial "fathom.html" }}
{{ end }}
</body>
</html>

View file

@ -0,0 +1,15 @@
<!-- Fathom - simple website 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, '//fathom.theorangeone.net/tracker.js', 'fathom');
fathom('set', 'siteId', 'UEDCT');
fathom('trackPageview');
</script>
<!-- / Fathom -->