Seers AI proactively provides a debugging tool that helps clients verify their Consent Mode setup. This ensures the Consent Mode default command and TCF stub load before Google tags fire, preventing compliance issues.
Seers AI CMP Debug Tool
Purpose:
The debug tool allows website owners to validate their Consent Mode setup according to Google’s Consent Mode v2 requirements.
How to Use:
Simply append the following query parameter to your website URL:
🔗 https://example.com?seers-cmp-debug=true
This enables debug mode, allowing a detailed analysis of Consent Mode and Google tag behavior.
Key Features of the Debug Tool:
Conditional Activation via Debug Mode
- The script activates only when ?seers-cmp-debug=true is present in the URL, ensuring debugging does not affect normal users or website performance.
Detection of Consent Mode Implementations
- Identifies whether Consent Mode is applied using:
- gtag('consent', 'default') (inline gtag usage)
- dataLayer.push(['consent', 'default']) (via Google Tag Manager)
- __tcfapi stub (for IAB TCF compliance)
- gtag('consent', 'default') (inline gtag usage)
Detection of Google Tags
- Uses PerformanceObserver to track loading of key Google scripts:
- Google Tag Manager (gtm.js)
- Google Analytics
- Google Ads / DoubleClick
- Google Tag Manager (gtm.js)
Execution Timing Analysis
- Logs a warning if Google tags fire before CMP or Consent Mode initialisation.
- Logs success if CMP is correctly initialised before tag execution.
Console-Based Report for Easy Debugging
- Outputs a structured report in browser developer tools (Console tab), including:
- Detected tags with timestamps
- CMP setup status
- Warnings if setup order is incorrect
- Detected tags with timestamps
By implementing this proactive debugging feature, Seers AI ensures full compliance with Google’s CMP requirements while giving clients an easy way to validate their Consent Mode integration.