AnalyticsVS
Menu

PostHog vs Google Analytics 4

PostHog vs Google Analytics 4. This page compares product analytics with funnels and replay versus free web analytics in the Google ecosystem.

Updated

Quick answer

Quick answer

Google Analytics 4 is best when the job is marketing traffic, Google Ads, and a $0 standard property. Use PostHog if users have accounts and you ship features weekly. PostHog Cloud includes 1 million analytics events free every month.

Read the full analysis on AnalyticsVS ↓

How to choose

If weekly questions are which blog posts and campaigns drove visits, stay on GA4 or a lighter web tool. Standard GA4 is $0. Based on Google's documentation as of November 30th, 2026.

If weekly questions are activation, retention, flags, or experiments, PostHog is the better fit. PostHog Cloud includes 1 million analytics events and 5,000 session recordings free every month. Based on PostHog's website as of November 19th, 2026.

If you only need heatmaps and recordings on a known marketing URL, use Hotjar instead of a full product suite. See PostHog vs Hotjar.

If you only need cookieless marketing traffic, use Fathom or Plausible on the brochure site and keep PostHog in the app. Framing for that split is web analytics vs product analytics.

Two jobs, two tags

For a marketing website or blog, GA4 or a privacy tool like Plausible is usually enough. For a SaaS product with user accounts, PostHog fits better. For content sites with ad attribution, GA4 wins. For feature flags and A/B tests, choose PostHog.

PostHog Cloud’s free monthly allowances are 1 million analytics events, 5,000 session recordings, and 1 million feature-flag requests, then usage-based pricing. No card is required for the free tier. Based on PostHog's website as of November 19th, 2026. One project is free without billing. Additional projects require a payment method on file.

Self-hosting is available when you want the database on your infrastructure. Paid-plan features stay on Cloud per PostHog’s self-host docs. Based on PostHog's documentation as of November 19th, 2026.

What we measured

PostHog transferred 144.3 KiB in our test; Google Analytics 4 transferred 170.5 KiB. Both stay in the same weight class; pick on product, not script weight. Based on our own benchmark as of October 12th, 2026.

Recorded analytics script benchmarks sorted by transfer size
ToolTransferDecodedLoad overheadLoading
PostHog144.3 KiB451.2 KiB+1.28 sAsync
Google Analytics 4170.5 KiB507.6 KiB+1.16 sAsync

Sorted by transfer size. Color bands match our methodology thresholds (green / amber / red). Averages of 7 cold runs on the minimal-v1 Slow 4G fixture.

Who should pick which?

Good fit for…

  • Product and engineering teams shipping features and measuring in-app behavior.
  • Startups wanting session replay, funnels, and A/B tests without stitching five vendors.
  • Teams comfortable with event instrumentation via SDK or autocapture.
  • Organizations evaluating self-hosted analytics for data control, with platform engineering capacity.

Not a great fit for…

  • Blog-only sites that only need referrer and pageview reports.
  • Teams with zero engineering bandwidth for event taxonomy and SDK maintenance.
  • Marketing teams that only care about Google Ads attribution. GA4 integrates deeper there.
  • Simple revenue-per-channel attribution for Stripe SaaS. DataFast is more direct.

Good fit for…

  • Marketing teams running Google Ads or relying on Search Console, Looker Studio, and the rest of Google’s marketing stack.
  • Sites and apps that need event-based measurement at high volume without a per-hit SaaS invoice.
  • Organizations comfortable with BigQuery export for custom analysis inside published standard-property ceilings.
  • Teams that already have GA4 expertise and reporting workflows.

Not a great fit for…

  • Small sites that only need simple traffic stats and want minimal compliance overhead.
  • Teams avoiding Google data processing or US cloud jurisdiction concerns.
  • Privacy-first positioning without cookie banners. Lightweight cookieless tools win here.
  • Revenue attribution for indie Stripe SaaS without significant GA4 ecommerce setup. DataFast is simpler.

Feature comparison table

Side-by-side feature checklist for PostHog and Google Analytics 4.

