Here I wanted to share a story about a simple self-hosting solution for tracking website users in a privacy-friendly, cookie-less, gdpr-compliant way.
Oh well, and happy birthday minimal-analytics 🎂
After 1 year of tracking, minimal-analytics tracked 110k pageviews to this very blog.
Out of ~105k visitors and ~115k pageviews, 75k+ come from google.
That’s a solid piece of traffic from google.
A small 7k come from duckduckgo.
The bounce rate is around 91%.
The traffic is increasing, month to month, starting with ~7k visitors a month to ~10k in July 2022.
A rough 40% increase.
For 5$ a month, it’s been a good deal and experience for me.
I am using
nginx, cloudflare as cache, dns & domain.
Here the instructions for self-hosting minimal-analytics
The experiment goes on
A JSONL file as a DB to track visitors.
Hash the ip, url and a seed to compute a quite unique visitor hash.
That is the idea behind minimal-analytics, and I am planning to extend it further:
- more granular referrer breakdowns (e.g. aggregate all google.* sites)
- allow embedding into iframes/images
- improve chart visualization
And if you want to contribute to the project, file an issue or pull-request here on github