Add self-hosted goat counter
This commit is contained in:
parent
fbbef3b2c5
commit
761a14d2e9
1 changed files with 6 additions and 6 deletions
|
@ -1,6 +1,6 @@
|
||||||
<!-- Add Analytics if enabled in configuration -->
|
<!-- Add Analytics if enabled in configuration -->
|
||||||
{{ with site.Params.features.analytics }}
|
{{ with site.Params.features.analytics }}
|
||||||
{{ if .enabled }}
|
{{ if .enable }}
|
||||||
{{ with .services }}
|
{{ with .services }}
|
||||||
<!-- Google Analytics -->
|
<!-- Google Analytics -->
|
||||||
{{ with .google }}
|
{{ with .google }}
|
||||||
|
@ -19,11 +19,11 @@
|
||||||
|
|
||||||
<!-- GoatCounter -->
|
<!-- GoatCounter -->
|
||||||
{{ with .goatCounter }}
|
{{ with .goatCounter }}
|
||||||
<script
|
{{ if .selfHosted }}
|
||||||
data-goatcounter="https://{{ .code }}.goatcounter.com/count"
|
<script data-goatcounter="https://{{ .url }}/count" async src="https://{{ .url }}/count.js"></script>
|
||||||
async
|
{{ else }}
|
||||||
src="//gc.zgo.at/count.js"
|
<script data-goatcounter="https://{{ .code }}.goatcounter.com/count" async src="//gc.zgo.at/count.js"></script>
|
||||||
></script>
|
{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
<!-- Piwik/Matomo -->
|
<!-- Piwik/Matomo -->
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue