Google Consent Mode V2
1) Configure your banner
Use the wizard at https://cmp.sirdata.io/ to configure your banner. Be sure your banner complies with the requirements in the Google EU User Consent Policy (EUUCP). For more details, see the Sirdata documentation.
2) Add the banner to your site
Using Google Tag Manager
Open Google Tag Manager and navigate to your container
In Tags, click New
Name the tag
Click Tag Configuration
Click “Discover more tag types in the Community Template Gallery”
Search for Sirdata and install Sirdata CMP | Google Consent Mode by SirDataFR
In the Sirdata UI, choose Retrieve Code. From the code, get the partner ID and configuration ID as shown:
Configure the default settings you would like to use for any regions / countries where you require consent to be denied by default, keeping in mind Google’s EUUCP (see above)
Check the box next to “Load Sirdata CMP script?” and paste the IDs you gathered in step 7.
Click Add
Click Triggering
Select Consent Initialization - All Pages
Click Save
Test your container by clicking Preview in the top right corner (see instructions for testing below)
Publish your container.
Using Other Platforms or Directly Editing Website Code
In the Sirdata UI, choose Retrieve Code. Copy the first code snippet to your clipboard.
If you use a website builder, review their documentation to find out how to implement code in the “head tag” of each page. Otherwise, skip to step two.
In the head tag of each page (see step 2 if you use a website builder), paste the following code followed by the CMP script you copied in step 2 at the very top of the head tag. Note that this is critical in order to ensure the CMP functions properly.
Testing using Tag Assistant
See here for details: https://developers.google.com/tag-platform/security/guides/consent-debugging
Last updated