Activating Consent Mode in the AdOpt panel will add the phrase ˜Share analytics, advertising data, user data, and ad personalization data with Google˜ to your Cookie Banner.Info
First, it is necessary to activate GCM v2 in the AdOpt dashboard, following the tutorial below:
Or follow these steps:
Log in to your AdOpt account.
Access your (1) Organization.
Make sure to select the (2) Disclaimer in which you want to enable this feature.
Go to the (3) Settings stage of your Disclaimer.
5. Toggle the (4) Enable Google Consent Mode v2 button.
6. Click (5) Save to save the new configuration.
7. Done! AdOpt will manage Google cookies' consent automatically.
You can also configure GCM default states directly on your site before the AdOpt script executes, using the following snippet:
<script> window.adoptConsentModeSettings = [ { region: 'BR', ad_storage: 'granted', ad_user_data: 'denied', ad_personalization: 'denied', analytics_storage: 'granted', functionality_storage: 'denied', personalization_storage: 'denied', security_storage: 'granted' } ] </script>
This configuration will be used as default until the user interacts with the Disclaimer.
Another convenient way to install the disclaimer is using the AdOpt template in GTM.
Publish the container.
The template already includes GCM support and allows you to define initial consent states (e.g., analytics_storage: 'denied').Important
Google defines two operating modes for Consent Mode: basic mode and advanced mode. Your choice directly impacts when (and how) Google services are loaded on your website.
In basic mode, Google services (Analytics, Ads, etc.) are only loaded after the visitor gives consent.
This means that no Google script runs until the user accepts cookies.
This mode prioritizes user privacy and is aligned with regulations like LGPD and GDPR.
How to configure:
Advantages:
Limitations:
In advanced mode, Google services are loaded as soon as the user accesses the site, regardless of consent.
Consent Mode then adjusts the behavior of these scripts according to user consent:
How to configure:
Advantages:
Limitations:
To enable debug mode, run the following command in your browser’s developer console. AdOpt logs will appear directly in the console.
If you want to track the page load process from the beginning, we recommend refreshing the page after enabling debug.
sendAdoptCommand('debug')
🔎 For more information about consentMode, check the official Google guide. And remember, if you detect issues related to the absence of Consent Mode or TCF signals on Google tags, please contact AdOpt first.
AdOpt
Resources
Legal Terms
© GO ADOPT, LLC since 2020 • Made by people who love
🍪