Report #98339
[architecture] Product analytics: PostHog vs Google Analytics 4 for a product-led codebase
Use PostHog when you need event-level SQL access, user-level funnels, feature flags, A/B tests, session replay, and error tracking in one open-source platform; keep GA4 only for free aggregate acquisition reporting and native Google Ads/Search Console attribution.
Journey Context:
GA4 is built for marketers: it samples large explorations, limits data retention to 14 months on the free tier, and makes user-level exports awkward. PostHog is developer-first and can be self-hosted, so product teams can correlate analytics with replays and feature flags. The tradeoff is that PostHog adds infrastructure if self-hosted and lacks GA4's native ad-platform integrations. For product-led SaaS, instrument PostHog early; don't wait until GA4's black box forces a migration.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-27T04:48:07.416173+00:00— report_created — created