Home / Guides / How to Set Default Consent Settings in GTM: A Practical Guide for GDPR Compliance

Website Compliance

How to Set Default Consent Settings in GTM: A Practical Guide for GDPR Compliance

A practical guide on setting default consent settings in GTM for GDPR compliance, covering implementation steps, common mistakes, validation with GDPRChecker, and a checklist.

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.*

Setting default consent settings in Google Tag Manager (GTM) is a foundational step for any website owner aiming to align with GDPR requirements. This practical guide explains what `set-default-consent-settings-gtm` means for your site, how to implement it correctly, and how to verify your setup using GDPRChecker’s scanner. We’ll cover technical steps, common pitfalls, and validation methods—all based on official documentation and practical experience. Remember, this is technical implementation guidance, not legal advice.

Requirements and Compliance Expectations

GDPR requires that you obtain valid consent before processing personal data. In the context of tags and cookies, this typically means blocking tags that set non-essential cookies until the user has explicitly agreed. The European Data Protection Board (EDPB) has emphasized that consent must be freely given, specific, informed, and unambiguous. Pre-ticked boxes or implied consent are not compliant.

When using GTM, the default consent settings must reflect a “no consent” state. This means: - `ad_storage`: denied - `analytics_storage`: denied - `functionality_storage`: denied (if it involves non-essential processing) - `personalization_storage`: denied - `security_storage`: granted (usually, as it’s essential)

Note that `security_storage` is typically set to `granted` because it relates to security measures that are necessary for the website’s operation. However, you should assess whether your use of security storage actually falls under the strictly necessary exemption.

Compliance expectations also include: - Providing a clear and accessible cookie banner that explains the purposes of data processing. - Ensuring that the banner offers a “Reject All” option that is as easy to use as “Accept All.” - Keeping records of consent (a CMP usually handles this). - Allowing users to withdraw consent at any time.

If you use Google services like Google Analytics 4 or Google Ads, you should also implement Google Consent Mode v2, which introduces two additional consent signals: `ad_user_data` and `ad_personalization`. These must also be set to `denied` by default. For more details, see our guide on Google Consent Mode v2.

Common Mistakes and How to Avoid Them

Even with careful setup, mistakes can happen. Here are some common pitfalls and how to avoid them.

1. Setting Defaults Too Late

If your default consent script fires after other tags, those tags may execute before consent is set. Always place the default consent script as early as possible, ideally directly in the `<head>` before the GTM container snippet.

2. Forgetting to Deny All Non-Essential Types

Some implementations only deny `analytics_storage` and `ad_storage`, forgetting `functionality_storage` or `personalization_storage`. If you use these for non-essential purposes, they must also be denied by default.

3. Not Using `wait_for_update`

Without `wait_for_update`, tags may fire immediately with the default denied state, but then not re-fire when consent is granted. This can cause data loss. The `wait_for_update` parameter tells tags to wait for a consent update before firing, ensuring they fire with the correct state.

4. Inconsistent Consent States Across Services

If you use multiple services (e.g., Google Analytics and Facebook Pixel), ensure that the consent states are consistent. For example, if a user denies `analytics_storage`, both Google Analytics and any other analytics tool should be blocked.

5. Not Testing the Reject Flow

Many implementations only test the “Accept All” flow. It’s crucial to test what happens when a user rejects all or customizes their consent. Verify that tags are not firing and that no cookies are set.

6. Relying Solely on GTM’s Built-in Consent Checks Without Defaults

GTM’s built-in consent checks are useful, but they only work if the default consent state is correctly set. If you don’t set defaults, GTM may assume consent is granted until told otherwise, which is non-compliant.

How to Validate with GDPRChecker

After implementing default consent settings, you need to verify that your website is actually compliant. This is where GDPRChecker’s scanner comes in. GDPRChecker scans help verify pre-consent network requests, banner behavior, and disclosure gaps after changes.

