Table of Contents [TOC]

{tocindex article="current"}

Guides

Menu

  • Pricing
  • Features
    • Regulation compliance
    • GDPR (EU)
    • CCPA (California)
    • PIPEDA (Canada)
    • LGPD (Brasil)
    • KVKK (Turkey)
    • POPIA (South Africa)
    • The basics
    • 42 languages
    • User consents recording
    • Third-party cookie blocking
    • Geo targeting
    • Cookie Banner
    • Google Consent Mode v2
    • Automation
    • Automatic monthly scans
    • Automatic script blocking
    • Advanced reporting
    • Cookie Banner sharing
    • IAB TCF 2.3 integration
    • Google-certified CMP
  • Resources
    • Cookie Scanner
    • Privacy Policy Generator
    • System status
    • Roadmap
    • Changelog
  • Blog
    • Guides
    • News
    • GDPR & CCPA
    • Privacy laws
    • Compare
    • Knowledge base
  • Support
    • Help Center
    • Integrations
    • Contact us
    • Feature request
  • For partners
    • Agencies
    • Affiliates
  • separator
  • Language switcher
    • Profile
    • Billing
    • My plan
  • Sign in
  • Try now
 
  • Guides
  • News
  • GDPR & CCPA
  • Privacy laws
  • Compare
  • Knowledge base
Details
04 May 2026

Consent Debugging Toolkit: Tools and Tricks to Verify CMP & GTM

ON THIS PAGE

  • What Is Consent Debugging
  • Common Consent Issues in CMP & GTM Setups
  • Consent Debugging Toolkit: Tools That Actually Work
    • 1. Browser DevTools (Network & Application tabs)
    • 2. Google Tag Assistant
    • 3. GTM Preview Mode
    • 4. CMP Debug / Consent Logs
    • 5. Clean browser sessions
  • How to debug CMP Signals: A Step-by-Step Guide
    • 1. Debugging cookie consent
    • 2. Checking the browser-level GPC signal
    • 3. The ping test (IAB TCF & GPP APIs)
  • How to Verify Google Tag Manager Consent Mode
  • How to Check If Tags Fire Before Consent (And Stop It)
  • Debugging Consent Across Browsers and Devices
    • How to debug consent in Chrome?
    • How to debug consent in Safari?
    • How to debug consent in Brave/ Firefox?
    • How to debug consent on Mobile Web?
  • Frequently Asked Questions

Consent debugging means ensuring your CMP and GTM setup actually respects Cookie Consent choices at every step. This guide walks through common failure points, from tags firing too early to consent signals not syncing properly. You’ll get a practical toolkit and step-by-step methods for testing, verifying, and fixing consent behavior.

The General Data Protection Regulation (GDPR), which took effect on May 25, 2018, is the most comprehensive and one of the strictest data protection regulations. It influenced other countries to adopt similar regulations. In 2026, over 80 countries adopted data privacy laws that mandate transparency, data minimization, and secure processing, and grant users data privacy rights.

To comply with privacy laws globally, businesses need to implement a Consent Management Platform (CMP), that displays a Cookie Banner adapted for a relevant jurisdiction, based on the user’s location, and collects Cookie Consent.

Other regulations, such as the Digital Markets Act, set requirements for a variety of tech services and Big Tech companies. In response to European privacy regulations, Google launched Google Consent Mode v2. If you want to use Google Ads and analytics in the European market, you need to use a CMP integrated with Google Consent Mode v2 and Google Tag Manager (GTM).

In 2026, implementing a CMP on your website or app is a must. Most modern CMPs allow many customization options that best suit business needs. However, wrong CMP implementation could make your site non-compliant with privacy laws.

Thus, verifying CMP and GTM implementation is critical for compliance with data privacy regulations and Google Consent Mode v2.

Read this comprehensive guide to learn about consent debugging toolkit, that allows businesses to debug CMP signals and verify Google Tag Manager consent mode.

What Is Consent Debugging

Consent debugging is the process of verifying that your CMP, user tracking, and GTM behave exactly as they should: no tracking before consent, correct signals after consent, and clean data flow from a CMP into tools like Google Analytics or ad platforms.

Sounds simple. However, it’s not.

Even when correctly configured at setup, consent signals break more often than people think. And usually, no one notices until it’s too late.

