Skip to content

Google Consent Mode v2 Validation

Last updated: October 8, 2026

Use this page to verify Google Consent Mode v2 implementation quality before release.

Verify all four keys are set and updated:

  • ad_storage
  • analytics_storage
  • ad_user_data
  • ad_personalization

Baseline expectation:

  1. Consent default is set before Google tags evaluate.
  2. In banner regions, user choice triggers consent update.
  3. Validated no-banner regional policy produces the configured granted update. Initial denied defaults remain safe while configuration loads; a delivery error is not a no-banner grant.
  4. No conflicting consent commands are pushed by other scripts.

For GTM, use Consent Initialization - All Pages trigger.

For full GTM implementation steps, see Google Tag Manager (GTM) Template Guide.

When enabling Consent Mode without IAB TCF for a web property, start with the CYBEXO Google-ready banner in the dashboard. It is designed to make these points prominent before the affirmative choice:

Set a real privacy-policy URL for the property before publishing. The template is a technical implementation aid, not legal advice or a determination that a particular consent design meets every obligation that applies to the customer.

The Google-ready template’s required purpose explanation and Google disclosure currently use English and are marked lang="en"; configured title/intro and controls use their existing locale. This does not claim a fully localized Google-ready template. Verify the delivered language with your audience. Its category-only decisions are not TCF decisions and must not be described as TCF consent receipts.

Google describes two implementation models. Select one deliberately and test the result on the production domain. Direct-script customers should follow the complete Web installation and mode-switching instructions. New properties enable Consent Mode by default; an explicit saved off choice is preserved.

Use basic mode when the customer wants Google tags blocked until the visitor makes a choice.

  1. Keep Consent Mode enabled. Configure the publisher’s Google tags and their triggers/consent checks so they do not load before the required positive consent choice and stop further collection after withdrawal.
  2. For GTM installations, use the native CYBEXO template on Consent Initialization - All Pages and follow the Basic GA4 through GTM recipe for the publisher gate, trigger, additional consent check and withdrawal handling. For direct installations, implement and verify the publisher’s blocking integration. The complete GA4 Basic/full-off example covers one direct GA4 destination with Web CMP 1.5.30 or later; the CMP toggle does not itself block other scripts.
  3. In a fresh browser session, confirm no Google tag request is sent before acceptance; then confirm the intended tags can run after acceptance. Test withdrawal separately: stop later manual events immediately, account for any in-flight/consent-transition request from a previously loaded tag, and confirm no Google load on the following denied page.

For the separate option to disable CYBEXO Google default/update commands entirely, publish Consent Mode off and replace the direct snippet with the off installation in the Web guide. Remove the old inline defaults and any separate advertiser-TCF override. If migrating from GTM, also remove its native CYBEXO consent tag: turning off app-level commands cannot undo defaults that this tag already emitted. Keep Google tags removed or separately blocked. Do not describe a mode toggle as automatic tag blocking.

Use advanced mode when Google tags load with CYBEXO Consent Mode defaults and receive a consent update after the visitor’s action.

  1. Use the direct Web bootstrap before measurement scripts, or the CYBEXO native GTM tag on Consent Initialization - All Pages, according to your chosen integration.
  2. Keep the four-key default state region-appropriate; banner flows begin with the denied state and send an update after the visitor chooses.
  3. Verify in Tag Assistant that the default precedes Google tag execution and that the update reflects the visitor’s choice.

For the operational difference and Google’s current definitions, see Google Analytics: consent mode basic and advanced. Consent Mode configuration does not itself settle the customer’s legal or regulatory obligations.

Use this snippet for a direct-script installation that writes Google consent through gtag:

(window.dataLayer || [])
.map(e => Array.isArray(e) ? e :
Object.prototype.toString.call(e) === '[object Arguments]' ? Array.from(e) : null)
.filter(e => e && e[0] === 'consent')

For direct Advanced mode, expect defaults before initialization and updates as policy/choices resolve. A direct full-off installation should not enqueue CYBEXO Google defaults or updates. This filter shows queued commands only; it does not prove effective state or delivery.

The CYBEXO template uses native setDefaultConsentState / updateConsentState APIs. The filter above can return [] on a correctly functioning GTM installation. Do not add a separate gtag consent writer to populate it.

In Tag Assistant, select Consent Initialization and inspect the Consent tab for all four defaults. After completing a visitor choice, select the later event and inspect the updated consent values and the Google tag’s consent checks. Use the Network panel to verify intended delivery or Basic-mode blocking. CYBEXO diagnostics and data-layer notifications help explain the sequence; they are not substitutes for native state and request checks.

  1. Open Tag Assistant preview.
  2. Test an EEA/UK session and reload with a fresh session.
  3. Confirm consent defaults are present before Ads/Analytics tag execution.
  4. Accept, reject and change Analytics and advertising choices independently. Reload to check saved restoration, then reopen preferences and cancel an unsaved edit: the completed values must remain unchanged.
  5. Test a non-banner region session and confirm the validated regional policy grants the expected state when no banner is intentionally shown.
  • Keep CMP tag in Consent Initialization, not regular Page View.
  • Avoid duplicate consent default/update writers. With Web CMP 1.5.38 or later, the native CYBEXO bridge owns Google signals and disables automatic advertiser-TCF inference for this integration. Remove any separate window.gtag_enable_tcf_support = true override; retain the TCF bootstrap and API.
  • Keep region overrides documented in container notes.
  • Direct Web starts with four denied defaults while configuration loads. Verify subsequent regional updates; do not replace this safe startup with an unconditional grant.
  • If a Google tag is delivered through Google tag gateway, follow the Google tag gateway load-order and remediation guide before changing the CMP or tag sequence.
  • Consent defaults pushed too late.
  • Tags fire before consent defaults.
  • Missing one or more v2 keys in default or update calls.
  • Another plugin overwrites consent state.
  • A verified no-banner regional policy never reaches its expected update, or a dependency error is mistaken for a no-banner grant.
  • Tag Assistant screenshots with event timeline (EEA banner flow + non-banner regional flow).
  • Direct command-queue export for direct installations, or native Consent-tab results for GTM.
  • CMP debug report from production domain.

See Cybexo Debug Tool and Audit Checklist (Pre-Launch).