SelfHostHub

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

ProjectGitHub starsLicenceLanguage / platformWhat it does
PostHog40,337MITPythonProduct analytics, session recording, feature flagging and a/b testing that you can self-host (alternative to Mixpanel, Amplitude, Heap, HotJar, Optimizely).
Umami39,453MITNodejs, DockerSimple, fast, privacy-focused alternative to Google Analytics.
Plausible Analytics29,545AGPL-3.0ElixirSimple, lightweight (< 1 KB) and privacy-friendly web analytics.
Matomo21,959GPL-3.0PHPWeb analytics that protects your data and your customers' privacy (alternative to Google Analytics).
GoAccess21,061GPL-2.0CReal-time web log analyzer and interactive viewer that runs in a terminal.
Druid14,089Apache-2.0Java, DockerDistributed, column-oriented, real-time analytics data store.
Rybbit13,134AGPL-3.0DockerWeb and products analytics that is easy to setup and more intuitive (alternative to Google Analytics).
GoatCounter6,073EUPL-1.2GoEasy web statistics without tracking of personal data.
Countly Community Edition5,918AGPL-3.0Nodejs, DockerReal time mobile and web analytics, crash reporting and push notifications platform.
Aptabase1,847AGPL-3.0DockerPrivacy first and simple analytics for mobile and desktop apps.
Litlyx1,744Apache-2.0DockerAll-in-one Analytics Solution. Setup in 30 seconds. Display all your data on an AI-powered dashboard. Fully self-hostable and GDPR compliant.
Socioboard1,518GPL-3.0NodejsSocial 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

All self-hosted Analytics

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.