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 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
- Sign up at Cytrio , and configure your banner using the getting started wizard.
- Make sure your banner complies with the requirements in the Google EU User Consent Policy (EUUCP) .
- Navigate to Consent> Bannerin the left panel menu.
- Customize the language, branding, layout, geo-targeting for your consent banner.
Learn more about CYTRIO 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 Newand name your tag.
- Select Tag Configuration> Discover more tag types in the Community Template Gallery.
- From the gallery, search for "CYTRIO", then install "CYTRIO Cookie Consent Template" by Cytrio.
- In the Cytrio admin console, go to the Administration> Domains.
- Copy the Tenant ID and Domain ID.
- In the "Tag Configuration" section of Google Tag Manager, paste the IDs into the corresponding fields.
- (Optional) In the Cytrio admin console, navigate to Consent> Bannerto customize your banner’s geo-targeting.
- Select Add> Triggering.
- Select Consent Initialization - All Pages.
- Select Save.
- Test your container by selecting Previewin the top right corner.
- Publish your container.
Optional: Override default consent mode settings
- In Google Tag Manager , navigate to "Google Consent mode default values by region".
- Add a row for "Global settings", leaving regions blank.
- Add additional rows for region-specific settings.
- In the "Region" box, add comma-separated ISO 3166-2 country codes.
Set up using another platform or directly from your website’s code
- In the Cytrio admin console, navigate to the Administration> Domains.
- Under the "Consent Banner" column of the website you want to set up the banner for, select Deploy.
- Select Manualin the wizard, and copy the script URL.
- If you use a website builder, review the integrations documentation
to find out how to implement code in the
<head>
tag of each page.
- If you use a website builder, review the integrations 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.
<script>
// Define dataLayer and the gtag function.
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
// Set default consent for specific regions according to your requirements
gtag('consent', 'default', {
'ad_storage': 'denied',
'ad_user_data': 'denied',
'ad_personalization': 'denied',
'analytics_storage': 'denied',
'regions':[<list of ISO 3166-2 region codes
>]
});
// Set default consent for all other regions according to your requirements
gtag('consent', 'default', {
'ad_storage': 'denied',
'ad_user_data': 'denied',
'ad_personalization': 'denied',
'analytics_storage': 'denied'
});
</script>
<!-- PASTE YOUR CYTRIO CMP CODE SNIPPET HERE -- >
How to test using Tag Assistant
Learn more about how to Troubleshoot consent mode with Tag Assistant .