How to embed a Youtube iframe with cookie consent control?

Shaun

I've just discovered that Youtube iframes store cookies on users browsers when they play a video and that for GDPR I need to add some form of consent so visitors can decline.

How do I load Youtube videos without cookies? I've read that changing https://www.youtube.com to https://www.youtube-nocookie.com does the trick but this hasn't done anything for me...

Eccentropy

We're going through this very exercise. The only difference between using youtube.com and youtube-nocookie.com (aka privacy-enhanced mode) for your embeds is that youtube-nocookie.com waits until the user starts playing the video before dropping the cookie onto the user's browser.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related