feat: analytics code rendering
This commit is contained in:
16
server/modules/analytics/fathom/code.yml
Normal file
16
server/modules/analytics/fathom/code.yml
Normal file
@@ -0,0 +1,16 @@
|
||||
head: |
|
||||
<!-- 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, '{{host}}/tracker.js', 'fathom');
|
||||
fathom('set', 'siteId', '{{siteId}}');
|
||||
fathom('trackPageview');
|
||||
</script>
|
||||
<!-- / Fathom -->
|
Reference in New Issue
Block a user