• Resolved cosbe

    (@becosfx)


    Hi! I am in a conundrum with the functionality of the banner buttons. Although I disabled the YouTube service (regardless, it does the same even if it is enabled!), the light-box iframe behaves the opposite as expected:

    1. page loads and the Complianz banner is shown.
    2. without choosing any options yet, click on the Video Demo link on the page to load the video in the light-box: Video plays OK.
    3. Click Accept on the banner, then click Video Demo link: Video no longer loading and “An error occurred. Please try again later.” error displayed if the red play button is pressed.
    4. Manage consent, select Deny: the page refreshes and when Video Demo calls the light-box, the VIDEO plays OK!

    Shouldn’t be exactly the other way around? I struggled an entire day to get to the bottom of this but I couldn’t solve this. Lightspeed cache is used, but even if deactivated, the behavior is the same. Must be conflicted elsewhere, but cannot find where. I provided the link for a testing page.

    Any help would be much appreciated.

    Thank you!

    The page I need help with: [log in to see the link]

Viewing 15 replies - 1 through 15 (of 19 total)
  • Plugin Contributor jarnovos

    (@jarnovos)

    Hi @becosfx,

    While I can’t see the described behavior at the moment, likely because the YouTube integration is currently disabled:

    Is this a “regular” YouTube embed that is placed with an embed code copied from YouTube, or are you using another plugin to place these video’s on the page?

    The latter may require a separate integration, as the default YouTube integration under Complianz > Integrations > Services might not be able to handle the video’s out-of-the-box, when embedded by another plugin. If you provide an URL to that plugin, we can also have a look.

    Kind regards, Jarno

    Thread Starter cosbe

    (@becosfx)

    Hi!

    Thank you for your reply.

    There is no plugin that loads the youtube in the light-box, it is an integrated feature of the WP theme. I don’t exactly understand why you say you can’t see the behavior right now.

    An even simpler way to check:

    1. Load the page in an incognito window. Accept on the Complianz banner. Click Video Demo link in the page. The video doesn’t load, the error is displayed after the red Play button is clicked.
    2. Go back to the cookie banner. Press Decline, then angain click Video Demo link in the page. The video loads immediately and can be played.

    Exactly the other way around!

    Plugin Contributor jarnovos

    (@jarnovos)

    Hi @becosfx,

    As the YouTube integration is disabled, Complianz isn’t currently blocking the video. So, on my end the behavior remains the same when either accepting/not accepting the Cookie Banner.

    We can check how it behaves with the YouTube integration activated, although I’d expect that as it concerns a theme implementation/element; it might require a separate integration.

    Kind regards, Jarno

    Thread Starter cosbe

    (@becosfx)

    IT IS BLOCKING THE VIDEO AFTER YOU PRESS ACCEPT! Play the video after you press Accept. Does it play? NO! Then press Decline, and play the video. Does it play? YES! Why?!? Decline should block the video loading, not Accept. Or did I understand wrongly the purpose of this plugin?

    And please explain what you mean by “As the YouTube integration is disabled”?? It is NOT, since you can play the video as long as you don’t press complianz’s Accept. Correct me if I’m wrong.

    • This reply was modified 1 year, 7 months ago by cosbe.
    • This reply was modified 1 year, 7 months ago by cosbe.
    Plugin Contributor jarnovos

    (@jarnovos)

    Hi @becosfx,

    What I’m trying to say is that the video might not load due to another reason than that Complianz is blocking it, the behavior on my end remains the exact same when clicking either Accept or Deny.

    You can see a short video of this behavior on the Google Drive link below, whereby you will see that the behavior remains the same between using Accept/Deny.

    https://drive.google.com/file/d/105HDTvFlvac0K7CIpVM7fmkBpLa6MmCq/view?usp=sharing

    Disabling the YouTube integration basically means that Complianz will no longer affect any YouTube embeds before obtaining consent, i.e. it doesn’t block the video when the integration is disabled.

    So yes, the purpose of the plugin includes blocking embedded YouTube videos, and disabling the YouTube integration in Complianz means that you’re indicating to the plugin that it should not do so.

    Kind regards, Jarno

    Thread Starter cosbe

    (@becosfx)

    From the fists post I explained that I am referring to the behavior triggered by the “Video Demo” link on the page, which is situated on the right, next to the fixed image. Clicking that link would load the video in a light-box iframe. Instead, you are checking the video down the page, which is integrated differently. I am NOT referring to that video you clicked.

    Again: click the Demo Video link. Is right above the green button “Email me when available”. No need to scroll down the page, ok?

    I hoped I was clear from the very beginning to what loading method I was referring to…

    • This reply was modified 1 year, 7 months ago by cosbe.
    Plugin Contributor jarnovos

    (@jarnovos)

    Hi @becosfx,

    Right, it seems there are two “Video Demo” links on the page. On the link you mentioned, a Google Analytics parameter is appended to the YouTube URL, which could break the video as the URL is no longer what YouTube expects.

    I don’t immediately recognize this as behavior from the Complianz plugin though, so I would suspect that there might be another active script or plugin on your website that results in this behavior occurring.

    Kind regards, Jarno

    Thread Starter cosbe

    (@becosfx)

    But isn’t the complianz which prevents the video from loading when Accept is pressed? And why it is still interferes if the Youtube service is (momentarily) switch off in complianz?

    Most importantly, can this be solved for the complianz to behave or, at least ignore what it can’t control properly?

    Plugin Contributor jarnovos

    (@jarnovos)

    Hi @becosfx,

    I would suspect that this behavior is the result of another script on your website, and might be unrelated to Complianz. At least, I have yet to come across any cases where Complianz would add a Google Analytics parameter to YouTube URLs.

    It seems to occur as soon as Complianz unblocks the Google Analytics scripts on your website, and that would explain why the behavior only starts to occur when clicking Accept in the Complianz banner (that’s when Complianz unblocks Analytics).

    You could try running a test with the Complianz plugin disabled on the website, to check if it still occurs in that case. If it does, you’ll know that the plugin itself does not cause the behavior, and you can go from there.

    Kind regards, Jarno

    • This reply was modified 1 year, 7 months ago by jarnovos.
    Thread Starter cosbe

    (@becosfx)

    As a side note, even with the YouTube integration service turned ON, the video down the page loads and plays, like you noticed, regardless of Accept/Deny option. So that’s another problem.

    Thread Starter cosbe

    (@becosfx)

    I deactivated complianz and cleared all lightspeed cache. The video runs ok in that iframe. I will leave it deactivated, if you want to check on your side.

    The analytics is handled entirely by Google Site Kit plugin, with GA4 activated.

    Plugin Contributor jarnovos

    (@jarnovos)

    Hi @becosfx,

    I visited the site when Complianz was disabled, and the described ‘broken video’ behavior still occurs; which seems to confirm the suspicion that Complianz itself is unrelated (you can see the video here).

    As for your side note: indeed, the default YouTube integration in Complianz might not support your theme’s YouTube implementation yet.

    Feel free to submit a Feature Request for an integration with the YouTube implementation of your theme here (https://complianz.io/feature-requests/), so that it can be considered for a future release of the Complianz plugin.

    We’re also always open to review contributions from the open source community on the official Complianz GitHub: https://github.com/Really-Simple-Plugins/complianz-gdpr

    Kind regards, Jarno

    Thread Starter cosbe

    (@becosfx)

    I was checking with the latest Edge browser, and it works there. But indeed it doesn’t work in Chrome. I am puzzled… I also deactivated Site Kit, but the same happens…

    Plugin Contributor Aert Hulsebos

    (@aahulsebos)

    Hi @becosfx,

    There’s a snippet in a UA tag in the source with;

    'linker':{
    'domains': [],
    'allow_incoming': false,
    },

    This is set on statistics only, which would explain the discrepancy between accept/deny. Maybe the [] after domains means ‘everything’ instead of ‘nothing’ and you would need to explicitly add domains to this array.

    regards Aert

    Thread Starter cosbe

    (@becosfx)

    Hmm… I don’t think I have the knowledge to go that deep into the setup and administration at code level… I mostly use the plugins from what interfaces they have and manage content at embedded text editor level.

    What I noticed while deactivating and reactivating all plugins is that analytics and tagmanager scripts remain in the page source no matter what… I cannot figure out how they survive there if Site Kit is erased and no other plugin or theme inserts the code.

    I am afraid I am stuck with a bug now.

    Thank you for your prompt responses and support. I like complianz and I wish I could make it work and purchase the site license.

Viewing 15 replies - 1 through 15 (of 19 total)
  • The topic ‘Youtube light-box iframe blocked on Accept and functional on… Deny!’ is closed to new replies.