Cookiebot and Wistia Video in popover lightbox
Hi, we have embedded Wistia videos in our Wordpress site following Wistia's guide on Popover Embeds (https://wistia.com/support/embed-and-share/video-on-your-website)
Effectively creating the following script:
<script src="//fast.wistia.com/embed/medias/pukozq6xf0.jsonp" async></script>
<script src="//fast.wistia.com/assets/external/E-v1.js" async></script>
<span class="wistia_embed wistia_async_pukozq6xf0 popover=true popoverAnimateThumbnail=true" style="display:inline-block;height:169px;width:300px">Show Video</span>
However, our Wistia videos are actually shown using Privacy Mode and are already fully GDPR complian (https://wistia.com/support/account-and-billing/privacy-and-data-protection) so we are trying to implement prior consent on our embedded code.
Following your guide, we have changed the code to add type="text/plain" data-cookieconsent="ignore" to the script blocks. I.e.:
<script type="text/plain" data-cookieconsent="ignore" src="//fast.wistia.com/embed/medias/pukozq6xf0.jsonp" async></script>
<script type="text/plain" data-cookieconsent="ignore" src="//fast.wistia.com/assets/external/E-v1.js" async></script>
<span class="wistia_embed wistia_async_pukozq6xf0 popover=true popoverAnimateThumbnail=true" style="display:inline-block;height:169px;width:300px">Show Video</span>
However, the popup still fails.
In reality, Wistia sets a LocalStorage Variable (which isn't officially a cookie as I understand it?) and while I have set this a "necessary" cookie following a scan. It still remains blocked by Cookiebot until a user clicks accept.
Ideally I would like clarification on:
- Do you have to run a manual scan (can take up to 24hrs just to do one!) simply to update the cookiebot config file changing the consent level of a cookie?
- I am I correct in thinking that all cookies marked as "necessary" should in fact be set BEFORE any consent
- Should we be marking a cookie setting script as "ignore" or "necessary" with respect to prior consent if such cookies do not set any personal info and comply with GDPR
Also, displaying a message in a div before consent (as suggested here: https://support.cookiebot.com/hc/en-us/articles/360003790854-Iframe-cookie-consent-with-YouTube-example) is not really suitable for our needs.
We would somehow need our video link to check for consent onClick and display a message if the correct consent level does not exist. Does cookiebot expose anything we can use in this way? Perhaps a small piece of javascript or something?
Open to any suggestions/advice. Thanks in advance.
-
Official comment
Hi Dave G,
When you use type="text/plain" you effectively disable the script. The data-cookieconsent attribute is what normally allows the Cookiebot script to reenable it.
Therefore, when you use data-cookieconsent="ignore", you need to ensure that the type is set to "text/javascript".Regarding your questions:
- A scan is required to update the config file, however when you manually mark up elements this is respected by the Cookiebot script immediately, and will take precedence over the settings in the config file.
- Cookies in the necessary category will always be set, prior and regardless of consent.
- The data-cookieconsent attribute has 4 accepted values: "ignore", "preferences", "statistics", and "marketing. "necessary" isn't a valid value and won't be recognized. There is also no need to mark up scripts as such, since they shouldn't be blocked anyway. The "ignore" value can be assigned to override the auto blocker in cases where a script is being blocked when it shouldn't be.
Be aware though that this can break dependencies between scripts, set cookies prior consent and have other unexpected results, and shouldn't be used arbitrarily.
You can indeed create a placeholder which is displayed prior consent. This is described here:
Hide and show content based on the visitor's consent – Cookiebot Support
Please sign in to leave a comment.
Comments
1 comment