diff --git a/mkdocs.yml b/mkdocs.yml index 505efee5..8091c713 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -153,6 +153,23 @@ markdown_extensions: # Additional configuration extra: + # Google Analytics 4 — Measurement ID is public (embedded in the rendered site). + analytics: + provider: google + property: G-L8JTJDG8G7 + # Cookie consent (GDPR) — gate analytics cookies behind explicit opt-in. + consent: + title: Cookie consent + description: >- + We use analytics cookies to understand how you use the docs so we can improve them. + actions: + - accept + - reject + - manage + cookies: + analytics: + name: Google Analytics + checked: false # Versioning documentation version: provider: mike