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 AdRoll Cookie Consent Banner, but you can also use outside consent tools. If you choose to use an external consent tool, no approval is required and it deploys with no delay.
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
1. Sign up for the banner solution.
2. Copy/paste the provided script into the <body> tag.
3. Edit your current AdRoll 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.
4. Add this into the marketing onAccept function and update the description, etc.
5. Alter the onRevoke function:
Before:
After:
6. Set this banner to always appear:
In the line immediately above the position and theme, add initialState: "OPEN",
7. 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.