Open-source alternatives to Google Analytics
The most popular self-hosted, open-source alternatives to Google Analytics (website analytics) are PostHog (40,337 GitHub stars), Umami (39,453 GitHub stars) and Plausible Analytics (29,545 GitHub stars). SelfHostHub lists 12 options below, taken from its Analytics category; 6 support Docker and all of them can run on your own server.
Comparison of self-hosted Google Analytics alternatives
| Project | GitHub stars | Licence | Language / platform | What it does |
|---|---|---|---|---|
| PostHog | 40,337 | MIT | Python | Product analytics, session recording, feature flagging and a/b testing that you can self-host (alternative to Mixpanel, Amplitude, Heap, HotJar, Optimizely). |
| Umami | 39,453 | MIT | Nodejs, Docker | Simple, fast, privacy-focused alternative to Google Analytics. |
| Plausible Analytics | 29,545 | AGPL-3.0 | Elixir | Simple, lightweight (< 1 KB) and privacy-friendly web analytics. |
| Matomo | 21,959 | GPL-3.0 | PHP | Web analytics that protects your data and your customers' privacy (alternative to Google Analytics). |
| GoAccess | 21,061 | GPL-2.0 | C | Real-time web log analyzer and interactive viewer that runs in a terminal. |
| Druid | 14,089 | Apache-2.0 | Java, Docker | Distributed, column-oriented, real-time analytics data store. |
| Rybbit | 13,134 | AGPL-3.0 | Docker | Web and products analytics that is easy to setup and more intuitive (alternative to Google Analytics). |
| GoatCounter | 6,073 | EUPL-1.2 | Go | Easy web statistics without tracking of personal data. |
| Countly Community Edition | 5,918 | AGPL-3.0 | Nodejs, Docker | Real time mobile and web analytics, crash reporting and push notifications platform. |
| Aptabase | 1,847 | AGPL-3.0 | Docker | Privacy first and simple analytics for mobile and desktop apps. |
| Litlyx | 1,744 | Apache-2.0 | Docker | All-in-one Analytics Solution. Setup in 30 seconds. Display all your data on an AI-powered dashboard. Fully self-hostable and GDPR compliant. |
| Socioboard | 1,518 | GPL-3.0 | Nodejs | Social media management, analytics, and reporting platform supporting nine social media networks out-of-the-box. |
Star counts and licences come from the awesome-selfhosted dataset and may lag GitHub slightly.
Browse the full categories
Frequently asked questions
What is the best open-source alternative to Google Analytics?
By GitHub stars, PostHog is the most popular self-hosted alternative to Google Analytics listed here, followed by Umami and Plausible Analytics. The best fit depends on the features and stack you need.
Is there a free self-hosted alternative to Google Analytics?
Yes. All 12 projects on this page are open source and can be self-hosted at no licence cost; you pay only for your own server.
Which licences do these Google Analytics alternatives use?
The most common licences among them are AGPL-3.0 (4), MIT (2) and GPL-3.0 (2).
Can I run a Google Analytics alternative with Docker?
6 of the 12 alternatives list Docker as a supported platform.