FeaturePostHogGoogle Analytics 4
Cookieless——
GDPR-friendly——
Realtime data✓✓
Custom events✓✓
Funnels✓✓
Heatmaps——
Session recordings✓—
A/B testing✓—
Product analytics✓✓
Revenue tracking——
Self-hostable✓—
Open source✓—

Head-to-head by topic

Sourced from our individual tool reviews. How we review tools

Privacy & compliance

Unique to Google Analytics 4

GA4 is not a privacy-first tool in the Plausible sense. It uses cookies and identifiers, processes data on Google infrastructure, and typically requires consent banners in GDPR jurisdictions. Based on Google's documentation as of November 24th, 2026.

Google offers data retention controls and user deletion tools. Operational burden still falls on you. Event-level data used in Explorations is kept for 2 or 14 months on standard properties. Large standard properties are forced to 2 months. Based on Google's documentation as of November 17th, 2026.

Free does not mean zero compliance cost. Legal review and consent UX are part of the total price.

If consent banners or data transfers are the main reason you are looking at alternatives, compare a cookie-free option such as Ahrefs Web Analytics or read GA4 alternatives for GDPR.

Web analytics scope

Unique to Google Analytics 4

GA4 is best when you want one event-based property for web and app. Every interaction is an event with parameters. Pageviews, scrolls, purchases, and custom actions flow through the same pipeline. This replaces Universal Analytics’ session-centric model and requires relearning reports and explorations.

Universal Analytics processing ended on July 1st, 2023. Remaining UA access ended on July 1st, 2024. Based on Google's documentation as of November 24th, 2026.

Strength: flexible schema for web plus app in one property. Weakness: easy to over-instrument and inflate event counts without governance.

For marketing sites, start with enhanced measurement defaults and add custom events only where decisions depend on them. Our GA4 events primer walks through the setup.

Product & behavior capabilities

Unique to PostHog

PostHog is best when the weekly questions are activation, feature adoption, and churn signals inside a product. Core reports include funnels, retention, paths, trends, and user-level profiles when people are identified. Autocapture can track clicks and pageviews on web with minimal code. Serious teams still define named events for trustworthy metrics.

Unlike GA4, PostHog is built for SaaS product questions, not just marketing landing pages. SQL insights extend power users.

Event volume drives cost on Cloud. Disciplined instrumentation keeps bills predictable. Our PostHog events primer covers autocapture versus named events.

PostHog is best when you want feature flags, session replay, and experiments in one stack instead of stitching Hotjar, LaunchDarkly, and Optimizely. For early-stage teams, consolidation reduces integration tax.

Session replay helps debug UX friction. Flags enable gradual rollouts. Experiments tie metrics to variants. Each capability adds script weight and a privacy-review surface. Disclose replay to users where required.

Not every team needs all modules on day one. PostHog lets you enable capabilities incrementally. Cloud includes 5,000 web recordings free per month. Based on PostHog's website as of November 19th, 2026.

Integrations & ecosystem

Unique to Google Analytics 4

GA4 is best when your growth stack is Google-centric. Native links cover Google Ads, Search Console, Looker Studio, and optional BigQuery export. Based on Google's documentation as of November 24th, 2026.

Non-Google integrations exist via Tag Manager and APIs but are rarely as seamless as native Google links. Teams on Meta Ads or other channels often still run GA4 alongside platform pixels.

Consent Mode governs how tags behave when users grant or deny consent. Based on Google's documentation as of November 24th, 2026. Misconfiguration can skew attribution and create compliance risk.

Cloud vs self-hosted

Unique to PostHog

PostHog Cloud is the fastest path. Sign up, install a snippet or SDK, and start capturing. Self-hosted open source suits teams with infra staff and strict data residency. Based on PostHog's documentation as of November 19th, 2026.

Self-hosting PostHog is a real platform operation: upgrades, backups, and the supporting data stack. Budget engineering time, not just license savings.

Use Cloud if you want product analytics without running the platform. Use self-host if residency forces you to own the stack and you can staff it.

Other considerations

Unique to Google Analytics 4

Cost-intent readers should start with Is Google Analytics free?. This profile stays on product fit and setup.

