iframe cookie consent youtube example
In your article "iframe cookie consent youtube example":
https://support.cookiebot.com/hc/en-us/articles/360003790854-Iframe-cookie-consent-with-YouTube-example
you suggest chaning the "src" attribute to "data-src" but this seems to break the loading of our iframe. Can you clarify?
<iframe data-src="https://www.xxxxxxxxxxx.com" data-cookieconsent="ignore" frameborder="0" allowfullscreen></iframe>
-
Official comment
Hi Dave G
data-src essentially disables the iframe and should only be used when the value of data-cookieconsent is "preferences", "statistics", or "marketing". If you set the value to ignore, you should just use src instead of data-src.
-
If you move the src to a data-src attribute in the iframe, YouTube won't get loaded, and no cookies are placed. Then, on consent website (for example, ...
0 -
Hold back cookies until the website visitor has consented, Cookiebot will postpone loading the video until the visitor has consented.
0
Please sign in to leave a comment.
Comments
3 comments