From 9743a1d453a31286d65f51c2db94bcf031283169 Mon Sep 17 00:00:00 2001 From: Bryant Date: Mon, 22 Jun 2026 22:59:30 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=91=8D=20(docs):=20Enable=20mkdocs=20feed?= =?UTF-8?q?back=20widget=20with=20GA4=20reporting?= 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 | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/mkdocs.yml b/mkdocs.yml index 8091c71..bdf23ee 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -157,6 +157,24 @@ extra: analytics: provider: google property: G-L8JTJDG8G7 + # Native "Was this page helpful?" widget — mkdocs-material sends a GA4 + # `feedback` event carrying the chosen rating's `data` value. No free-text + # is sent to GA: the negative note links to a pre-filled GitHub issue so the + # reader explains there instead. + feedback: + title: Was this page helpful? + ratings: + - icon: material/emoticon-happy-outline + name: This page was helpful + data: 1 + note: >- + Thanks for your feedback! + - icon: material/emoticon-sad-outline + name: This page could be improved + data: 0 + note: >- + Thanks for your feedback! Help us improve this page by + opening an issue. # Cookie consent (GDPR) — gate analytics cookies behind explicit opt-in. consent: title: Cookie consent