feat(analytics): add Umami and Matomo (#784)

This commit is contained in:
Ludovic Fernandez
2025-08-25 13:01:10 +02:00
committed by GitHub
parent 524af14bd1
commit c149af0f74
7 changed files with 150 additions and 18 deletions

View File

@@ -0,0 +1,19 @@
{{- 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 }}
{{- end }}