- Documentation Center
- Subscribing to Push
- Opt-In Prompts
Change Custom Opt-in Prompt Deny Length
Learn how to change the optin prompt deny length.
If a website visitors denies your custom opt-in prompt, they will by default not be shown the opt-in prompt again for 14 days. However, if you'd like to change that value you can do so by adding the following snippet of code to your site.
<script>
document.addEventListener('click', function(event) {
if (event.target.className == '_aimtellPromptDeny') {
var retryAfterDays = 5;
setTimeout(function() {
_aimtellSetCookie("_aimtellPromptDenied", true, retryAfterDays);
}, 2000);
}
});
</script>