Skip to main content

How do I request consent again when I add a cookie to the Widget?

Written by Alexandre Dias Da Silva

You have just added a cookie monNouveauCookie to your site and you want the Axeptio Widget to manage consent requests from your users.

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

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

Did this answer your question?