Your cookie banner works. Google Analytics is installed. Google Tag Manager shows no obvious errors.

But is Google Consent Mode v2 actually working?

A visible banner does not prove that consent defaults are applied correctly or that Google tags receive updates after user interaction.

This developer guide covers a practical debugging workflow.

1. What You Need to Verify

Check these four important Consent Mode v2 signals:

[ "analytics_storage", "ad_storage", "ad_user_data", "ad_personalization" ] 

Your debugging checklist should cover:

  • Default consent states.
  • Timing of consent defaults.
  • Consent updates after interaction.
  • Tag behaviour under those states.
  • Regional configuration.
  • Other third-party scripts.

2. Start with a Clean Browser Session

Before testing:

  1. Open Chrome.
  2. Clear the website's saved consent preferences or use a fresh browser profile.
  3. Temporarily disable extensions that may block Google tags.
  4. Open your website.
  5. Keep the browser console and network tools available.

This helps you test first-visit behaviour rather than an old saved preference.

3. Test with Google Tag Assistant

Open Google Tag Assistant, enter your website URL and connect.

Verify defaults

  1. Open the Summary.
  2. Find the earliest Consent event.
  3. Select it.
  4. Inspect the API Call section.
  5. Check the four important v2 parameters.

You can also review the Consent tab and its On-page Default column.

The values should match your configured defaults.

Verify updates

Now interact with your banner.

Test:

  • Accept all.
  • Reject optional categories.
  • Analytics only.
  • Custom preferences.
  • Preference withdrawal.

Return to Tag Assistant and inspect the latest Consent event.

Check the On-page Update column. The new states should reflect the visitor's actual choices.

Verify tags

Open the Tags tab and inspect individual tags.

Check which tags fired, which were blocked and which consent requirements they evaluated.

Remember that Basic and Advanced Consent Mode have different expected behaviour.

Official guide: https://developers.google.com/tag-platform/security/guides/consent-debugging

4. Debug with GTM Preview Mode

If your website uses Google Tag Manager:

  1. Open your GTM container.
  2. Click Preview.
  3. Enter the website URL.
  4. Connect the browser session.
  5. Inspect the event timeline.

Pay special attention to Consent Initialization.

A consent-setting template should run using the Consent Initialization - All Pages trigger.

For custom GTM templates, Google provides:

setDefaultConsentState(...) updateConsentState(...) 

Use these Tag Manager consent APIs rather than placing gtag("consent", ...) calls inside Custom HTML tags.

Next, inspect the tags that fire after consent initialization. Review each tag's built-in and additional consent requirements.

Reference: https://support.google.com/tagmanager/answer/6107056

5. Inspect Network Requests in Chrome DevTools

Open:

Inspect → Network → Preserve log → Reload

Useful search terms include:

gtm.js gtag/js collect google-analytics pagead 

These help locate Google-related requests.

However, do not use a network request alone to decide whether consent is correct. In Advanced Mode, supported tags may send cookieless pings when relevant storage consent is denied.

Interpret network activity alongside Tag Assistant's consent states.

6. Inspect Browser Storage

Open:

Inspect → Application

Review:

  • Cookies
  • Local Storage
  • Session Storage

You may see Google-related cookies such as _ga, depending on the implementation and consent state.

Do not treat one cookie's presence or absence as conclusive proof. Consent Mode itself does not persist the visitor's choice. The CMP or custom consent application handles preference persistence.

7. Common Errors

Issue What to investigate
Consent tab empty Missing implementation or blocked Google tag
Defaults missing Missing default command or template
Defaults too late Incorrect execution order
Updates missing CMP callback or update API
Wrong consent values Category mapping
Regional defaults wrong Region configuration
Tags fire unexpectedly Trigger and additional consent settings

A particularly common error is setting defaults asynchronously after Google tags have already executed.

Google recommends setting defaults before tags use consent.

8. Basic vs Advanced Mode: Different Test Expectations

Basic Mode

  • Google tags remain blocked until the required visitor interaction.
  • Rejected consent keeps the blocked tags inactive.

Advanced Mode

  • Google tags load with configured defaults.
  • Supported tags may send cookieless pings while relevant storage consent is denied.
  • Tags adjust their behaviour after consent updates.

Do not interpret cookieless pings as granted storage consent.

9. Build a Test Matrix

Visitor action Expected verification
First visit Defaults applied
Accept analytics Analytics state updated
Reject advertising Advertising signals remain denied
Accept all Relevant signals updated
Reload Saved preferences restored
Change settings New states communicated
Withdraw consent Relevant states updated
Change region Correct regional defaults

Repeat tests for mobile layouts and single-page application navigation where applicable.

10. Where a CMP Fits

A CMP manages the visitor-facing consent experience, preferences and supported integrations.

ConsentX lists Google Consent Mode v2 support. Review its features, integration options and Google Consent Mode v2 information.

Always verify the current dashboard instructions and actual tag behaviour rather than relying only on a configuration toggle.

Final Developer Checklist

  • [ ] Defaults are configured.
  • [ ] Defaults run before tags use consent.
  • [ ] Four important v2 signals are reviewed.
  • [ ] Banner interactions trigger updates.
  • [ ] Preferences persist.
  • [ ] Withdrawal works.
  • [ ] GTM execution order is correct.
  • [ ] Tag Assistant confirms the expected states.
  • [ ] Network activity has been reviewed.
  • [ ] Third-party scripts have separate controls.