Skip to content

docs: add Google Analytics, cookie consent, and feedback widget#40

Merged
ralfbecher merged 1 commit intomainfrom
docs/google-analytics
May 1, 2026
Merged

docs: add Google Analytics, cookie consent, and feedback widget#40
ralfbecher merged 1 commit intomainfrom
docs/google-analytics

Conversation

@ralfbecher
Copy link
Copy Markdown
Owner

Summary

  • Wires GA4 property G-X19K4GX3EX (same as the main ralforion.com site) into the docs build
  • Adds Material theme cookie consent banner with accept / reject / manage actions (GDPR)
  • Adds "Was this page helpful?" feedback widget with thumbs-up/down ratings linking to a docs issue template

GA only fires after the user grants consent — Material integrates the analytics snippet with the consent state automatically.

Docs-only — no code, no version bump. Already deployed to https://ralforion.com/orionbelt-semantic-layer/.

Test plan

  • mkdocs build --strict passes
  • Built site contains the GA snippet (gtag, G-X19K4GX3EX)
  • Built site contains consent banner markup (md-consent)
  • Deployed live
  • Verify in GA4 Realtime that pageviews appear from /orionbelt-semantic-layer/* after accepting consent
  • Confirm consent banner renders on first visit (clear cookies / incognito)

🤖 Generated with Claude Code

- GA4 property G-X19K4GX3EX (shared with ralforion.com main site)
- Cookie consent banner (accept / reject / manage) for GDPR
- "Was this page helpful?" feedback widget with link to docs issue template

Material theme native integrations — no custom JS, GA only fires after
consent is granted.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@ralfbecher ralfbecher merged commit 849ad4f into main May 1, 2026
3 checks passed
@ralfbecher ralfbecher deleted the docs/google-analytics branch May 1, 2026 16:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant