Hacker News new | ask | show | jobs
by toothbrush 2697 days ago
I've recently started a blog with a similar ethos: static hosting (for now it's on S3) with no Javascript or ads. However, i'd like to know who is visiting / whether my various publicity stunts are successful. I could self-host something like Piwik, but the maintenance headache and security/PII responsibility doesn't appeal to me.

What would other ethical webmasters here do? Only use HTTP access logs?

EDIT: to be clear: i could also write a bunch of tooling myself to parse access logs or report events to a backend, but that feels like a lot of work + reinventing the wheel + maintenance/security scare.

1 comments

> Only use HTTP access logs?

what else do you need, honestly?

you could set a cookie on initial page load with a uuid and identify unique users from that (you can log cookies with nginx/apache).

just push the resulting log to Loki [1] (as an example) and you're done.

[1] https://grafana.com/loki