AdOpt provides a tag template to support Google Consent Mode, and to start using Google consent mode together with AdOpt, just follow the next steps:
Installing and using the tag template DOES NOT replace the AdOpt disclaimer already installed on your website. Both the standard AdOpt disclaimer and the tag template must be installed on your siteImportant
To do this, you can import our template directly from GitHub, or through the Google Tag Manager teplate gallery
Through GitHub
./src/template.tpl
which you can find here, by clicking on the download icon in the top right corner.template.tpl
file you just downloaded.Through the template gallery
adopt-visitor-consent-ready
4.4. Make sure the All custom events option is selected, select this option if necessary and click the blue Save buttonSome tags, like those for Google Analytics and Google Ads, have Built-in consent checks. This means that these tags have some logic that automatically changes its behavior based on user consent. In these cases, no consent settings are required.
Tags that contain integrated consent checks are loaded/triggered regardless of the visitor's consent, data and information will be transmitted to Google without their explicit permission, the difference is that in these cases these tags do not record cookies in the browser (cookieless ping). If this is a problem, or is something of concern to you, it is recommended to configure these tags withImportant
To configure these checks, follow the next steps.
Click on the tag to open it, and click on the Tag configuration box.
Click Advanced Settings, then Consent Settings to display the options, and check the Require additional consent for tag to fire option.
Click on the + Add required consent button, click on the field that just appeared, and select the type of consent desired.
Repeat step 3 for all consent types you want to add.
If the tag has a simple trigger, like an All Pages, follow these steps:
Click on the Triggering box, and click on the "+" symbol, and in the list of available triggers, click on the "+" symbol again to configure a new trigger.
Click on the "Trigger Configuration" box, and from the list of available types, select the Custom Event, in the Others section.
In the Event name, type
adopt-consent-mode-ready
, and select the All custom events option, if this option is not already selected, choose a name for the trigger, and click the blue Save button.
Make sure both triggers are present (the old trigger that was already there and the new custom trigger that you just created), and click the blue Save button
Click the blue Save button in the top right corner.
If the tag has other types of triggers, which depend on visitor actions, such as clicks, or other rules such as a specific url, follow these steps (in this specific example, we will use a click-based trigger):
Click on the trigger, to open its settings, click on the Trigger Configuration box, and check the Some Clicks option
In the fields that have just appeared, in the first field, click on New variable..., and again on the Variable configuration box.
In the list, click JavaScript Variable.
Back in Variable Configuration, in Global Variable Name, type
adoptConsentModeReady
, choose a name for this variable, and click the blue Save button in the top right corner.
Back in Trigger Configuration, select contains in the second field, and in the third field, type
adoptConsentModeReady
again.
Click the blue Save button in the top right corner.
Repeat these steps for each of the triggers of this type, but instead of creating a new variable, just select the variable you already created the first time.
And that's it, don't forget to publish the changes.
AdOpt
Resources
Legal Terms
© AdOpt since 2020 • Made by people who love
🍪