mirror of
https://github.com/status-im/universal-links-handler.git
synced 2025-02-22 15:48:05 +00:00
add Fathom Analytics
Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
parent
e5bf39d23a
commit
e8db83361b
18
views/fathom.ejs
Normal file
18
views/fathom.ejs
Normal file
@ -0,0 +1,18 @@
|
||||
<!-- Fathom - simple website analytics - https://github.com/usefathom/fathom -->
|
||||
<script>
|
||||
/* Avoid counting development views */
|
||||
if (document.location.hostname == 'join.status.im') {
|
||||
(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', 'BUWNH');
|
||||
fathom('trackPageview');
|
||||
}
|
||||
</script>
|
||||
<!-- / Fathom -->
|
@ -351,5 +351,6 @@
|
||||
<script type="text/javascript" src="/js/dev.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/2.0.4/clipboard.min.js"></script>
|
||||
<script type='text/javascript' src='/js/app.js'></script>
|
||||
<%- include('fathom') %>
|
||||
</body>
|
||||
</html>
|
||||
|
Loading…
x
Reference in New Issue
Block a user