Test Your NextRoll Cookie Consent Banner
If you decide to use our NextRoll Cookie Consent Banner, here's how you can test it out:
- Open your browser console:
- For Chrome: Ctrl+Shift+J (Windows) or Cmd+Option+J (Mac)
- Copy and paste: __adroll_consent_banner.Banner.render()
- Press enter.
If the banner is already in place, it should appear in your browser window.
How to Know if Your Banner Works
If you’re in Europe, open an incognito window and visit your site. The banner should show up, as we don’t have a consent response from you.
If you are not in Europe, follow the steps to test:
- Open your browser console:
- For Chrome: Ctrl+Shift+J (Windows) or Cmd+Option+J (Mac)
- Copy and paste: __adroll_consent_banner.Banner.render()
- Press enter.
If the banner shows up, that means that it is correctly installed and your European visitors should be seeing it.
If You Receive an Error
Your pixel can take a few minutes to update once you choose the NextRoll cookie consent banner. Also, you may want to test the banner before you opt in. For both cases, you’ll receive the following error when you go to test:
Uncaught ReferenceError: __adroll_consent_banner is not defined
To test the banner if you see this error:
- Open your browser console:
- For Chrome: Ctrl+Shift+J(Windows) or Cmd+Option+J(Mac)
- Copy and paste: scr = document.createElement('script'); scr.src = 'https://s.adroll.com/j/consent.js'; document.head.appendChild(scr);
- Press enter.