Analytics try 2

This commit is contained in:
James Musselman 2024-07-08 21:47:47 -05:00
parent 95198a1bd0
commit b0cd6b5693
Signed by: Musselman
GPG key ID: 1DAEFF35ECB5D6DB
2 changed files with 3 additions and 18 deletions

View file

@ -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 }}

View file

@ -39,4 +39,4 @@
{{ partialCached "head/css.html" . }}
{{ partialCached "head/js.html" . }}
{{/* Analytics */}}
{{ partial "analytics.html" . }}
{{ partial "analytics.html" . }}