News for hackers. Stuff that matters.
Re:Ask HN: What is the least obnoxious way to ask for cookie... by jacobsimon on Friday September 29, 2023 @09:32AM (#37703975)
Can you explain how server side analytics works without cookies?
Re:Ask HN: What is the least obnoxious way to ask for cookie... by simonw on Friday September 29, 2023 @09:39AM (#37704067)
You log the IP address, referrer, user agent and the requested page URL but you don't set a unique cookie to identify the user.

This still gets you plenty of actionable analytics information: where geographically people are located (via GeoIP), what pages are most popular, what platforms (including desktop vs mobile) people are using.

I've been using https://plausible.io for analytics on a bunch of my sites for a couple of years now and I honestly don't miss the extra level of detail I got from cookie-based analytics I've used in the past.

Re:Ask HN: What is the least obnoxious way to ask for cookie... by IanCal on Friday September 29, 2023 @09:43AM (#37704126)
You need to make sure you're happy with how you're using peoples data and that it falls within the legitimate interest justification (https://ico.org.uk/for-organisations/uk-gdpr-guidance-and-re...) IP addresses can be considered personal data.

edit - make sure you've actively made this decision and documented the assessment.

Re:Ask HN: What is the least obnoxious way to ask for cookie... by jacobsimon on Friday September 29, 2023 @07:31PM (#37711327)
Let’s say I want to know the conversion rate of my payment page. I need to know how many unique visitors viewed a page, and how many of them went on to complete a payment. I’m pretty sure this is not possible without a unique identifier. And if you are using (ip address, user agent) as a proxy for such an identifier, is that any better or legal than using a cookie in the first place?
Re:Ask HN: What is the least obnoxious way to ask for cookie... by giladvdn on Friday September 29, 2023 @09:39AM (#37704063)
You can use IP based tracking or something like a query parameter to track within that session
Re:Ask HN: What is the least obnoxious way to ask for cookie... by remram on Friday September 29, 2023 @10:06AM (#37704472)
You're describing a session cookie. Changing the technique slightly doesn't allow you to bypass the law.