Ask HN: What is the simplest way to add a GDPR cookie consent to the website?

1 points by candidtim ↗ HN
Having a GDPR compliant cookie consent on a website is a common enough requirement today. I assume there should be a few "out of the box" solutions for it. So, I wonder what is the simplest way to add a GDPR compliant cookie consent to the website and block *third-party* cookies should the users chose so? Are there any open-source solutions for this that rely on Javascript only (no back end involved)?

3 comments

[ 2.9 ms ] story [ 14.6 ms ] thread
The best approach is to not track unauthenticated users at all. Make people consent to GPDR to create an account.
Yes, I certainly do realize this, thank you. But still, the question holds for third-party cookies in a case when they are already used on a website.
Yep go without cookies is the best way!