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 ConsentManager.net Cookie Consent Tool
- Place the NextRoll Pixel on your site pages.
- Go to consentmanger.net
- Click Try It For Free and sign up.
- In your ConsentManager dashboard, click Vendors/Whitelist from the CMP menu.
- Set the whitelisting toggle for NextRoll, Inc (ID 130) to On.
- Click Get Code and follow the setup guide.
- 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:
- Adjust the first line of your pixel:
<script data-cmp-vendor="130" type="text/plain" class="cmplazyload">
-
Remove the following lines:
if (window.addEventListener) {window.addEventListener('load',_onload, false);} else {window.attachEvent('onload', _onload)}
- Replace them with:
_onload();
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) ? "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:
ContentManager pushes a number of dataLayer variables. Find the complete list here.
- In Google Tag Manager (GTM), go to Variables > User-Defined Variables and click New.
- Click Variable Configuration and select DataLayer Variable as the variable type.
- Enter cmpGDPR as the DataLayer Variable name, set the Default Value to 1, and Save.
- 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:
- In GTM, go to Triggers and click New.
- Click Trigger Configuration and select Custom Event as the trigger type.
- Enter cmpEvent as the event name, select the Some Custom Events radio button and add 2 conditions.
- 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).
- Add a new condition and select cmpGDPR equals 1.
- Save and Publish.
Finally, set up the tag sequencing of your AdRoll pixel tag to fire only after ConsentManager fires: