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
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 Matomo and Plausible.
- Is PostHog actively maintained?
- Yes. The most recent commit to PostHog was on 12 November 2026. The project has 41k stars on GitHub, with 516 added in the last 30 days.
Open-source alternatives to PostHog
See all
Matomo
Analytics
Popular analytics tools can miss up to 40% of traffic. Matomo delivers accurate, GDPR-comp
GPL-3.0vs Google Analytics★ 22k
Plausible
Analytics
Plausible is a lightweight and open-source Google Analytics alternative. Your website data
AGPL-3.0vs Google Analytics★ 30k
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.6k
Microsoft Clarity
Session Replay
A behavioral analytics library that uses dom mutations and user interactions to generate a
MITvs Hotjar★ 2.8k
Flagsmith
Feature Flags
Flagsmith makes it easy to create and manage feature flags. Roll out, segment, and optimis
BSD-3-Clausevs Split★ 7.2k
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

Adobe Target
FullStory
Kissmetrics
Woopra
Contentsquare
Quantum Metric
Userpilot
Optimizely Feature Experimentation
Kameleoon
Amplitude Experiment
Optimizely Web Experimentation
AB Tasty
VWO
Convert Experiences
SiteSpect
Zoho PageSense
Dynamic Yield
LogRocket
Mouseflow
Lucky Orange
Crazy Egg
Inspectlet
UXCam
Glassbox
Zipy
FullSession
Plerdy
Noibu
Ptengine
LiveSession
Usermaven
Yandex Metrica
GoSquared
HockeyStack
CloudBees Feature Management
Reflag
Confidence
Conductrics
Heatmap.com
Capturly
Simple Analytics
DataFast
Clicky
Tealium
Insider One
Chartbeat
Tggl