AnalyticsVS
Menu

PostHog

Open-source product analytics, feature flags, and session replay

Last updated

  • Free
  • Product analytics
  • Session replay
  • Self-hosted
  • Open source

Quick answer

Quick answer

PostHog is the best fit if you need product analytics, feature flags, session replay, and experimentation in one developer-friendly platform — with a generous free tier and optional self-hosting. Skip it if you only need lightweight marketing pageview stats — Plausible or Fathom are simpler and cheaper for that job alone.

Read the full analysis on AnalyticsVS →

Features

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

Who is it for?

Good fit if…

  • 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 (SDK or autocapture)
  • Organizations evaluating self-hosted analytics for data control

Consider other analytics tools if…

  • 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

Product analytics

PostHog's core is product analytics: funnels, retention, paths, trends, and user-level profiles (when 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 — activation, feature adoption, churn signals — not just marketing landing pages. SQL insights and HogQL extend power users.

Event volume drives cost on cloud; disciplined instrumentation keeps bills predictable.

Flags, replay & experiments

PostHog bundles feature flags, session replay, and experiments — tools that often require Hotjar + LaunchDarkly + Optimizely separately. 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 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 vs self-hosted

PostHog Cloud is the fastest path — sign up, install snippet or SDK, start capturing. Self-hosted (open source) suits teams with infra teams and strict data residency.

Self-hosting PostHog is a real platform operation: ClickHouse, Kafka, upgrades, and backups. Budget engineering time, not just license savings.

EU and US cloud regions exist on paid plans; confirm current region options on vendor docs before committing.

Pricing

PostHog Cloud includes a free tier (1M events/month and limited replay in our directory snapshot — verify current limits on posthog.com/pricing). Paid usage scales with events, replay recordings, and feature flag requests.

Self-hosted open source removes cloud event billing but adds hosting cost. For marketing-only sites, PostHog is usually overkill and overpriced vs Plausible.

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

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

1M events/month free on cloud. Above that, usage-based pricing applies. Self-hosting available.

Use the pricing calculator to compare costs at your traffic level.

Setup & implementation

Typical setup (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; set up experiments when traffic allows.

Expect half a day to several days depending on event taxonomy maturity.

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

Comparisons featuring PostHog

Often compared with

Limitations

  • Overkill for simple marketing analytics — complexity and cost vs Plausible/Fathom.
  • 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.
  • Script bundle heavier than lightweight analytics — benchmark pending on AnalyticsVS.

Frequently asked questions

PostHog vs GA4 for a SaaS app?
PostHog is stronger for product funnels, flags, replay, and experiments with developer-first UX. GA4 is stronger for free scale and Google marketing integrations. Many teams run both during transition.
Is the free tier enough to start?
Often yes for early startups under event limits. Monitor usage as autocapture and replay can consume quota quickly.
Should I self-host PostHog?
Only if you have platform engineering capacity. Most startups should start on cloud and revisit self-hosting for compliance or cost at scale.
PostHog vs Hotjar?
Hotjar leads on heatmaps and qualitative UX for marketers. PostHog leads on product analytics, flags, and engineering-centric experimentation in one stack.

Sources & review status

Reviewed· Last reviewed September 1, 2026· How we review tools

Explore these tools

DataFast

Google Analytics 4

We may earn a commission. Details