# PostHog vs Google Analytics: product analytics or marketing analytics?

Published 2026-11-23 · Updated 2026-11-23

**Short answer:** Pick PostHog if you build a product and want analytics, session replay, feature flags, experiments and error tracking in one place, with 1M free events a month. Pick Google Analytics if you run marketing, buy Google ads and want free traffic and conversion reports tied to Google's ad tools. Both cost nothing for most sites' analytics, so the choice is about what you need to see, not price.

PostHog and Google Analytics both count pageviews and both are free at small volumes, which is why they get compared. They are built for different people. PostHog is a product platform for engineers and product teams: product and web analytics, session replay, feature flags, experiments, surveys, error tracking and a data warehouse. Google Analytics 4 is a marketing tool: traffic, acquisition, conversions and attribution, joined to Google Ads and BigQuery.

We read PostHog's pricing page and docs, and Google's help centre and [features page](https://marketingplatform.google.com/about/analytics/features/), on 23 November 2026. For head-to-heads with us, see [CrispStats vs PostHog](/vs/posthog) and [CrispStats vs Google Analytics](/vs/google-analytics); if you want something simpler than both, see [PostHog vs Plausible](/compare/posthog-vs-plausible). The other product analytics tools people weigh against GA4 are covered in [Mixpanel vs Google Analytics](/compare/mixpanel-vs-google-analytics) and [Heap vs Google Analytics](/compare/heap-vs-google-analytics), and the two product suites meet in [PostHog vs Mixpanel](/compare/posthog-vs-mixpanel).

## The differences that matter

### What each product is for

- **PostHog:** A suite for product and engineering teams. Web analytics is a dashboard of visitors, pageviews, sessions, bounce rate, referrers, UTMs and Core Web Vitals, running on the same events as product analytics, so a traffic number can lead to the session replays behind it.
- **Google Analytics:** Reports for acquisition, engagement and monetization, explorations for funnels, paths, segments and cohorts, and an advertising workspace with data-driven attribution and conversion paths.

Ask who will read the numbers. If it is a product team asking which users dropped out of onboarding and why, PostHog answers that. If it is a marketing team asking which campaigns brought buyers, Google Analytics is built around that question.

### What it costs

- **PostHog:** Usage based per product, with a free tier each month: 1M product analytics events, 5,000 session recordings, 1M feature flag requests, 100,000 exceptions and 1,500 survey responses. Web analytics is included with product analytics. Above 1M events, the next million costs $0.00005 per event. No per-seat charges.
- **Google Analytics:** Standard GA4 is free at any volume. Analytics 360 has higher limits and an SLA, and Google lists no price for it.

At 10k, 100k and 1M events a month both cost $0 for analytics. Above that, GA4 stays free and PostHog starts charging. Worked example: at 2M analytics events a month, PostHog's second million at $0.00005 an event is about $50 a month, computed from its published rate; replay, flags and the other products have their own meters. GA4 at 2M events is still $0. The [analytics cost calculator](/tools/analytics-cost-calculator) shows where PostHog's free million runs out for your traffic.

### Cookies and consent

- **PostHog:** By default the JavaScript library stores a first-party cookie and localStorage. PostHog offers a cookieless option and says that with it you do not need a cookie banner just for web analytics.
- **Google Analytics:** Sets `_ga` and `_ga_<container-id>` cookies for two years by default. Consent mode sends cookieless pings when a visitor declines.

Out of the box, both set cookies. PostHog has a documented way to run without them for web analytics; Google Analytics relies on consent mode and a banner. See [cookie consent](/glossary/cookie-consent) and [Google consent mode explained](/blog/google-consent-mode-explained); this is general information, not legal advice.

### Replay, flags, experiments and errors

- **PostHog:** Session replay, heatmaps, feature flags, experiments, surveys and error tracking are all in the platform, each with a monthly free tier.
- **Google Analytics:** Google's features page lists no session recording, heatmaps, feature flags, A/B testing or surveys.

If you want to watch a [session replay](/glossary/session-replay) of a visitor who hit an error, or ship a change behind a flag and measure it, PostHog does it in one tool. With GA4 you would add other products for each of those.

### Advertising

- **PostHog:** UTM tracking in web analytics; PostHog's revenue analytics connects to Stripe, or works from revenue events you send.
- **Google Analytics:** Integrations with Google Ads, Search Ads 360, Display & Video 360, Search Console and Ad Manager, with conversion and audience sharing, data-driven attribution and predictive audiences.

This is where GA4 is hard to replace. If your growth depends on Google Ads bidding on conversions, the integration is the reason to keep it, even if you use PostHog for product work.

### Data, retention and SQL

- **PostHog:** A built-in data warehouse that lets you query Stripe, HubSpot, Postgres and more with SQL next to your events. The free plan has 1 project and 1 year of data retention.
- **Google Analytics:** Standard properties keep event data for at most 14 months, and explorations are sampled above 10M events per query. Raw events export to BigQuery, capped at 1M events a day on standard.

Both let analysts get at raw data. PostHog keeps it inside the product; GA4 sends it to BigQuery, where you query it separately. [GA4 data retention](/blog/ga4-data-retention) covers the 14-month setting.

### Self-hosting and code

- **PostHog:** Open source under MIT outside the ee/ directory, with a Docker Compose deployment that PostHog says is officially unsupported.
- **Google Analytics:** Closed source and hosted by Google, with no self-hosted option.

If you need to run analytics on your own infrastructure, PostHog allows it with no support promise; Google Analytics does not allow it at all.

## Choose PostHog if

- You build a software product and want analytics, replays, flags, experiments and error tracking in one platform.
- You need to follow individual users through person profiles and user paths.
- You want a SQL data warehouse next to your events.
- You want the option to run analytics without cookies for web analytics, as PostHog documents it.
- You want open source code or a self-hosted option.

## Choose Google Analytics if

- Ad spend goes through Google Ads and you want conversions and remarketing audiences shared with it.
- Your questions are about campaigns, channels and conversions rather than product usage.
- You want analytics that stays free at any event volume.
- You need web and app data in one property with a BigQuery export.
- You work with agencies or analysts who already know it.

## The facts side by side

|  | PostHog | Google Analytics | CrispStats |
| --- | --- | --- | --- |
| Hosting | both | hosted | hosted |
| Open source | Yes (MIT) | No | No |
| Free plan | 1M events a month (Plus a free tier on every other product; 1 project and 1 year of data on Free) | Yes (Standard GA4 is free) | No (14-day free trial, no card) |
| Priced by | events | events | events |
| Lowest paid plan | $0 base (Pay as you go above the free tiers) | Not published (Analytics 360 has no list price on Google's site) | $5 (Starter, 250k events) |
| At 10k a month | $0 (Inside the first 1M free product analytics events. Computed from the published per-event rates.) | $0 (Standard GA4) | $5 (Starter) |
| At 100k a month | $0 (Inside the first 1M free product analytics events. Computed from the published per-event rates.) | $0 (Standard GA4) | $5 (Starter) |
| At 1M a month | $0 (Exactly the 1M free events; the next million is $0.00005 per event. Computed from the published per-event rates.) | $0 (Standard GA4; 360 adds higher limits) | $12 (Growth) |
| Works without cookies | Optional (Cookie and localStorage by default) | No (Uses first-party cookies) | Yes (No cookies, no stored IP addresses) |
| Cookie consent needed in the EU | Depends on setup (PostHog says the cookieless option avoids a banner for web analytics) | Yes (Consent mode for visitors who decline) | No cookies set (Nothing is stored on the device by default) |
| Revenue attribution | Yes (Revenue analytics from Stripe or from revenue events; Stripe is the only connected payment platform so far) | Partly (Purchase events you send are reported with their value; no payment-provider webhooks) | Yes (Stripe, Polar, Paddle, Dodo Payments, Creem, Whop, Razorpay, Freemius, Lemon Squeezy, Shopify, RevenueCat, Superwall, App Store, Shopify App Store) |
| Funnels | Yes | Yes (Funnel exploration) | Yes |
| Goals and custom events | Yes (Custom events and autocapture) | Yes (Key events: 30 on standard, 50 on 360) | Yes |
| Custom event properties | Yes | Yes (25 parameters per event on standard, 100 on 360) | Yes |
| Visitor profiles and journeys | Yes (User paths and person profiles) | Not verified | Yes |
| Realtime globe or map | Not verified | Yes (Realtime report with a map, last 30 minutes) | Yes (Live 3D globe) |
| UTM campaign reports | Yes | Yes (Source, medium and campaign, also in realtime) | Yes |
| AI traffic | Not verified | Not verified | Yes |
| AI chat over your data | Yes (PostHog AI) | Not verified | Yes |
| MCP server | Yes (Hosted MCP server, free to connect) | Yes (Open-source MCP server from Google, run by you) | Yes |
| API | Yes | Yes (Data API, 200,000 tokens a day on standard; Measurement Protocol for server events) | Yes (REST API on every plan) |
| Web vitals from real visits | Yes (Core Web Vitals in web analytics) | Not verified | Yes |
| JavaScript error tracking | Yes (100,000 exceptions a month free) | Not verified | Yes |
| Uptime monitoring and status page | Not verified | Not verified | Yes |
| Session replay | Yes (5,000 recordings a month free) | Not verified | No |
| Heatmaps | Yes | Not verified | No |
| Feature flags | Yes (1M requests a month free) | Not verified | No |
| A/B testing | Yes (Billed with feature flags) | Not verified | No |
| Surveys | Yes (1,500 responses a month free) | Not verified | No |
| Data warehouse | Yes (Query Stripe, HubSpot, Postgres and more with SQL) | Export (BigQuery export, 1M events a day on standard) | No |
| Free plan | 1M events a month (Then usage based) | Yes (Standard GA4) | No (14-day free trial, no card) |
| Every feature on every plan | Not verified | Not verified | Yes |
| Sites | 1 project on Free, 6 on paid (Unlimited with the Boost package) | Not verified | 10 on Starter (Unlimited from Growth) |
| Trial of paid plans | Not verified | Not verified | 14 days (No card required, every feature) |
| If you go over the plan | Not verified | Not verified | Paid: keeps recording (Paid plans stay open at $1 per extra 100k; the trial pauses at 25k a month) |
| Open source | Yes (MIT outside ee/) | Not verified | No |
| Self-hosting | Yes (Docker Compose deploy, officially unsupported) | No (Hosted by Google) | No (Hosted only) |
| Works on any host | Not verified | Not verified | Yes |

Sources:

- PostHog, checked 2026-11-23: [Pricing](https://posthog.com/pricing), [Pricing (Markdown)](https://posthog.com/pricing.md), [Web analytics](https://posthog.com/web-analytics), [Docs: JavaScript persistence and cookies](https://posthog.com/docs/libraries/js/persistence), [Docs: revenue analytics payment platforms](https://posthog.com/docs/revenue-analytics/payment-platforms), [Docs: self-host](https://posthog.com/docs/self-host), [Docs: heatmaps](https://posthog.com/docs/toolbar/heatmaps), [Docs: PostHog AI](https://posthog.com/docs/posthog-ai), [MCP server](https://posthog.com/mcp), [Docs: API](https://posthog.com/docs/api), [License](https://github.com/PostHog/posthog/blob/master/LICENSE)
- Google Analytics, checked 2026-11-23: [Google Analytics home](https://marketingplatform.google.com/about/analytics/), [Help: standard and 360 limits](https://support.google.com/analytics/answer/11202874), [Help: GA4 cookies](https://support.google.com/analytics/answer/11397207), [Help: consent mode](https://support.google.com/analytics/answer/9976101), [Help: BigQuery export](https://support.google.com/analytics/answer/9358801), [Help: realtime report](https://support.google.com/analytics/answer/9271392), [Help: funnel exploration](https://support.google.com/analytics/answer/9327974), [Developers: ecommerce](https://developers.google.com/analytics/devguides/collection/ga4/ecommerce), [Developers: Measurement Protocol](https://developers.google.com/analytics/devguides/collection/protocol/ga4), [Google Analytics MCP server](https://github.com/googleanalytics/google-analytics-mcp)
- CrispStats, checked 2026-11-23: [CrispStats pricing](https://crispstats.com/pricing), [CrispStats docs](https://docs.crispstats.com)

## Where CrispStats fits

We make CrispStats, and it is smaller than both tools on this page: one cookieless dashboard for traffic, with funnels, revenue from Stripe and seven other payment providers, web vitals, error tracking and uptime checks on every plan. A product team that wants replay, flags, experiments, surveys or a warehouse should pick PostHog; an advertiser who needs Google Ads conversions should keep GA4. CrispStats suits a site that wanted GA4's traffic reports without cookies and without PostHog's breadth. It is closed source, cannot be self-hosted, imports no GA history, and launched in November 2026.

## Frequently asked questions

### Can PostHog replace Google Analytics?

For traffic reporting, yes: PostHog's web analytics shows visitors, pageviews, sources, UTMs and Core Web Vitals. It does not replace GA4's Google Ads integration, so teams that bid on conversions in Google Ads usually keep GA4 for that.

### Is PostHog free like Google Analytics?

Up to a point. PostHog's free tier includes 1M analytics events, 5,000 session recordings and 1M feature flag requests a month, then it charges per unit. Standard Google Analytics is free at any volume. Checked on 23 November 2026.

### Does PostHog use cookies?

By default, yes: its JavaScript library stores a first-party cookie and localStorage. PostHog offers a cookieless option and says that with it you do not need a banner just for web analytics. Google Analytics also sets cookies by default. This is general information, not legal advice.

### Can I use PostHog and Google Analytics together?

Yes, and some teams do: Google Analytics for marketing and Google Ads, PostHog inside the product for funnels, replays and flags. Both scripts run independently. Weigh the cost of two tools and two consent setups against the benefit.

### Does Google Analytics have session replay?

No. Google's features page lists no session recording or heatmaps. PostHog includes session replay with 5,000 free recordings a month.
