# Google Consent Mode Advanced Setup with GTM

> Set up Google Consent Mode Advanced using Secure Privacy's GTM template. Step-by-step guide covering GCM v2, default consent states, cookieless pings, and GDPR compliance.

- Canonical: https://support.secureprivacy.ai/article/implementing-google-consent-mode-advanced-using-google-tag-manager-community-template
- Product: Consent Management
- Category: Google Consent Mode
- Published: 2026-03-06T12:44:00+00:00
- Updated: 2026-04-06T20:29:30.091+00:00
- Reading time: 5 minutes

---

**Summary:** [Google Consent Mode (GCM)](https://support.google.com/analytics/answer/9976101) is a Google API that lets website owners integrate user consent choices directly into Google tag behavior—ensuring privacy compliance via tools like Google Tag Manager (GTM) or the global site tag. This tutorial covers **Advanced Consent Mode setup using the Secure Privacy GTM Community Template**, including GCM v2's `ad_user_data` and `ad_personalization` parameters.

With Secure Privacy, Google Consent Mode can be implemented in two ways:

-   [Basic Mode](https://support.secureprivacy.ai/article/google-consent-mode-basic-setup--secureprivacy-guide)
    
-   **Advanced Mode (this tutorial)**
    

## Who Is This Guide For?

-   **Website administrators** managing consent banners and tag configuration
    
-   **Developers & technical marketers** integrating Google Analytics or Google Ads via GTM
    
-   **Compliance and privacy professionals** ensuring GDPR, CCPA, and Google EU User Consent Policy adherence
    

## Before You Begin: Prerequisites

-   An active **Secure Privacy account** with your **Domain ID** ready
    
-   Access to your site's **Google Tag Manager container**
    
-   If you are an **existing Secure Privacy user** using the GTM-native approach: remove the Secure Privacy script from the `<head>` of your website before proceeding
    
-   **New users** do not need to add the Secure Privacy script to the head tag
    

## Why Use Google Consent Mode Advanced Mode?

Advanced Consent Mode gives you **granular control over how Google tags behave based on each user's consent decision**. For example, if a user declines analytics cookies, only aggregate, cookieless data is sent to Google—helping you balance privacy compliance with website performance measurement. Unlike Basic Mode, Advanced Mode enables **conversion modeling and behavioral modeling** even for non-consenting users, reducing data gaps in your analytics and advertising reporting.

**GCM v2** expands support to five consent types—advertisement, analytics, functional, personalization, and security cookies—plus two new parameters: `ad_user_data` and `ad_personalization`.

## How Secure Privacy Integrates with Google Consent Mode

[Secure Privacy passes user consent choices directly to Google](https://support.google.com/analytics/answer/9976101), ensuring your website only collects personal data with explicit user permission and falls back to aggregated, privacy-safe data when consent is declined. This keeps you compliant with GDPR and CCPA while maintaining user trust and advertising performance.

## How to Set Up Google Consent Mode Advanced Using Google Tag Manager

### Step 0: Set Up Google Tag Manager

Ensure [**Google Tag Manager is installed**](https://marketingplatform.google.com/about/tag-manager/) on your site before proceeding.

### Step 1: Create a New Tag in Google Tag Manager

In your GTM container, navigate to _Tags_ in the left sidebar, then click _New_.

![Google Tag Manager interface showing the Tags section with the New button highlighted](https://knowledgebasecdn.helpwise.io/uploads/234834/206059/0061847d9621551f207e876760264899f726435a-1708252719-f80d59cbc56af142bffaa61783d8c7afde745e03)

Navigate to Tags in GTM and click New to create a new tag.

### Step 2: Find the Secure Privacy Template in the Community Gallery

Click **Tag Configuration**, then select **"Discover more tag types in the Community Template Gallery."** Search for **Secure Privacy** in the gallery.

![GTM Community Template Gallery search showing the Secure Privacy CMP template result](https://knowledgebasecdn.helpwise.io/uploads/234834/206059/a29d65321a25400d4ce64052ea96fe2d64546290-1740482687-b6fc4863dd419cb798c01c930690407c75bb1977)

Search for "Secure Privacy" in the GTM Community Template Gallery.

### Step 3: Add the Secure Privacy CMP Template to Your Workspace

Select the **Secure Privacy CMP** template from the results, then click **Add to Workspace** > **Add**.

![Secure Privacy CMP template selected in GTM Community Gallery with Add to Workspace button](https://knowledgebasecdn.helpwise.io/uploads/234834/206059/37c31fb168d413777a93e38d1c0e03ed57230cef-1740482721-c3a68677ab1f900c860ea4d3431a710fd21d16b6)

Select the Secure Privacy CMP template and add it to your GTM workspace.

### Step 4: Configure Your Secure Privacy Domain ID and Tag Settings

Insert your **Secure Privacy Domain ID**, configure any additional values as needed, and save the tag.

[We have a quick giude on how to locate your Domain ID here.](https://support.secureprivacy.ai/article/how-to-find-your-domain-id-in-secure-privacy/)

![Secure Privacy tag configuration in GTM showing the Domain ID field and consent settings](https://knowledgebasecdn.helpwise.io/uploads/234834/206059/0b6d6f10287566e18c1940174267563c598e4c69-1740482780-a60ab78512a01f60832a863b0f378662e6005c33)

Enter your Secure Privacy Domain ID and configure consent defaults.

#### Setting a Default Consent State (Recommended)

To configure a [**Default Consent Setting**](https://developers.google.com/tag-platform/security/guides/consent?consentmode=advanced#default-consent) for each consent category:

1.  Click **Add Setting**.
    
2.  Select **Granted** or **Denied** from the dropdown for each consent category as required.
    
3.  Set the **Region** using [ISO 3166-2 codes](https://en.wikipedia.org/wiki/ISO_3166-2#:~:text=level%20of%20subdivisions.-,Current%20codes%5Bedit%5D,-The%20following%20table). Use **all** if you do not want to geo-target by region.
    
4.  Click **Add** to confirm.
    

![GTM tag default consent settings panel showing Granted and Denied options for each consent category](https://pub-7bd19505838640d0a08ef1bd6ec3fb9b.r2.dev/articles/e7ea48853a663a713baf-51b6949443a2.webp)

Configure default Granted/Denied states per consent category and target region.

### Step 5: Set the Trigger to "Consent Initialization – All Pages"

Under **Triggering**, select **Consent Initialization – All Pages**. This ensures the Secure Privacy consent signal fires before any other tags load—critical for correct Advanced Consent Mode behavior.

![GTM trigger configuration screen showing Consent Initialization – All Pages trigger selected](https://pub-7bd19505838640d0a08ef1bd6ec3fb9b.r2.dev/articles/b3b68ce1cee2afdf27f8-31f509e1383e.webp)

Set the trigger to "Consent Initialization – All Pages" for correct consent signal timing.

### Step 6: Save and Publish

Click **Save** to finalize the tag configuration, then **submit and publish** your GTM container to make the integration live.

### Optional: Blocking Third-Party Cookies in GTM

If your site loads third-party scripts through GTM, you may need to prevent those scripts from setting cookies when users have not granted consent. See: [How to Block Cookies with Google Tag Manager](https://support.secureprivacy.ai/article/howto-manually-block-cookies-using-google-tag-manager).

## Common Google Consent Mode Advanced Issues & Fixes

-   **Tag not firing as expected?** Double-check the step order in GTM and confirm the trigger is set to _Consent Initialization – All Pages_—not a standard page view trigger.
    
-   **Consent choices not being reflected in Google tags?** Verify your **Secure Privacy Domain ID** is entered correctly and that your consent categories are properly mapped in the tag configuration.
    
-   **Still not working?** Check our [troubleshooting knowledge base](https://secureprivacy.helpwise.help/) or contact the Secure Privacy support team directly.
    

## Frequently Asked Questions (FAQ)

### What is the difference between Basic and Advanced Google Consent Mode?

Basic Consent Mode blocks all Google tags until the user explicitly consents. Advanced Consent Mode loads tags immediately but sends only anonymous "cookieless pings" before consent is granted—enabling conversion and behavioral modeling while maintaining GDPR compliance. See our [Basic vs. Advanced Consent Mode comparison guide](https://support.secureprivacy.ai/articles/236256).

### Do I need to remove the Secure Privacy script from my site's <head> when using GTM?

Yes—if you are an existing Secure Privacy user switching to the GTM-native approach, remove the Secure Privacy script from your site's `<head>` to avoid conflicts. New users can skip this step.

### What trigger should I use in GTM for Google Consent Mode?

Always use **Consent Initialization – All Pages** as the trigger. This guarantees the consent signal is sent before any other Google tags fire, which is required for Advanced Consent Mode to work correctly.

### What are the new GCM v2 parameters and why do they matter?

GCM v2 adds `ad_user_data` and `ad_personalization` parameters, which give Google specific signals about whether a user has consented to their data being used for advertising personalization and audience targeting. These are required to maintain full ad functionality under Google's EU User Consent Policy.

### Is Secure Privacy a Google-certified Consent Management Platform?

Yes. Secure Privacy is a [Google-certified CMP](https://support.secureprivacy.ai/article/secure-privacygooglecertified-consent-management-platform), meeting Google's technical and policy standards for consent signal integration with Google tags, Analytics, and Ads.

## Conclusion

By implementing **Google Consent Mode Advanced** with Secure Privacy's GTM Community Template, your website respects user consent decisions while remaining compliant with GDPR, CCPA, and Google's EU User Consent Policy. Advanced Mode ensures you retain the best possible analytics and advertising data through modeling—even when users decline consent.

## Need Further Assistance?

Contact the Secure Privacy support team at [support@secureprivacy.ai](mailto:support@secureprivacy.ai).

For urgent matters related to Google Consent Mode, email [andrew@secureprivacy.ai](mailto:andrew@secureprivacy.ai) — we aim to respond within **one business day.**

For policy questions directed to Google, contact the Google EU User Consent Policy team at [ddp-gdpr-escalations@google.com](mailto:ddp-gdpr-escalations@google.com).

## See Also

-   [How to Block Cookies with Google Tag Manager](https://support.secureprivacy.ai/article/howto-manually-block-cookies-using-google-tag-manager)
    
-   [Google Consent Mode – Basic Implementation Guide](https://support.secureprivacy.ai/article/google-consent-mode-basic-setup--secureprivacy-guide)
    
-   [Ensuring Compliance with Google's EU User Consent Policy](https://support.secureprivacy.ai/article/google-eu-user-consent-policy-compliance-guide--secure-privacy)
    
-   [Basic vs. Advanced Google Consent Mode: Full Comparison Guide](https://support.secureprivacy.ai/articles/236256)
