Skip to main content
All CollectionsHow does Cookie Information work?
Set up a custom expiration time for your consent solution
Set up a custom expiration time for your consent solution

Learn how to set up a custom lifetime for your custom solution.

Updated over a week ago

Add the following script, window.cookieInformationCustomConfig, inside the <head> tag of your website, placing it before the consent popup snippet.

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

Note: Here’s what each parameter means:

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

declineFrequency – Sets the expiration time (in days) for users who decline one or more purposes.

Related articles

Did this answer your question?