Add goatcounter analytics support (#430)

* adding goatcounter analytics support

* Update CONTRIBUTORS.md
This commit is contained in:
Ellison
2020-10-07 11:53:36 -03:00
committed by GitHub
parent 3087f9bfbc
commit 3723e9b2b9
4 changed files with 12 additions and 2 deletions

View File

@@ -131,6 +131,9 @@
{{- partial "analytics/plausible" . -}}
{{ end }}
{{ if and .Site.Params.goatCounter .Site.Params.goatCounter.code }}
{{- partial "analytics/goatcounter" . -}}
{{ end }}
</body>
</html>

View File

@@ -0,0 +1,2 @@
<script data-goatcounter="https://{{ $.Site.Params.goatCounter.code }}.goatcounter.com/count"
async src="//gc.zgo.at/count.js"></script>