2022-04-25 01:12:02 +00:00
|
|
|
{{ if hugo.IsProduction }}
|
2021-08-11 05:28:33 +00:00
|
|
|
{{ with .Site.Params.fathomAnalytics.site }}
|
2023-11-26 05:20:04 +00:00
|
|
|
<script defer src="https://cdn.usefathom.com/script.js" data-site="{{ . }}"></script>
|
2021-08-11 05:28:33 +00:00
|
|
|
{{ end }}
|
2023-06-26 06:24:39 +00:00
|
|
|
{{ with site.Params.plausibleAnalytics.domain }}
|
2023-12-26 00:22:55 +00:00
|
|
|
<script
|
|
|
|
defer
|
2023-06-16 02:22:49 +00:00
|
|
|
data-domain="{{ . }}"
|
2023-06-26 06:24:39 +00:00
|
|
|
data-api="{{ default "https://plausible.io/api/event" site.Params.plausibleAnalytics.event }}"
|
2023-12-26 00:22:55 +00:00
|
|
|
src="{{ default "https://plausible.io/js/script.js" site.Params.plausibleAnalytics.script }}"
|
|
|
|
></script>
|
2023-06-25 07:51:45 +00:00
|
|
|
{{ end }}
|
2024-03-16 16:13:29 +00:00
|
|
|
{{ 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 }}
|
2021-08-11 05:28:33 +00:00
|
|
|
{{ template "_internal/google_analytics.html" . }}
|
2024-03-16 16:13:29 +00:00
|
|
|
{{ end }}
|