Advertisement
prabapro

Check Google Consent Mode on CookieBot

Jan 9th, 2024
681
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // Print dataLayer
  2. (function(w, d, t) {
  3.   for (i of w[d])
  4.     t += JSON.stringify(i).replaceAll(/\"\d{1,}\":/g, "") + "\n";
  5.   console.log(t);
  6. })(window, "dataLayer", "")
  7.  
  8.  
  9. // Reload CookiBot consent banner
  10. "Cookiebot" in window
  11.   ? Cookiebot.consented && (Cookiebot.deleteConsentCookie(), location.reload())
  12.   : console.warn("Cookiebot methods unavailable!");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement