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.
The banner is shown only to visitors from the EEA, the UK and Switzerland. Outside that region the banner does not appear and CookieZen sends gtag('consent','update') with all signals granted.
What to verify
- From an IP address in the EEA: the banner appears on the first visit, as on the main test page.
- From an IP address outside the EEA (e.g. the US): no banner; dataLayer contains gtag('consent','default') with denied followed by gtag('consent','update') with granted.
- Outside the EEA the floating settings button is visible; a decision made there is stored and from then on overrides the region.
- The country is resolved once per session (sessionStorage cz_geo); a new private window reproduces the first visit.
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.