Third-Party Cookie Consent Banner: Didomi

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

  1. Place your NextRoll Pixel on your site pages.
  2. Go to 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 the 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:
      8. 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,
          if (!window.__adroll_loaded){__adroll_loaded=true;setTimeout(_onload, 50);return}
        var scr = document.createElement("script");
          var host = (("https:" == document.location.protocol) ? ""
          : "");
        scr.setAttribute('async', 'true');
        scr.type = "text/javascript";
        scr.src = host + "/j/roundtrip.js";
        ((document.getElementsByTagName('head') || [null])[0] ||

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 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?

We're sorry to hear that!

Please tell us why.