BlogComparison

PostHog vs Google Analytics: which one do you need?

PostHog and Google Analytics 4 compared on price, sampling, data retention, cookies, product analytics and AI access, and when to run both. Checked 12 November 2026.

Google Analytics 4 and PostHog get compared a lot, but they were built for different jobs. GA4 is a free traffic and marketing tool, wired into Google's ad products. PostHog is a product analytics platform for what signed-in people do inside an app, with replay, flags and experiments around it.

Plenty of teams run both. This post covers where each one is stronger, what each costs, and when one is enough.

We make Spreelytics, a third tool, and say where it fits at the end, and the limits and prices below come from Google's documentation and PostHog's pricing page, read on 12 November 2026.

The short answer

If you mostly need traffic, sources and Google Ads conversions on a marketing site, GA4 is free and does the job. For a product people sign in to, where you want to see what they do, PostHog fits better, and its free million events a month covers a lot of early products. A team with both needs often runs both.

At a glance

PostHogGoogle Analytics 4
PriceFree up to 1M events, then per eventFree at any volume (360 is paid)
SamplingNeverExplorations, above 10M events per query
Event data kept1 year free, 2 years paid2 months by default, up to 14
CookiesFirst-party, cookieless optionFirst-party, behind consent in the EU
Funnels and retentionReady-made insightsBuilt as explorations
Session replay5,000 free a monthNo
Feature flags and experimentsYesNo
Google Ads integrationBasicDeep, first-party
Self-hostingYes, open sourceNo
Official MCP serverYesYes, read-only by default

Price

GA4 costs nothing at any traffic level. Its paid version, GA4 360, has no public price and is sold on annual contracts through Google and its resellers.

PostHog is free up to 1 million events a month, then charges per event, which comes to $324.40 a month at 10 million anonymous events. If those events belong to signed-in users, an identified-event surcharge takes it to $1,080. Replays, flags and surveys each have their own free allowance and meter, and our PostHog pricing and Google Analytics pricing posts work through both in detail.

Where GA4 is stronger

Cost at volume. No event limit and no bill, however big the site gets.

Google's ad stack. Links to Google Ads, conversion imports and Search Console are first-party and deep. If you buy Google traffic, that's hard to replace.

Familiarity. Every agency and most marketers already know their way around it.

Where PostHog is stronger

Product questions. Funnels, retention, paths and person timelines are insights you open directly. In GA4 the same questions mean building an exploration, and explorations switch to a sample once a query covers over 10 million events.

History. PostHog keeps events for a year on its free plan and two years on paid ones. GA4's event-level data, which explorations read, defaults to two months and goes up to 14.

Everything around the analytics. Session replay, feature flags, experiments, surveys and error tracking sit on the same events and the same person.

Control. PostHog is open source with US or EU hosting, and you can self-host a small setup. GA4 runs in Google's cloud only.

Should you run both?

It's a common setup. GA4 stays on the marketing site for Ads and Search Console, and PostHog goes on the product for what happens after sign-up. The cost is two tools that disagree on visitor counts, and a gap between them right where the money is. The channel lives in GA4. What they did and paid lives in PostHog.

PostHog's own web analytics and revenue analytics, which is in beta with Stripe as the only source so far, are meant to close that gap from its side.

When neither is the right fit

If what you want is that join, from channel to signup to payment, in one place, that's what we built Spreelytics for. One script covers traffic and product events. Payments from Stripe, Paddle, Polar or Lemon Squeezy are credited to the channel that earned them, on every plan including Free, and nothing is sampled. New projects start cookieless. AI crawlers are counted on your server, and our MCP server works with Claude and ChatGPT by signing in.

We have no feature flags or experiments, our replay comes with the Growth plan, and we don't link into Google Ads the way GA4 does. Free covers 1 million events a month, and 10 million costs $339. See Spreelytics vs PostHog, Spreelytics vs GA4 and the best Google Analytics alternatives.

Questions people ask

Can PostHog replace Google Analytics?

For many products, yes. Its web analytics dashboard covers visitors, sources and top pages, and the product side goes well past GA4. Keep GA4 if you rely on its Google Ads links.

Is PostHog free like Google Analytics?

Up to a point. PostHog is free for the first million events a month and then charges per event. GA4 is free at any volume.

Does Google Analytics have session replay?

No, GA4 has no session replay of any kind, so for that you'd need a separate tool. PostHog includes 5,000 recordings a month on its free plan.

See your own numbers today.

Free up to 1M events a month · no credit card

Contact

Tell us what you need.

A real person reads these. We usually reply within one working day.

Or email us directly at contact@spreelytics.com.