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

@@ -53,11 +53,7 @@
<link href="{{ $customCss.RelPermalink }}" rel="stylesheet" />
{{- end }}
<!-- Google Analytics -->
{{- if and hugo.IsProduction .Site.Config.Services.GoogleAnalytics.ID }}
<link rel="preconnect" href="https://www.googletagmanager.com" crossorigin />
{{ partial "google-analytics.html" . -}}
{{- end }}
{{ partial "components/analytics/analytics.html" . }}
<script>
// The section must not be in the theme.js file because it can create a quick flash (switch between light and dark).