How-To Guides

Self-Hosted Web Analytics

GDPR-friendly, cookieless web analytics you host yourself — no Google Analytics, no cookie consent banner needed.

Why self-host?

Google Analytics is heavy, requires a cookie consent banner, and sends your visitors' data to Google. Self-hosted analytics like Plausible and Umami are lightweight, cookieless, GDPR-compliant by default, and you own the data — no third party sees it.

Step 1. Choose your tool

  • •Plausible: clean modern UI, email reports, can self-host or use their cloud.
  • •Umami: simpler, lighter, self-hosted only.
  • •Both are cookieless and GDPR-compliant — no cookie banner required.

Step 2. Install Plausible via Docker Compose

Plausible needs three containers: itself, Postgres, and Clickhouse. Create a docker-compose.yml with all three services, set environment variables (BASE_URL, SECRET_KEY, database passwords), and run:

docker compose up -d

Access at http://server-ip:8000.

Step 3. Install Umami via Docker (simpler)

Umami just needs itself and Postgres. Run:

docker run -d --name umami -p 3000:3000 -e DATABASE_URL=postgresql://user:pass@db:5432/umami ghcr.io/umami-software/umami

Then create the database and visit http://localhost:3000.

Step 4. Add the tracking script

Add one line of JavaScript to your website header.

For Plausible:

<script defer data-domain="yoursite.com" src="https://your-plausible/js/script.js"></script>

For Umami: add the script tag from your dashboard.

That's it — no cookie banner needed because no cookies are set.

Step 5. Configure goals and events

Track sign-ups, button clicks, form submissions, or custom events.

  • •In Plausible: Settings → Goals.
  • •In Umami: Settings → Events.
  • •Both let you see conversion funnels.

Step 6. View your analytics

Your dashboard shows visitors, page views, sources, devices, countries, and bounce rate — all without cookies. No consent banner interrupting visitors.

Quick Tips

  • •No cookie consent banner needed (cookieless tracking is GDPR-compliant).
  • •Self-hosting means no data sent to Google or any third party.
  • •Use a reverse proxy with HTTPS for secure access.
  • •Plausible sends monthly email reports.
  • •Umami is lighter and simpler if you just want the basics.

Need More Help?

StarCaller Academy offers 1-to-1 sessions to help you with any of these topics and more.