CookieZen - gtag test page
This page deploys CookieZen as a plain script in the head, next to the standard Google tag (gtag.js). There is no Google Tag Manager here, so Consent Mode signals go through gtag directly and are visible in dataLayer.
Script order: CookieZen first, then the Google tag. Expected status: ok.
What to verify
- The banner appears on the first visit and optional categories are unchecked.
- dataLayer contains gtag('consent','default') with all four signals set to denied.
- After the user decides, gtag('consent','update') matches that choice.
- dataLayer contains the CookieZen developer_id, set before the first consent command.
Validation in the browser console
console.table(dataLayer.filter(a=>a[0]==='consent').map(a=>Object.assign({command:a[1]},a[2])));
dataLayer.filter(a=>a[0]==='set'&&String(a[1]).startsWith('developer_id')).map(a=>a[1]);
CookieZen.debug().print();
Why no GTM here
On a GTM template deployment CookieZen does not duplicate consent signals through gtag, because the template already sends them. This page shows the gtag path in isolation.