---
title: "Best VPS for Plausible Analytics 2026: Self-Host Privacy-First Analytics"
description: "Find the best VPS for self-hosting Plausible Analytics. Complete setup guide with Docker, ClickHouse, PostgreSQL, and reverse proxy configuration."
source: "https://1vps.com/best-vps-for-plausible/"
date: "2026-03-08"
---
# Best VPS for Plausible Analytics in 2026

Plausible is a lightweight, open-source, privacy-friendly alternative to Google Analytics. No cookies, no personal data collection, and a dashboard that fits on one screen. Self-hosting it costs a fraction of Plausible Cloud — and you own every byte of data.

## Why Self-Host Plausible?

| Factor | Google Analytics | Plausible (Self-Hosted) |
|--------|-----------------|------------------------|
| Cost | Free (you pay with data) | ~$5-10/mo (VPS only) |
| Privacy | Tracks everything | No cookies, no PII |
| GDPR | Consent banner required | No consent needed |
| Data Ownership | Google's servers | Your server |
| Script Size | ~45KB | ~1KB |
| Dashboard | Complex, overwhelming | Simple, one page |
| Setup | Minutes | 30 minutes (Docker) |

Plausible gives you pageviews, referrers, countries, devices, and goals — without the surveillance capitalism.

## VPS Requirements