Here’s how to use it:

  1. **Run a Pre-Consent Scan:** Use GDPRChecker to scan your website before interacting with the cookie banner. The scanner will check for any network requests that set cookies or send data. If you see requests to analytics or advertising endpoints, your defaults may not be working.
  2. **Check Banner Behavior:** The scanner can also verify that your cookie banner appears correctly and that the options are clear. It checks for common issues like missing “Reject All” buttons or pre-ticked boxes.
  3. **Validate After Consent:** After granting consent, run another scan to ensure that tags are firing as expected. This helps confirm that your consent updates are working.
  4. **Test the Reject Flow:** Use the scanner to simulate a user who rejects all cookies. Verify that no non-essential tags fire and that essential tags (like `security_storage`) still work.

GDPRChecker also checks for other compliance gaps, such as missing privacy policy links or incomplete disclosures. For a comprehensive check, combine it with our Google Consent Mode v2 Checker to ensure your Consent Mode implementation is correct.

Regular scanning is essential because websites change over time. New tags, plugins, or updates can inadvertently break your consent setup. Schedule periodic scans to catch issues early.

Implementation Checklist

Use this checklist to ensure you’ve covered all bases when setting default consent settings in GTM:

  1. Choose a CMP that supports Google Consent Mode v2.
  2. Place the default consent script in the `<head>` before the GTM container.
  3. Set all non-essential consent types to `denied` (ad_storage, ad_user_data, ad_personalization, analytics_storage, functionality_storage, personalization_storage).
  4. Set `security_storage` to `granted` if it’s strictly necessary.
  5. Include `wait_for_update` with an appropriate timeout (e.g., 500ms).
  6. Configure your CMP to push consent updates to the data layer.
  7. Add consent checks to all relevant tags in GTM (either via built-in settings or custom triggers).
  8. Test in GTM Preview mode: verify defaults, consent updates, and tag firing.
  9. Test the “Reject All” flow thoroughly.
  10. Run a GDPRChecker scan before and after consent to validate network requests.
  11. Check that your cookie banner meets [cookie banner requirements](/guides/cookie-banner-requirements).
  12. Document your setup and keep records of consent configurations.

FAQ

What is set-default-consent-settings-gtm?

It refers to the practice of configuring default consent states in Google Tag Manager using Google Consent Mode. This ensures that tags do not fire or set cookies until the user has granted consent, which is a key requirement for GDPR compliance.

Do I need set-default-consent-settings-gtm for GDPR?

Yes, if you use GTM to manage tags that process personal data. GDPR requires prior consent for non-essential cookies and tracking. Setting defaults to denied ensures compliance by blocking tags until consent is obtained.

How do I implement set-default-consent-settings-gtm?

Implement by adding a Consent Mode default script in the `<head>` of your site, setting all non-essential consent types to denied. Then, use a CMP to update consent based on user choices. Detailed steps are in the implementation section above.

How can I verify set-default-consent-settings-gtm with a scanner?

Use GDPRChecker’s scanner to check for pre-consent network requests. Run a scan before interacting with your banner; if any non-essential requests appear, your defaults may not be working. Also scan after consent to confirm tags fire correctly.

What are common set-default-consent-settings-gtm mistakes?

Common mistakes include placing the default script too late, forgetting to deny all consent types, omitting `wait_for_update`, not testing the reject flow, and relying solely on GTM’s built-in checks without setting proper defaults.

Next Steps for a Compliant Setup

Setting default consent settings in GTM is just one part of a broader compliance strategy. To close other gaps, explore our related guides: - Google Analytics GDPR Compliance - Consent Mode v2 vs Google Certified CMP - Google Consent Mode v2 Guide

Remember, compliance is an ongoing process. Regularly scan your site with GDPRChecker to catch new issues, and stay updated with regulatory changes. For a complete check, run a scan now and ensure your `set-default-consent-settings-gtm` implementation is watertight.

<!-- schema:faq ready -->

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

  • No signup required
  • GDPR-focused checks
  • Cookie banner detection
  • Privacy policy verification
Set Default Consent Settings GTM: Step-by-Step GDPR Guide | GDPRChecker