GTG Demo Store

mode container host

Advanced consent mode (consent mode v2)

/assets/consent.js runs before the Tag Manager snippet on every page: it sets all consent types to denied (except security_storage) with wait_for_update: 500, replays a stored decision, and shows the banner when there is none. The tags load either way; while denied they send cookieless pings (gcs=G100, npa=1) instead of full hits. After an update the next hits carry gcs=G111 and gcu=1. "Basic" mode would hold the tags back entirely until consent; in GTM that is the per-tag "Require additional consent" setting, not a site change.

Tag network requests

Consent flags are pulled out of each hit: gcs (G1 + ads + analytics, e.g. G100 denied / G111 granted), gcd (v2 default+update encoding), npa (non-personalized ads), gcu (sent once after an update). Batched 1P hits (POST /metrics/) carry them in the body, so only query-string hits show.

1P 03P 0

dataLayer

Cookies on this host: