Best Analytics repos (2026)

Every free analytics repo we track, ranked, with a short guide on how to use each one.

  1. 1
    PostHog / posthog

    Product analytics, session replay and feature flags

    Python★ 41.2kCustomGitHub ↗
    How to use PostHog
    1. Sign up free on PostHog Cloud, or run the hobby install below on a Linux server.
    2. Add the PostHog snippet or SDK to your site or app.
    3. Open Product analytics to see events and build funnels.
    4. Turn on session replay to watch how real users move through your pages.
    # Self-hosted hobby install (Linux, about 4 GB memory)
    /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/posthog/posthog/HEAD/bin/deploy-hobby)"
    Full guide, license and FAQ →
  2. 2
    umami-software / umami

    Cookie-free website analytics

    TypeScript★ 40.3kMITGitHub ↗
    How to use Umami
    1. Install Umami on a VPS with Docker Compose (command below).
    2. Open http://localhost:3000 and log in with admin / umami, then set a new password.
    3. Add your website in Settings and copy the tracking script.
    4. Paste the script into your site header. Visits show up within a minute.
    git clone https://github.com/umami-software/umami.git
    cd umami
    # create .env with APP_SECRET (generate: openssl rand -hex 32)
    docker compose up -d
    Full guide, license and FAQ →
  3. 3
    plausible / analytics

    Lightweight, privacy-first website analytics

    Elixir★ 30kAGPL-3.0GitHub ↗
    How to use Plausible Analytics
    1. Clone the Community Edition repo (command below).
    2. Create a .env file with BASE_URL set to your domain and a SECRET_KEY_BASE.
    3. Start it with Docker Compose.
    4. Open your domain, create your account, add your site and paste the tracking script.
    git clone -b v3.2.2 --single-branch https://github.com/plausible/community-edition plausible-ce
    cd plausible-ce
    echo "BASE_URL=https://plausible.example.com" >> .env
    echo "SECRET_KEY_BASE=$(openssl rand -base64 48)" >> .env
    docker compose up -d
    Full guide, license and FAQ →
  4. 4
    matomo-org / matomo

    Full Google Analytics replacement you host yourself

    PHP★ 22.1kGPL-3.0GitHub ↗
    How to use Matomo
    1. Download Matomo from matomo.org and upload it to your web hosting.
    2. Open it in your browser and follow the five-minute installer.
    3. Copy the JavaScript tracking code it gives you.
    4. Paste the code into your site header and watch visits appear in real time.
    Full guide, license and FAQ →
  5. 5
    allinurl / goaccess

    Real-time web log analyzer in your terminal or browser

    C★ 21.2kMITGitHub ↗
    How to use GoAccess
    1. Install GoAccess on your server (command below).
    2. Find your access log, for example /var/log/nginx/access.log.
    3. Run GoAccess on the log with the COMBINED log format.
    4. Open the report.html it creates in your browser.
    sudo apt-get install goaccess
    goaccess access.log --log-format=COMBINED -o report.html
    Full guide, license and FAQ →