Third-Party Cookie Consent Banner: Didomi

To show ads to site visitors in the EU, 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.

Legal Disclaimer: We can’t tell you exactly what to write or how to present it to your users - it will depend on the vendors and services you work with and the choices you wish to present to users navigating your site. What follows are recommendations that we consider to be appropriate to work with NextRoll. As there aren’t clear regulations around cookie consent tools, these guidelines may change over time to reflect updated best practices. This is not legal advice and you should check with your own internal teams and your lawyers to on your overall cookie consent solution.

Install the Didomi Cookie Consent Tool

  1. Place your NextRoll Pixel on your site pages.
  2. 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.
  3. Click Consent Notices > +Create Notice.
  4. Customize the theme and the format of your banner.
  5. Save & Continue .
  6. 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.
  7. Save & Continue .
  8. Configure the banner audience, actions, and consent window from the Behavior menu.
  9. Save & Continue .
  10. Configure advertising settings for Prebid, Google DFP, AdSense, AdX & salesforce, if applicable.

 

If the NextRoll pixel is directly placed on your site:

      1. Go to the Tag Management menu in Didomi and select no tag manager.
      2. Save & Continue .
      3. From the Embed window, copy the script tag to clipboard and paste it in your website’s header.
      4. The NextRoll Pixel will need to be modified in order to prevent the tag from firing before consent has been given.
      5. 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">
      6. Remove the following lines of code:
        if (window.addEventListener) {window.addEventListener('load', _onload, false);}
              else {window.attachEvent('onload', _onload)}
      7. Replace it with:
        _onload();
      8. The pixel will 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:

    1. Go to your Didomi console & select Google Tag Manager (GTM) from the Integrations menu. Save & Continue .
    2. Click Publish at the final step.
    3. 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
    4. Go the 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
    5. Set your AdRoll pixel tag to use this trigger.
Was this article helpful?