You don't need a popup if you only use user data for the actual functioning of the site.
If you want to use it for something else, you must ask for consent with two clearly labeled options: accept and deny, where deny is default.
GDPR is General Data Protection Regulation. It doesn't apply only to sites and browsers.
I appreciate your good comments but your frequent disregard for the intended spirit of this place causes more damage than your good comments add goodness, and set an unacceptable example for others.
https://news.ycombinator.com/newsguidelines.html
https://news.ycombinator.com/item?id=31682147 (June 2022)
https://news.ycombinator.com/item?id=31114217 (April 2022)
https://news.ycombinator.com/item?id=29913069 (Jan 2022)
https://news.ycombinator.com/item?id=25320264 (Dec 2020)
https://news.ycombinator.com/item?id=24319283 (Aug 2020)
https://news.ycombinator.com/item?id=21718992 (Dec 2019)
https://news.ycombinator.com/item?id=19814870 (May 2019)
https://news.ycombinator.com/item?id=16547831 (March 2018)
- Accept all
- Mandatory non-tracking cookies only
- Reject all
There should be a standardised browser accessible interface so browsers can automatically choose the one you want on your behalf based on your browser settings.