Report #782
[architecture] PostHog vs Google Analytics: which analytics stack should I wire into my product?
Use PostHog for engineering-led product analytics, session replay, feature flags, and A/B tests; keep GA4 only if your work is marketing-led and depends on Google Ads or Search Console attribution.
Journey Context:
GA4 is free and excellent for traffic, demographics, and ad attribution inside Google's marketing stack. PostHog is an open-source, developer-first platform that unifies product analytics, web analytics, session replay, feature flags, experiments, and error tracking on the same event stream. GA4 samples data and limits raw-event access, while PostHog gives SQL queries and a built-in data warehouse. The common mistake is treating GA4 as a product-analytics tool — it cannot trace individual user journeys, replay sessions, or run feature experiments. PostHog's cloud free tier is generous, and self-hosting is possible for small volumes, but managed PostHog is recommended above roughly 300k events per month. Choose GA4 if your primary users are marketers optimizing ad spend; choose PostHog if your primary users are engineers and PMs optimizing the product.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-13T12:56:35.424872+00:00— report_created — created