Categories
Developer Tools AI Analytics Feature Flags A/B Testing Product Analytics Session Replay Data WarehouseStars
Forks
Watchers
Developer links
PostHog
With over 37,000 GitHub stars and used by teams at Y Combinator, Airbus, and Phantom, PostHog replaces an entire stack of paid analytics tools — Mixpanel, Amplitude, Heap, LaunchDarkly, Hotjar, and Google Analytics — with a single open-source platform where every tool shares a common event layer and user context. Product analytics captures events automatically or via manual instrumentation with HogQL (SQL) access for custom queries, while web analytics provides GA-like dashboards for traffic, conversions, and Core Web Vitals. Session replay records user interactions with DOM snapshots and network waterfall analysis, linking directly to errors and feature flag exposures. Feature flags safely roll out changes to specific cohorts with multivariate support and instant rollback, while experiments run A/B tests with automatic Bayesian significance calculations and revenue attribution. Error tracking captures stack traces linked to session replays and user properties for immediate reproduction context. AI observability monitors LLM generations, traces, token usage, latency, and costs across model versions. The managed data warehouse syncs 120+ external sources including Stripe, Postgres, Salesforce, and HubSpot alongside product events, queryable through a unified SQL editor. An MCP server enables AI agents in Cursor, Claude Code, or VS Code to query analytics and execute SQL directly. Running on a dedicated VPS on RepoCloud with guaranteed CPU, RAM, and SSD, full root SSH access, and a browser serial console. MIT licensed.
Benefits
- One Platform Replaces Eight Tools
- Product analytics, web analytics, session replay, feature flags, experiments, error tracking, surveys, and AI observability share one event layer — eliminating data silos and tool-switching overhead.
- Self-Hosted Full Data Ownership
- Deploy on your infrastructure via Docker or Kubernetes with ClickHouse for analytics storage, keeping all customer behavioral data, recordings, and experiments under your complete control.
- Developer-First SQL Access
- HogQL provides full SQL access to all product data, enabling custom queries across events, persons, sessions, and warehouse sources without vendor-locked dashboards or export limitations.
- AI-Native Product Intelligence
- Built-in AI observability monitors LLM generations with costs and latency, while the MCP server lets AI agents query analytics and execute SQL from Cursor, Claude Code, or VS Code.
Features
- Session Replay
- DOM-snapshot recordings with network waterfall, console logs, and privacy controls linked directly to errors, feature flags, and user cohorts for immediate reproduction context.
- Feature Flags and Experiments
- Multivariate flags with percentage rollouts, cohort targeting, and instant rollback paired with A/B tests using Bayesian significance calculations and revenue metric attribution.
- Managed Data Warehouse
- Sync 120+ external sources including Stripe, Salesforce, Postgres, and HubSpot alongside product events with materialized views, health monitoring, and unified SQL querying.
- Autocapture and Heatmaps
- Automatically capture clicks, pageviews, and form interactions without manual instrumentation, visualized as clickmaps and scrollmaps via the PostHog Toolbar.
- Error Tracking
- Stack trace capture linked to session replays, user properties, and feature flag exposures providing full reproduction context without switching to external error monitoring tools.
- AI Observability
- Monitor LLM generations, traces, spans, token usage, latency, and calculated costs across model versions with correlation to user retention and outcome metrics.