PostHog
PostHog is an open-source, developer-first analytics and product intelligence platform founded in 2020 and headquartered in San Francisco.
Publisher review
PostHog is an open-source, developer-first analytics and product intelligence platform founded in 2020 and headquartered in San Francisco. It consolidates product analytics, web analytics, session replay, feature flags, A/B testing, surveys, error tracking, data warehouse, and AI-assisted product operations into a single platform. Unlike specialized point solutions, PostHog targets engineering-led teams willing to trade UI simplicity for comprehensive in-house data control and integrated experimentation workflows.
The platform's core appeal is self-hosted deployment (MIT-licensed), generous free tier (1M events monthly), and SQL-first design via HogQL for custom queries. By 2026, PostHog serves over 190,000 teams and reports 65% adoption across Y Combinator batches—far exceeding typical SaaS penetration. The major trade-off is steep learning curve: non-technical users find the interface dense, dashboards complex, and HogQL requirement a barrier.
Teams typically invest 20–60 engineering hours in initial setup. Session replay quality trails enterprise-grade competitors, and data warehouse syncs can accumulate hidden costs. Best suited for product engineering teams at SaaS companies where SQL literacy is assumed and control over data residency matters; wrong choice for marketing-led organizations or teams needing rapid, no-code dashboarding.
How it works
-
Product Analytics
Behavioral tracking via custom events, funnels, cohorts, user paths, retention curves, and stickiness metrics with HogQL for SQL-based custom queries.
-
Session Replay
Records user browser sessions with DOM snapshots, tied to event streams and heatmaps; $0.005/replay after free tier, volume discounts to $0.0015.
-
Feature Flags & A/B Testing
Continuous deployment flags and multivariate experiments with directional statistics, cohort targeting, and flag-to-analytics linking.
-
Built-in Data Warehouse
Raw event storage queryable via HogQL with 120+ integrations for syncing external data sources and destinations; $0.000015/row after free tier.
-
PostHog AI
Natural-language assistant for automating query generation, experiment setup, flag creation, and anomaly detection; $20/month value in free credits.
-
Error Tracking & Logs
Ingests exceptions and structured logs, linking errors to user sessions and funnel steps for debugging product issues.
-
Surveys & Feedback
In-app survey distribution and response collection tied to user cohorts; $0.10/response baseline, discounts to $0.01 at scale.
Strengths and trade-offs
Strengths
- Open-source codebase (MIT license) with full self-host option and data residency control via private cloud or on-premise deployment
- All-in-one consolidation: replaces 3–5 specialized tools (analytics + replay + flags + experiments), reducing vendor sprawl and API fragmentation
- Integrated experimentation: feature flags, A/B tests, and session replay connected to the same event stream, shortening feedback loops
Trade-offs
- Steep learning curve and dense UI deter non-technical users; HogQL SQL requirement excludes product marketers and non-engineers from self-service analysis
- High implementation cost: typical setup requires 20–60 engineering hours; what you save in licensing, you invest in setup and ongoing maintenance
- Session replay quality trails enterprise tools; mobile replay pricing doubles web costs, and data warehouse syncs add unpredictable expenses at scale
Pricing context
PostHog uses a transparent, volume-based usage model with no per-seat licensing and no credit card required for the free tier. Free tier includes 1M product analytics events, 5K session replays, 1M feature flag requests, 1,500 survey responses, 100K error logs, and 50 GB of logs per month, plus 2,000 PostHog AI credits ($20 value). Pay-as-you-go pricing: product analytics $0.00005/event (declining to $0.000009 at 250M+ events); session replay $0.005/recording (declining to $0.0015 at 500K+); feature flags $0.0001/request (declining to $0.00001 at 50M+); surveys $0.10/response (declining to $0.01 at 20K+); data warehouse $0.000015/row (declining to $0.000001 at 1B+ rows).
At typical scale (5M analytics events/month), costs range $300–500/month; mid-market (50M events) typically runs $2,500–5,000/month. Paid tier unlocks 7-year retention, 6 projects, and email support; free tier capped at 1-year retention and 1 project.
Getting started with PostHog
-
Sign up for PostHog
Go to posthog.com and click Get Started. Choose the cloud-hosted option or self-hosted deployment. For cloud, create an account with your email and verify it. No credit card is required for the free tier.
-
Install the tracking snippet
Copy the JavaScript snippet from the Setup page and paste it into the <head> of your website or app. For mobile apps, install the PostHog SDK via npm, pip, or your platform's package manager and initialize it with your project API key.
-
Define custom events and properties
Use PostHog's capture API to send custom events like 'signup_completed' or 'purchase_made'. Add properties such as user_id, plan_type, or revenue. For automatic tracking, enable autocapture in the snippet to collect page views and clicks.
-
Create your first insight
Navigate to the Insights tab and click New Insight. Select a trend or funnel chart. Choose an event (e.g., 'pageview') and set a date range. Optionally, use HogQL to write a SQL query for custom aggregations. Save the insight to a dashboard.
-
Set up a feature flag
Go to Feature Flags and click New Flag. Enter a key like 'new-checkout-flow' and define rollout conditions (e.g., 50% of users). In your app code, call posthog.isFeatureEnabled('new-checkout-flow') to conditionally show the new feature.
Frequently Asked Questions
What is PostHog and who is it for?
PostHog is an open-source, developer-first analytics platform founded in 2020. It combines product analytics, session replay, feature flags, A/B testing, and more. It's best for engineering-led teams at SaaS companies who need data control and are comfortable with SQL.
How much does PostHog cost and is there a free tier?
PostHog offers a generous free tier with 1 million events monthly, plus free session replays, feature flags, and surveys. No credit card is required. Paid usage is volume-based with no per-seat fees. At 5 million events, costs typically range from $300 to $500 per month.
Can I self-host PostHog on my own servers?
Yes, PostHog is open-source under an MIT license and supports full self-hosted deployment on private cloud or on-premise. This gives you complete control over data residency and security, which is a key advantage for teams with strict compliance requirements.
What features does PostHog include in one platform?
PostHog consolidates product analytics, session replay, feature flags, A/B testing, surveys, error tracking, a data warehouse, and AI-assisted operations. This replaces multiple specialized tools, reducing vendor sprawl and keeping all product data in one place.
Is PostHog difficult to set up and use?
PostHog has a steep learning curve, especially for non-technical users. The interface is dense and requires SQL knowledge through HogQL for custom queries. Typical setup takes 20 to 60 engineering hours, making it best suited for teams with technical expertise.
How does PostHog compare to alternatives like Mixpanel or Amplitude?
PostHog differentiates with open-source self-hosting, integrated experimentation, and transparent usage-based pricing. However, it has a steeper learning curve and session replay quality that trails enterprise tools. It's ideal for engineering-led teams, while Mixpanel and Amplitude may suit marketing-focused organizations better.
Alternatives
How PostHog compares
Direct head-to-head against 2 competitors. Picked by 7wData.
PostHog
- Pricing
- PostHog uses a transparent, volume-based usage model with no per-seat licensing and no credit card required for the free tier. Free tier includes 1M product analytics events, 5K session replays, 1M feature flag requests, 1,500 survey responses, 100K error logs, and 50 GB of logs per month, plus 2,000 PostHog AI credits ($20 value). Pay-as-you-go pricing: product analytics $0.00005/event (declining to $0.000009 at 250M+ events); session replay $0.005/recording (declining to $0.0015 at 500K+); feature flags $0.0001/request (declining to $0.00001 at 50M+); surveys $0.10/response (declining to $0.01 at 20K+); data warehouse $0.000015/row (declining to $0.000001 at 1B+ rows). At typical scale (5M analytics events/month), costs range $300–500/month; mid-market (50M events) typically runs $2,500–5,000/month. Paid tier unlocks 7-year retention, 6 projects, and email support; free tier capped at 1-year retention and 1 project.
- Target
- PostHog is an open-source, developer-first analytics and product intelligence platform founded in 2020 and headquartered in San Francisco.
- Strength
- Open-source codebase (MIT license) with full self-host option and data residency control via private cloud or on-premise deployment
- Watch for
- Steep learning curve and dense UI deter non-technical users; HogQL SQL requirement excludes product marketers and non-engineers from self-service analysis
Mixpanel
- Pricing
- Free up to 20M events; Growth $28/mo; Enterprise custom
- Target
- Product managers needing fast behavioral analytics
- Deployment
- Cloud only
- Strength
- Polished funnel and retention analysis for non-technical teams
- Watch for
- Usage-based pricing can escalate with high event volumes
Amplitude
- Pricing
- Free starter; Plus $49/mo; Growth custom; Enterprise custom
- Target
- Large product teams focused on predictive analytics
- Deployment
- Cloud only
- Strength
- Advanced retention analysis and predictive cohorts
- Watch for
- Complex setup and higher cost at scale for full feature set
User reviews
No user reviews yet. Be the first to write one.
Sources
Reporting on this tool draws on these publicly available sources.
- posthog.com — Founding (Y Combinator Winter 2020), co-founders (James Hawkins, Tim Glaser), company mission and philosophy, adoption stats (190K+ teams, 65% of YC batches)
- posthog.com — Complete free and paid pricing structure, volume discounts, all product tiers (analytics, replay, flags, surveys, data warehouse, error tracking, logs)
- prettyinsights.com — Strengths and weaknesses, learning curve assessment, pricing reality at different scales, implementation complexity, target audience fit analysis
- userpilot.com — Core analytics capabilities (funnels, trends, cohorts), technical requirements, pricing complexity, feature gaps (session replay quality, survey limitations)
- github.com — Open-source verification (MIT expat license), codebase auditability, platform consolidation scope (9+ products)
- posthog.com — Deployment options (cloud US/EU regions, self-hosted), target audience (product engineers, data teams), AI assistant integration