By default, the consent solution has an expiration time of the cookie (CookieInformationConsent) of 12 months for users that gives consent to all purposes, and 14 days if they decline 1 or more purposes.

You have the opportunity to overwrite those values, but editing in the head section of your website. You need to add the below window.cookieInformationCustomConfig script before the consent pop-up snippet

<script type="text/javascript"> 
window.cookieInformationCustomConfig = {
acceptFrequency: 100,
declineFrequency: 20
};
</script>

acceptFrequency defines the expiration time value (in days) for users consenting to all purposes.

declineFrequency defines the expiration time value (in days) for user declining one or more purposes

Example implementation

<!doctype html> 
<html>
<head>
<meta charset="utf-8">
<title>Your website</title>

<!---START Cookie exparation script--->
<script type="text/javascript">
window.cookieInformationCustomConfig = {
acceptFrequency: 100,
declineFrequency: 20
};
</script>
<!---END Cookie exparation script--->


<!---START Cookie exparation script--->
<script id="CookieConsent"
src="https://policy.app.cookieinformation.com/uc.js"
data-culture="EN"
type="text/javascript"></script>
<!---END Cookie exparation script--->

</head>

<body>
</body>
</html>

NOTE that after setting a new expiration time, you might want to push for a new consent for every user.

You can find this feature under the tab: Languages & Settings.

mceclip0.png
Did this answer your question?