Cookie Consent Mode v2 & Pre-Consent Tracker Auditor
Scan HTML for GA4, GTM, Meta Pixel, TikTok, LinkedIn, Clarity, Hotjar, and PostHog firing before Google Consent Mode v2 default-denied signals, and copy ready-to-paste head code.
1. Paste Page <head> / <body> HTML
2. Consent Mode v2 Default Signals
Missing complete gtag('consent', 'default', ...) v2 default-denied setup before tracking scripts.
3. Detected Tracking Scripts (5)
Pre-Consent Leaks (5)
Initialize Google Consent Mode v2 default-denied signals BEFORE the GTM container snippet and enable Consent Overview inside GTM.
Declare gtag('consent', 'default', { ad_storage: 'denied', analytics_storage: 'denied', ad_user_data: 'denied', ad_personalization: 'denied' }) in <head> BEFORE loading gtag/js.
Meta Pixel ignores gtag consent defaults. Call fbq('consent', 'revoke') before fbq('init', ...) or block the script with type="text/plain" data-category="marketing" until user consent.
Block TikTok Pixel execution behind your Consent Management Platform (type="text/plain" data-category="marketing") or fire it via GTM only after ad_storage is granted.
Gate Clarity with your CMP (type="text/plain" data-category="analytics") or enable Clarity Consent API (window.clarity('consent', false)) until accepted.
Copy-Ready Consent v2 <head> Snippet
<!-- Place BEFORE Google Tag Manager, gtag.js, or any third-party marketing pixels -->
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('consent', 'default', {
ad_storage: 'denied',
analytics_storage: 'denied',
ad_user_data: 'denied',
ad_personalization: 'denied',
wait_for_update: 500
});
gtag('set', 'ads_data_redaction', true);
// Meta Pixel pre-consent guard: revoke until visitor clicks Accept
if (typeof window.fbq === 'function') { window.fbq('consent', 'revoke'); }
// Microsoft Clarity pre-consent guard
if (typeof window.clarity === 'function') { window.clarity('consent', false); }
</script>Place this block at the top of <head> above GTM, GA4, and marketing pixels. When a visitor clicks Accept in your banner, call gtag('consent', 'update', { ad_storage: 'granted', analytics_storage: 'granted', ad_user_data: 'granted', ad_personalization: 'granted' }).
Free live checks forever · Unlock GMC Suspension Preflight & Cookie Consent v2 Auditor audit report, CSV & config exports for $15 once.
See Pro ($15) →Cookie Consent Mode v2 & Pre-Consent Tracker Auditor FAQ
Which four signals are required for Google Consent Mode v2?
Google Consent Mode v2 requires ad_storage, analytics_storage, ad_user_data, and ad_personalization to be set to 'denied' by default before GTM or gtag.js executes for EEA/UK traffic.
Does Google Consent Mode v2 automatically block Meta Pixel or TikTok Pixel?
No. Non-Google pixels ignore gtag consent calls unless fired through GTM consent triggers, gated with type="text/plain" by your CMP, or explicitly revoked (such as fbq('consent', 'revoke')).
Where should I paste the generated Consent Mode v2 default-denied snippet?
Paste it at the very top of your <head> tag above Google Tag Manager, gtag.js, and your Cookie Consent Management Platform script so default-denied signals execute first.
About Cookie Consent Mode v2 & Pre-Consent Tracker Auditor
Catch EEA and GDPR cookie banner leaks before Google Ads or regulators flag your domain. Verify that gtag('consent', 'default', ...) sets ad_storage, analytics_storage, ad_user_data, and ad_personalization to denied before tags load, check whether non-Google pixels are gated by your CMP, and download a printable audit checklist.