Skip to content
Greffon
Tutorial

Self-Host Plausible Analytics with Greffon

Web analytics that does not ship your visitors to a third party. Plausible is light, privacy-friendly, and runs comfortably on a greffer. Here is the honest setup.

GLGreffon Labs5 min read
~/blog/self-host-plausible

Most analytics tools work by sending your visitors' behaviour to someone else's servers. Plausible is the privacy-friendly alternative: lightweight, cookie-free by design, and self-hostable. Grafting it onto a greffer means the numbers about your site, and the people who generate them, stay on hardware you own.

Why own your analytics

Plausible gives you the dashboard most people actually want, top pages, sources, countries, trends, without the weight and privacy cost of the usual options. Self-hosting it adds one more property: the raw visitor data never leaves your greffer, which makes the privacy promise something you can stand behind rather than take on faith.

Graft it from the catalog

Pick Plausible from the catalog and graft it onto your greffer. Greffon issues the certificate and routes it, so the dashboard comes up over HTTPS. Plausible is genuinely light, so a small always-on greffer handles it without fuss.

Make it reachable

Analytics is the one app that has to be reachable by the open internet, because every visitor's browser loads its script and sends events to it. Tunnel mode lets the greffer serve Plausible with no inbound ports, which is the simplest path behind NAT; port forwarding with dynamic DNS works as well. The endpoint needs to be reachable over HTTPS from wherever your readers are.

Add the script to your site

Once Plausible is up, add its small script tag to your site, pointing at your own Plausible domain rather than a hosted one. From then on, traffic flows to your greffer and shows up in your dashboard. There are no cookies to consent to, which is part of why the snippet is so light.

Point the snippet at your own instance
The only change from the hosted product is the script source: it references your self-hosted Plausible domain. Everything else, including the dashboard, works the same.

Back up the data

Your analytics history is worth keeping. Greffon handles TLS and routing today; native one-click backups land in M2. Until then, bring your own tool (restic or borgbackup) and back up Plausible's database on a schedule so a rebuild does not lose your history.

FAQ

Is self-hosted Plausible the same as the hosted version?
It is the same analytics, running on your greffer instead of Plausible's servers. The dashboard and the tracking script work the same way; only the data location changes.
Do I still need a cookie banner?
Plausible is designed to be cookie-free and to avoid collecting personal data, which is the basis for running without a consent banner. Confirm against your own legal requirements, but that is the design goal.
Will it run on a small box?
Yes. Plausible is lightweight and runs comfortably on a small always-on greffer, which makes it a good first analytics greffon.
GL
Greffon Labs
We build Greffon, the simplest way to turn any machine into a server you own.

Ready to turn on your greffer?

Install in minutes. Deploy each app in seconds. Your server, your apps.

Read the docs