Free, open-source alternatives to Google Analytics

Website analytics from Google. 8 apps you can run yourself instead of Google Analytics, sorted by how well they replace it. Each one is open source, so your data stays with you.

  1. MatomoBest match

    Web analytics that protects your data and your customers' privacy (alternative to Google Analytics).

    21.9k starsGPL-3.0Updated 13 October 2026
  2. Plausible Analytics

    Simple, lightweight (< 1 KB) and privacy-friendly web analytics.

    29.4k starsAGPL-3.0Updated 12 October 2026
  3. Umami

    Simple, fast, privacy-focused alternative to Google Analytics.

    39.3k starsMITUpdated 17 September 2026
  4. PostHog

    Product analytics, session recording, feature flagging and a/b testing that you can self-host (alternative to Mixpanel, Amplitude, Heap, HotJar, Optimizely).

    40.2k starsMITUpdated 12 October 2026
  5. Rybbit

    Web and products analytics that is easy to setup and more intuitive (alternative to Google Analytics).

    13.1k starsAGPL-3.0Updated 13 October 2026
  6. GoatCounter

    Easy web statistics without tracking of personal data.

    6.1k starsEUPL-1.2Updated 27 September 2026
  7. Swetrix

    Web analytics which track your site's traffic, monitor your site's speed, analyse user sessions and pageflows, see the user flows and more (alternative to Google Analytics).

    75 starsAGPL-3.0Updated 4 August 2026
  8. Offen

    Fair, lightweight and open web analytics tool. Gain insights while your users have full access to their data.

    980 starsApache-2.0Updated 4 March 2026

Side by side

AppStarsLicenseActivityRuns on
Matomo21,950GPL-3.0PHP
Plausible Analytics29,381AGPL-3.0Elixir
Umami39,341MITNode.js, Docker
PostHog40,247MITPython
Rybbit13,115AGPL-3.0Docker
GoatCounter6,057EUPL-1.2Go
Swetrix75AGPL-3.0Docker
Offen980Apache-2.0Go, Docker

Why replace Google Analytics?

Google Analytics works, but your data lives in someone else's account, the price can change at any time, and features can disappear. An open-source app you run yourself is yours: you choose where it runs, who can see the data, and when to update.

Guides

Questions

What is the best free alternative to Google Analytics?

Matomo is the closest open-source replacement for Google Analytics in our list. Plausible Analytics and Umami are worth a look too, depending on what you need.

Can I self-host an alternative to Google Analytics?

Yes. All 8 apps on this page are open source and can run on your own server, usually with Docker, or on a managed host that installs them for you.