Self-host Plausible Analytics on a no-KYC VPS
Plausible counts visits without cookies and keeps every number in a ClickHouse database on your own server. Community Edition is free and open source, so you pay only for the server. Signing up asks for no email, name or ID.
- No email or ID
- Crypto, card or cash by mail
Install Plausible Community Edition
Create the DNS record for your stats address before you start: Plausible requests its own Let's Encrypt certificate on first boot.
# Debian 12 or Ubuntu 24.04, as root
apt update && apt install -y git
curl -fsSL https://get.docker.com | sh
# Clone a release (the repo README names the current tag)
git clone -b v3.2.1 --single-branch \
https://github.com/plausible/community-edition plausible-ce
cd plausible-ce
# Your stats address, a secret, and ports for built-in HTTPS
cat > .env <<EOF
BASE_URL=https://stats.example.com
SECRET_KEY_BASE=$(openssl rand -base64 48)
HTTP_PORT=80
HTTPS_PORT=443
EOF
# Publish those ports
cat > compose.override.yml <<EOF
services:
plausible:
ports:
- 80:80
- 443:443
EOF
docker compose up -d
# Open https://stats.example.com, create your account, add a
# site and paste the script tag it gives you into your pagesWhat Plausible needs
For one server running the whole stack: Plausible, PostgreSQL and ClickHouse. Blackbox Core, the smallest plan we sell, covers a typical site.
- RAM
- Plausible recommends at least 2 GB so ClickHouse does not run out. Core has 4 GB, and Plus with 8 GB gives a busy instance room to grow.
- CPU
- SSE 4.2 support, which ClickHouse requires. Check with grep -c sse4_2 /proc/cpuinfo.
- Disk
- ClickHouse compresses event data heavily, so it grows slowly. Core has 50 GB of NVMe.
- Transfer
- One small request per pageview, and browsers cache the script. Even ten million pageviews a month uses a small share of Core's 4 TB per 31 days.
- Ports
- 80 and 443 for the dashboard and the tracking script. PostgreSQL and ClickHouse stay inside Docker.
- Port 25 is open on Blackbox, so password resets and weekly reports can go out from the server or through a relay you set up.
Before you switch
Things that catch people out in the first week.
Who can sign up
DISABLE_REGISTRATION in .env defaults to invite_only, so after your first account only people you invite can register. Set it to true to close sign-ups completely.
Counting yourself
Your own visits land in the stats too. Plausible skips a browser once you set plausible_ignore to true in that browser's local storage.
Features that stay on Cloud
Funnels and revenue goals are left out of Community Edition. Custom events, goals and the full dashboard, with top pages, traffic sources, countries and devices, are included.
Upgrades
Read the release notes before a major version. Some upgrades have needed a migration step before the new containers start.
Backups
Copy the PostgreSQL and ClickHouse volumes on a schedule you control. Servury has no snapshot product to fall back on.
Your own Plausible, Plausible Cloud or Google Analytics
| Plausible CE on Servury | Plausible Cloud | Google Analytics 4 | |
|---|---|---|---|
| Cookies | None | None | Sets first-party cookies |
| Cookie consent banner | Not needed, per Plausible | Not needed, per Plausible | Usually required in the EU |
| Where the data is stored | Your server | Plausible's servers in the EU | Google's servers |
| Cost grows with | The size of your server | Monthly pageviews | Free for most sites |
| Funnels and revenue goals | Not included | On higher plans | Yes |
| Upgrades and backups | You run them | Plausible runs them | Google runs them |
Plans
Start on Core. Plus and Max give ClickHouse more memory when your sites get busy.
| Plan | vCPU | RAM | NVMe | Traffic | Where | Price |
|---|---|---|---|---|---|---|
| Blackbox Core | 2 | 4 GB | 50 GB | 4 TB per 31 days | MontrealAmsterdamNew York City (launch pre-order)Singapore (launch pre-order) | $9.99/mo |
| Blackbox Plus | 4 | 8 GB | 100 GB | 8 TB per 31 days | MontrealAmsterdamNew York City (launch pre-order)Singapore (launch pre-order) | $19.99/mo |
| Blackbox Max | 6 | 16 GB | 200 GB | 16 TB per 31 days | MontrealAmsterdamNew York City (launch pre-order)Singapore (launch pre-order) | $39.99/mo |
| Blackbox Ultra | 8 | 32 GB | 400 GB | 32 TB per 31 days | MontrealAmsterdamNew York City (launch pre-order)Singapore (launch pre-order) | $79.99/mo |
Questions
How much server do I need?
Plausible's README recommends at least 2 GB of RAM so ClickHouse does not run out of memory. Our smallest plan, Blackbox Core with 2 vCPU and 4 GB, gives you twice that, which covers a typical site with PostgreSQL and ClickHouse on the same server. Several busy sites, or millions of events a month, sit more comfortably on Plus with 8 GB. Disk use grows slowly because ClickHouse compresses event data heavily.
Will it handle millions of pageviews?
Yes. ClickHouse is built for large analytics tables. Memory runs short long before transfer does: each pageview is one small request, so even ten million a month uses a small share of the allowance. Watch memory as traffic grows and move up a plan when ClickHouse needs it.
Can I import my Google Analytics history?
From GA4, yes. Community Edition needs your own Google API credentials (GOOGLE_CLIENT_ID and GOOGLE_CLIENT_SECRET in .env) to run the import. Google has deleted Universal Analytics data, so that older history can no longer be pulled.
Is it really cookieless?
Yes. Plausible sets no cookies and stores nothing in the browser. To count unique visitors it hashes the IP address and user agent together with the site's domain and a salt that is replaced every 24 hours, and the old salt is deleted. A visitor cannot be followed from one day to the next, or from one site to another. Because it sets no cookies and stores no personal data, Plausible's position is that sites using it need no cookie consent banner under GDPR and PECR.
Will ad blockers block it?
Some will. A few blocklists block every analytics script, Plausible included. Plausible's documentation shows how to serve the script and the event endpoint through paths on your own site, which most blockers let through.
Can I track custom events and conversions?
Yes. Send custom events from JavaScript, or add CSS class names to the links and buttons you care about, then turn them into goals in the dashboard. Funnels and revenue tracking are not part of Community Edition.
What do I give up compared with Plausible Cloud?
Funnels, revenue goals and a few other features are Cloud only. You also run the upgrades and the backups yourself. Plausible publishes a comparison of the two editions; check it before you rely on a specific feature.
Does Servury log my traffic?
No. We keep no traffic logs, and Blackbox runs no agent inside your server. Your visitors' stats live only in your own database.
Guides on this topic
- Self-Hosted Apps vs SaaS: Why Running Your Own Nextcloud, Vaultwarden, or Pi-hole Beats Trusting a Third PartyWhat changes when you run your own Nextcloud, Vaultwarden, or Pi-hole instead of trusting a SaaS provider, and how an anonymous VPS narrows the last privacy...
- How to Set Up a Self-Hosted VPN with WireGuard on a VPSTen minutes from a fresh Ubuntu server to a WireGuard VPN you control: keys, config, forwarding, firewall, a phone client by QR code, and the two settings that...
- Why Developers Are Self-Hosting AI Agents and LLMs Instead of Relying on Cloud AI PlatformsWhy developers are moving language models and agents onto their own VPS, keeping prompts, documents, and agent memory private instead of sending them to a...
- Privacy is Marketing. Anonymity is Architecture.Privacy is when they promise to protect your data. Anonymity is when they never had your data to begin with.