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 -->
|
||||
{{ with site.Params.features.analytics }}
|
||||
{{ if .enabled }}
|
||||
{{ if .enable }}
|
||||
{{ with .services }}
|
||||
<!-- Google Analytics -->
|
||||
{{ with .google }}
|
||||
|
@ -19,11 +19,11 @@
|
|||
|
||||
<!-- GoatCounter -->
|
||||
{{ with .goatCounter }}
|
||||
<script
|
||||
data-goatcounter="https://{{ .code }}.goatcounter.com/count"
|
||||
async
|
||||
src="//gc.zgo.at/count.js"
|
||||
></script>
|
||||
{{ if .selfHosted }}
|
||||
<script data-goatcounter="https://{{ .url }}/count" async src="https://{{ .url }}/count.js"></script>
|
||||
{{ else }}
|
||||
<script data-goatcounter="https://{{ .code }}.goatcounter.com/count" async src="//gc.zgo.at/count.js"></script>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
|
||||
<!-- Piwik/Matomo -->
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue