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 Civic cookie consent tool
-
Copy/paste the provided script into the <body> tag.
-
Edit your current NextRoll Pixel:
-
Remove the opening script tag.
-
Remove or comment out the var _onload line.
-
Remove or comment out the if (document.readyState… line.
-
Remove or comment out {__adroll_loaded=true;setTimeout(_onload, 50);return}
-
Add a { after if (!window.__adroll_loaded)
-
Remove the if-else statements at the end.
-
-
Add this into the marketing onAccept function and update the description, etc.
-
Alter the onRevoke function:
Before:
After:
-
Set this banner to always appear:
In the line immediately above the position and theme, add initialState: "OPEN", - Publish your changes.
Test your tool
-
Go to Inspect > Application > Cookies > Clear.
-
Open the network tab and search for roundtrip - it should not be there.
-
Refresh the page, roundtrip should still not be there.
-
Toggle the marketing choice to ON.
-
You should now see roundtrip in the network calls.
-
This should indicate that the AdRoll Pixel is now firing.