add Fathom Analytics JS to the site

Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
Jakub Sokołowski 2019-11-13 16:32:51 +01:00 committed by Jakub
parent 00ad5321bd
commit 7088c957a8
1 changed files with 15 additions and 0 deletions

View File

@ -12,6 +12,21 @@
{% for version in Object.keys(site.data.versions) %}'{{version}}': '{{site.data.versions[version].url}}'{% if !loop.last %},{% endif%}{% endfor %}
};
</script>
<!-- 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.status.im/tracker.js', 'fathom');
fathom('set', 'siteId', 'JOQKN');
fathom('trackPageview');
</script>
<!-- / Fathom -->
<script src="/js/index.js"></script>
{% if config.algolia[page.lang] %}