Self-Hosted Privacy-First Analytics

Sep 1, 2024 · 1 min read

Overview

Google Analytics tracks everything, sells everything, and answers to nobody but Alphabet. For a personal blog that’s overkill — but I still wanted analytics. The answer was Plausible: lightweight, privacy-friendly, and self-hostable.

Running it in Podman containers behind Cloudflare tunnels means the analytics data stays on my infrastructure. No third party touches it. No cookie banners needed. Just simple, accurate stats.

Setup

  • Platform: Plausible Analytics (self-hosted)
  • Containerization: Podman (rootless containers)
  • Networking: Cloudflare Tunnels (no open ports)
  • Domain: analytics.derekarmstrong.dev

Why Self-Hosted Analytics

  • No data leaks: Your traffic data never leaves your infrastructure
  • No cookie banners: Plausible doesn’t use cookies, no GDPR compliance theater needed
  • Full control: Custom domains, custom retention, no rate limits
  • Cost: Free software, runs on existing infrastructure

Philosophy

This is the same principle that drives the rest of the homelab: if you can run it yourself, you own the data. Third-party analytics services are convenient until they’re not — until they change their privacy policy, get breached, or decide your data is worth more to them than your readers’ trust.

Running your own analytics stack costs maybe 200MB of RAM and five minutes of setup. The peace of mind is worth more.

Derek Armstrong - Software Engineer · AI · Infrastructure
Authors
Software Engineer · AI · Infrastructure
I’m Derek — software engineer, infrastructure nerd, and chronic tinkerer. 10+ years building payment platforms, production systems, and the kind of infrastructure that has to work at 3am whether I’m awake or not. When I’m not at my day job, I’m running local LLMs on dual 3090s, 3D printing things my wife didn’t ask for, and writing about all of it here. Topics range from payments architecture and DevOps to self-hosted AI and whatever I broke this week.