|
@@ -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 or .enable .enabled }}
|
|
{{ with .services }}
|
|
{{ with .services }}
|
|
<!-- Google Analytics -->
|
|
<!-- Google Analytics -->
|
|
{{ with .google }}
|
|
{{ with .google }}
|
|
@@ -18,12 +18,12 @@
|
|
{{ end }}
|
|
{{ end }}
|
|
|
|
|
|
<!-- GoatCounter -->
|
|
<!-- GoatCounter -->
|
|
- {{ with .goatCounter }}
|
|
|
|
- <script
|
|
|
|
- data-goatcounter="https://{{ .code }}.goatcounter.com/count"
|
|
|
|
- async
|
|
|
|
- src="//gc.zgo.at/count.js"
|
|
|
|
- ></script>
|
|
|
|
|
|
+ {{ with .goatCounter }}
|
|
|
|
+ {{ with .code }}
|
|
|
|
+ <script data-goatcounter="https://{{ . }}.goatcounter.com/count" async src="//gc.zgo.at/count.js"></script>
|
|
|
|
+ {{ else }}
|
|
|
|
+ <script data-goatcounter="https://{{ .instance }}/count" async src="https://{{ .instance }}/count.js"></script>
|
|
|
|
+ {{ end }}
|
|
{{ end }}
|
|
{{ end }}
|
|
|
|
|
|
<!-- Piwik/Matomo -->
|
|
<!-- Piwik/Matomo -->
|