Analytics

Self-hosted Google Analytics alternatives

3 open-source apps you can run on your own server instead of Google Analytics. The install method for each one is taken from its own docs.
Short answer: self-host Plausible, Umami or Matomo instead of Google Analytics. The software is free to run and you pay for the server. Licenses checked 2026-10-01, install docs read 2026-11-30.
  1. 1
    Plausible

    Privacy-friendly, open-source web analytics

    Lightweight, cookie-free analytics; self-hosted CE is free.

    Open source (AGPL-3.0) · ★ 29k · Docker Compose

    Clone the community-edition repo, set BASE_URL and a secret in .env, and run docker compose up -d. The docs recommend 2 GB RAM and a CPU with SSE 4.2 or NEON. Install docs.

  2. 2
    Umami

    Simple, privacy-focused, open-source web analytics

    Simple privacy-focused analytics, self-hosted.

    Open source (MIT) · ★ 39k · Docker Compose

    Set an app secret in .env and run docker compose up -d, which starts Umami with a bundled PostgreSQL. It is served on port 3000; change the default admin login on first sign-in. Install docs.

  3. 3
    Matomo

    Privacy-focused open-source web analytics

    Full-featured web analytics you host yourself.

    Open source (GPL-3.0) · ★ 22k · PHP app

    Download and extract the Matomo zip on a PHP web server, then finish the web installer, which asks for a MySQL database. An official Docker image is also mentioned. Install docs.

All free Google Analytics alternatives. All self-hosted alternatives.

Open source: OSI-approved license. Free to self-host: the code is public and free to run yourself, with limits in the license. The install line is left out when I have not read it on the project's own docs.

Also in this list

Mixpanel, Amplitude, Segment, Hotjar.