Open source product analytics with replays and flagsAlternative toOpen source alternatives to Mixpanel
2 open source tools do the job of Mixpanel. The most starred is PostHog, with 40.7k stars. Verified on GitHub. About Mixpanel

MixpanelFree
PostHog40.7k stars · MITGitHubAll 2 alternatives
Questions about alternatives to Mixpanel
What is the best open source alternative to Mixpanel?
By GitHub stars it is PostHog, with 40,775 stars and a commit on 14 Nov. Choose PostHog when engineers want analytics, replays, flags and error tracking in one open source product with billing limits per product; its free plan also covers 1M events a month. Next come OpenPanel (7,296 stars).
Is there a free alternative to Mixpanel?
Yes. The code of all 2 is public under MIT or AGPL 3.0, so you can use them with no licence fee. Running one yourself costs the server and your time to look after it, and some makers also sell a hosted plan.
How do I choose between them?
Start from the job you use Mixpanel for. Choose OpenPanel when you want Mixpanel-style funnels and retention that you can self-host for free, or a cloud plan that stops at its cap instead of billing overage; 250,000 events cost $30 a month.
Which Mixpanel alternatives can I host on my own server?
All 2: PostHog and OpenPanel. Each tool's page says what it needs to run.
Which ones are still being worked on?
All 2 we track had a commit in the last 30 days, among them PostHog and OpenPanel. A recent commit shows the project is kept up, not that it will stay that way.
What licences do they use?
MIT (1), AGPL 3.0 (1). MIT, BSD and Apache let you change and reuse the code freely. GPL and AGPL ask you to share your changes under the same licence when you give the software to others, and AGPL also counts letting people use it over a network.
What do I lose by leaving Mixpanel?
The hosting. Mixpanel's maker runs the servers for you; with an open source tool the updates, backups, security fixes and support are yours, unless you take the maker's hosted plan. Features differ too, so check what each one imports and exports before you move your data.