Standard Google Analytics 4 is $0. Google Analytics 360 is a custom annual contract through Google or a Sales Partner. Google publishes no list price. Based on Google's documentation as of November 17th, 2026.

What 360 buys is higher limits and an SLA:

LimitGA4 (standard)Google Analytics 360
Subscription$0Custom annual contract; no public list price
Event data retention (explorations)2 or 14 months; Large properties: 2 monthsUp to 50 months
Explore sampling10 million events per query1 billion events per query
BigQuery daily export1 million events/dayUp to 20 billion events/day
Data API quota200,000 tokens/day2 million tokens/day
Key events3050
Event-scoped custom dimensions50 per property125 per property
Audiences100400
Service level agreementNoYes

The decision-relevant ceiling is 10 million events per query in Explore on standard properties. Based on Google's documentation as of November 17th, 2026.

Hidden costs of free GA4 are consent-banner work in many GDPR regions, Tag Manager setup, analyst time, and BigQuery storage and query charges billed by Google Cloud if you export. Streaming BigQuery export adds $0.05 per gigabyte on the Google Cloud side. Based on Google's documentation as of November 24th, 2026.

Most sites never need 360. If you are shopping mainly to avoid consent banners, compare cookie-free tools like Plausible, Fathom, or Ahrefs Web Analytics, or use our pricing calculator.

Pricing comparison

PostHog

PostHog Cloud includes 1 million analytics events and 5,000 web recordings free per month, plus 1 million feature-flag requests, then usage-based pricing. Based on PostHog's website as of November 19th, 2026. Paid usage scales with events, replay recordings, and feature-flag requests. One project is free without billing. Additional projects require a payment method on file.

Self-hosted open source removes Cloud event billing but adds hosting cost. For marketing-only sites, PostHog is usually overkill versus Plausible or Fathom.

Use our pricing calculator with events, not just pageviews, for realistic estimates.

TierLimitPrice / month
Free tier1,000,000Free
Usage-based above free2,000,000Free

