News for hackers. Stuff that matters.
Re:No Cookie for You by geek_at on Thursday December 17, 2020 @12:25PM (#25457724)
True. Also even if you do track your visitors you can use privacy friendly (and ideally selfhostable) Analytics like Plausible https://plausible.io/ so you won't need the banners either.

Just don't include facebook like buttons or any of these widgets

Re:No Cookie for You by Wowfunhappy on Thursday December 17, 2020 @01:08PM (#25458317)
Does anyone happen to know of a service like this that is free (not self hosted) for non-commercial, low-traffic sites? Or which costs less than ~$10 per year.

I have a basic Github Pages site, and I currently don't know whether anyone is looking at it, beyond the very few who take the time to email me. I don't need (or want) to know anything about my visitors, but it would be nice to know that I'm not simply tossing stuff into the ether.

Re:No Cookie for You by amzans on Thursday December 17, 2020 @06:21PM (#25461820)
> Does anyone happen to know of a service like this that is free (not self hosted) for non-commercial, low-traffic sites?

Panelbear is privacy-friendly, and has a free plan with 5,000 page views per month. Commercial use is allowed.

https://panelbear.com

Full-disclosure: I’m running this service. Feel free to ask me anything :)

Re:No Cookie for You by trungdq88 on Thursday December 17, 2020 @07:11PM (#25462241)
Panelbear is great, I'm using it. I have a small website with < 1000 page views a month and the free plan of planelbear is perfect!

Thank you for providing this service.

Re:No Cookie for You by wussboy on Thursday December 17, 2020 @08:51PM (#25462914)
Exactly what I was looking for. Thank you.
Re:No Cookie for You by bbellini on Thursday December 17, 2020 @01:46PM (#25458787)
I would recommend GoatCounter.

https://www.goatcounter.com/

Re:No Cookie for You by mattowen_uk on Friday December 18, 2020 @04:59AM (#25465569)
And there was me hoping for one of those old-school page-counter.gifs, but with numbers made out of goats...
Re:No Cookie for You by alexchamberlain on Thursday December 17, 2020 @02:15PM (#25459143)
I thought that tracking cookies needed permissions regardless of whether they were first party or 3rd party?
Re:No Cookie for You by cuu508 on Thursday December 17, 2020 @02:52PM (#25459586)
Parent commenter says:

> I currently don't know whether anyone is looking at it

You don't need tracking cookies to track simple metrics like pageview numbers.

Re:No Cookie for You by mattowen_uk on Friday December 18, 2020 @05:03AM (#25465593)
EU law states that you have to disclose you are using ANY cookies that are NOT REQUIRED for the correct functioning of the site (for the end user).

So yes, use of tracking cookies, first or third party, would require a Cookie Consent Banner.

Re:No Cookie for You by oauea on Thursday December 17, 2020 @02:01PM (#25458965)
> not self hosted

you'll need a cookie banner then

Re:No Cookie for You by ghego1 on Thursday December 17, 2020 @02:39PM (#25459439)
Not necessarily. Only if personal data is collected by the third party.
Re:No Cookie for You by cameronh90 on Thursday December 17, 2020 @09:04PM (#25462979)
I thought that with the recent changes to PECR they that clarified any non-essential cookie-like technology needs permission, irrespective of whether it's first party or pseudonymous. And additionally that analytics does not count as strictly necessary.

That seems to be the advice of the UK ICO: https://ico.org.uk/for-organisations/guide-to-pecr/cookies-a...

Re:No Cookie for You by M2Ys4U on Friday December 18, 2020 @05:48AM (#25465861)
You need to notify users, and give them an opt-out, if the cookies are not strictly necessary for the provision of the service.

Analytics cookies are not strictly necessary.

Re:No Cookie for You by Wowfunhappy on Friday December 18, 2020 @08:06AM (#25466651)
All I want to see are pageviews. That shouldn’t require cookies/fingerprints.
Re:No Cookie for You by oauea on Saturday December 19, 2020 @01:53PM (#25480015)
It shouldn't, but nowadays it always does.

Alternatively your pagecount will shoot to the millions if you have someone holding f5.

Re:No Cookie for You by ljm on Thursday December 17, 2020 @02:53PM (#25459593)
To be fair, most of them probably do. It's not like the introduction of GDPR in Europe 2 years ago suddenly made all of the shit a marketing dept shoves into Google Tag Manager completely legit and above board.

These third parties will take what you give them and _also_ take what they can get from your browser if you're embedding their script. Are you going to proxy those scripts as well to stop them getting the user's IP address and then geolocating it to grab even more info?

The cookie warning banner is bullshit only in the sense that it achieves nothing. Accept it or deny it, it won't change a thing. Same with the tracking consent popups: despite the law saying they should be opt-in by default, they're still treated as opt-out by default, meaning that all of these sites _still_ collect your data because you're blacklisting individual sites from tracking, as opposed to whitelisting them. You need to set a cookie to say that you don't want tracking and not thousands of cookies to say you do want it?

That's being tracked... it's all wrong. Literally everything you offer as information, or don't offer, is another node in their graph.

Re:No Cookie for You by nullsense on Thursday December 17, 2020 @03:53PM (#25460268)
It really shits me that a lot of them you can't even deny it. They just have a button like "I understand".

WTF is that...

Re:No Cookie for You by ryukafalz on Thursday December 17, 2020 @06:45PM (#25462016)
Or they treat continuing to use the site as consent. Some of them are really passive-aggressive about it too. I've seen cookie banners with wording like "We use cookies, because duh, who doesn't in 2020? Click here or keep using the site to accept."

Completely at odds with the whole "informed consent" thing.

Re:No Cookie for You by ljm on Friday December 18, 2020 @11:04AM (#25468366)
And then they wonder why we use things like uBlock, which are pretty much the only tools we can rely on to genuinely revoke consent. Or revoke as much of it as possible.
Re:No Cookie for You by ignoramous on Thursday December 17, 2020 @02:29PM (#25459336)
Re:No Cookie for You by blaisio on Thursday December 17, 2020 @02:38PM (#25459432)
I have nothing directly against cloudflare but I think it would be better to try to support one of the smaller analytics companies if possible. They are the ones who made products that got big companies like cloudflare interested in the space.
Re:No Cookie for You by mixmastamyk on Thursday December 17, 2020 @03:41PM (#25460132)
An analytics service designed to add value to another product and does not need to be profitable in itself sounds like the best kind to me.
Re:No Cookie for You by fs111 on Thursday December 17, 2020 @03:37PM (#25460072)
"We are democratizing web-analytics" wow, really? Well the people have voted and they want no analytics at all. Thank you very much.
Re:No Cookie for You by Wowfunhappy on Thursday December 17, 2020 @02:41PM (#25459463)
Oh, this is perfect, thank you!
Re:No Cookie for You by krlx on Thursday December 17, 2020 @05:05PM (#25461129)
I developed for myself krlx.fr/feu-analytics/ for exactly the same scenario.

It is self-hosted but on firebase and taking advantage of the free tier. Of course there is no personal data collected at any point.

There are still improvement to do, but as it works perfectly for me I have not be able to gather enough motivation to do that.

Re:No Cookie for You by dfreire on Thursday December 17, 2020 @01:22PM (#25458485)
Re:No Cookie for You by MarekKnapek on Thursday December 17, 2020 @01:24PM (#25458506)
Few years back I created some HelloWorld application on Google's AppEngine (requires Java, Python or Go) and was positively surprised about its statistics on theirs dashboard.
Re:No Cookie for You by type0 on Thursday December 17, 2020 @02:23PM (#25459261)
I was also surprised but the number of different dumb bots that had tried to brute-force our app engine site on /wp-login.php

and it wasn't even running on wordpress

Re:No Cookie for You by neilparikh on Thursday December 17, 2020 @03:55PM (#25460288)
I get requests to /wp-login.php (and the like) on my simple Haskell web app hosted on my university's servers. They're quite persistent and I'm not even sure how found the URL to my app in the first place (the format is something like universityname.com/~userid/projectname, and I haven't linked it anywhere).
Re:No Cookie for You by camkego on Thursday December 17, 2020 @03:18PM (#25459845)
https://simpleanalytics.com/ Says this on their homepage: We don't use cookies or collect any personal data. So no cookie banners, GDPR, CCPA, or PECR to worry about.

Seems like a cool company/project to me.

But, it's not free :( $19/mo Still thought it's worth pointing out.

Re:No Cookie for You by hydroxideOH- on Thursday December 17, 2020 @04:14PM (#25460510)
Netlify Analytics is $9/mo
Re:No Cookie for You by Wowfunhappy on Thursday December 17, 2020 @08:58PM (#25462945)
My approximate budget was $10 per year, not month! :)
Re:No Cookie for You by hydroxideOH- on Sunday December 20, 2020 @07:59PM (#25491082)
Fair enough! Probably not going to happen without self hosting.
Re:No Cookie for You by elliekelly on Thursday December 17, 2020 @03:25PM (#25459917)
Make the visitor counter great again!
Re:No Cookie for You by tuna-piano on Thursday December 17, 2020 @12:38PM (#25457889)
Looked for a few minutes and couldn't find the full answer. How does Plausible calculate unique users if it can't store some type of identifier on the page?

I see this... "We do not generate any persistent identifiers either. We generate a random string of letters and numbers that is used to calculate unique visitors on a website and we reset this string once per day."

But where is that ID stored?

Re:No Cookie for You by marvinblum on Thursday December 17, 2020 @12:55PM (#25458136)
Probably like we do it for pirsch.io, by calculating a hashed fingerprint and throwing away the individual page hits once per day: https://github.com/pirsch-analytics/pirsch
Re:No Cookie for You by YetAnotherNick on Thursday December 17, 2020 @03:46PM (#25460182)
What's the privacy benefit over storing a tracking cookie with expiry of a day? If at all, random cookie seems better for privacy as in your case if someone really wants it, they can recover the IP if the user agent is not rare by searching for all IP(4 billion IPv4), User-Agent(100 for popular browsers), the date(1 day as date is stored separately), and a salt(known to server), easily within reach of anyone.
Re:No Cookie for You by marvinblum on Thursday December 17, 2020 @06:22PM (#25461833)
It doesn't use cookies. Fingerprints are calculated on each page hit.

The salt must be treated like a password to make sure it's not that easy to brute force it and no one should get access to your database of course ;) It's not the strongest anonymization, but good enough considering that the hits will be deleted once a day by batch processing.

Re:No Cookie for You by tuna-piano on Thursday December 17, 2020 @01:18PM (#25458441)
Seems like a good method and actually more accurate than they do... seems like they just do a hash of IP.
Re:No Cookie for You by marvinblum on Thursday December 17, 2020 @01:30PM (#25458573)
Hmm I think I've read something about it elsewhere and they also use more parameters than just the IP. Not sure.
Re:No Cookie for You by abdullahkhalids on Thursday December 17, 2020 @12:58PM (#25458177)
> How can Plausible Analytics count unique visitors without cookies?

> So if you don’t use cookies how do you count the number of website visitors and report on metrics such as the number of unique users?

> Instead of tagging users with cookies, we count the number of unique IP addresses that accessed your website. Counting IP addresses is an old-school method that was used before the modern age of JavaScript snippets and tracking cookies.

> Since IP addresses are considered personal data under GDPR, we anonymize them using a one-way cryptographic hash function. This generates a random string of letters and numbers that is used to calculate unique visitor numbers for the day. Old salts are deleted to avoid the possibility of linking visitor information from one day to the next. We never store IP addresses in our database or logs.

...

> In our testing, using IP addresses to count visitors is remarkably accurate when compared to using a cookie. Total unique visitor counts were within 10% error range with IP-based counting usually showing lower numbers.

From here: https://plausible.io/blog/google-analytics-cookies#can-you-g...

Re:No Cookie for You by jedberg on Thursday December 17, 2020 @01:45PM (#25458772)
A one way hash of an IPv4 address is no more private than the address itself. If you know the has algorithm, you can build a rainbow table of all the hashes in under a second. Even with a random salt it doesn't take long to build a rainbow table with all possible salts.
Re:No Cookie for You by wpietri on Thursday December 17, 2020 @02:07PM (#25459056)
Doesn't that depend on the size of the salt?
Re:No Cookie for You by jedberg on Thursday December 17, 2020 @02:41PM (#25459465)
To an extent, but there are easy ways to cut the search space. For example, you could make a unique request with garbage on it from a known IP every day, and then all you have to do is build a rainbow table for that one IP to find out what the salt is for each day, and then you can fully reconstruct the logs.
Re:No Cookie for You by mattlondon on Thursday December 17, 2020 @03:38PM (#25460096)
If the salt is a random 64bit number (for example) then "finding out" the salt is not trivial.
Re:No Cookie for You by wpietri on Thursday December 17, 2020 @05:25PM (#25461325)
And unless I'm missing something, it seems easy to add plenty of bits to the salt until it's no longer practical to reverse.
Re:No Cookie for You by YetAnotherNick on Thursday December 17, 2020 @03:49PM (#25460223)
@mattlondon: The salt is known to plausible, that is the only way someone can hash it.
Re:No Cookie for You by mh- on Thursday December 17, 2020 @01:05PM (#25458287)
This would be woefully inaccurate for websites with a large amount of mobile traffic (because of CGNAT), or university traffic, or etc.
Re:No Cookie for You by icefo on Thursday December 17, 2020 @02:43PM (#25459490)
Don't universities have a huge number of IPs because they were the first to use internet ?

Mine gives one public ipv4 per device that access the internet on the network (with some exceptions). Strategies varies but if you have a lot of addresses why not use them.

Re:No Cookie for You by jannes on Friday December 18, 2020 @04:07AM (#25465240)
That might be true for some US universities, but it's definitely not true for the rest of the world.
Re:No Cookie for You by BlueTemplar on Thursday December 17, 2020 @03:58PM (#25460324)
According to Google, IPv6 traffic is up to 30% these days.
Re:No Cookie for You by markosaric on Thursday December 17, 2020 @01:35PM (#25458645)
you can see the exact method on our data policy: https://plausible.io/data-policy
Re:No Cookie for You by colejohnson66 on Thursday December 17, 2020 @12:49PM (#25458049)
I’m guessing a cookie with an expiration of 24 hours, but I could be wrong
Re:No Cookie for You by marvinblum on Thursday December 17, 2020 @12:28PM (#25457772)
I would like to add https://pirsch.io/ :)
Re:No Cookie for You by bobm_kite9 on Thursday December 17, 2020 @05:32PM (#25461384)
This looks really nice, but what’s to stop it getting blocked like all the other trackers once apple/uBlock/etc. add it to their database?
Re:No Cookie for You by marvinblum on Thursday December 17, 2020 @06:19PM (#25461806)
You cannot stop that. You can get around it for a while by serving the script yourself and setting a CNAME record for your domain to point to us. That's why we recommend integrating Pirsch into your backend so that it can't be blocked: https://docs.pirsch.io/get-started/backend-integration/
Re:No Cookie for You by madjam002 on Thursday December 17, 2020 @02:52PM (#25459578)
IANAL, but my understanding is that you might still need a consent box even if you use Plausible.

I've only skimmed over the docs, but it looks like they derive a unique identifier from the IP address and user agent which changes every day. IP addresses still count as Personally Identifiable Information under GDPR, so deriving an identifier from this for a use case such as analytics would likely require consent. This is speculation though so I'd be interested to hear what others think.

If it is critical to the operation of the website (functionality like storing saved items in a shopping cart, or security), then you wouldn't need consent.

In reality though, Plausible looks great and using it is a huge improvement over Google Analytics for privacy.

Re:No Cookie for You by M2Ys4U on Friday December 18, 2020 @05:53AM (#25465884)
>IP addresses still count as Personally Identifiable Information under GDPR

The GDPR does not count anything as "Personally Identifiable Information", which isn't surprising as that's a US legal term.

What you mean is "Personal Data", and yes IP addresses are considered personal data under the GDPR.

>so deriving an identifier from this for a use case such as analytics would likely require consent.

Consent isn't the only legal basis for processing personal data, though, there are 5 others available.

Re:No Cookie for You by feanaro on Thursday December 17, 2020 @03:11PM (#25459765)
> IP addresses still count as Personally Identifiable Information under GDPR, so deriving an identifier from this for a use case such as analytics would likely require consent.

Only if there is a bijection between the identifier and the IP address, so that you could re-derive the IP address from the identifier. Otherwise, I do not see how the identifier itself would count as PII.

This way of divorcing data from PII by replacing it with pseudonymous identifiers which cannot be linked back is a relatively standard technique for this.

Re:No Cookie for You by slowwriter on Thursday December 17, 2020 @03:08PM (#25459734)
My understanding is that this kind of active consent that we see as popups everywhere on the web nowadays applies to cookies only. So I would assume that if you can track user activity without a cookie you wouldn't need it. It should probably be stated in the privacy policy though.

I'm not an expert in this even though I'm a webdev from the EU, so I'm also interested in other people's input.

Re:No Cookie for You by feanaro on Thursday December 17, 2020 @03:12PM (#25459785)
GDPR doesn't care if you're accomplishing the tracking with a cookie or using a different mechanism. You're not allowed to do it either way, unless the user has consented.
Re:No Cookie for You by slowwriter on Thursday December 17, 2020 @05:39PM (#25461459)
Since I’m being downvoted: The EU directive that specifically obligates websites to collect informed and active consent for the use of cookies is not GDPR, it’s the ePrivacy Directive.

I don’t believe that one should automatically conclude that just because a cookie requires active consent, any kind of ‘logging’ (local and temporary storage of IPs in order to track website usage) requires active consent. Those are two fundamentally different things.

I’m not saying you should hide the fact that you’re doing it. I’m saying it should be stated in the privacy policy.

Also remember that there is a big difference between ‘personally identifiable information’ and ‘sensitive information’ which are clearly separated concepts in GDPR. Not all collection of data requires active consent.

I did read my EU state’s guideline on GDPR in full, but I’m not an expert. I would suggest reading up on the ePrivacy Directive though, which is still in effect.

Re:No Cookie for You by madjam002 on Thursday December 17, 2020 @07:01PM (#25462170)
Not sure why you're being downvoted, yeah cookies are handled by legislation other than GDPR (ePrivacy as you mentioned).

However regardless of whether you're using cookies, I still think you need to collect explicit consent as GDPR requires a lawful basis of processing, and I don't see how analytics would fall under any of the other lawful basis's other than consent (_maybe_ legitimate interests?)

If you are using cookies, then my understanding is you need to collect consent where necessary under _both_ ePrivacy and GDPR.

Re:No Cookie for You by louhike on Thursday December 17, 2020 @12:29PM (#25457788)
Another solution is to do all the tracking in the backend. I'm not saying it's a good solution.
Re:No Cookie for You by coldpie on Thursday December 17, 2020 @12:54PM (#25458124)
Or, don't do any tracking. I'm convinced that 99% of all analytics is discarded without ever being reviewed, analyzed, or acted upon.
Re:No Cookie for You by chipotle_coyote on Thursday December 17, 2020 @01:07PM (#25458308)
This is probably correct.

On my personal web sites I'm using GoAccess, which is basically a new spin on a very old idea -- just analyzing the server's web logs.

https://goaccess.io

That's not as accurate as throwing around cookies and JavaScript, but I rarely check the log pages anyway, and when I do I'm less interested in raw numbers than I am in the relative performance of various pages. (And that's mostly just idle curiosity, e.g., are there some old articles that keep getting steady traffic from somewhere?)

Re:No Cookie for You by scrollaway on Thursday December 17, 2020 @12:58PM (#25458160)
Much like logging though, it's the 1 percent that isn't discarded that's important.

I agree with you by the way, but ...

Re:No Cookie for You by shuckles on Thursday December 17, 2020 @12:32PM (#25457815)
Wouldn't that still violate the law but just be harder to detect from the client? If so, I don't think GitHub (i.e. Microsoft) would find it a compelling approach.
Re:No Cookie for You by owaislone on Thursday December 17, 2020 @12:36PM (#25457857)
The backend already stored all the information about the users. Why would it violate any laws if it stored a bit more or a bit less info? Things can get tricky if Github exported the collected data to third party for analytics.
Re:No Cookie for You by MaurizioPz on Thursday December 17, 2020 @12:43PM (#25457956)
part of the GDPR law is the intent of the information you are storing, not the method. Cookie is just a technology. If you track your users using a DB it still applies and you need consent if the tracking is not necessary
Re:No Cookie for You by drcongo on Thursday December 17, 2020 @12:45PM (#25458000)
I can't reply to the reply to this for some reason, but it's worth noting that GDPR and the cookie law are different, though related.
Re:No Cookie for You by OJFord on Thursday December 17, 2020 @12:47PM (#25458018)
For very recent comments, click on the timestamp to get the single comment view and be able to reply.

(I had to do it here too.)

Re:No Cookie for You by edoceo on Thursday December 17, 2020 @01:01PM (#25458223)
You folks might just be time limited on the reply - HN puts some brakes on "too fast" commenting
Re:No Cookie for You by OJFord on Thursday December 17, 2020 @01:22PM (#25458477)
See my profile if you want, that was my first comment in hours. I think it is that sort of brake, (prevents heated discussions veing quite so quick-fire) but it's not on the user, it's on everyone for <'5 [or something] minutes ago' comments; drcongo's happened to be '0 minutes ago' when I loaded the page, so I clicked on it to reply.
Re:No Cookie for You by drcongo on Thursday December 17, 2020 @12:59PM (#25458191)
Oh! Useful tip, thanks!
Re:No Cookie for You by munchbunny on Thursday December 17, 2020 @12:45PM (#25457999)
It would still be a violation because of how you're using it. The law isn't purely about what data you track, it's primarily about what you do with the data.
Re:No Cookie for You by jarofgreen on Thursday December 17, 2020 @12:44PM (#25457984)
IANAL!!!! But I think, yes, there are still implications. GDPR makes no distinction about back end and front end AFAIK, it's just about what data you collect and why/purpose.

But note there are other reasons you can have for collecting data other than consent (something often overlooked) - for example I would guess GitHub would log IP addresses in the back end for a limited time for spam fighting reasons, and I think that would be fine.

Re:No Cookie for You by asimops on Thursday December 17, 2020 @12:52PM (#25458095)
To my understanding of the GDPR, as soon as you track any identifier that makes those data non-anonymous you still need consent for that. It is not about the cookies per se.
Re:No Cookie for You by M2Ys4U on Friday December 18, 2020 @06:06AM (#25465949)
There are six legal bases for processing personal data, consent is only one of those.
Re:No Cookie for You by BlueTemplar on Thursday December 17, 2020 @04:02PM (#25460372)
Would that mean that you need consent for storing IP addresses in logs?
Re:No Cookie for You by kybernetikos on Thursday December 17, 2020 @06:38PM (#25461953)
It depends on what you use them for, but I think you would need it documented that you do it and why.