Best self-hosted analytics tools
7 self-hostable analytics tools that replace Google Analytics, Mixpanel and Hotjar. The most-starred is posthog (★ 40.6k, MIT (+ separate enterprise/EE license for some dirs)). Ranked by GitHub stars from our last data refresh.
All analytics alternatives, ranked
| Project | Replaces | Stars | License | Last push |
|---|---|---|---|---|
| posthog | Mixpanel, Hotjar | 40.6k | MIT (+ separate enterprise/EE license for some dirs) | 2026-11-02 |
| umami | Google Analytics | 39.9k | MIT | 2026-11-01 |
| analytics | Google Analytics | 29.7k | AGPL-3.0 | 2026-11-02 |
| matomo | Google Analytics | 22.0k | GPL-3.0 | 2026-11-02 |
| rybbit | Google Analytics | 13.2k | AGPL-3.0 | 2026-11-02 |
| openreplay | Hotjar | 13.1k | AGPL-3.0 (+ separate enterprise/EE license for some dirs) | 2026-11-02 |
| openpanel | Mixpanel | 7.2k | AGPL-3.0 | 2026-11-01 |
By paid tool
Google Analytics alternatives
Mixpanel alternatives
Hotjar alternatives
Head-to-head comparisons
FAQ
What is the most popular self-hosted analytics tool?
By GitHub stars, posthog (★ 40.6k, MIT (+ separate enterprise/EE license for some dirs)) is the most popular self-hostable option in this list. It replaces Mixpanel and Hotjar. Next are umami (★ 39.9k) and analytics (★ 29.7k).
Which paid tools can these self-hosted analytics tools replace?
This page covers open-source alternatives to Google Analytics, Mixpanel and Hotjar. Each has its own page with all alternatives and verified pricing where we have it.
Are all of these fully open source?
All listed projects publish their source on GitHub. Some are open-core (paid enterprise features in a separate license), so check the license column before you run one commercially.
More categories
Project management · AI · CRM · Helpdesk & customer support · Team chat & video · Monitoring · Workflow automation · Auth & passwords · Notes, wiki & docs · Marketing & newsletters · Developer tools & hosting · Design · Business & commerce · Files, photos & media · Office, PDF & remote desktop
Recommended hosting
Disclosure: some links are affiliate links. If you sign up through them we may earn a commission at no extra cost to you. It never affects which tools we list. Details
One self-hosted swap per week
A new SaaS teardown and its open-source replacement, every week. No spam.
We only use your email to send the SelfHostThis newsletter (stored with our email provider Resend, EU). Every email has a one-click unsubscribe link, and you can ask us to delete your data anytime. We use double opt-in. Datenschutz · Privacy policy