Dynamic Content Blocking
Dynamic Content Blocking allows a visitor to enable content on your page while rejecting consent in general. A typical scenario is blocking of YouTube Videos on a website:
YouTube Video in blocked mode:
The same YouTube Video once the visitor clicked on accept:
Requirements
Dynamic content blocking only works with content on your website that is prepared to be blocked and contains a vendor-ID (data-cmp-vendor="..."
).
IFrame codes
In addition to the above requirements, if the blocked content is an IFrame element, the IFrame needs to have a width an height set and needs to have a minimum size of 300x300 pixels.
Script codes
In addition to the above requirements, if the blocked content is a Script element, you need to add the attribute data-cmp-preview="400x300"
(where 400x300 is the width and height of the preview element).
Automatic preview image
An automatic preview image is shown for YouTube, Vimeo and Google Maps in embed mode (/maps/embed?pb=...).