Plausible runs two databases — PostgreSQL for configuration and ClickHouse for analytics data. This makes it hungrier than simpler tools like [Umami](https://1vps.com/best-vps-for-umami/).

**Minimum:**
- 2 vCPU
- 2GB RAM
- 20GB storage

**Recommended (up to 500K pageviews/month):**
- 2 vCPU
- 4GB RAM
- 40GB storage

**High Traffic (1M+ pageviews/month):**
- 4 vCPU
- 8GB RAM
- 80GB+ storage

ClickHouse is the main resource consumer. It's fast, but it likes RAM.

## Best VPS for Plausible

### 1. Hetzner CX23 (Best Value)
**€5.49/mo** | 2 vCPU, 4GB RAM, 40GB NVMe

The sweet spot. Enough RAM for both PostgreSQL and ClickHouse, with plenty of storage for analytics data. European data centers keep your data GDPR-friendly by default.

### 2. Hostinger KVM2 (Best Budget)
**$10.99/mo** | 2 vCPU, 8GB RAM, 100GB NVMe

More RAM and storage than you'll need for most sites. Great headroom for growth without upgrading.

### 3. Vultr (Best Global Coverage)
**$12/mo** | 2 vCPU, 2GB RAM, 50GB

32 data center locations worldwide. Host analytics close to your audience for faster script loading. Tight on RAM at 2GB — monitor ClickHouse usage.

### 4. DigitalOcean (Best Ecosystem)
**$12/mo** | 2 vCPU, 2GB RAM, 50GB

Solid docs, managed databases available if you want to offload PostgreSQL. One-click backups built in.

### 5. Contabo (Best for High Traffic)
**€8.99/mo** | 6 vCPU, 16GB RAM, 100GB SSD

If you're tracking millions of pageviews, Contabo's generous specs make sense. Slightly slower disks than NVMe competitors.

## Complete Setup Guide

### Step 1: Create Your VPS

Using Hetzner as example:

1. Sign up at Hetzner Cloud
2. Create server → Ubuntu 24.04 → CX23
3. Add SSH key
4. Note the IP address

### Step 2: DNS Setup

Point your domain:
```text
A    analytics.yourdomain.com → your-server-ip
```

### Step 3: Initial Server Setup

```bash
ssh root@your-server-ip

# Update system
apt update && apt upgrade -y

# Install Docker
curl -fsSL https://get.docker.com | sh

# Create user
adduser plausible
usermod -aG docker plausible

# Setup firewall
ufw allow OpenSSH
ufw allow 80/tcp
ufw allow 443/tcp
ufw enable
```

### Step 4: Clone Plausible Hosting Repo

Plausible provides an official self-hosting repository:

```bash
su - plausible
git clone https://github.com/plausible/community-edition plausible-ce
cd plausible-ce
```

### Step 5: Configure Environment

Create a `plausible-conf.env` file:

```bash
# Generate a secret key
SECRET_KEY_BASE=$(openssl rand -base64 48)

cat > plausible-conf.env << EOF
BASE_URL=https://analytics.yourdomain.com
SECRET_KEY_BASE=$SECRET_KEY_BASE
TOTP_VAULT_KEY=$(openssl rand -base64 32)
EOF
```

### Step 6: Add Reverse Proxy

Create a [`docker-compose.override.yml`](https://1vps.com/docker-compose-vps-guide/) to add Caddy:

```yaml
services:
  caddy:
    image: caddy:alpine
    restart: unless-stopped
    ports:
      - 80:80
      - 443:443
    volumes:
      - ./Caddyfile:/etc/caddy/Caddyfile
      - caddy_data:/data
      - caddy_config:/config

  plausible:
    ports: !override
      - 127.0.0.1:8000:8000

volumes:
  caddy_data:
  caddy_config:
```

Create `Caddyfile`:

```text
analytics.yourdomain.com {
    reverse_proxy plausible:8000

    encode gzip

    header {
        Strict-Transport-Security "max-age=31536000; includeSubDomains"
        X-Content-Type-Options "nosniff"
        X-Frame-Options "DENY"
    }
}
```

### Step 7: Launch

```bash
docker compose -f docker-compose.yml -f docker-compose.override.yml up -d
```

Wait 60 seconds for ClickHouse and PostgreSQL to initialize.

### Step 8: Create Your Account

1. Open `https://analytics.yourdomain.com`
2. Register with your email
3. Add your first website
4. Copy the tracking snippet

### Step 9: Add Tracking Script

Add to your site's `<head>`:

```html
<script defer data-domain="yourdomain.com"
  src="https://analytics.yourdomain.com/js/script.js"></script>
```

Done. No cookie consent popup needed.

## Tracking Script Extensions

Plausible offers script variants for extra features:

```html
<!-- Track outbound link clicks -->
<script defer data-domain="yourdomain.com"
  src="https://analytics.yourdomain.com/js/script.outbound-links.js"></script>

<!-- Track file downloads -->
<script defer data-domain="yourdomain.com"
  src="https://analytics.yourdomain.com/js/script.file-downloads.js"></script>

<!-- Track 404 pages -->
<script defer data-domain="yourdomain.com"
  src="https://analytics.yourdomain.com/js/script.tagged-events.js"></script>

<!-- Combine multiple extensions -->
<script defer data-domain="yourdomain.com"
  src="https://analytics.yourdomain.com/js/script.outbound-links.file-downloads.js"></script>
```

## Custom Goal Tracking

Set up conversion goals in the Plausible dashboard:

```javascript
// Track a custom event
plausible('Signup');

// Track with custom properties
plausible('Purchase', { props: { plan: 'Pro', price: '29' } });

// Track form submissions
document.getElementById('contact-form').addEventListener('submit', function() {
  plausible('Contact Form');
});
```

Then create a matching goal in Settings → Goals.

## Google Analytics Import

Migrating from Google Analytics? Plausible can import your historical data:

1. Go to Settings → Imports & Exports
2. Click "Import from Google Analytics"
3. Authenticate with Google
4. Select the property to import

Your historical data appears alongside new Plausible data — no gaps in your charts.

## Performance Tuning

### ClickHouse Optimization

For high-traffic sites, tune ClickHouse memory limits in `clickhouse/clickhouse-config.xml`:

```xml
<clickhouse>
    <profiles>
        <default>
            <max_memory_usage>1000000000</max_memory_usage>
            <max_bytes_before_external_group_by>500000000</max_bytes_before_external_group_by>
        </default>
    </profiles>
</clickhouse>
```

### PostgreSQL Tuning

Add to your Docker Compose override:

```yaml
plausible_db:
  command:
    - "postgres"
    - "-c"
    - "shared_buffers=256MB"
    - "-c"
    - "effective_cache_size=512MB"
```

## [Backup Strategy](https://1vps.com/vps-backup-guide/)

Back up both databases. Losing ClickHouse data means losing all your analytics.

### Automated Backup Script

Create `backup.sh`:

```bash
#!/bin/bash
BACKUP_DIR="/home/plausible/backups"
DATE=$(date +%Y%m%d_%H%M%S)

mkdir -p $BACKUP_DIR

# Backup PostgreSQL
docker exec plausible-ce-plausible_db-1 pg_dump -U postgres plausible \
  | gzip > $BACKUP_DIR/postgres_$DATE.sql.gz

# Backup ClickHouse
docker exec plausible-ce-plausible_events_db-1 \
  clickhouse-client --query "SELECT * FROM plausible_events_db.events_v2 FORMAT Native" \
  | gzip > $BACKUP_DIR/clickhouse_events_$DATE.gz

# Keep last 14 backups
ls -t $BACKUP_DIR/postgres_*.gz | tail -n +15 | xargs -r rm
ls -t $BACKUP_DIR/clickhouse_*.gz | tail -n +15 | xargs -r rm
```

Schedule with cron:
```bash
crontab -e
# Add:
0 3 * * * /home/plausible/backup.sh
```

## Plausible vs Alternatives

| Feature | Plausible | Umami | Matomo |
|---------|-----------|-------|--------|
| Script Size | ~1KB | ~2KB | ~22KB |
| RAM Usage | ~500MB | ~200MB | ~1GB+ |
| Database | ClickHouse + PostgreSQL | PostgreSQL | MySQL |
| Cookie-free | ✅ | ✅ | Optional |
| GA Import | ✅ | ❌ | ✅ |
| Revenue Tracking | ✅ | ❌ | ✅ |
| Custom Props | ✅ | ✅ | ✅ |
| Self-host Difficulty | Medium | Easy | Medium |
| Free Self-host | ✅ (Community Ed.) | ✅ | ✅ |

Plausible offers more features than [Umami](https://1vps.com/best-vps-for-umami/) — GA import, revenue tracking, funnel analysis — at the cost of higher resource usage.

## Multiple Sites

Track multiple domains from a single Plausible installation:

1. Settings → Sites → Add Site
2. Each site gets its own tracking snippet
3. All data stays separated in the dashboard

A single 4GB VPS can handle 5-10 low-traffic sites comfortably.

## API Access

Plausible has a comprehensive stats API:

```bash
# Get visitors for today
curl "https://analytics.yourdomain.com/api/v1/stats/realtime/visitors?site_id=yourdomain.com" \
  -H "Authorization: Bearer your-api-key"

# Get aggregate stats
curl "https://analytics.yourdomain.com/api/v1/stats/aggregate?site_id=yourdomain.com&period=30d&metrics=visitors,pageviews,bounce_rate" \
  -H "Authorization: Bearer your-api-key"

# Get top pages
curl "https://analytics.yourdomain.com/api/v1/stats/breakdown?site_id=yourdomain.com&period=30d&property=event:page&limit=10" \
  -H "Authorization: Bearer your-api-key"
```

Generate API keys in Settings → API Keys.

## Updating Plausible

```bash
cd /home/plausible/plausible-ce

# Pull latest
git pull
docker compose pull

# Restart
docker compose up -d

# Clean old images
docker image prune -f
```

Plausible runs database migrations automatically on startup.

## Security Tips

### 1. Disable Public Registration
After creating your account, add to `plausible-conf.env`:
```bash
DISABLE_REGISTRATION=true
```

### 2. Use HTTPS Only
The Caddy setup handles this with automatic Let's Encrypt certificates.

### 3. Restrict Admin Access
Use [Tailscale](https://1vps.com/tailscale-vps-guide/) or a [WireGuard VPN](https://1vps.com/wireguard-vps-setup/) for admin panel access.

### 4. Keep Updated
Pull new images at least monthly. Plausible gets regular security and feature updates.

## Resource Usage

Typical Plausible footprint:

| Component | RAM | CPU |
|-----------|-----|-----|
| Plausible (Elixir) | ~150MB | Low |
| PostgreSQL | ~100MB | Low |
| ClickHouse | ~250MB | Spiky on queries |
| **Total** | **~500MB** | **~5% idle** |

Heavier than Umami but lighter than Matomo. You can still share the VPS with lightweight services like [Vaultwarden](https://1vps.com/best-vps-for-vaultwarden/).

## FAQ

### Does Plausible use cookies?
No. Plausible is 100% cookie-free. No GDPR consent banner needed.

### How does it count unique visitors without cookies?
A daily-rotating hash of IP address + User-Agent. No cross-day or cross-site tracking is possible.

### Can I use Plausible with a CDN?
Yes. The tracking script works fine behind Cloudflare or any CDN. You can also proxy the script through your own domain to avoid ad blockers.

### Is the Community Edition the same as Plausible Cloud?
Almost. The Community Edition has all core features. Some enterprise features like Funnels and custom properties are available in both.

### How much disk space does ClickHouse use?
ClickHouse compresses data aggressively. Expect roughly 1GB per 10 million pageviews stored.

## Recommended Setup

| Use Case | VPS | Monthly Cost |
|----------|-----|--------------|
| Personal / Small Site | Hetzner CX23 | €5.49 |
| Multiple Sites | Hostinger KVM2 | $10.99 |
| High Traffic | Contabo VPS M | €8.99 |

Start with **Hetzner CX23** — €5.49/month for privacy-first analytics. Cheaper than Plausible Cloud ($9/mo for 10K pageviews) and you own the data completely.
