E-Ink News Daily

Back to list

Bot-free self-hosted analytics with GoatCounter on NixOS

The author migrated from Google Analytics to GoatCounter, an open-source self-hosted analytics platform, to avoid bot inflation and protect privacy. They replaced GoatCounter's default JavaScript client with a custom lightweight script, added CSS fallback, and deployed a local proxy across five Nginx web servers running on NixOS. The setup uses SQLite, containers, and Litestream for backups.

Background

Self-hosted web analytics has grown in popularity as users seek privacy-friendly alternatives to commercial trackers like Google Analytics. NixOS provides reproducible infrastructure-as-code deployment for such services.

Source
Lobsters
Published
Sep 21, 2026 at 06:51 AM
Score
5.0 / 10