PostHog Cloud free monthly allowances checked 19 Nov 2026: 1M analytics events, 5K session recordings, 1M feature-flag requests, then usage-based pricing (https://posthog.com/pricing). Self-hosting available; paid-plan features are Cloud-only per PostHog self-host docs.

Google Analytics 4

Standard GA4 is $0 for typical site and app volumes. Google Analytics 360 is a custom annual contract through Google or a Sales Partner. Google publishes no list price. Based on Google's documentation as of November 17th, 2026.

Partner blogs sometimes cite about $50,000 a year. Based on partner blog estimates; Google does not publish a price. Treat it as a rumor until you have a quote.

Hidden costs include Tag Manager and consulting time, BigQuery storage and query bills, and compliance tooling. At low traffic, GA4 wins on subscription price versus any paid privacy tool. At high traffic, the standard tier is still $0, but sampling, export, and ops complexity grow.

Use our pricing calculator to compare GA4 ($0) against paid alternatives at your pageview level. For the full cost walkthrough, see Is Google Analytics free?.

Free for up to 10,000,000 hits/month.

Free for most sites. Google Analytics 360 is a custom-priced annual contract (contact Google or a Sales Partner).

Use the pricing calculator to compare costs at your traffic or event volume.

Setup & implementation

PostHog

Typical setup for a web SaaS:

  1. Create a PostHog project and install the JavaScript snippet or framework SDK.
  2. Enable or disable autocapture based on noise tolerance.
  3. Define key events (signup, upgrade, core feature use) with stable names.
  4. Optionally enable session replay and feature flags for targeted users.
  5. Build funnels and dashboards, then set up experiments when traffic allows.

Common pitfalls include anonymous versus identified user merge issues, autocapture noise, enabling replay without performance testing, and unbounded custom properties.

Google Analytics 4

Typical setup:

  1. Create a GA4 property and web data stream.
  2. Install gtag.js or deploy via Google Tag Manager.
  3. Configure key events (conversions) and link Google Ads if applicable.
  4. Set data retention, internal traffic filters, and consent defaults.
  5. Validate with DebugView before trusting reports.

Common pitfalls include duplicate tags inflating counts, missing Consent Mode in the EU, treating GA4 like Universal Analytics reports, and unbounded custom events without naming conventions.

Limitations compared

PostHog

  • It is overkill for simple marketing analytics. Complexity and cost are higher than Plausible or Fathom.
  • It requires engineering ownership for clean event schemas and identity rules.
  • Session replay raises privacy and performance considerations.
  • Google Ads native integration is not GA4-class.
  • The script bundle is heavier than lightweight analytics. See the recorded PostHog script benchmark on this profile.

Google Analytics 4

  • The learning curve is steep versus Plausible or Fathom. Reports are powerful but not simple.
  • Privacy and EU transfer concerns push some teams to Matomo or EU-hosted tools.
  • There is no native session replay or heatmaps. Pair with Hotjar or PostHog.
  • Revenue attribution for custom Stripe flows requires deliberate ecommerce and event setup.
  • Script weight and performance vary by implementation. Recorded numbers are on this profile’s What we measured cards.

Bottom line

Do not pit these tools as clones unless you only need pageviews. For marketing analytics, GA4 (or a privacy-first web tool) wins on cost and ads linking. For product teams shipping weekly, PostHog is the more capable platform. Many SaaS teams run GA4 on the marketing site and PostHog in the app.

If you only need heatmaps and session recordings for page-level UX, not full product analytics, look at Hotjar and our PostHog vs Hotjar comparison. For the marketing-versus-product split, read web analytics vs product analytics.

We may earn a commission. Details

Frequently asked questions

PostHog vs GA4: which should I use?
Use GA4 for marketing-site traffic, Google Ads attribution, and free reporting at scale. Use PostHog when you need product analytics: identified users, funnels, retention, session replay, and feature flags. Many SaaS teams run GA4 on the marketing site and PostHog in the app.
PostHog vs Google Analytics: what’s the real difference?
Google Analytics 4 is web and campaign analytics in Google’s ecosystem. PostHog is a product analytics suite. They overlap on pageviews, but PostHog is built for in-app behavior and experimentation, while Google Analytics is built for acquisition and media reporting.
Is PostHog a Google Analytics alternative?
Yes for basic website traffic reporting, and often a better alternative when product analytics is the job. It is not a drop-in ads-attribution replacement for teams that depend on Google Ads and Search Console linking inside GA4.
Is PostHog free?
PostHog Cloud includes 1 million analytics events per month free, plus 5,000 session recordings and 1 million feature-flag requests, then usage-based pricing. Standard GA4 has no subscription fee. Compare ongoing costs in the pricing calculator as event volume grows.
Which is better for a SaaS product?
PostHog is generally the better fit for SaaS. It supports user identification, funnels, retention analysis, feature flags, and A/B testing without building those reports in GA4 explorations.
Can PostHog be self-hosted?
Yes. PostHog offers open-source self-hosting for teams that want full data control. Paid-plan features are Cloud-only per PostHog’s self-host docs. GA4 is cloud-only through Google.
Which script is lighter?
This page already shows recorded script measurements in What we measured. Open that section, then the benchmarks hub, for transfer size and Slow 4G load overhead. A product SDK is heavier than a pageview-only tag because it ships more capability.
PostHog vs GA4 for a SaaS app?
PostHog is stronger for product funnels, flags, replay, and experiments with a developer-first workflow. GA4 is stronger for free scale and Google marketing integrations. Many teams run both during a transition.
PostHog vs Hotjar?
Hotjar leads on heatmaps and qualitative UX for marketers, with surveys next to recordings. PostHog leads on product analytics, flags, and engineering-centric experimentation in one stack.
GA4 vs Universal Analytics: what changed?
GA4 is event-based and uses different reports. Universal Analytics stopped processing on July 1st, 2023. Remaining UA access ended on July 1st, 2024. You cannot expect one-to-one metric parity with old UA dashboards.

Sources & review status

Comparison updated November 30th, 2026 · Tool reviews last verified November 30th, 2026 · How we write comparisons

Try these tools

Google Analytics 4