selfhost.directory

The index of self-hostable projects — ranked, categorized and served with live updates.
Own your data and stop giving it to big tech.

Self-hosted alternatives to Google Analytics

Teams leaving Google Analytics usually want to keep their visitor data on infrastructure they control. More about Google Analytics

--sort
21 projects· by score

Projects

About these Google Analytics alternatives

The projects here are open-source analytics tools that can be self-hosted, so the data stays with you. Umami describes itself as a privacy-first analytics platform with no cookies, and it can be self-hosted or run in the cloud. Matomo calls itself the leading open-source alternative to Google Analytics, with a focus on complete control and built-in privacy. GoAccess takes a different approach: it is a real-time web log analyzer that runs in a terminal or through your browser. PostHog covers a broader range, including analytics, session replay, flags, experiments and error tracking. Each project is listed with its licence so you can check the terms before you deploy it.

21 open-source, self-hosted alternatives to Google Analytics are listed here, ranked by popularity, maintenance and documentation.

Highest rated
Plausible Analytics (29 797 GitHub stars, AGPL-3.0 license, written in Elixir), followed by Matomo and Rybbit
Docker
10 of the top 12 ship an official Docker image
Easiest to set up
ackee and fathom
Recently updated
tianji v1.34.1 on 2026-11-08

Google Analytics alternatives compared

ProjectLicenseLanguageStarsDockerSetupLatest releaseScore
Plausible AnalyticsAGPL-3.0Elixir29 797YesModeratev3.2.180
MatomoGPL-3.0PHP22 013—Moderate5.14.274
RybbitAGPL-3.0Typescript13 217YesModeratev2.9.273
openpanelAGPL-3.0Typescript7 267YesModerateworker69
GoatCounterOtherGo6 149YesModeratev2.7.067
Countly Community EditionOtherJavaScript5 925YesModerate24.05.5565
ackeeMITJavaScript4 722YesEasyv3.7.163
fathomMITGo8 034YesEasyv1.3.163
tianjiApache-2.0Typescript3 118YesModeratev1.34.161
swetrixAGPL-3.0Typescript1 219YesModeratev5.5.358
openwebanalyticsGPL-2.0PHP2 697—Moderate1.14.658
LitlyxApache-2.0Typescript1 748YesModeratev0.0.1957