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.

Plausible Analytics logo

Self-host Plausible Analytics

v3.2.1

Privacy-first web analytics with no cookies

ReleaseOpen SourceAGPL-3.0
Docker ComposeCompose file & guide
docker compose up -d
Updated5 months ago
LanguageElixir
Setup difficultyModerate
ThemeDark mode
Stars
29 792
Port
8000 (HTTP web server listen socket (moved to 80/443 with HTTP_PORT/HTTPS_PORT for Let's Encrypt))
Requires
PostgreSQL
Docker
ghcr.io/plausible/community-edition
Main Plausible stats dashboard with the traffic over-time chart and top sources, pages and locationsAccount settings panel where the dashboard appearance theme is changed

What is Plausible Analytics?

Plausible Analytics alternatives

All self-hosted alternatives to Cloudflare Analytics → All self-hosted alternatives to Google Analytics → All self-hosted alternatives to Matomo →

Should you self-host Plausible Analytics?

Plausible Analytics scores 80/100 on selfhost.directory (how scoring works) and ranks #2 of 22 in Web analytics. It has 29 792 GitHub stars, +479 in the last 30 days.

It shipped 3 stable releases in the past year. The latest, v3.2.1, came out on 1 June 2026. New versions land roughly every 3 months.

Setup is moderate: expect some configuration beyond a single command. An official Docker image is available. It is AGPL-3.0-licensed and written mostly in Elixir.

Its closest alternative on selfhost.directory is Matomo (74/100, 22 013 stars). Plausible Analytics scores higher overall. See Plausible Analytics vs Matomo side by side.

Features

  • Bot and referrer-spam filteringAdvanced bot filtering and data-center IP exclusion are cloud-only.
  • Cookie-free, privacy-first tracking
  • Email and Slack reports
  • Events API and Stats APISites API is a premium cloud feature, not in Community Edition.
  • Goals, conversions and custom events
  • Google Analytics data import
  • Google Search Console integrationSelf-hosted setups need GOOGLE_CLIENT_ID and GOOGLE_CLIENT_SECRET configured.
  • Lightweight tracking script
  • Public and shared dashboard links
  • Real-time traffic view
  • Single-page analytics dashboard
  • SPA and modern framework support
  • Team members with roles
  • Two-factor authentication

Plausible Analytics README

How to install Plausible Analytics

Install Plausible Analytics with Docker Compose

Docker and Docker Compose
Environment variables
BASE_URL, SECRET_KEY_BASE, HTTP_PORT, HTTPS_PORT
1. Clone this repository
$ git clone -b v3.2.1 --single-branch https://github.com/plausible/community-edition plausible-ce
Cloning into 'plausible-ce'...

$ cd plausible-ce

$ ls -1
clickhouse/
compose.yml
LICENSE
README.md
2. Create and configure your environment file
$ touch .env
$ echo "BASE_URL=https://plausible.example.com" >> .env
$ echo "SECRET_KEY_BASE=$(openssl rand -base64 48)" >> .env
3. Expose Plausible server to the web with a compose override file
$ echo "HTTP_PORT=80" >> .env
$ echo "HTTPS_PORT=443" >> .env

$ cat > compose.override.yml << EOF
services:
    plausible:
        ports:
            - 80:80
            - 443:443
EOF
4. Start the services with Docker Compose:
$ docker compose up -d
5. Visit your instance at $BASE_URL and create the first user.

Plausible Community Edition (CE): self-maintained stack with Plausible, PostgreSQL and ClickHouse; released twice per year.

How to configure Plausible Analytics

  • BASE_URLRequired base URL used for generated links and Cross-Site WebSocket Hijacking checks; no default.
  • DATABASE_URLpostgres://postgres:postgres@plausible_db:5432/plausible_dbPostgreSQL connection URL (Ecto.Repo url format) for user data.
  • CLICKHOUSE_DATABASE_URLhttp://plausible_events_db:8123/plausible_events_dbClickHouse connection URL for analytics event data.
  • TOTP_VAULT_KEYderived from SECRET_KEY_BASE using PBKDF2Secret used to encrypt TOTP (2FA) secrets at rest with AES256-GCM.
  • SECRET_KEY_BASERequired secret (at least 64 bytes) used for dashboard sessions and deriving other secrets.

Plausible Analytics releases & version history

@ Every self-hosted release, weekly

One Monday email with the week's stable releases across the directory.

FAQ

Is support included for the Community Edition?

No, premium support is cloud-only; the self-hosted edition is supported by the community through GitHub discussions.

Can Plausible be self-hosted?

Yes, the free Plausible Community Edition can be installed on your own server, but you handle installation, upgrades, capacity, backups and security yourself, and premium features are left out.

Why is Plausible Analytics Cloud not free like Google Analytics?

Plausible is funded entirely by subscribers and charges a subscription so the project can be maintained sustainably; the free Google Analytics model relies on monetizing user data for advertising.

More in Web analytics

Rate this project

Click to rate — no account needed.

0 comments

Posting as guest
Loading comments…