mirror of
https://github.com/imfing/hextra.git
synced 2025-10-13 22:52:10 -04:00

* feat: support GoatCounter analytics * docs: add docs for GoatCounter analytics refactor: move analytics documentation into its own section since there are now 4 supported analytics solutions * fix: addressing issues raised in PR * refactor: simplifying goat counter setting logic. refactor: simplify error handling with goat counter * fix: fixing goat counter erroring when a code is provided * fix: Applying suggested fixes * Update layouts/_partials/components/analytics/goat-counter.html --------- Co-authored-by: Xin <5097752+imfing@users.noreply.github.com>
25 lines
633 B
HTML
25 lines
633 B
HTML
{{- if hugo.IsProduction -}}
|
|
|
|
<!-- Google Analytics -->
|
|
{{- if .Site.Config.Services.GoogleAnalytics.ID }}
|
|
<link rel="preconnect" href="https://www.googletagmanager.com" crossorigin />
|
|
{{ partial "google-analytics.html" . -}}
|
|
{{- end }}
|
|
|
|
<!-- Umami -->
|
|
{{- if .Site.Params.analytics.umami -}}
|
|
{{ partial "components/analytics/umami.html" . }}
|
|
{{- end }}
|
|
|
|
<!-- Matomo -->
|
|
{{- if .Site.Params.analytics.matomo -}}
|
|
{{ partial "components/analytics/matomo.html" . }}
|
|
{{- end }}
|
|
|
|
<!-- GoatCounter -->
|
|
{{- if .Site.Params.analytics.goatCounter -}}
|
|
{{ partial "components/analytics/goat-counter.html" . }}
|
|
{{- end -}}
|
|
|
|
{{- end }}
|