Overriding the consent banner template

Overriding the Geolocation and Translation services.

Osano consent banner overrides

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.


  Example:

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."

THIS IS THE DEFAULT SCRIPT

src="https://cmp.osano.com/2skdb1YDRiZvJfB1dPK/9cad7357-aff7-4d9b-8870-369f38b25e50/osano.js"

THIS IS THE SCRIPT EDITED TO INCLUDE THE LANGUAGE AND VARIANT

src="https://cmp.osano.com/2skdb1YDRiZvJfB1dPK/9cad7357-aff7-4d9b-8870-369f38b25e50/osano.js?language=en&variant=two"

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.]

Supported Language Options

Arabic

ar

Japanese ja
Bulgarian bg Kazakh kk
Catalan ca Korean ko
Chinese zh Latvian lv
Chinese (Hong Kong) zh-hk Lithuanian lt
Chinese (Taiwan) zh-tw Malay ms
Croatian hr Norwegian no
Czech cs Norwegian Bokmål nb
Danish da Norwegian Nynorsk nn
Dutch (Belgium) nl-be Persian/Farsi fa
Dutch (Netherlands) nl Polish pl
English (United States) en Portuguese (Brazil) pt-br
English (Britain) en-gb Portuguese (Portugal) pt
Finnish fi Romanian ro
French (Canada) fr-ca Russian ru
French (France) fr Serbian sr
German (Austria) de-at Slovak sk
German (Germany) de Spanish (Mexico) es-mx
Greek el Spanish (Spain) es
Hebrew he Swedish sv
Hindi hi Thai th
Hungarian hu Turkish tr
Icelandic is Ukranian uk
Indonesian id Vietnamese vi
Italian it