Analytics try 2
This commit is contained in:
parent
95198a1bd0
commit
b0cd6b5693
2 changed files with 3 additions and 18 deletions
|
@ -1,8 +1,5 @@
|
|||
{{ 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
|
||||
defer
|
||||
data-domain="{{ . }}"
|
||||
|
@ -10,16 +7,4 @@
|
|||
src="{{ default "https://plausible.io/js/script.js" site.Params.plausibleAnalytics.script }}"
|
||||
></script>
|
||||
{{ 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 }}
|
||||
|
|
|
@ -39,4 +39,4 @@
|
|||
{{ partialCached "head/css.html" . }}
|
||||
{{ partialCached "head/js.html" . }}
|
||||
{{/* Analytics */}}
|
||||
{{ partial "analytics.html" . }}
|
||||
{{ partial "analytics.html" . }}
|
||||
|
|
Loading…
Reference in a new issue