/ /

Testing Osano Cookie Consent Banner Types without a VPN

Updated 4 months ago

Steps to Test the Banner in the Browser Console (Without VPN) Using Script Overrides

1. Open the Website

Launch your browser and navigate to the website where the Osano banner is implemented.

2. Open Developer Tools and Network Tab

  • Open Developer Tools in your browser:

  • Windows/Linux: Press F12 or Ctrl + Shift + I

  • Mac: Press Cmd + Option + I

  • Click on the Network tab.

3. Locate the Main Document

In the Network tab, find the main document for your page. This is usually the first request listed (type: document).

4. Override the Main Document

  • Right-click the main document and select Override Content.

  • This opens the response editor for the page.

5. Modify the osano.js Reference

  • In the HTML of the overridden document, locate the line where the Osano script is loaded — it will look something like this:

  <script src="https://cmp.osano.com/xxxx/osano.js"></script>
  • Append the desired parameters to the URL to test a specific banner variant:

  <script src="https://cmp.osano.com/xxxx/osano.js?variant=XXX"></script>

Replace XXX with one,two,three, or six to test the desired variant ID.

6. Save and Apply the Override

  • Save the override (Ctrl + S / Cmd + S).

  • Reload the page (Ctrl + R / Cmd + R) to apply your changes.

7. Verify the Banner

The Osano banner should now load with the specified variant settings.


Tip: This approach allows you to test specific Osano banner configurations without needing a VPN or backend changes, by directly modifying the main document and injecting the desired variant parameter.

Was this article helpful?
Subscribe to receive updates on this article