About PostHog
PostHog is an open-source platform that bundles the tools product teams use to understand and improve what they ship. It captures event data, user sessions and errors in one place, and its newer self-driving mode aims to turn signals such as errors, rage clicks and failed queries into researched reports and pull requests that engineers review and merge.
The product suite includes product analytics with autocapture or manual instrumentation and SQL analysis, web analytics with a dashboard resembling Google Analytics, session replays for web and mobile, feature flags, experiments with statistical measurement, surveys, error tracking, logs, a data warehouse and a customer data platform. The back end is Python and the front end is React and TypeScript.
PostHog's repository license is listed as 'Other' on GitHub, so check which parts are open source and which are enterprise-only. It can be self-hosted, and the company also runs a managed cloud service. It suits product and engineering teams that prefer a single tool over separate analytics, flagging and replay vendors.
Key features
- Product analytics with autocapture and SQL
- Web analytics dashboard
- Session replay for web and mobile
- Feature flags and experiments
- Surveys and error tracking
- Data warehouse and customer data platform
- AI-assisted detection of product issues
Good fit for
- →Understanding user behavior in a product
- →Rolling out features safely with flags
- →Replacing several analytics vendors with one
- Tags
- product-analytics
- session-replay
- feature-flags
- ab-testing
- analytics
- surveys
- error-tracking
- self-hosted
- data-warehouse
PostHog: questions and answers
- What is PostHog used for?
- PostHog is an open-source product platform combining analytics, session replay, feature flags, experiments, surveys and error tracking, with AI that turns signals into reports. It is a good fit for understanding user behavior in a product, rolling out features safely with flags and replacing several analytics vendors with one.
- Is PostHog open source?
- Yes. PostHog is open source under a custom licence. Its source code is on GitHub at PostHog/posthog and is written mainly in Python.
- Is PostHog free?
- Yes. PostHog is open source, so the software itself is free to use under the terms of its own licence. A managed cloud version is also available.
- Can I self-host PostHog?
- Yes. PostHog can be self-hosted on your own server or infrastructure.
- What is PostHog an alternative to?
- PostHog is an open-source alternative to Mixpanel, Amplitude, Heap and Hotjar. Other open-source alternatives to Mixpanel include Talivia and OpenPanel.
- Is PostHog actively maintained?
- Yes. The most recent commit to PostHog was on 2 October 2026. The project has 40k stars on GitHub.
Open-source alternatives to PostHog
See all
OpenReplay
Session Replay
Session replay, cobrowsing and product analytics you can self-host. Best for reproducing i
OSSvs Hotjar★ 13k
GrowthBook
Feature Flags
Open Source Feature Flags, Experimentation, and Product Analytics
OSSvs Statsig★ 8.5k
Talivia
Analytics
Open-source, self-hosted revenue-first analytics for founders: web analytics, Session Repl
MITvs Google Analytics★ 2.4k
Microsoft Clarity
Session Replay
A behavioral analytics library that uses dom mutations and user interactions to generate a
MITvs Hotjar★ 2.7k
OpenPanel
Analytics
OpenPanel is an open-source web and product analytics platform, an open-source alternative
AGPL-3.0vs Mixpanel★ 7.1k
Flagsmith
Feature Flags
Flagsmith is an open-source feature flag platform with remote config, experimentation, and
BSD-3-Clausevs Split★ 6.6k
SaaS alternatives to PostHog
See all
Mixpanel
Analytics
Mixpanel is a product analytics platform that tracks user events and adds session replay, experiments, feature flags and AI-generated insights.
SaaS
Amplitude
Analytics
Amplitude is a product analytics platform with session replay, experimentation, feature management and AI tools for understanding and improving digital products.
SaaS
Heap
Analytics
Product analytics that auto-captures user events across web and mobile apps
SaaS
Hotjar
Session Replay
Hotjar is a website experience analytics tool with heatmaps, session recordings and feedback surveys, now part of Contentsquare.
SaaS
Pendo
Analytics
Pendo is a product analytics and in-app guidance platform that shows where users and AI agents struggle and helps teams act to improve adoption.
SaaS
LaunchDarkly
Feature Flags
Feature flag and release management platform with targeting and experimentation
SaaS

