Skip to main content
Set up the consent popup script

Learn how to set up the consent popup script.

Updated over a month ago

A consent popup script is a script that lets you display the consent banner on your website. In this article, we’ll show you how to set it up.

Before you start

Here are a few things to know before you start:

  • The data-culture = "EN" attribute controls the language in which the popup will appear on the site. This example will be displayed in English. Set the data-culture attribute to a different language code to change the language.


    Make sure that the languages set in the script’s data culture attribute match the languages set up in the platform. For more details, see this article.

Set up the consent popup script

To set up the consent popup script, follow these steps:


1. Add the following script for the consent popup to your website's <head> tag in the HTML code:

<script id="CookieConsent" src="https://policy.app.cookieinformation.com/uc.js" data-culture="EN" data-gcm-version="2.0" type="text/javascript"></script>

Note:

  • Don't modify the consent popup script to avoid any disruptions.

  • If you don’t need Google consent mode v2, you can use the following script:

<script id="CookieConsent" src="https://policy.app.cookieinformation.com/uc.js"
data-culture="EN" type="text/javascript"></script>

2. Use the code from the table below to set the data-culture attribute to your desired language.

Language codes

Data culture

Language

Data culture

Language

AR

Arabic

LT

Lithuanian

BG

Bulgarian

LV

Latvian

CA

Catalan, Valencian

MS

Malay

CS

Czech

NB

Norwegian Bokmål

DA

Danish

NN

Norwegian Nynorsk

DE

German

NO

Norwegian

EL

Modern Greek

NL

Dutch, Flemish

EN

English

PL

Polish

ES

Spanish, Castilian

PT

Portuguese

ET

Estonian

RO

Romanian

FI

Finnish

RU

Russian

FR

French

SK

Slovak

HE

Modern Hebrew

SL

Slovene

HI

Hindi

SQ

Albanian

HR

Croatian

SR

Serbian

HU

Hungarian

SV

Swedish

ID

Indonesian

TH

Thai

IS

Icelandic

TR

Turkish

IT

Italian

TW

Taiwanese

JA

Japanese

UK

Ukrainian

KO

Korean

VI

Vietnamese

KL

Greenlandic

ZH

Chinese

Note: Make sure that the languages set in the script’s data culture attribute match the languages set up in the platform. For more details, see this article.

Related articles:

Did this answer your question?