Consent Mode v2 Code Generator
Pick CMP platform, Basic/Advanced mode and deployment (gtag or GTM). Copy ready-made default consent, post-consent update and CMP integration hook.
1. Default consent (before banner interaction)
Basic mode: place default consent, but Google tags should stay blocked (e.g. via GTM blocking triggers) until update fires.
2. Update function after CMP consent
3. CMP integration hook
In GTM: create a Consent Initialization tag with the default code and fire it first.