P
License:MIT (core)
Open source Self-hostable API available Sign-up required PostHog
About
Open-source product analytics with event tracking, session replay, feature flags, experiments and a data warehouse. Privacy-friendly alternative to Google Analytics and Amplitude.
Pricing
Free / monthly
PostHog is an all-in-one product analytics platform — event tracking, session replay, feature flags, A/B testing and SQL queries over your data. It is open source and can be self-hosted.
Key Features
- Product analytics with funnels, trends and retention.
- Session replay to see what users actually do.
- Feature flags for gradual rollouts.
- Experiments / A/B testing built in.
- Data warehouse with SQL insights.
- Privacy-friendly: cookieless tracking, GDPR-ready.
Pricing
- Free tier: 1 million events/month, unlimited seats.
- Paid: from ~$0.00002/event with volume discounts.
- Self-hosted: free, MIT-licensed core (some features under other licenses).
Getting Started
npm install posthog-js
posthog.init('<your-api-key>', { api_host: 'https://us.i.posthog.com' });
posthog.capture('event_name', { property: 'value' });
Create a project at posthog.com and events flow into your dashboard immediately.