In real-world setups, there are many potential issues related to user consent. A tag fires too early. A tag fires too early. A consent signal doesn’t reach GTM. GTM loads before the CMP finishes.

Wrong consent behavior will not display any errors or warnings — just bad data and compliance risk.

Consent debugging exists because:

  • CMPs, GTM, and scripts all run asynchronously.
  • Browsers handle storage and tracking differently.
  • One misconfigured trigger can bypass your entire setup.
  • Google Consent Mode adds another layer of complexity.

 

Note: Don’t assume consent is working because the banner shows up. Use consent debugging to verify CMP implementation.

Not sure if your website uses cookies and tracks users without obtaining Cookie Consent? Check it with CookieScript Cookie Scanner:

Common Consent Issues in CMP & GTM Setups

Don’t blindly rely on CMP and GTM integration. Perform Cookie Consent debugging to ensure your CMP and GTM work correctly.

If something doesn’t work, it’s usually one of these:

  1. Tags fire before consent
    This is a major GDPR compliance issue where tracking pixels (Google Analytics, Meta Pixel) send data before users accept cookies. This is often caused by improper GTM triggers or misconfigured Google Consent Mode.
  2. Consent signals do not reach GTM
    Your CMP collects consent, but GTM doesn’t get the update. Thus, tags behave as if consent was never given.
  3. Incorrect default consent state
    Consent Mode defaults are misconfigured, for example granted instead of denied. That alone can break compliance.
  4. Triggers ignore consent checks
    Triggers in GTM can ignore consent checks if they are improperly configured, specifically when using generic triggers like "All Pages" for tags that require user consent, such as marketing pixels or analytics. When implementing consent checks, tags should wait for a "Consent Initialization" event or a "Consent Updated" data layer event, rather than firing on page load.
  5. Delayed CMP loading
    If the CMP loads too late, tags may already be executed.
  6. GPC is True, but the site ignores it
    It’s the CMP configuration issue. Read the guide on how to enable Global Privacy Control in your CMP dashboard.
  7. Inconsistent behavior across pages
    Consent works on the homepage but breaks on other pages. It usually happens due to inconsistent script placement or missing containers.
  8. GCD string is missing
    You are using the 2024 version of Google Consent Mode. Update your CMP template to consent mode v2. 
  9. Region-based mistakes
    If geo-targeting fails, a CMP may show the wrong consent behavior required for adequate jurisdiction.
  10. CMP loads but there is no banner
    geo-targeting problem. Check whether your VPN is set to a region, like some Asian countries, where your CMP is set to Hide.

Consent Debugging Toolkit: Tools That Actually Work

Let’s break down the consent debugging toolkit and how each tool actually helps to implement CMP implementation audit and Google Consent Mode verification:

1. Browser DevTools (Network & Application tabs)

Browser DevTools are essential for debugging user consent for GDPR, CCPA, or TCF compliance. They enable verification that cookies and scripts only load after consent is granted.

The Network tab shows every request fired and verifies tag behavior and blocking.

The Application tab shows cookies, local storage, and consent states. It is used to inspect stored cookies and local data.

When implementing consent mode debugging, look for:

  • Requests firing before interaction.
  • Cookies being set too early.
  • Consent values changing after user action.

2. Google Tag Assistant

Google Tag Assistant is useful for understanding GTM behavior without digging through code. It could be used to verify how consent mode works.

Use it for consent signal verification to:

  • Verify Consent Mode signals.
  • See which tags fired and why.
  • Inspect consent states tied to events.

It won’t catch everything, but it’s a good starting point.

3. GTM Preview Mode

GTM Preview Mode is used to test CMP debugging and debug Consent Mode v2 by simulating user interactions and checking consent states.

To perform Consent Management Platform testing, enable the Preview Mode in GTM, use the GTM template of your CMP to implement the script, and verify in Tag Assistant that consent signals and parameters are updating based on banner interactions.

Read the detailed guides:

How to use a GTM preview mode for Google consent mode verification? 

How to test Global Privacy Control Signals in GTM? 

4. CMP Debug / Consent Logs

This is an often-overlooked tool to debug tracking consent.

Most CMPs provide logs or debug views for CMP debugging that show:

  • When consent was collected.
  • What categories were accepted or denied.
  • How consent was stored.

 

For example, CookieScript CMP provides audit logs to maintain records of user choices. It also offers the Proactive Consent Mode Notifications option, which proactively notify customers if the Consent Mode configuration setup breaks. 

