PostHog
Open-source product analytics with session recording, feature flags, and A/B testing — self-hostable. Replaces Google Analytics, Mixpanel, and Amplitude.
PostHog is an all-in-one, open-source product analytics platform that combines event tracking, session replay, feature flags, and A/B testing into a single product. It is designed to replace the typical stack of multiple SaaS tools — web analytics, session recording, feature flag services, and experimentation platforms — with one self-hostable system. PostHog can be deployed via Docker or used as a managed cloud offering, and supports event capture from web, mobile, and server-side sources.
Key features include autocapture, custom event tracking, funnels, user paths, heatmaps, feature flags with targeting rules, and experimentation tools. The platform integrates with developer workflows through API access, webhooks, and SDKs for JavaScript, Python, Go, and most major languages.
PostHog is built for product teams that want full ownership of their usage data without stitching together five separate tools. With 37k+ stars on GitHub and an active contributor community, it is one of the most mature open-source alternatives to Google Analytics, Mixpanel, and Amplitude.