Ask HN: Static Site Analytics Without Cookies?

4 points by nmca ↗ HN
I run a couple of static sites, and am interested in aggregate stats about visitors - total number, referrer/origin, time of day and maybe location at the resolution of like, 100Km or so (eg State of origin or similar).

Are there any easy ways to do this that don't need a cookie consent pop-up, and are GDPR compliant (by recording zero PII)?

I'm happy to trade recording much less information about users in order to achieve this.

2 comments

[ 3.2 ms ] story [ 18.2 ms ] thread
The oldschool way of doing this is programs like awstats that parse the web server logs, which can do all the things you're talking about and is in Debian/Ubuntu repos. I don't know if there's a fancier similar tool that people use these days, but AWStats gets the job done.

I wouldn't say they record zero PII but they don't record much additional PII over what your logs already use.