Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
<script id="Cookiebot" src="" type="text/javascript"></script>
var cookiebotCurrentlyConsenting = false;
function CookiebotCallback_OnLoad() {
if (!Cookiebot.consented && Cookiebot.isOutsideEU) {
// Set the variable to true so we can show the user the notice just this once
cookiebotCurrentlyConsenting = true;
function CookiebotCallback_OnAccept() {
if (cookiebotCurrentlyConsenting) {; // re-show the dialog so the user can still view the notice even though they are being opted-in by default
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment