[CMP v1] Secure Privacy Integration with Google Consent Mode v2 (CoMo)
Secure Privacy now supports Google’s Consent Mode, an API that connects Google tag behavior with user consent preferences. Consent Mode manages five cookie consent categories: advertisement, analytics, functional, personalization, and security, using the global site tag or Google Tag Manager (GTM).
Google Consent Mode v2 ("CoMo" or GCM) introduces two additional parameters besides ad_storage
and analytics_storage
: ad_user_data
and ad_personalization
.
Advanced Consent Features
These parameters allow granular control over tag behavior based on user consent. For example, if a user denies analytics cookies, cookies won’t be used but aggregated analytics data will still be sent, bridging compliance with accurate conversion measurement.
Secure Privacy Consent Mode Integration
When integrated with Secure Privacy, every time visitors make consent choices, Secure Privacy signals Google to adjust tag behavior accordingly. If consent is declined, personally identifiable information is not collected; instead, aggregated data is used to ensure privacy.
Integration Methods
There are two ways to integrate Google Consent Mode with Secure Privacy:
- [this guide] Implementation using the installation script (without Google Tag Manager Template)
- Implementation using Google Tag Manager Template
Implementation Using the Installation Script (Without GTM Template)
- Log in to your Secure Privacy account.
- Navigate to Installation > Google consent mode.
- Toggle the switch labelled Enable Google consent mode to activate it.
Adding Default Consent Settings:
- Click Add Setting.
- Select Granted or Denied from the dropdowns for each consent category based on your requirements.
- Specify the target regions using their ISO 3166-2 codes. For global targeting, enter all. For specific regions, refer to the ISO 3166-2 standard.
- Click Add to save the setting.
Method 2: Implementation Using Google Tag Manager Template
For details on integrating with Google Tag Manager Template, please refer to our dedicated guide: Secure Privacy: Seamlessly Integrate Google Consent Mode.
Conclusion
Integrating Secure Privacy with Google Consent Mode empowers you to respect user privacy while aligning your website’s data collection with visitor preferences. This setup helps build trust, ensures compliance, and supports effective website performance measurement.
Who Is This For?
- Privacy managers and compliance officers implementing consent management
- Developers integrating Secure Privacy with Google Consent Mode
- Marketing teams aiming to balance analytics and privacy
Common Issues & Fixes
- How do I enable Google Consent Mode in Secure Privacy?
- Log into the Secure Privacy admin panel, navigate to Installation > Google consent mode, and toggle “Enable Google consent mode” on.
- How do I configure consent defaults for different regions?
- Use the “Add Setting” feature with ISO 3166-2 region codes to set consent defaults per geolocation.
- Where can I learn about the Google Tag Manager Template integration?
- Visit the guide Secure Privacy: Seamlessly Integrate Google Consent Mode for detailed instructions.