[AAASM-3552] 📈 (docs): Wire GA4 analytics into the mkdocs site#167
Merged
Conversation
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Contributor
Author
|
Claude Code — review result ✅ CI green — Analyze (python), CodeQL, Build documentation all pass. No fails to ignore. Scope vs AAASM-3552 (python-sdk site) — covered. Wires GA4 Ready for approval + merge. This site is the most complete of the five — it has the native consent UI built in. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Wires Google Analytics 4 into the Python SDK mkdocs-material docs site using Material's native
analyticsintegration, plus the native GDPR cookie-consent so analytics cookies are gated behind explicit opt-in.extra.analytics(providergoogle, Measurement IDG-L8JTJDG8G7) under the existingextra:block. The Measurement ID is a public client-side identifier embedded in the rendered HTML — it is not a secret.extra.consent(Cookie consent banner withaccept/reject/manageactions and ananalyticscookie group,checked: falseby default).Type of Change
Breaking Changes
Does this PR introduce any breaking changes?
Related Issues
Testing
Describe the testing performed for this PR:
uv run --group docs mkdocs build --strictbuilds clean (only the pre-existingrelease/RUNBOOK.mdnot-in-nav INFO). The gtag idG-L8JTJDG8G7is confirmed present in the builtsite/HTML.Checklist