tryout goatcounter 1.4 instead of fathom
This commit is contained in:
parent
22bc88dba3
commit
cb2620321d
|
@ -13,7 +13,6 @@ enableGitInfo = true
|
||||||
category = "categories"
|
category = "categories"
|
||||||
|
|
||||||
[params]
|
[params]
|
||||||
fathomid = "WNLTO"
|
|
||||||
favicon = "/img/avatar-icon.png"
|
favicon = "/img/avatar-icon.png"
|
||||||
pagination = 15
|
pagination = 15
|
||||||
|
|
||||||
|
|
|
@ -5,19 +5,6 @@
|
||||||
<script defer src='{{ $scripts.Permalink }}'></script>
|
<script defer src='{{ $scripts.Permalink }}'></script>
|
||||||
|
|
||||||
{{- if (ne hugo.Environment "development") }}
|
{{- if (ne hugo.Environment "development") }}
|
||||||
<!-- Fathom - simple website analytics - https://github.com/usefathom/fathom -->
|
<script data-goatcounter="https://stats.brainbaking.com/count"
|
||||||
<script>
|
async src="//stats.brainbaking.com/count.js"></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, 'https://fathom.brainbaking.com/tracker.js', 'fathom');
|
|
||||||
fathom('set', 'siteId', '{{ .Site.Params.fathomid }}');
|
|
||||||
fathom('trackPageview');
|
|
||||||
</script>
|
|
||||||
<!-- / Fathom -->
|
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
Loading…
Reference in New Issue