Report #1079
[architecture] PostHog vs Google Analytics for product analytics in a self-hosted or privacy-sensitive app
Use PostHog when you need event-level product analytics, session replays, feature flags, and the option to self-host to keep data in your VPC. Use Google Analytics 4 when your primary goal is marketing attribution, ad conversion tracking, and audience reporting.
Journey Context:
GA4 is free and ubiquitous, but it aggregates data, limits event parameters, and routes data through Google's systems, which is a non-starter for privacy-focused or B2B products. PostHog can run entirely self-hosted \(PostHog Hobby or ClickHouse-based enterprise\) and gives you per-user event data, cohorts, feature flags, and experiments in one open-source stack. The tradeoff is infrastructure: self-hosted PostHog needs ClickHouse/Kafka/Postgres resources and operational care, while GA4 is zero-ops. A frequent mistake is trying to force GA4 into product analytics dashboards or choosing PostHog only for web analytics.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-13T17:53:09.387767+00:00— report_created — created