Cookiebot plugin blocks youtube video and cookies on homepage, but NOT in blog posts. Why?
I managed to finally set up Cookiebot to block cookies before consent is given, however it seems to only work on my homepage and the page where I list my blog posts ... the moment I open any blog post and that page loads, cookies are set and the featured video of the blog post appears.
The cookie consent banner is still showing, nothing is clicked, and yet while the video on my homepage is black and blocked, the ones in my blog posts work fine.
What do I do?
-
Hi Ivan
Please make sure you have marked your youtube iframe for prior consent as described here: https://support.cookiebot.com/hc/en-us/articles/360003790854-Iframe-cookie-consent-with-YouTube-example
If you do this it should work as desired.
-
I have some questions regarding this reply.
- Where would I go to make changes if I'm using a custom field to place the video and therefore don't have access to the code that could be shown when editing a post and videos embedded within the post?
- Does this solution even apply in a scenario where I'm using a custom field (where I place the URL) in a combination with the Elementor page builder and its video widget?
Thanks!
-
Hi Ivan,
Under the EU GDPR requirements, you must get a consent from your website users before you set any cookies other than those that are strictly necessary for the website to function. You could find more detailed information about prior consent and what does it means here: https://support.cookiebot.com/hc/en-us/articles/360004104033-What-does-prior-consent-mean-and-how-do-I-implement-it-
In order to be able to add 'data-src' and 'data-cookieconsent' attributes to the video you would need to use a embed iframe version, so you can edit the iframe tag and basically this:
<iframe src="https://www.youtube.com/embed/xxxxxxxxxxx" frameborder="0" allowfullscreen></iframe>
can become this:
<iframe data-src="https://www.youtube.com/embed/xxxxxxxxxxx" data-cookieconsent="marketing" frameborder="0" allowfullscreen></iframe>
This requirements is part of the EU GDPR rules since the youtube videos are setting marketing cookies which need to be hold back until the user agrees to them by giving an appropriate consent.
As a conclusion, you should avoid using iframes which codes could not be modified and also using a youtube URL for direct inserting a video on your website because in this way you would not be able on apply prior consent.Regards,
Spas
Please sign in to leave a comment.
Comments
3 comments