Install fathom analytics
This commit is contained in:
parent
2724b33340
commit
ab83a6a622
2 changed files with 19 additions and 0 deletions
|
@ -47,5 +47,9 @@
|
|||
{{ end }}
|
||||
|
||||
{{ partial "script_async.html" "js/app.js" }}
|
||||
|
||||
{{ if not .Site.IsServer }}
|
||||
{{ partial "fathom.html" }}
|
||||
{{ end }}
|
||||
</body>
|
||||
</html>
|
||||
|
|
15
layouts/partials/fathom.html
Normal file
15
layouts/partials/fathom.html
Normal 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 -->
|
Loading…
Reference in a new issue