Open Source Alternatives to Google Analytics

Updated 5 December 2026 · 7 alternatives · Analytics & BI

Google Analytics is the most used web analytics tool. Several EU data protection authorities have questioned whether it complies with GDPR. Here are 7 open source alternatives, all of them self-hostable.
Top pickMatomoGPL-3.0 · ★ 22.1k
Best self-hostedMatomoGPL-3.0 · ★ 22.1k
Hosted optionMatomoGPL-3.0 · ★ 22.1k
Google Analytics is made byGoogle (Alphabet)Proprietary

Google Analytics alternatives compared

Project Licence Type Self-host Cloud option GitHub stars
Matomo GPL-3.0 Self-hosted ✓ Yes ✓ Yes ★ 22.1k
Plausible Analytics AGPL-3.0 Self-hosted ✓ Yes ✓ Yes ★ 30k
Umami MIT Self-hosted ✓ Yes ✓ Yes ★ 40.6k
Rybbit AGPL-3.0 Self-hosted ✓ Yes ✓ Yes ★ 13.4k
GoatCounter EUPL-1.2 Self-hosted ✓ Yes ✓ Yes ★ 6.2k
Swetrix AGPL-3.0 Self-hosted ✓ Yes ✓ Yes ★ 1.2k
OpenPanel AGPL-3.0 Self-hosted ✓ Yes ✓ Yes ★ 7.4k

The 7 open source alternatives to Google Analytics

1

Matomo

GPL-3.0 · Self-hosted · ★ 22.1k on GitHub · since 2007

Visit site ↗

Matomo (formerly Piwik) is a full-featured web analytics platform with 100% data ownership, used by more than a million websites. It offers goals, funnels, e-commerce tracking, heatmaps and Google Analytics import.

  • Full Google Analytics feature set
  • Google Analytics data import
  • Cookieless mode for GDPR
  • Self-host or Matomo Cloud
Self-hosted Cloud option Source code ↗
2

Plausible Analytics

AGPL-3.0 · Self-hosted · ★ 30k on GitHub · since 2019

Visit site ↗

Plausible is a lightweight analytics tool from Estonia that doesn't use cookies, so no consent banner is needed in most cases. Its script is under 1 KB, and the dashboard fits on one page.

  • No cookies, GDPR-friendly
  • Script under 1 KB
  • One-page dashboard
  • Self-hosted Community Edition
Self-hosted Cloud option Source code ↗
3

Umami

MIT · Self-hosted · ★ 40.6k on GitHub · since 2020

Visit site ↗

Umami is a lightweight, cookieless web analytics tool with a clean dashboard, custom events, funnels and team sharing. It runs on PostgreSQL and is easy to self-host or use as Umami Cloud.

  • Cookieless tracking
  • Events, funnels and retention
  • Unlimited websites
  • Self-host or cloud
Self-hosted Cloud option Source code ↗ Also replaces Mixpanel
4

Rybbit

AGPL-3.0 · Self-hosted · ★ 13.4k on GitHub · since 2025

Visit site ↗

Rybbit is a cookieless analytics tool with web stats, funnels, user journeys, session replay and error tracking, built on ClickHouse.

  • Cookieless tracking
  • Funnels and journeys
  • Session replay
  • Hosted or self-hosted
Self-hosted Cloud option Source code ↗ Also replaces Mixpanel
5

GoatCounter

EUPL-1.2 · Self-hosted · ★ 6.2k on GitHub · since 2019

Visit site ↗

GoatCounter is a simple web analytics service that is free for non-commercial use on its hosted version. It doesn't track personal data and can even work without JavaScript.

  • No personal data tracking
  • Works without JavaScript
  • Free hosted plan for non-commercial use
  • Single binary
Self-hosted Cloud option Source code ↗
6

Swetrix

AGPL-3.0 · Self-hosted · ★ 1.2k on GitHub · since 2021

Visit site ↗

Swetrix is privacy-first web analytics from Europe, with traffic stats, custom events, page speed monitoring and error tracking in one dashboard.

  • No cookies
  • Performance monitoring
  • Error tracking
  • Hosted in the EU or self-hosted
Self-hosted Cloud option Source code ↗
7

OpenPanel

AGPL-3.0 · Self-hosted · ★ 7.4k on GitHub · since 2024

Visit site ↗

OpenPanel combines Mixpanel-style product analytics with Plausible-style web stats: events, funnels, retention and user profiles, with a privacy-friendly setup.

  • Events and funnels
  • Retention and cohorts
  • Web analytics dashboard
  • Hosted or self-hosted
Self-hosted Cloud option Source code ↗ Also replaces Mixpanel, Amplitude

How to choose an open source alternative to Google Analytics

Check cookieless tracking, the size of the tracking script, Google Analytics import, goals and funnels, and whether you self-host or use the hosted version.

If you want your data on your own server, look at Matomo, Plausible Analytics and Umami. Don't want to run a server? Matomo, Plausible Analytics and Umamioffer an official hosted version.

Not sure where to start? Browse all analytics & bi projects, or see our google alternatives list.

Google Analytics alternatives: FAQ

What is the best open source alternative to Google Analytics?

Matomo is the most complete open source alternative to Google Analytics on our list, followed by Plausible Analytics and Umami. The best choice depends on what you need: Check cookieless tracking, the size of the tracking script, Google Analytics import, goals and funnels, and whether you self-host or use the hosted version.

Is there a free alternative to Google Analytics?

Yes. Every alternative listed here is open source, so the software itself is free to use. Some, such as Matomo, Plausible Analytics and Umami, also sell an optional hosted version if you don't want to run it yourself.

Can I self-host an alternative to Google Analytics?

Yes: Matomo, Plausible Analytics, Umami, Rybbit and GoatCounter can all be installed on your own server, so your data stays on infrastructure you control.

Why switch from Google Analytics to open source software?

Google Analytics is proprietary software owned by Google (Alphabet): you can't see the code, and pricing, features and terms can change at any time. Open source alternatives publish their code under licences such as GPL-3.0, AGPL-3.0 and MIT, can be audited by anyone, and can't lock you in, because the software can always be forked or self-hosted.

Other popular alternatives

Browse 350+ open source alternativesSearch by product, category or licence