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.
Learn more about how to Set up your consent banner with a consent management platform or a content management system.
Step 1 of 2: Set up a consent banner
- Use the acceptrics wizard to create and configure a free banner without an account.
- Make sure your banner complies with the requirements in the Google EU User Consent Policy (EUUCP).
Learn more about Acceptrics banner setup.
Step 2 of 2: Set up consent mode
Set up using Google Tag Manager
- Open Google Tag Manager, and navigate to your container.
- In “Tags”, select New and name the tag.
- Select Tag Configuration > Discover more tag types in the Community Template Gallery.
- From the gallery, search for “Acceptrics CMP” by Acceptrics.
- Adjust which regions you want consent mode to apply to.
- Select Add > Triggering.
- Select Consent Initialization - All Pages.
- Select Save.
- Test your container by selecting Preview in the top right corner.
- Publish your container.
Set up using another platform or directly from your website’s code
- Complete the acceptrics wizard, and copy the generated code.
- If you use a website builder, review their documentation to find out how to implement code in the
<head>
tag of each page.
- If you use a website builder, review their documentation to find out how to implement code in the
- In the
<head>
tag of each page, paste the following code before your CMP code snippet.
This is critical in order to ensure the CMP functions properly.
<script>
<!-- PASTE YOUR Acceptrics CMP CODE SNIPPET HERE -- >
<!-- It should look similar to the snippet below -- >
window.acceptrics = {}; localStorage.setItem("__acceptrics_conf", JSON.stringify({})); document.addEventListener("__acceptrics_loaded", () =>{window.acceptrics.initializeSettings();});
</script>
<script src="https://cdn.acceptrics.com?n=xyz"></script>
How to test using Tag Assistant
Learn more about how to Troubleshoot consent mode with Tag Assistant.