Bot-free self-hosted analytics with GoatCounter on NixOS
Description and use
GoatCounter on NixOS delivers bot‑free, privacy‑respecting analytics for self‑hosted sites.
Problem
Need a privacy‑respecting analytics solution that does not track bots and can be run on a personal NixOS server.
Outcome
GoatCounter runs natively on NixOS, automatically blocks bot traffic, and provides clean analytics without third‑party tracking.
Workflow
- 1. Add the GoatCounter NixOS module to the system configuration.
- 2. Enable the module and set the GoatCounter site ID.
- 3. Rebuild the system with
nixos-rebuild switch. - 4. Add the GoatCounter JavaScript snippet to the website templates.
- 5. Verify data collection and bot filtering in the GoatCounter dashboard.
Evidence
Bot‑free self‑hosted analytics with GoatCounter on NixOS
- Record date: 2026-09-22T08:31:10.979Z