Third-Party Cookie Consent Banner:

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 Cookie Consent Tool

  1. Place the NextRoll Pixel on your site pages.
  2. Go to
  3. Click Try It For Free and sign up.
  4. In your ConsentManager dashboard, click Vendors/Whitelist from the CMP menu.
  5. Set the whitelisting toggle for NextRoll, Inc (ID 130) to On.
  6. Click Get Code and follow the setup guide.
  7. Make sure that ConsentManager is blocking the NextRoll pixel. The following configuration steps depend on whether the NextRoll pixel is placed directly on the page or via a tag management system.

If the NextRoll Pixel is placed directly on your site:

  1. Adjust the first line of your pixel:
    <script data-cmp-vendor="130" type="text/plain" class="cmplazyload">
  2. Remove the following lines:

    if (window.addEventListener) {window.addEventListener('load',_onload, false);}
    else {window.attachEvent('onload', _onload)}
  3. Replace them with:

Your pixel should now be like this: 

<script data-cmp-vendor="130" type="text/plain" class="cmplazyload">

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) ? "" : "");

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:

ContentManager pushes a number of dataLayer variables. Find the complete list here.

  1. In Google Tag Manager (GTM), go to Variables User-Defined Variables and click New.
  2. Click Variable Configuration and select DataLayer Variable as the variable type.
  3. Enter cmpGDPR as the DataLayer Variable name, set the Default Value to 1, and Save.
  4. Repeat steps 1 and 2. Enter cmpVendorsConsent as the DataLayer Variable Name (with no default values) and Save.

Use these variables to configure the NextRoll pixel trigger to fire only when NextRoll is given consent as a vendor:

  1. In GTM, go to Triggers and click New.
  2. Click Trigger Configuration and select Custom Event as the trigger type.
  3. Enter cmpEvent as the event name, select the Some Custom Events radio button and add 2 conditions.
  4. From the drop-down menus, select cmpVendorsConsent contains,130, (130 is NextRoll’s vendor ID and it must be preceded and followed by a comma).
  5. Add a new condition and select cmpGDPR equals 1.
  6. Save and Publish.


Finally, set up the tag sequencing of your AdRoll pixel tag to fire only after ConsentManager fires:


Was this article helpful?

We're sorry to hear that!

Please tell us why.