Support » Plugin: Complianz | GDPR Cookie Consent » Elementor Youtube background iframe not being blocked

  • Having tried about a dozen other GDPR cookie plugins I’m really loving this one, it’s so much less of a headache to set up and seems to actually do the job. 5 stars for the onboarding process and overall UX as well. 🙂

    Only issue I’ve found so far is that I’m trying to use this on a website with Elementor, the cookie blocker doesn’t block the Youtube video background from loading before cookies are accepted. (The ideal fix would be for Elementor to add support for

    I’ve tried adding to the explicit 3rd party block list but that made no difference.

    Any thoughts?

    [edit] Also, for videos displayed using Elementor’s Video element, and are both blocked. Is it not GDPR compliant to show the nocookies version without cookie consent?

    • This topic was modified 1 month, 2 weeks ago by  maushawk.
Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author RogierLankhorst


    Hi @maushawk,

    Glad to hear you appreciate the plugin!

    The term youtube-noocookies suggests it is GDPR compliant, but it is not, because as soon as a user clicks the video cookies will be placed, without consent. You can read more about this here:

    The video backgrounds which are inserted by Complianz GDPR are not loaded directly from Youtube, but are downloaded to your own site, then served from your site to the user. This ensures that no tracking takes place from Youtube before consent is given.

    Let me know if you have any questions about this!

    Thanks for the quick reply Rogier.

    The issue I’m having is that on a page I built with Elementor, a section uses a Youtube video as a background but Complianz doesn’t block it by default even though videos embedded as content are blocked.

    Here’s an example page I’ve set up so you can see what I mean:

    • This reply was modified 1 month, 2 weeks ago by  maushawk.
    Plugin Author RogierLankhorst


    @maushawk I see the problem.

    Elementor adds the youtube URL as a data attribute to the html. In this stage it’s not an iframe yet, so won’t get picked up by the cookie blocker. After page load, Elementor creates the iframe.

    It is possible to add the Elementor attribute to the block list, but Elementor won’t copy the original URL (which is needed for activation). This prevents activation of the URL after consent is given.

    A method would have to be devised to block the youtube URL, but pass the original one as well so the plugin can fire the iframe on consent. Not sure if this is possible with the Elementor implementation.

    Sounds like I’ll need to modify the site and use something else to display the video then. Thanks for looking into it!

    Plugin Author RogierLankhorst


    @maushawk we’ve added to our list to investigate further, thanks for reporting it. For now, the best solution would be to use a background video which is not rendered after pageload, as Elementor does. We’ll keep you posted if we make any progress with this.

Viewing 5 replies - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.