Iframe blocking
May 19, 2026
For iframes (e.g., YouTube embeds), use data-consentbit-src instead of src:
<iframe
data-consentbit-src="https://www.youtube.com/embed/VIDEO_ID"
data-consentbit-category="marketing"
width="560" height="315">
</iframe>
ConsentBit shows a placeholder until the visitor consents, then loads the iframe.
Frequently asked questions
No items found.
.png)
.png)




