Legal Note: This is not legal advice, but rather guidelines based on the current regulatory activity in the European Union (EU), the United Kingdom (UK), Brazil (BR), and NextRoll’s services. The guidelines may change over time to reflect updated best practices. You should consult with your own counsel, privacy professionals, and/or internal resources to determine a comprehensive and appropriate cookie consent solution for your business and your marketing activities.
To show ads to site visitors in the EU, UK, or Brazil, you have to install a cookie consent tool. We’ve made this easy for you with our NextRoll Cookie Consent Tool, but you can also use outside consent tools. If you choose to submit an external consent tool, you’ll need to wait a few days for NextRoll to approve.
While we don’t currently endorse any specific tool, we want to provide guidance on how best to set up these tools to work with our services.
Install the Didomi Cookie Consent Tool
- Place your NextRoll Pixel on your site pages.
- Go to https://www.didomi.io/en/ and sign in to your account. If you are not a registered user, you can request a trial.
- Click Consent Notices > +Create Notice.
- Customize the theme and the format of your banner.
- Save & Continue.
- Configure selected vendors from the Vendors list. Didomi allows you to select All Vendors, IAB vendors (only), Non-IAB vendors (only), or select a customized list. Make sure that AdRoll Inc. (ID 130) is checked.
- Save & Continue.
- Configure the banner audience, actions, and consent window from the Behavior menu.
- Save & Continue.
- Configure advertising settings for Prebid, Google DFP, AdSense, AdX & salesforce, if applicable.
If the NextRoll pixel is directly placed on your site:
- Go to the Tag Management menu in Didomi and select no tag manager.
- Save & Continue.
- From the Embed window, copy the script tag to the clipboard and paste it in your website’s header.
- The NextRoll Pixel will need to be modified in order to prevent the tag from firing before consent has been given.
- Change the script tag type to didomi/javascript and add the data vendor. Since NextRoll is in the IAB list, the ID needs to be preceded by the iab prefix :
<script type="didomi/javascript" data-vendor="iab:130">
- Remove the following lines of code:
if (window.addEventListener) {window.addEventListener('load', _onload, false);} else {window.attachEvent('onload', _onload)}
- Replace it with:
_onload();
- The pixel will be like this:
<script type="didomi/javascript" data-vendor="iab:130"> adroll_adv_id = "YOUR_UNIQUE_ADVERTISER_ID" ; adroll_pix_id = "YOUR_UNIQUE_PIXEL_ID" ; (function () { var _onload = function(){ if (document.readyState && !/loaded|complete/.test(document.readyState)){setTimeout(_onload, 10);return} if (!window.__adroll_loaded){__adroll_loaded=true;setTimeout(_onload, 50);return} var scr = document.createElement("script"); var host = (("https:" == document.location.protocol) ? "https://s.adroll.com" : "http://a.adroll.com"); scr.setAttribute('async', 'true'); scr.type = "text/javascript"; scr.src = host + "/j/roundtrip.js"; ((document.getElementsByTagName('head') || [null])[0] || document.getElementsByTagName('script')[0].parentNode).appendChild(scr); }; _onload(); }()); </script>
If the NextRoll pixel is placed using Google Tag Manager:
- Go to your Didomi console & select Google Tag Manager (GTM) from the Integrations menu. Save & Continue.
- Click Publish at the final step.
- In the GTM dashboard, go to the Variables tab and create the following dataLayer Variable:
- Name: Didomi Vendors Consent
- Type: DataLayer variable
- DataLayer Variable Name: didomiVendorsConsent
- Go the Triggers tab and create the following trigger:
- Name: VendorID130
- Type: Custom Event
- Event Name: VendorID130
- This trigger fires on: Some Custom Events
- Didomi Vendors Consent contains iab:130
- Set your AdRoll pixel tag to use this trigger.