From 6a3bb05a383733bea8d8a37c9564e83cd05e054f Mon Sep 17 00:00:00 2001 From: Bryant Date: Mon, 22 Jun 2026 22:08:22 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=F0=9F=93=88=20(docs):=20Add=20Google=20Ana?= =?UTF-8?q?lytics=204=20to=20mkdocs?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 4.8 (1M context) --- mkdocs.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/mkdocs.yml b/mkdocs.yml index 505efee5..4056fdc1 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -153,6 +153,10 @@ markdown_extensions: # Additional configuration extra: + # Google Analytics 4 — Measurement ID is public (embedded in the rendered site). + analytics: + provider: google + property: G-L8JTJDG8G7 # Versioning documentation version: provider: mike From 4a6f501266ec1ec7a56a133cb4bf167c99e39623 Mon Sep 17 00:00:00 2001 From: Bryant Date: Mon, 22 Jun 2026 22:08:35 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=F0=9F=93=88=20(docs):=20Add=20cookie-conse?= =?UTF-8?q?nt=20for=20analytics?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 4.8 (1M context) --- mkdocs.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/mkdocs.yml b/mkdocs.yml index 4056fdc1..8091c713 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -157,6 +157,19 @@ extra: 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