You can use the cookies setting to disable cookie use until your visitor provides explicit consent as follows:
- Add the Web Widget cookies setting API to your web page, below your Web Widget snippet, and set it to “false.” This disables cookie use.
- When consent is granted, typically when a user clicks “accept” on a cookie banner (see example below), call the cookies setting API again and set it to “true.” This will enable cookie use.
- If you don’t want the widget to load at all until cookies are enabled, use the hide API to hide the widget on initial page load, and then when you call the cookies setting API to enable cookies, also call the show API to make it appear.
You can see the reference code in our developer documentation here.
What does cookie law have to do with the Web Widget?
Do I have to use the cookies setting API?
We recommend consulting your legal representative to interpret cookie law and GDPR according to your business needs and geographic footprint.
Do I need to hide the widget until cookies are enabled, or do you do that automatically?
Once cookies are enabled, how long do they last?
Once cookies are enabled, they will remain in use for that visitor on that specific browser and device indefinitely, unless you set it back to false with another cookies setting API call.