Set up a custom expiration time for your consent solution

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

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

Was this article helpful?