How to ask consent again if I add a cookie in my widget ?

Serge LAKE
Serge LAKE
  • Updated

You've just added a myNewCookie cookie to your site and want the Axeptio widget to handle the user consent request.

To do this, you'll need to add the following code to your Axeptio script:

window._axcb = window._axcb || []; 
window._axcb.push(
function(sdk){
if
(window.axeptioSDK.userPreferencesManager.choices['myNewCookie'] === undefined) {
window.axeptioSDK.requestConsent('nameOfCookie');
}
}
);

Was this article helpful?

2 out of 3 found this helpful