5. Clean browser sessions

This is not a tool, but critical for cookie consent debugging.

Always test consent debugging:

  • In incognito mode.
  • After you clear all cookies and storage.
  • In different browsers.

 

When performing consent signal verification, stored consent values can make broken setups look fine, that actually are not.

How to debug CMP Signals: A Step-by-Step Guide

In 2026, debugging Consent Management Platform (CMP) signals is not just checking cookies. You must validate a complex chain of signals including Google Consent Mode v2, IAB TCF 2.3, Global Privacy Platform (GPP), and Global Privacy Control (GPC).

Here is the step-by-step 2026 workflow for debugging these signals.

1. Debugging cookie consent

Step 1: Start clean

Open an incognito window or clear the cache to ensure there is no stored consent.

 

Step 2: Open DevTools (F12) > Network tab

Reload the page.

 

Step 3: Watch initial requests

Watch initial requests before interacting with the banner.

Are analytics or ad requests firing?

They should not fire. It they are firing- it’s a problem.

 

Step 4: Check default consent state

Use the Application tab or Tag Assistant to verify whether consent is set to denied by default.

 

Step 5: Interact with the CMP

Accept or reject cookies.

 

Step 6: Observe changes

Do new requests fire only after consent?

Do previously blocked tags now trigger?

 

Step 7: Verify consent signals are stored correctly

Check cookies/localStorage: are consent values stored correctly?

 

Step 8: Confirm GTM receives consent signals

Open GTM Preview mode and check:

  • Consent state on page load.
  • Consent update after interaction with the banner.
  • Did tags react accordingly?

 

If tags didn’t fire as they should- it’s a problem.

2. Checking the browser-level GPC signal

Check if the browser is sending a Global Privacy Control signal. In 2026, most privacy-first browsers, such as Brave, Firefox, DuckDuckGo, send this by default. For others, manual setup may be needed.

Read the guide on how to enable Global Privacy Control. 

Step 1: Start clean

Open an incognito window or clear the cache to ensure there is no stored consent.

 

Step 2: Open DevTools (F12) > Console

 

Step 3: Type: navigator.globalPrivacyControl

True: The browser is signaling a "Do Not Sell/Share" request. Your CMP should automatically set the user to "Denied" for targeting cookies without them clicking anything. 

 

Step 4: Go to the Network Tab, click any request to your domain, and check Request Headers. 

Look for Sec-GPC: 1. If it's there, the signal is active.

3. The ping test (IAB TCF & GPP APIs)

Most 2026 CMPs, such as CookieScript CMP, support the IAB TCF 2.3 and the IAB Global Privacy Platform (GPP).

You can check the CMP's status in the console.

Step 1: Start clean

Open an incognito window or clear the cache.

 

Step 2: Open DevTools (F12) > Console

In the Console, type the following to see if the CMP is even loaded:

JavaScript:

__tcfapi('ping', 2, (pingData) => { console.log('TCF Status:', pingData); });

 

Step 3: Verify the output

cmpLoaded: true means the CMP is active.

cmpStatus: 'stub'  Warning. The script is there but hasn't fully initialized.

 

Step 4: Test TC String

To see the actual consent string (the TC String) being passed to advertisers, type:

JavaScript:

