Repository navigation
fix(website): restore GA4 alongside PostHog (analytics continuity) - #5467
Conversation
The Framer site carried GA4 (G-368ZWZSH5D, recovered from the archive and matching .env.example); the rebuild shipped only PostHog, so GA flatlined at cutover. Same gates as PostHog: real domain, indexable production build, DNT honored. The production workflow sets the public ID. Claude-Session: https://claude.ai/code/session_013Qe1Vf2yvj33BVd5W1q7HB
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Website previewPreview URL: https://pr-5467-agenta-website-preview.mahmoud-637.workers.dev Built from |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (2)
📝 WalkthroughSummary by CodeRabbit
WalkthroughProduction builds now expose a GA4 measurement ID. The website analytics component conditionally injects the GA4 script and initializes ChangesGA4 Analytics
Estimated code review effort: 2 (Simple) | ~10 minutes Possibly related PRs
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
GA showed zero new users after the cutover because the Framer site injected GA4 via Framer's integration, and the rebuilt site shipped only PostHog — GA was never disconnected, it was never included.
This restores the same GA4 property (measurement ID G-368ZWZSH5D, recovered from the Wayback snapshot of the Framer site and matching the ID already documented in website/.env.example). It loads with the exact same gates as PostHog: only on agenta.ai/www, only in indexable production builds, honoring Do Not Track — so previews and dev send nothing. The production workflow provides the ID at build time.
Merging auto-deploys production and GA data resumes.
https://claude.ai/code/session_013Qe1Vf2yvj33BVd5W1q7HB