Set up Secure Privacy to obtain user consent

To capture valuable insights while protecting user privacy, you need to collect consent from your website users. We recommend you use a Consent management platform (CMP) or work with your content management system (CMS) to collect consent and send it to Google.

Step 1: Set up a consent banner

  1. Sign up for a Secure Privacy account.
  2. Configure your banner using the 'Getting started' wizard.
  3. Make sure that your banner complies with the requirements in the Google EU User Consent Policy (EUUCP).
For additional information on banner setup, review the steps on How to add a cookie banner to your website.

Step 2: Set up consent mode

Set up using Google Tag Manager

  1. Open Google Tag Manager and navigate to your container.
  2. In 'Tags', click New and name the tag.
  3. Click Tag Configuration, then click Discover more tag types in the Community Template Gallery.
  4. From the gallery, search for 'Secure Privacy', then install 'Secure Privacy banner' by secureprivacy.
  5. In the configuration for the Secure Privacy banner, set the ID field to the domain ID (part after the last forward slash and before '.js') from your Secure Privacy script found on the Installation page of the Secure Privacy portal.
  6. Configure any country-specific settings that you’d like to use under 'Default settings'. Create one row for each setting that you’d like to override (default is denied), and use a comma-separated ISO 3166-2 country codes in the Region box to indicate which regions/countries that row’s settings should apply to.
  7. Click Add, then click Triggering.
  8. Select 'Consent Initialisation – All Pages', then click Save.
  9. Click Preview in the top right-hand corner to test your container. View instructions for testing below.
  10. Publish your container.

Set up using other platforms or directly editing website code

To enable this:

  1. Sign in to your Secure Privacy account.
  2. Click on the domain to be modified.
  3. Under the 'Framework' drop-down, select the 'GCM + IAB TCF 2.2' option

Enable using Secure Privacy Legacy:

  1. Sign in to your Secure Privacy account.
  2. Navigate to 'Installation', then Google consent mode tab.
  3. Toggle the button on (to the right) labelled 'Enable Google consent mode'.

To add default consent setting:

  1. Click Add setting.
  2. Select Granted/Denied from the drop-down for each category based on your requirements.
  3. Set the Region by entering the region’s ISO-standardised (ISO 3166-2) codes for the specific regions that you intend to Geo-target with your banner. If you prefer not to Geo-target your banner to specific regions around the globe, enter all in the Regions field. Refer to the ISO 3166-2 standard for the appropriate region codes.
  4. Click Add.

Testing using Tag Assistant

Learn more about how to Troubleshoot consent mode with Google Tag Manager.

Was this helpful?

How can we improve it?
true
Achieve your advertising goals today!

Attend our Performance Max Masterclass, a livestream workshop session bringing together industry and Google ads PMax experts.

Register now

Search
Clear search
Close search
Google apps
Main menu
6861166547879003582
true
Search Help Centre
true
true
true
true
true
73067
false
false
false