we want to offer our visitors the possibility to decline cookie use. However, YouTube for example places cookies automatically if you open a page with an embedded video.
Youtube offers a nocookie-embed options, which can be used like this:
<iframe width="560" height="315" src="https://www.youtube-nocookie.com/embed/J---aiyznGQ?rel=0" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen></iframe>
However, this comes with several problems:
- After clicking on play, the cookies will still be set (which should not happen if consent was declined)
- “https://www.youtube-nocookie.com/embed/J---aiyznGQ” does not get accepted as a link url in Webflows video element
- It also doesn’t work in Rich Body Elements
I was thinking about writing a script that removes the video, until consent is given. But I guess that would not work since cookies are placed by YT immediately. Can anyone think of a smart solution?