__tcfapi('getTCData', 2, (data) => { console.log('TC String:', data.tcString

How to Verify Google Tag Manager Consent Mode

To verify GTM in CookieScript, first, install Google Consent Mode v2 with GTM. 

Second, enable Google Consent Mode v2 in the CookieScript dashboard under Banner Settings > Behavior > Frameworks. 

Use the built-in Validate GTM installation button, ensure the trigger is set to "Consent Initialization - All Pages" in GTM, and use Tag Assistant to confirm tags fire correctly based on user consent.

What you should check:

  • Default consent = denied.
  • Consent updates correctly after interaction.
  • Tags respect consent signals.

 

In GTM Preview or Tag Assistant, look for consent states like:

  • ad_storage
  • analytics_storage
  • ad_user_data
  • ad_personalization

 

What should happen:

  • Before consent: tags either don’t fire or fire in limited mode.
  • After consent: full tracking is allowed.

 

Common issue: Consent Mode is implemented, but tags are not configured to respect it. That’s not a Consent Mode problem; that’s a GTM setup problem.

How to Check If Tags Fire Before Consent (And Stop It)

This is the most important test.

To check if tags fire before consent, perform these steps:

  1. Open Incognito.
  2. Open the Network tab.
  3. Reload page.
  4. Do nothing.

If you see any of these, you have a problem:

  • Google Analytics requests
  • Facebook/Meta pixels
  • Any tracking scripts.

 

To stop tags firing before consent:

  1. Set the default consent to denied.
  2. Configure GTM tags with built-in consent checks.
  3. Use the Consent Initialization trigger properly.
  4. Delay tag firing until consent is granted.

 

Note: Avoid hacks like blocking scripts manually or custom JS workarounds. They tend to break later.

Use CookieScript, one of the best CMPs for consent management. 

CookieScript is a Google-certified CMP with the golden tier in the Google tiering system. 

CookieScript CMP has the following features:

  • Integrations with CMS platforms like WMagento, Wix, Weebly, etc.
  • Cookie banner customization
  • Google Consent Mode v2 integration
  • IAB TCF v2.2 integration
  • Google Tag Manager integration
  • Global Privacy Control 
  • Certification by Google
  • CookieScript API
  • Cookie Scanner
  • Consent recordings
  • Third-party cookie blocking
  • Geo-targeting 
  • Self-hosted code 
  • Cookie banner sharing 
  • Cross-domain cookie consent sharing 

 

Register for free Show pricing plans

Debugging Consent Across Browsers and Devices

Debugging consent across browsers and devices is the final point of privacy operations in 2026.

It’s not enough to test consent mode debugging in Chrome on your laptop. Different environments behave differently. What works in Chrome on a desktop often fails in Safari on an iPhone due to consent drift, when a user's preferences don't sync or the browser's internal privacy engine overrides your CMP.

How to debug consent in Chrome?

To debug consent in Chrome, use Google Tag Assistant to verify default and update states (ad_storage, analytics_storage) and inspect Network tab requests for gcs parameters (e.g., G100 for denied, G111 for granted).

Key steps include:

  1. Open Incognito mode.
  2. Clear cookies.
  3. Initiate Tag Assistant.
  4. Interact with the banner.
  5. Check the Data Layer for proper signals.

 

Debugging focus: Check if the browser is overriding your cookies with "Topics" or "Protected Audiences" API signals.

How to debug consent in Safari?

To debug CMPs in Safari, use the Safari Web Inspector to inspect whether cookies behave accordingly, especially given Safari's strict Intelligent Tracking Prevention (ITP).

To debug consent in Safari (Desktop), perform these steps:

  1. Enable Develop menu
    Go to Safari > Settings (or Preferences) > Advanced and check "Show Develop menu in menu bar".
  2. Open Inspector
    Right-click on the page and select Inspect Element, or go to Develop > Show Web Inspector.
  3. Check Storage/Cookies
    Navigate to the Storage tab to view cookies and local storage to ensure that consent flags (e.g., gdpr_consent, cookie_consent) are set correctly.
  4. Check Network
    Use the Network tab to check requests and ensure scripts are only loaded after consent is granted.

 

To debug consent in Safari iOS (iPhone/iPad), perform these steps:

On iOS Device:

  1. Go to Settings > Safari > Advanced and toggle on Web Inspector.
  2. Connect Device
    Connect your iOS device to your Mac via USB cable.

 

On Mac:

  1. Open Safari >Develop menu and find your device listed.
  2. Select the website tab you want to inspect.
  3. Inspect the site
    The Web Inspector on Mac will now show the DOM, console logs, and network traffic from your iOS device.

 

Common safari consent issues:

  • ITP restrictions: Safari may block Third-Party Cookies or reduce their lifetime to 7 days or less.
  • Blocking Third-Party Cookies: Check Settings > Privacy and ensure "Block all cookies" is disabled. If enabled, this will cause most consent tools to fail.
  • Blocked extensions: Browser extensions like AdGuard or Consent-O-Matic can interfere with or automatically set consent, overriding the behavior of your CMP.

How to debug consent in Brave/ Firefox?

Brave has built-in features to block cookie consent notices, which can sometimes break websites or fail to remove banners.

To debug consent in Brave or Firefox (Desktop), perform these steps:

  1. Toggle cookie consent blocking
    Go to Settings > Shields > Content Filtering and ensure Easylist-Cookie List - Filter Obtrusive Cookie Notices is checked.
  2. Fix unblocked banners
    If banners still appear, navigate to brave://settings/shields/filters and ensure the list is updated or disable it to force a refresh.
  3. Debug via site settings
    Click the settings icon on the right, select Site settings, and adjust specific permissions if the consent blocking breaks the website functionality.

 

To debug consent in Brave or Firefox on iOS/Android, perform these steps:

  1. Go to Settings > Shields & Privacy > Block Cookie Consent Notices to enable or disable the feature.
  2. Identify broken elements
    Use Cookiecrumbler to detect cookie consent banners that Brave doesn't currently block. Cookiecrumbler is an open-source tool developed by Brave that uses AI to automatically detect and block annoying cookie consent banners.

Debugging focus: Brave/ Firefox browsers often block the CMP script itself. Look for "Failed to load resource" in the console.

How to debug consent on Mobile Web?

Debugging consent on mobile web requires verifying that default consent states are set to "denied" before the banner loads, and that consent updates properly reflect user choices.

The most effective method is using Google Tag Assistant for real-time validation.

To debug consent on Mobile Web in Google Tag Assistant, use these steps:

  1. Start a new session in Tag Assistant by entering your website URL. 
  2. Open the consent banner on your mobile site.
  3. In the Tag Assistant window, select the first "Consent" event and check the "On-page Default" column.
    It should display denied for all parameters (ad_storage, analytics_storage, ad_user_data, ad_personalization).

Frequently Asked Questions

What is consent debugging?

Consent debugging is the process of verifying that your Consent Management Platform (CMP), user tracking, and GTM behave exactly as they should: no tracking before consent, correct signals after consent, and clean data flow from a CMP into tools like Google Analytics or ad platforms. Use CookieScript, a Google-certified CMP, to manage cookie consent reliably.

How to check if tags fire before consent?

Use browser DevTools for user consent debugging. Open an incognito window, then open DevTools (F12) and the Network tab. Reload the page (don’t click anything) and watch what fires immediately after load. Look for tracking requests. If you see requests, such as Google Analytics (/collect, g/collect), Google Ads, Meta/Facebook Pixel, or any third-party trackers, before interacting with the consent banner, it means your cookie consent setup doesn’t work properly. Use CookieScript, a Google-certified CMP, to manage cookie consent properly.

How to verify CMP is working correctly?

Open an incognito window, then open DevTools (F12) and the Network tab. Consent state should be denied by default: no analytics, ad requests, or Tracking Cookies. Interact with the banner. After “Accept all”, tags should fire after consent, and cookies should be set. After “Reject all”, no tracking requests should fire and no non-essential cookies should be set. Verify consent signals are stored correctly in cookies/localStorage. Lastly, confirm GTM receives consent signals: open GTM Preview mode and check consent update after interaction with the banner.

Why are my tags firing even when users don’t give consent?

Usually, it’s one of three things: default consent is set to “granted,” tags aren’t configured to respect consent in GTM, or scripts are hardcoded outside GTM. GTM will do exactly what you tell it — if you don’t check and debug consent, tags will fire anyway. Use CookieScript CMP, that is integrated with a GTM and certified by Google, to manage cookie consent properly.

How do I know if my CMP and GTM setup is compliant?

If no tracking fires before consent, consent signals are correctly stored, and GTM tags only trigger after user approval — your CMP and GTM setup is compliant. The easiest way to confirm is using DevTools + GTM Preview in an incognito window. Watch what fires before interaction with the banner. Then accept/reject consent and see how behavior changes. Use CookieScript, a Google-certified CMP, to manage cookie consent reliably. 

 
  • About CookieScript
  • Terms of Service
  • Privacy Policy
  • Pricing
  • Resources
  • Cookie Scanner
  • Privacy Policy Generator
  • System status
  • Sitemap
  • Changelog
  • Alternatives
  • CookieBot
  • Termly
  • OneTrust
  • Iubenda
  • Cookie Information
  • CookieFirst
  • Illow
  • Blog
  • Guides
  • News
  • GDPR & CCPA
  • Privacy laws
  • Knowledge base
  • Support
  • Help center
  • Contact us
  • Integrations
  • Request a feature
  • Roadmap
  • For Partners
  • For agencies
  • For Affiliates

Copyright ©2026 CookieScript


main version