Installing the Test script
The Test script lets you preview banner changes on a staging or development version of your website before pushing them to real visitors. Use it whenever you make a change to the banner.
Get the snippet
In your project, go to Banner Configuration → Scripts. Make sure the Test tab is selected and click the copy icon next to the snippet.
The Test snippet looks roughly like this:
<script data-oneprivacy-widget="true" src="https://.../test/<projectId>/sdk.js"></script>
Add it to your staging website
Paste the snippet into the <head> of your staging or development website, ideally as high up as possible. This makes sure the banner loads before any other tracking scripts.
Different platforms have different ways to do this. Pick the matching guide:
Install with Google Tag Manager.
If you have a custom website, ask your developer to paste the snippet into the <head> of every page on your staging environment.
Test a specific region
The Test tab in the dashboard includes a Location dropdown. Pick a region (for example, Germany) and the snippet on screen updates with a location override.
Use that updated snippet on your staging site to see the banner the way visitors in that region would see it. Useful for testing your geo rules.
Verify it loads
Open your staging website in a fresh browser session (incognito works well). The banner should appear within a couple of seconds.
If it doesn't, see Troubleshooting installation.