Pop-up script

To implement the consent pop-up in the source code, insert the script as high in the website's <head> tag in the HTML code as possible.

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

Selecting language

The data-culture= "EN" controls the languages (in this case, it is calling the English language). To change the language, set the data-culture attribute to a different language code using the table below. Make sure that the selected languages are enabled in the "Languages and Settings" under the specific consent solution in the Cookie Information Platform.

Set up the language in your CMS.

When using either the pop-up script or policy-script, you define which language to pull from the consent solution by entering a two-letter ISO language code in the data-culture attribute on the scripts. Using server-side code, like PHP or asp .NET, you can store a dynamic language code. This code can be pulled from the CMS or language plugin of your choice and applied as a variable in the data-culture attribute.

Example from WordPress

<?php $languageCode = substr(get_locale(), 0, 2 ); ?> <script id="CookieConsent" src="https://policy.app.cookieinformation.com/uc.js" data-culture="<?php echo $languageCode; ?>" type="text/javascript"></script>

Example from Joomla:

<?php $lang = JFactory::getLanguage(); $languages = JLanguageHelper::getLanguages('lang_code'); $languageCode = $languages[$lang->getTag()]->sef;?> <script id="CookieConsent" src="https://policy.app.cookieinformation.com/uc.js" data-culture="<?php echo $languageCode ?>" type="text/javascript"></script>

The examples above are based on a PHP created CMS and will differ from other server-side frameworks. We suggest you consult with your agency or developer on how it would work on your CMS.

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

NL

Dutch, Flemish

DE

German

PL

Polish

EL

Modern Greek

PT

Portuguese

EN

English

RO

Romanian

ES

Spanish, Castilian

RU

Russian

ET

Estonian

SK

Slovak

FI

Finnish

SL

Slovene

FR

French

SQ

Albanian

HE

Modern Hebrew

SR

Serbian

HI

Hindi

SV

Swedish

HR

Croatian

TH

Thai

HU

Hungarian

TR

Turkish

ID

Indonesian

TW

Taiwanese

IS

Icelandic

UK

Ukrainian

IT

Italian

VI

Vietnamese

JA

Japanese

ZH

Chinese

KO

Korean

Did this answer your question?