Self-hosting Plausible Analytics: what you need and what to expect

Requirements, setup and maintenance of self-hosted Plausible for privacy friendly web analytics.

Peon

27. Oktober 2026October 27, 2026 · 2 Min. Lesezeit2 min read

Plausible is a lightweight, cookie free web analytics tool. Hosting it yourself keeps visitor data on your server and removes the monthly subscription, in exchange for some upkeep.

Requirements#

Plausible Community Edition uses Postgres for application data and ClickHouse for events. ClickHouse is the hungry part. Plan for at least 2 vCPUs and 4 GB RAM for a small site, more for high traffic.

Setup outline#

  1. Point a subdomain such as stats.example.com to your server.
  2. Run the official Compose setup with a generated SECRET_KEY_BASE, your BASE_URL, and SMTP settings if you want emails.
  3. Put it behind HTTPS with a reverse proxy.
  4. Create an account, add your site, and paste the script tag.
<script defer data-domain="example.com" src="https://stats.example.com/js/script.js"></script>

Ad blockers#

Some blockers block third party analytics domains. Serving the script from your own subdomain helps, and you can also proxy it through your main domain.

Maintenance#

Is it worth it?#

If you have several sites and care about privacy or cost, yes. If you have one small blog, the hosted plan may be cheaper than your time.

Step by step instructions are in this guide to self-hosting Plausible Analytics.

Disclosure: I work on Peon, a self-hosted deployment platform that can run Plausible from a template.

#analytics#privacy#selfhosting

Written by

Comments

No comments yet. Start the conversation.

Contents

5 sections

  1. Requirements
  2. Setup outline
  3. Ad blockers
  4. Maintenance
  5. Is it worth it?