PostHog
Open-source product analytics suite with events, funnels, session replay, feature flags, and A/B tests.
Last commit 2026-06-01
PostHog began as a self-hostable Mixpanel alternative and has since grown into a unified product intelligence platform covering event analytics, session recording, heatmaps, feature flags, and multi-variant A/B testing — all sharing the same underlying event model and user identity graph. The cloud version grants one million events per month free before usage-based charges begin, and the self-hosted path via Docker Compose or Kubernetes carries no event limits or feature paywalls. SDKs exist for web, iOS, Android, React Native, and a range of server-side languages.
For product and engineering teams, the main argument for PostHog is consolidation. A single deployment can replace the separate subscriptions you might otherwise hold with Google Analytics, Hotjar, LaunchDarkly, and portions of Segment. HogQL, PostHog's SQL interface, lets analysts query raw event tables directly without exporting to a data warehouse first. Native data warehouse connectors to BigQuery and Snowflake cover teams that want to join PostHog events against external business data.
The flip side is operational weight. Running PostHog at scale requires ClickHouse, Kafka, and Redis alongside the application containers — a materially heavier stack than Plausible or Umami. Cloud pricing also climbs faster than simpler tools for high-volume products once the free tier is exhausted. Teams that only need traffic counts and referrer data will find PostHog overbuilt; teams instrumenting a real product with feature experiments and session-level debugging will find it one of the most capable open-source options available.
Key features of PostHog
- Event-based product analytics with custom dashboards, funnels, and retention charts
- Session recording and heatmaps for qualitative behavioral analysis
- Feature flags and multi-variate A/B testing built into the same data model
- HogQL for direct SQL querying against your event tables
- Self-hosting via Docker Compose or Kubernetes with no event-volume limits
Pros
- Single platform replaces GA, Hotjar, LaunchDarkly, and parts of Segment
- Generous free cloud tier — 1 million events per month at no cost
- Full self-host option with no event-volume or feature restrictions
Cons
- Self-hosting at scale requires Kafka, ClickHouse, and Redis — significant ops burden
- Cloud pricing grows quickly for high-volume products beyond the free tier
- Overkill for teams that only need basic traffic and referrer reporting
PostHog pricing
Free / self-host · open-core · MIT
Product and engineering teams that want unified analytics, session replay, and experimentation in a single self-hostable platform.
PostHog is an alternative to
Head-to-head comparisons
Frequently asked questions
Is PostHog open source?
Yes. PostHog is open source (MIT), so you can read the code, self-host it, and avoid vendor lock-in.
How much does PostHog cost?
PostHog starts at Free / self-host on a open-core model. Self-hosting can reduce that to infrastructure cost only.
Can I self-host PostHog?
Yes — PostHog supports self-hosting, giving you full data ownership.