Analytics try 2
This commit is contained in:
parent
95198a1bd0
commit
b0cd6b5693
2 changed files with 3 additions and 18 deletions
|
@ -1,7 +1,4 @@
|
||||||
{{ if hugo.IsProduction }}
|
{{ if hugo.IsProduction }}
|
||||||
{{ with .Site.Params.fathomAnalytics.site }}
|
|
||||||
<script defer src="https://cdn.usefathom.com/script.js" data-site="{{ . }}"></script>
|
|
||||||
{{ end }}
|
|
||||||
{{ with site.Params.plausibleAnalytics.domain }}
|
{{ with site.Params.plausibleAnalytics.domain }}
|
||||||
<script
|
<script
|
||||||
defer
|
defer
|
||||||
|
@ -10,16 +7,4 @@
|
||||||
src="{{ default "https://plausible.io/js/script.js" site.Params.plausibleAnalytics.script }}"
|
src="{{ default "https://plausible.io/js/script.js" site.Params.plausibleAnalytics.script }}"
|
||||||
></script>
|
></script>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ with site.Params.umamiAnalytics }}
|
|
||||||
{{- $region := "eu" }}
|
|
||||||
{{- if isset . "region" }}
|
|
||||||
{{- $region = .region }}
|
|
||||||
{{- end }}
|
|
||||||
<script
|
|
||||||
defer
|
|
||||||
src="https://{{ $region }}.umami.is/script.js"
|
|
||||||
data-website-id="{{ .site }}"
|
|
||||||
></script>
|
|
||||||
{{ end }}
|
|
||||||
{{ template "_internal/google_analytics.html" . }}
|
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
Loading…
Reference in a new issue