Embedding your policy / banner script by language

Our policy embed scripts are language-specific. This allows you to fire a policy in a specific language dependent on the html lang attribute of your webpage.

⚠️ Implementation depends on your site’s setup. You will need developer assistance to add a script that injects the correct code based on the language your page is displaying in.

Available Language Codes

  • Hindi: hi-in
  • Spanish: es
  • German: de
  • French: fr
  • Italian: it
  • Custom: cust
  • English (US):en-us
  • English (GB): en-au (used by default in our examples)

Each language version has a unique script. To switch languages, simply replace the language code in the embed script.




Language-Specific Banner Scripts

Just like the policies, banner scripts are tied to language. You should inject the appropriate script based on your page’s html lang attribute.


Example:

If your page uses html lang="it" , you should configure a script to fire embed the Italian banner script.


Where to find the language code in the cookie banner script:

The language code can be found at the end of the script. This will update in accordance with the language you have selected from the Widget Language drop down (see below)

Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.

Still need help? Contact Us Contact Us