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,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 }} {{ end }}
{{ template "_internal/google_analytics.html" . }}
{{ end }}

View file

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