Product analytics, session replay, feature flags, experiments and more in one platform
open coreMITself-hostablefreeMCP
PostHog is a product analytics suite: event analytics, session replay, feature flags and A/B experiments, surveys, error tracking, logs, a data warehouse and LLM observability, all sharing one event pipeline. Each product has a free monthly allowance and usage-based pricing above it. The core is MIT (outside ee/); a hobby self-hosted deploy exists, but PostHog Cloud (US or EU) is the main offering.
Problems it solves
- which features do people actually use after they sign up
- watch a recording of what the user did before they rage-quit
- where do users drop off between signup and first purchase
- turn a new feature on for 10% of users and compare conversion
- Mixpanel, Hotjar, LaunchDarkly and a survey tool add up to four invoices
- ask users a quick in-app question after they finish onboarding
- send product events to our warehouse without building a pipeline
- analytics that can be hosted in the EU for GDPR
- track which customers' accounts are getting less active
- see LLM calls, costs and latency next to product usage
- see where visitors click and how far down the page they actually scroll
- find the spots where users rage-click on things that aren't clickable
- a simpler Google Analytics replacement showing visitors, top pages, sources and bounce rate
- count website visitors without showing a cookie consent banner
- track Core Web Vitals like LCP, INP and CLS for each page of my site
- which ad campaigns on Google, Meta or LinkedIn actually led to signups, and what each one cost
- my traffic numbers are inflated by crawlers and AI bots
- see console errors and network requests from the exact moment a user hit a bug
- record user sessions in my iOS, Android, React Native or Flutter app
- mask passwords and personal data in session recordings before they leave the browser
- only record sessions on certain URLs or for users behind a feature flag
- too many recordings to watch; have AI scan them and flag where users get stuck
- group frontend and backend exceptions into issues and assign them to someone
- minified JavaScript stack traces are useless, map them back to the original source
- find out which release or commit introduced a new error
- search backend logs next to the session replay of the user they belong to
- somewhere to send OpenTelemetry logs from all my services and search them by severity
- group thousands of noisy log lines into patterns and see which ones are new
- join Stripe, HubSpot or Postgres data with product usage in one SQL query
- query CSV or Parquet files from S3 alongside my analytics events
- send product events to HubSpot, Intercom or Slack the moment they happen
- send conversion events from my server to Meta, Google and TikTok Ads
- score my chatbot's answers for hallucinations automatically with an LLM judge
- detect prompt injection attempts in production LLM traffic
- collect thumbs up or down on AI responses and tie each rating to the trace
- A/B test two versions of an LLM prompt against real user outcomes
- A/B test a homepage headline without writing any code
- use revenue or subscription data from our warehouse as an A/B test metric
- turn off a broken feature instantly without a redeploy or hotfix
- change app behaviour remotely by attaching JSON config to a flag
- run a beta program where users opt themselves in to upcoming features
- make sure everyone at the same customer company sees the same feature variant
- run an NPS or product-market fit survey inside my product
- ask users who cancel why they're leaving
- track MRR, churn, ARPU and LTV from Stripe next to product usage
- see which customers bring in the most revenue and how they use the product
- send onboarding drip emails triggered by what users do in the app
- send a one-off or scheduled announcement email to a segment of users
- send push notifications or SMS when a user does something in the product
- measure activation, churn and feature adoption per company for a B2B product
- turn a saved SQL query into an API endpoint my app can call
- ask questions about my product data in plain English and get charts back
- let my coding agent query analytics and create feature flags from Claude Code or Cursor
- a support inbox where each ticket shows the customer's session replay and errors
- ad blockers are stopping a chunk of my analytics events from arriving
- move our historical event data off Mixpanel or Amplitude
- we need a signed BAA before tracking analytics in our healthcare app
- capture clicks, pageviews and form submissions without adding tracking calls everywhere
- game analytics for Unity, Godot or Roblox
Features
- product analytics
- web analytics
- session replay
- feature flags
- experiments
- surveys
- error tracking
- logs
- data warehouse
- AI observability
View 30 more
- MCP server
- heatmaps and scrollmaps
- autocapture
- web vitals
- cookieless tracking
- marketing analytics for ad spend
- mobile session replay
- Replay Vision AI recording scanners
- source maps and release tracking
- realtime CDP destinations
- batch exports
- realtime transformations
- data warehouse source syncs
- SQL editor and materialized views
- AI evaluations
- revenue analytics
- workflows for email, push and SMS
- email broadcasts
- early access feature management
- remote config
- no-code web experiments
- group analytics
- cohorts
- Endpoints
- PostHog AI
- support inbox and widget
- managed reverse proxy
- HIPAA BAA
- OpenTelemetry log ingestion
- official OpenFeature providers for Python, Java and JavaScript (Node.js and web) for its feature flags
Ways to run it
PostHog Cloud
free every month: 1M events, 5K recordings, 1M flag requests, 100K exceptions, 1,500 survey responses; pay as you go above that with no minimum; platform packages Boost $250/month, Scale $750/month, Enterprise $2,000/month1
Only in this edition
- every paid feature (paid features are Cloud only)
- US or EU (Frankfurt) hosting
- SSO enforcement, white labeling and a HIPAA BAA on Boost
- SAML SSO and priority support on Scale
- RBAC, dedicated support and training on Enterprise
- email support on pay as you go
PostHog self-hosted (hobby)
free2
Not included
- all paid-plan features: it is limited to the free plan's features2
- any support: self-hosting is officially unsupported2
- Kubernetes deployments (no longer supported)2
- the ee/ directory, which is under PostHog's enterprise licence34
You arrange
- an Ubuntu VM with about 4 vCPU, 16 GB RAM and 30 GB+ disk
- a domain with an A record (TLS comes from Let's Encrypt)
- the Docker Compose stack: ClickHouse, Kafka, ZooKeeper, Redis, PostgreSQL and MinIO
- backups before each upgrade, and running the upgrade script
Capabilities
| Agents can report problems | plan not known |
|---|---|
| Has an API | plan not known |
| Has an MCP server | plan not known |
| Takes plugins | plan not known |
| Has official SDKs | plan not known |
| Has single sign-on | plan not known |
| Sends webhooks | plan not known |
Alternatives
The same job
These do what PostHog does.
- LogRocket AI session replay that catches issues before your users do
- Mixpanel Product intelligence platform for the AI era
- Heap Better insights. Faster.
- Plausible Analytics Open source, privacy-first web analytics; a lightweight, cookie-free Google Analytics alternative
- Umami Privacy-first web and product analytics; no cookies, self-hosted or in the cloud
- Matomo Open-source alternative to Google Analytics with full data ownership
