django-cookie-consent
django-cookie-consent copied to clipboard
Page not reloaded or script not triggered after cookies accept
Hi there, we are having an issue with triggering the sciprts after cookie consent was accepted.
in the tamplete we have a code
{% if request|cookie_group_accepted:"optional" %}
<script>
dataLayer.push({
event: 'cookies_consent',
});
</script>
{% endif %}
that should trigger the event after the cookies are confirmed, but after confirming nothing is happening, the script is not triggered nor the page is reloaded... The script is triggered after manually reloading the page.
please advice...
thanks