themes/hugo-coder/layouts/partials/analytics/fathom.html
e49c03646bf2c8610e09f8058321ef1cc14f5c12
· 477 B · 13 lines
raw
| 1 | <script> |
| 2 | (function(f, a, t, h, o, m){ |
| 3 | a[h]=a[h]||function(){ |
| 4 | (a[h].q=a[h].q||[]).push(arguments) |
| 5 | }; |
| 6 | o=f.createElement('script'), |
| 7 | m=f.getElementsByTagName('script')[0]; |
| 8 | o.async=1; o.src=t; o.id='fathom-script'; |
| 9 | m.parentNode.insertBefore(o,m) |
| 10 | })(document, window, '//{{ .Site.Params.fathomAnalytics.serverURL | default "cdn.usefathom.com" }}/tracker.js', 'fathom'); |
| 11 | fathom('set', 'siteId', '{{ .Site.Params.fathomAnalytics.siteID }}'); |
| 12 | fathom('trackPageview'); |
| 13 | </script> |