There might be cases where you want to reload the page after someone consented. For instance this might come in handy if you're running a/b tests on your site which can only be executed after consent has been given.
To do this you can use our Javascript Api
The following helper script can be used out of the box.
<script>
window.addEventListener("cf_init", function(){
if(window.CookieFirst && !window.CookieFirst.consent) {
window.addEventListener("cf_consent", function(){
window.location.reload();
});
}
});
</script>