The default Axeptio consent duration is 6 months, in accordance with CNIL recommendations. After this period, the widget appears again to re-request consent from the visitor.
How to change the consent duration?
Add the userCookiesDuration property to the axeptioSettings object in your integration script. The value is expressed in days.
window.axeptioSettings = {
clientId: "XXXXXXXXX",
cookiesVersion: "my-config",
userCookiesDuration: 180 // Value in days (180 days = ~6 months)
};
Common values
Desired duration | userCookiesDuration value |
3 months | 90 |
6 months (CNIL default) | 180 |
12 months | 365 |
Technical documentation
See the developer documentation SDK Integration / Options and Advanced Mode for details on all axeptioSettings properties.
]]>
