Initiate Cookie Script with the banner hidden
Jānis Elmeris
You can hide the initial banner by
window.addEventListener('CookieScriptLoaded', function() {
CookieScript.instance.hide();
});
(I'm not from the support, just another user.)
C
Christoffer Nicolai Lumbye Bjørnsen
Jānis Elmeris Thanks for chiming in! 🙌 we are building a solution like that. What I have found is that we need to set it up in quite a "hacky" way, in order to make sure the banner does not appear for just a second. I have had to set delayed display (which is definitely not ideal to the user) in order to make sure there's no glimpse of the banner.
On top of that, we are using two banners for the store since it is US based and requires different banner behaviour depending on the state you access from.
It really just ads up to a far too complex and non ideal solution that could be handled quite easily if the option was present in CS by default.
Jānis Elmeris
Christoffer Nicolai Lumbye Bjørnsen An option would certainly be better. For our case, we don't observe any glimpses, so that was not a problem.
See also related feature suggestions:
* https://updates.cookie-script.com/feature-requests/p/banner-display-delay-or-on-first-page-interaction
* https://updates.cookie-script.com/feature-requests/p/hi-could-we-exclude-a-url-from-the-consent-banner-activation-please-we-are-using
* https://updates.cookie-script.com/feature-requests/p/ability-to-exclude-specific-pages-widgets-from-loading-the-script
C
Christoffer Nicolai Lumbye Bjørnsen
Jānis Elmeris Thanks for sharing. That is unfortunately what we observed when first trying out the .hide() with two banners active (a GEO and non GEO as fallback). Will definitely test again once it is up and running.
Unfortunately I don't believe the related suggestions will benefit my request, although they were interesting to read.