Do you want all cookies to be already selected in the widget when the visitor clicks "I choose"?
Here's how to do it:
Find the list of technical names of your cookies. You can find a guide here .
Add this code to the Axeptio script:
window.axeptioDefaultChoices = {
//Replace this text with the name of your cookies, e.g. :
facebook_pixel: true,
at_internet: true,
}
For Consent Mode v2 parameters, which you can find in the Consent Mode v2 screen of your widget, the nomenclature is slightly different:
window.axeptioDefaultChoices = {
$$googleConsentMode: { analytics_storage: "granted", ad_storage: "granted", ad_user_data: "granted", ad_personalization: "granted", },}
You can of course combine both to cover all stages of your widget:
Example:
window.axeptioDefaultChoices = {
criteo: true,
kwanko: true,
facebook_pixel: true,
pinterest: true,
traackr: true,
hubspot: true,
$$googleConsentMode: {
analytics_storage: "granted",
ad_storage: "granted",
ad_user_data: "granted",
ad_personalization: "granted",
},
};