News for hackers. Stuff that matters.
Re:Show HN: I've built my own simple website analytics by cors-fls on Wednesday February 02, 2022 @05:32AM (#30175864)
Nice write-up. I am a bit concerned with the part about fingerprinting. It sounds so easy to make that it made me realize that everyone must be doing it.

I am not sure if the use-case here is to track people that delete their cookies or if the author found it easier than using simple UUID stored in cookies.

Re:Show HN: I've built my own simple website analytics by rozenmd on Thursday February 03, 2022 @08:14AM (#30191985)
The fingerprinting part is to avoid double counting and using cookies - most analytics and feature flag services have something equivalent to:

hash(salt + ip_address + user_agent + some_other_unique_characteristics)

for analytics you could rotate the salt daily if you're only concerned about daily unique visitors

Re:Show HN: I've built my own simple website analytics by jmmv on Thursday February 03, 2022 @09:26AM (#30192762)
Precisely. To be honest, the fingerprinting part was a very late addition and... I don't like it. The original version used a uuid plus a cookie, but "aaah, cookies!" so I looked for an alternative. Which sounds worse than the simple cookie approach.

One thing I'd like to do is try something like what you said server-side and compare how closely a hash of those properties matches the "accuracy" of fingerprinting. I'm only looking for something of reasonable precision during short periods of time (to avoid obvious double-counting) so if that tracked reasonably enough, it'd be a very interesting alternative.

Re:Show HN: I've built my own simple website analytics by GordonS on Thursday February 03, 2022 @09:45AM (#30193042)
What about a time-limited fingerprint, built with a seed that rotates daily?

That way, you can only track any given visitor for max 24 hours, which often would mean tracking them across a single "visit". I'm pretty privacy conscious, but personally would be absolutely OK with this.

Re:Show HN: I've built my own simple website analytics by Fredej on Thursday February 03, 2022 @08:13AM (#30191966)
One part he mentions is that avoiding tracking cookies means avoiding the "I consent to tracking cookies" popup.

> However, GA has grown exceedingly complicated, installs cookies (thus requiring the utterly annoying cookie warning in the EU)

Re:Show HN: I've built my own simple website analytics by dindresto on Thursday February 03, 2022 @08:19AM (#30192024)
Fingerprinting for this purpose requires user consent in the same way a tracking cookie would. Admittedly, fingerprinting is harder to prove from the user side.
Re:Show HN: I've built my own simple website analytics by Semaphor on Thursday February 03, 2022 @09:03AM (#30192486)
AT least in this case, there’s a blog post pointing out how it violates GDPR ;)