Skip to main content
All CollectionsFAQ ❓️❓️Widget and Cookies
How to ask consent again if I add a cookie in my widget ?

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

M
Written by Manon Manso
Updated over 2 months ago

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');
}
}
);
Did this answer your question?