Analytics

Host Plausible Analytics on VeloxaHost

Plausible Analytics is lightweight, cookie-free web analytics that shows visitors, sources, pages and goals on one dashboard without collecting personal data. Site owners and agencies self-host the Community Edition to keep analytics data on their own server and avoid per-pageview pricing.

The one-click install puts Docker and the Compose plugin on Ubuntu 24.04, clones Plausible's Community Edition repository into /opt/plausible, writes a starter .env and runs docker compose up -d. The stack is three containers: Plausible itself, PostgreSQL for accounts and settings, and ClickHouse for the event data.

Plausible Community Edition (CE) is the self-hosted release of Plausible. Plausible's comparison page says CE is released twice a year as a long-term release, is supported by the community only, and leaves out a few cloud features: marketing funnels, ecommerce revenue goals, SSO and the sites API among them.

Prefer to set it up yourself? The Plausible Analytics self-host guide covers the manual route on Ubuntu 24.04: install, first login, HTTPS, backups and updates.

What it needs

The CE README recommends at least 2 GB of RAM "for running ClickHouse and Plausible without fear of OOMs", and ClickHouse needs a CPU with SSE 4.2. Disk depends on traffic, since every pageview is stored. The catalogue's minimum is 2 vCPU and 2 GB; the recommended 4 GB leaves ClickHouse room for merges and queries over a long date range. That fits the Veloxa 2 size: 2 vCPU, 4 GB RAM and 80 GB of disk for $15 a month, billed at $0.03 an hour and capped at the monthly price.

Finish the configuration

The one-click install writes /opt/plausible/.env with a generated SECRET_KEY_BASE and BASE_URL=http://localhost:8000, and publishes port 8000 in a compose.override.yml. One setting is left: BASE_URL must be the address people will open, because the tracking script and dashboard links are built from it.

  1. Every server gets a block of ports on the region's shared IPv4 address. Under How to connect, forward a port of the block to 8000.
  2. Open the browser terminal on the server's page and set BASE_URL to that address (or your domain), then restart the stack.
    cd /opt/plausible
    sed -i 's#^BASE_URL=.*#BASE_URL=http://<shared-ip>:<port>#' .env
    docker compose up -d
    
  3. Register the first account in the browser.

With a dedicated IPv4 address (a paid add-on with limited availability), set HTTP_PORT=80 and HTTPS_PORT=443, publish 80:80 and 443:443, and Plausible gets a Let's Encrypt certificate itself. IPv6 is not available in US East yet. Then add the tracking script to your sites; it must load from the same BASE_URL.

Backups and updates

Data lives in Docker volumes: db-data for PostgreSQL, event-data for ClickHouse and plausible-data for Plausible, with your settings in .env. Turn on automatic snapshots on the server page (hourly up to weekly, kept for 1 to 30 days) or scheduled backups (every 6 hours up to weekly, keeping 1 to 10); both capture the volumes with the rest of the disk.

The upgrade guide is: in /opt/plausible, git pull the new release tag, then docker compose up -d. Major versions can need data migrations, so read the release notes and take a snapshot first.

FAQ

How much RAM does Plausible need?

The CE README recommends at least 2 GB so ClickHouse does not run out of memory. The recommended Veloxa 2 has 4 GB; busy sites can raise memory from the console, which applies without a restart on a container.

Can I import my Google Analytics history?

Yes. CE imports from GA4. It needs a Google Cloud OAuth client with the Google Analytics APIs enabled, GOOGLE_CLIENT_ID and GOOGLE_CLIENT_SECRET in .env, and the redirect URI BASE_URL/auth/google/callback. Then use Site settings, Imports & Exports in Plausible.

Can I use my own domain?

Yes, and BASE_URL should be that domain from the start, because the tracking script and dashboard links are built from it.

What license is Plausible under?

The Plausible software is released under the AGPL-3.0 license, and the tracking script under MIT. The CE repository's compose and configuration files are MIT.

Can I move from Plausible Cloud to my own server, or back?

Plausible documents export and import between CE and its cloud service, so you are not locked into either.

Which VeloxaHost size fits Plausible?

The recommended 2 vCPU and 4 GB of RAM is a Veloxa 2: 2 vCPU, 4 GB RAM and 80 GB of disk for $15 a month, billed at $0.03 an hour and capped at that price.

Google Analytics is free, so the case for Plausible is about the data, not the price: Plausible vs Google Analytics.