Skip to content
Devix Open Source

Google Consent Mode v2

Every signal denied before a choice, then updated to match it — the dataLayer entries, as Google receives them.

Live preview
<div class="demo">
  <div class="demo-row">
    <button class="demo-btn" id="accept">Accept all</button>
    <button class="demo-btn" id="analytics">Analytics only</button>
    <button class="demo-btn" id="reject">Reject all</button>
  </div>
  <p class="demo-hint">What Google would receive:</p>
  <pre class="demo-out" id="out"></pre>
</div>