2022-04-25 01:12:02 +00:00
|
|
|
{{ if hugo.IsProduction }}
|
2021-08-11 05:28:33 +00:00
|
|
|
{{ with .Site.Params.fathomAnalytics.site }}
|
|
|
|
{{ if isset $.Site.Params.fathomanalytics "domain" }}
|
2021-10-28 01:39:34 +00:00
|
|
|
<script defer src="https://{{ $.Site.Params.fathomanalytics.domain }}/script.js" data-site="{{ . }}"></script>
|
2021-08-25 03:31:53 +00:00
|
|
|
{{ else }}
|
2021-10-28 01:39:34 +00:00
|
|
|
<script defer src="https://cdn.usefathom.com/script.js" data-site="{{ . }}"></script>
|
2021-08-11 05:28:33 +00:00
|
|
|
{{ end }}
|
|
|
|
{{ end }}
|
2023-06-25 07:51:45 +00:00
|
|
|
{{ with site.Params.plausible.domain }}
|
|
|
|
<script defer
|
2023-06-16 02:22:49 +00:00
|
|
|
data-domain="{{ . }}"
|
|
|
|
data-api="{{ default "https://plausible.io/api/event" site.Params.plausible.event }}"
|
|
|
|
src="{{ default "https://plausible.io/js/script.js" site.Params.plausible.script }}"></script>
|
2023-06-25 07:51:45 +00:00
|
|
|
{{ end }}
|
2021-08-11 05:28:33 +00:00
|
|
|
{{ template "_internal/google_analytics.html" . }}
|
2023-06-16 02:22:49 +00:00
|
|
|
{{ end }}
|