2 hours ago · 14 min read2841 words · Tech · hide · 0 comments

In 2016, I removed Google Analytics from this blog to avoid being complicit in feeding the biggest machine for harvesting personal data. Instead, I relied on GoAccess to analyze my server logs.1 For the past couple of years, the statistics have made no sense, despite my attempts to filter bots: AI scrapers inflate the number of visitors to around 2,000 per day. Eventually, I settled on GoatCounter, an open-source, privacy-friendly web analytics platform. I replaced the JavaScript client to filter bots more aggressively and added a CSS fallback. To improve reliability, I implemented a local proxy running on each of the five web servers serving this blog. The rest of this post details how these pieces fit together and how I deploy them on NixOS. ❄️ Why GoatCounter? Custom JavaScript client Local proxy Deploying on NixOS Deploying applications in containers GoatCounter server GoatCounter proxy Backup of the SQLite database with Litestream Why GoatCounter? GoatCounter does not collect…

No comments yet. Log in to reply on the Fediverse. Comments will appear here.