Osano utilizes the end user's IP address to pinpoint their location and displays a consent banner most consistent with privacy laws in their region. You may review a list of regions and consent banner templates that are associated with each region here.
You can override this automatic targeting by adjusting setting a "language" and a "variant" on the Osano query string. When requesting the osano.js file, the requested variant and/or language will be served. If either entry is incorrect, the consent banner will revert to serving the automatic banner template and translation.
In Osano, create a configuration for your site and click the "Get Code" button to retrieve the osano.js.
Copy this code. Before pasting the osano.js in the <head> of your document, edit the query string to include the "language" and "variant."
src="https://cmp.osano.com/yourCustomerId/yourConfigId/osano.js"
src="https://cmp.osano.com/yourCustomerId/yourConfigId/osano.js?language=en&variant=two"
language=en Displays the banner in English
variant=two Loads the specified variant (banner template) of your configuration
To override the Language Only
src="https://cmp.osano.com/yourCustomerId/yourConfigId/osano.js?language=en"
language=en Displays the banner in English
To override the Variant Only
src="https://cmp.osano.com/yourCustomerId/yourConfigId/osano.js?variant=two"
variant=two Loads the specified variant (banner template) of your configuration
Once active and placed on your site, the above script will enforce the language ENGLISH and template variant TWO for all users. (See below for language options and our Consent Banner Gallery for template descriptions). See [Osano Installation Instructions for details on adding the code to your site.]
Note: Utilizing this script override will void the Osano Guarantee. Please exercise caution when using overrides.
A list of all supported languages can be found in our Consent Languages documentation.
Language | Code |
|---|---|
Afrikaans | af |
Albanian | al |
Arabic | ar |
Armenian | hy |
Bulgarian | bg |
Catalan | ca |
Chinese | zh |
Chinese (Hong Kong) | zh-hk |
Chinese (Taiwan) | zh-tw |
Croatian | hr |
Czech | cs |
Danish | da |
Dutch (Belgium) | nl-be |
Dutch (Netherlands) | nl |
English (Australia) | en-au |
English (Britain) | en-gb |
English (Canada) | en-ca |
English (United States) | en |
Estonian | et |
Finnish | fi |
French (Canada) | fr-ca |
French (France) | fr |