Please help me with GDPR and YouTube

What code is necessary to load youtube GDPR/DSGVO compliant?
e.g. with youtube-nocookie or even better sth- like “click-to-load player”

I’m using story theme and the only string which contains youtube is in /static/js/remark.js

Hugo offers a youtube-nocookie shortcode. To enable it please have a look over here:

3 Likes

This is awesome documentation!

Very helpful!

Thank you very much!!

I have created a shortcode that defers loading embed YouTube videos until user agrees to privacy policy. You can find it here: GitHub - rpapallas/hugo_gdpr_embeds: Hugo shortcodes for embedding YouTube videos with a warning/consent form.

1 Like

youtube-nocookie shortcode

This is (probably) not a legal solution.

1 Like