1
Fork 0

Add fathom

This commit is contained in:
Jake Howard 2019-06-29 21:55:15 +01:00
parent 426e3c42b5
commit 10b2075a88
Signed by: jake
GPG key ID: 57AFB45680EDD477
2 changed files with 14 additions and 0 deletions

12
src/fathom.js Normal file
View file

@ -0,0 +1,12 @@
(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', 'GOWOM');
fathom('trackPageview');

View file

@ -19,5 +19,7 @@
{{> accounts }}
<script type="text/javascript" src="../node_modules/bootstrap/js/src/index.js"></script>
<script type="text/javascript" src="./fathom.js"></script>
</body>
</html>