GDPRChecker

Home / Knowledge Base / What Is Default Consent State in GTM? A Practical Guide for GDPR Compliance

Website Compliance

What Is Default Consent State in GTM? A Practical Guide for GDPR Compliance

This guide explains what default consent state in GTM is and why it's crucial for GDPR compliance. It covers step-by-step implementation, common mistakes, and how to validate your setup using GDPRChecker's scanner to ensure no tags fire before user consent.

Run a free GDPR compliance scanPreview the findings before choosing a CMP.

Author

GDPRChecker Editorial Team

Reviewed by

Privacy & Compliance Research Team

Last updated

July 2026

Reading time

10 min read

Educational guidance for compliance readiness — not legal advice. Requirements vary by jurisdiction and your specific processing activities.

Introduction

Updated for 2026 compliance practices.

Understanding what is default consent state in GTM is essential for any website owner using Google Tag Manager (GTM) and aiming for GDPR compliance. The default consent state determines how Google tags behave before a visitor makes a consent choice. When a user lands on your site, tags like Google Analytics 4 (GA4) or Google Ads may fire before any consent is given—unless you configure a default that blocks them until consent is obtained. This guide explains what the default consent state is, why it matters for GDPR, how to implement it step by step, common pitfalls, and how to validate your setup with GDPRChecker.

This is a technical implementation guide, not legal advice. Always consult your legal team for compliance requirements specific to your jurisdiction. The European Data Protection Board (EDPB) and GDPR.eu provide authoritative guidance on consent requirements, and Google’s official documentation details the technical aspects of Consent Mode.

Common Mistakes and How to Avoid Them

Even with careful setup, mistakes can undermine your compliance. Here are the most frequent errors and how to prevent them:

1. Setting Default to ‘granted’

This is the most critical mistake. If you set ad_storage and analytics_storage to granted by default, tags will fire before consent, likely violating GDPR. Always set defaults to denied for users in the EEA and UK. Some implementations mistakenly set region-specific defaults but fail to cover all required regions. Use gtag('consent', 'default', { ... }) without regional restrictions to apply globally, or ensure your region detection is accurate.

2. Placing the Default Script Incorrectly

The default consent script must run before GTM loads. If it’s placed after the GTM snippet, tags may fire with an incorrect state. A common error is loading the script asynchronously or via a tag manager itself—this defeats the purpose. Always hardcode it in the <head> before any other scripts.

3. Not Configuring Tags for Consent

Setting the default consent state is only half the battle. Tags that don’t support Consent Mode natively (e.g., custom HTML tags, some third-party pixels) will still fire unless you add consent checks. In GTM, use the Consent Initialization trigger to fire a tag that sets defaults, and then use consent requirements on all other tags. For non-Google tags, you may need to build custom triggers that check consent state via the dataLayer.

4. Ignoring the ‘wait_for_update’ Parameter

Without wait_for_update, tags may fire immediately with the default state, even if the user grants consent milliseconds later. This can lead to lost data. Set a reasonable timeout (e.g., 500ms) to give the CMP time to update consent. However, too long a delay can impact page performance and user experience.

5. Not Testing the Reject Flow

Many implementations only test the “accept all” path. You must also verify that when a user rejects all, no cookies are set and no data is sent. Use GDPRChecker’s scanner to simulate both flows and check for pre-consent network requests.

6. Overlooking Policy Disclosures

Your privacy policy must accurately describe how you use Consent Mode and what data is collected in each state. If you claim to not process data without consent but your default state allows cookieless pings, you must disclose this. Transparency is key under GDPR.

Implementation Checklist

Use this checklist to ensure your default consent state is correctly implemented:

  1. Select a CMP that supports Consent Mode v2 and can set default consent to denied.
  2. Add the default consent script before the GTM snippet on every page.
  3. Set all consent types to `denied` in the default script: ad_storage, analytics_storage, ad_user_data, ad_personalization.
  4. Include `wait_for_update` with an appropriate timeout (e.g., 500ms).
  5. Enable Consent Overview in GTM container settings.
  6. Add consent checks to all tags that process personal data, using built-in consent settings or custom triggers.
  7. Configure your CMP to call gtag('consent', 'update') on user action.
  8. Test the accept flow: Verify that tags fire after consent is granted.
  9. Test the reject flow: Verify that no tags fire and no cookies are set when consent is denied.
  10. Test region-specific behavior if you use geo-targeting for consent.
  11. Update your privacy policy to reflect Consent Mode implementation.
  12. Scan with GDPRChecker to validate pre-consent requests and banner behavior.

FAQ

What is default consent state in GTM?

The default consent state in Google Tag Manager defines how tags behave before a user makes a consent choice. It is set via the gtag('consent', 'default') command, typically to denied for GDPR compliance, ensuring no cookies are set or data sent until consent is obtained.

Do I need default consent state in GTM for GDPR?

Yes, if you use Google tags (like GA4 or Google Ads) on your site and target users in the EEA or UK. Setting the default to denied is a key part of complying with GDPR’s consent requirements and avoiding unauthorized data processing.

How do I implement default consent state in GTM?

Add a script before your GTM container that sets gtag('consent', 'default', {'analytics_storage': 'denied', 'ad_storage': 'denied'}). Then configure your CMP to update consent on user interaction, and add consent checks to tags in GTM.

How can I verify default consent state with a scanner?

Use GDPRChecker to scan your site. It checks for pre-consent network requests, verifies the default consent command, and tests both accept and reject flows to ensure no data leaks before consent.

What are common default consent state mistakes?

Common mistakes include setting defaults to granted, placing the default script after GTM, not adding consent checks to tags, ignoring the reject flow, and failing to update privacy policies. These can lead to GDPR non-compliance.

Conclusion

Understanding what is default consent state in GTM is fundamental to achieving GDPR compliance when using Google’s marketing and analytics tools. By setting the default to denied, you ensure that user privacy is respected from the first page load. However, implementation requires careful attention to script placement, tag configuration, and ongoing validation. Use the steps and checklist in this guide to close the Consent Mode gap, and regularly scan your site with GDPRChecker to catch any issues. For further reading, explore our guides on cookie banner requirements and Consent Mode v2 vs. Google Certified CMP.

Next step

Run a GDPRChecker scan to validate consent behavior, trackers, and disclosures after you implement the checklist above.

GDPRChecker guides are educational resources and do not constitute legal advice. Use them to understand technical and operational privacy requirements, and consult qualified counsel for legal interpretation.

Check Your Website in Under 60 Seconds

  • Sign in required
  • GDPR-focused checks
  • Cookie banner detection
  • Privacy policy verification