secureprivacy.ai

Secure Privacy Support Center

Search for any help questions or topics.

Implementing Google Consent Mode (Advanced) using Google Tag Manager Community Template

Secure Privacy seamlessly integrates with Google Consent Mode, enabling you to respect user consent while maintaining accurate analytics and conversions.
Avatar
Andrew Sidorkin
Updated 22 hours ago

Google Consent Mode Advanced Setup with Google Tag Manager Community Template Guide

Google Consent Mode (GCM) is an API from Google that helps website owners integrate user consent choices into Google tag behavior, ensuring privacy compliance with tools like the global site tag or Google Tag Manager (GTM).
With Secure Privacy, you can implement Google Consent Mode in two ways:

GCM v2 supports five consent types: advertisement, analytics, functional, personalization, and security cookies, with two new parameters: ad_user_data and ad_personalization.

Who Is This For?

  • Website administrators
  • Developers & technical marketers
  • Compliance and privacy professionals

Why Use Advanced Consent Mode?

Advanced Mode lets you control how tags behave based on user consent. For example, if a user declines analytics cookies, only aggregate analytics data is sent, helping balance privacy with website performance measurement.

How Secure Privacy Integrates with Consent Mode

Secure Privacy passes user consent choices to Google, ensuring your website only collects data with user permission and falls back to aggregated data when declined. This helps you stay compliant and build user trust.

How to Set Up Google Consent Mode (Advanced) with GTM

  1. First, set up Google Tag Manager for your site.
    • If you are an existing Secure Privacy user and wish to proceed using GTM-native approach - remove the Secure Privacy Script from the <head> of your website.
    • New users do not need to add the Secure Privacy script to the head tag.
  2. Step 1: In Tag Manager, go to Tags in the left sidebar, then click New.
    Google Tag Manager interface showing how to create a new tag
  3. Step 2: Click “Tag Configuration” > “Discover more tag types in the Community Template Gallery” and search for Secure Privacy.
    Selecting Secure Privacy CMP template in GTM Community Template Gallery
  4. Step 3: Select the Secure Privacy CMP template, click Add to Workspace > Add.
    Secure Privacy CMP template details in GTM
  5. Step 4: Insert your Secure Privacy Domain ID, set other values as needed, and save the tag.
    Secure Privacy domain ID and tag settings fields in GTM
  6. To add Default Consent Setting:
    1. Click Add Setting.
    2. Select Granted/Denied from the dropdown for each category as needed.
    3. Set the Region with ISO-standardized codes (ISO 3166-2). Use all if you do not want to geo-target.
    4. Click Add.
    Adding default consent settings for Secure Privacy CMP in GTM
  7. Step 5: Select “Consent Initialization – All Pages” as the trigger for the tag.
    Setting Consent Initialization as the trigger in GTM
  8. Step 6: Click Save to complete the integration.

Blocking Third-Party Cookies in GTM (Optional)

If you add third-party scripts using GTM, you may need to block cookies set by those scripts when users have not granted consent. See our article: How-to: block cookies with Google Tag Manager.

Conclusion

By integrating Secure Privacy with GCM using this advanced method, your website respects user consent and complies with major data privacy regulations, while still enabling robust analytics and digital marketing.

Need Further Assistance?

Contact our support team at support@secureprivacy.ai.
For urgent matters regarding Google Consent Mode, email andrew@secureprivacy.ai – we aim to respond within one business day.

Common Issues & Fixes

  • Tag not firing as expected? Double-check step order in GTM and ensure you set the correct trigger (Consent Initialization – All Pages).
  • Consent not reflected? Verify your Secure Privacy Domain ID and consent configurations.
  • Still not working? Check our troubleshooting collection or contact support.

See Also

Was this article helpful?
😞 😐 😃