Open-source and self-hosted alternatives to Google Analytics

Privacy-friendly analytics with lighter scripts and simpler dashboards. Several of these can run without cookie banners in many setups (check your own legal requirements).

Category: Web analytics · GitHub data as of Oct 29, 2026 · FAQ · Cost & self-hosting

ProjectWhat it isLicenseGitHub starsLast releaseRuns asHosted plan
PostHog
Active Mixed or custom
A product analytics suite with event analytics, session replay, feature flags, A/B tests and error tracking. Mixed or custom 40.5k Oct 29, 2026 Self-hosted web app Yes, from the project
Umami
Active MIT
Umami is a privacy-first web and product analytics platform. Traffic, campaigns, behavior, conversions, and revenue in one place. No cookies, no surveillance, self-hosted or in the cloud. MIT 39.8k Oct 23, 2026 Self-hosted web app Yes, from the project
Plausible Analytics
Active AGPL-3.0
Open source, privacy-first web analytics. Lightweight, cookie-free Google Analytics alternative. Self-hosted or cloud. AGPL-3.0 29.7k Jun 1, 2026 Self-hosted web app Yes, from the project
Matomo
Active GPL-3.0
A web analytics platform you can self-host, with reports similar to Google Analytics and full ownership of your data. GPL-3.0 22.0k Oct 29, 2026 Self-hosted web app Yes, from the project
GoatCounter
Active Mixed or custom
Easy web analytics. No tracking of personal data. Mixed or custom 6.1k Dec 15, 2025 Self-hosted web app Yes, from the project

Are they still maintained?

5 of 5 Google Analytics alternatives here had a code push or release in the last 180 days (checked Oct 29, 2026).

See every project in the "Is it still maintained?" tracker →

What switching from Google Analytics costs

Google Analytics: current plans and prices are on Google Analytics's pricing page.

AlternativeHow you run itSoftware costWhat you pay for
PostHogYour server, or the project's hosted plan$0 (Mixed or custom, check terms)A server you rent (or own), or the project's paid hosted plan.
UmamiYour server, or the project's hosted plan$0 (MIT)A server you rent (or own), or the project's paid hosted plan.
Plausible AnalyticsYour server, or the project's hosted plan$0 (AGPL-3.0)A server you rent (or own), or the project's paid hosted plan.
MatomoYour server, or the project's hosted plan$0 (GPL-3.0)A server you rent (or own), or the project's paid hosted plan.
GoatCounterYour server, or the project's hosted plan$0 (Mixed or custom, check terms)A server you rent (or own), or the project's paid hosted plan.

Self-hosting basics: PostHog, Umami, Plausible Analytics, Matomo and GoatCounter need a server, which can be a small cloud server or a spare machine at home. For a sense of scale, DigitalOcean's price list shows a 1 GiB server at $6/month and 2 GiB at $12/month (checked Oct 29, 2026). Check each project's documented requirements before choosing a size, and budget time for updates and backups.

Don't want to run a server? PostHog, Umami, Plausible Analytics, Matomo and GoatCounter offer a hosted plan run by the project itself. Prices change, so check each project's site.

License check: PostHog and GoatCounter do not use a single standard open-source license that GitHub can detect. Read the license before using them in a business.

The options in more detail

PostHog

A product analytics suite with event analytics, session replay, feature flags, A/B tests and error tracking.

40.5k GitHub stars · Mixed or custom · last code push Oct 29, 2026 · GitHub · Website

Umami

Umami is a privacy-first web and product analytics platform. Traffic, campaigns, behavior, conversions, and revenue in one place. No cookies, no surveillance, self-hosted or in the cloud.

39.8k GitHub stars · MIT · last code push Oct 29, 2026 · GitHub · Website

Plausible Analytics

Open source, privacy-first web analytics. Lightweight, cookie-free Google Analytics alternative. Self-hosted or cloud.

29.7k GitHub stars · AGPL-3.0 · last code push Oct 29, 2026 · GitHub · Website

Matomo

A web analytics platform you can self-host, with reports similar to Google Analytics and full ownership of your data.

22.0k GitHub stars · GPL-3.0 · last code push Oct 29, 2026 · GitHub · Website

GoatCounter

Easy web analytics. No tracking of personal data.

6.1k GitHub stars · Mixed or custom · last code push Sep 27, 2026 · GitHub · Website

Google Analytics alternatives: common questions

What is the best open-source alternative to Google Analytics?

It depends on how you use Google Analytics. Of the 5 options here, PostHog is the most followed on GitHub (40.5k stars) and is actively maintained, with its latest release on Oct 29, 2026.

Is there a self-hosted Google Analytics alternative?

Yes. PostHog, Umami, Plausible Analytics, Matomo and GoatCounter run on a server you control, so your data stays with you. If you'd rather not run a server, PostHog, Umami, Plausible Analytics, Matomo and GoatCounter also offer a hosted plan from the people who make them.

Is there a free alternative to Google Analytics?

Yes. Every project on this page can be downloaded and used at no cost from its public repository. Server apps are free software, but you pay for the server they run on. Check the license of PostHog and GoatCounter before using them in a business.

Are these Google Analytics alternatives still maintained?

As of Oct 29, 2026, 5 of 5 had a code push or release in the last 180 days. None are flagged as inactive or archived. We re-check every project weekly.

How much does it cost to switch from Google Analytics?

The software itself is free. For server apps, the main cost is hosting: as a reference point, DigitalOcean lists a 1 GiB server at $6/month and a 2 GiB server at $12/month (checked Oct 29, 2026). Check each project's documented requirements before choosing a size. The hidden cost is time: moving your data and, for self-hosted apps, keeping up with updates and backups.

Are all of these really open source?

Not all under a standard license. PostHog: GitHub could not identify a single standard license for this repository (often a mix of open-source and commercial parts). Read the LICENSE file before using it. GoatCounter: GitHub could not identify a single standard license for this repository (often a mix of open-source and commercial parts). Read the LICENSE file before using it. The others use OSI-approved open-source licenses.

Know a project we missed, or maintain one listed here? Tell us. Maintainers can add a live status badge to their README.

Get new open-source swaps by email

One short email a week: newly listed projects, big releases, and projects that went quiet. No spam.