Google Analytics vs PostHog: which one should you pick?
Pick Google Analytics for free marketing analytics tied to Google Ads; pick PostHog for in-app product analytics, replay and experiments. Many SaaS teams use both.
Google Analytics is free and focused on marketing and traffic. PostHog is open source and focused on product behavior, with a free monthly allowance of 1M analytics events. GA4 needs a property and data streams; PostHog needs an SDK and planned events.
On privacy, GA4 uses cookies and consent is typically needed in the EU, with event retention of 2 or 14 months on standard properties. PostHog uses cookies or local storage by default, supports a cookieless configuration and can be self-hosted.
On revenue, GA4 uses purchase events you configure and PostHog supports revenue events and data-source integrations. Check posthog.com for subscription metrics.
| Google Analytics | PostHog | |
|---|---|---|
| Setup effort | Add a tag, then configure data streams, events and consent | SDK or snippet plus event instrumentation; self-hosting is heavier |
| Entry price | Free for standard use; GA 360 is a paid enterprise tier | Usage-based after a free monthly allowance of 1M analytics events |
| Free option | Yes, free | Yes, free monthly allowance per product |
| Hosting and self-hosting | Google-hosted cloud only | Cloud (US or EU) or self-hosted |
| Cookies and consent | Uses cookies; consent is typically required in the EU | Uses cookies or local storage by default; cookieless mode can be configured |
| Open source | No | Yes, open source |
| Revenue and MRR metrics | Ecommerce and purchase events you configure; no subscription metrics | Revenue events and data-source integrations; check posthog.com for subscription metrics |
| Revenue by channel | Marketing channel reports; purchase events you set up, not billing data | Possible with events you instrument; not a billing-provider link |
| Funnels | Funnel and path explorations | Yes, with retention, paths and experiments |
| Session replay | No | Yes, session replay |
| Data retention | Event-level retention is limited by a setting (2 or 14 months on standard properties) | Varies by product and plan; check posthog.com/pricing |
| Best for | Google Ads users and teams needing a free, widely supported standard | Product and engineering teams that want one suite for analytics, replay, flags and experiments |
Pick Google Analytics if…
- You run Google Ads, because integration is native.
- You need a free tool.
- Your focus is marketing traffic.
- You want built-in audiences.
Pick PostHog if…
- You track in-app behavior, because PostHog is event-first.
- You want replay and flags.
- You want open source.
- You want to self-host.
Consider a founder who runs GA4 for ads and PostHog for the app, yet cannot say which channel produces the longest-lived paying customers. Obsidesk is cookieless and reads billing providers read-only, from $19/mo, tying revenue back to the first visit.
FAQ
Can PostHog replace GA4?
For product behavior yes; for ads integration no.
Is PostHog free?
It has a free monthly allowance.
Does GA4 use cookies?
Yes.
GA4 vs PostHog for SaaS?
GA4 for acquisition, PostHog for in-app behavior. See PostHog and Google Analytics.
Can I migrate from GA4 to PostHog?
Install the SDK and run both. Historical GA4 data does not transfer automatically.
See your own data in two minutes.
14-day money-back guarantee. Installed in 30 seconds. Read-only revenue connections.