Third-Party Cookie Consent Banner: CookieBot

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 banner. We’ve made this easy for you with our NextRoll Cookie Consent Banner, but you can also use outside consent banners. If you choose to submit an external consent banner, you’ll need to wait a few days for NextRoll to approve.

While we don’t currently endorse any specific banner, we want to provide guidance on how best to set up these banners to work with our services.

Install the CookieBot Consent Banner

  1. Place your NextRoll Pixel on your site pages.

  2. Go to CookieBot.com.

  3. Click Try It For Free and sign up.

  4. Configure your setup:

    1. In Domains, enter your website domain.
    2. Go to Dialogs > Method > Active Consent. Make sure the Marketing box is checked.
    3. Go to Content and make sure the wording is appropriate and fulfills all GDPR requirements.
    4. In Your Scripts, you’ll find the script tags needed to activate this and to enable cookie changes if you need them.
    5. Click Save in the top left.
  5. Modify your current NextRoll Pixel:

    1. Add data-cookieconsent="marketing" to the opening script tag.

    2. Wrap it in the function CookiebotCallback_OnAccept()

    3. Remove or comment out the var _onload line.

    4. Remove or comment out the if (document.readyState…

    5. Remove or comment out {__adroll_loaded=true;setTimeout(_onload, 50);return}

    6. Add a { after if (!window.__adroll_loaded)

    7. Remove or comment out the if-else statements at the end.

    8. It should resemble the following:

  6. Publish all changes.

Test Your Banner

  1. Make sure all cookies are cleared (Inspect > Application > Cookies > Clear)

  2. Open up the network tab.

  3. Refresh your page.

  4. Search for roundtrip, and you shouldn’t find it.

  5. Either navigate away to another page on your site, refresh the current page, or click Allow all cookies. You should then see roundtrip in the network calls.

  6. Repeat the above steps but click Use necessary cookies only. In this case, you shouldn’t see roundtrip in the network calls.

Was this article helpful?
0 out of 0 found this helpful

Articles in this section

See more
Chat with an agent
24/7 Support
Send a support email
24/7 Support