Google Tag Manager

Setting up our solution within Google Tag Manager is very easy and only requires a few steps.

Insert the Consent Pop-up with Google Tag Manager

Step 1:

Login to your Google Tag Manager Account and choose the specific website.

Step 2:

Click on New Tag

GTM_POP-up_1.png

Step 3:

Click on Tag Configuration

GTM_POP-up_3.png

Step 4:

Choose Custom HTML TAG

GTM_POP-up_4.jpg

Step 5:

<script>
function LoadCookieInformation() {
var banner = document.createElement('script');
banner.type = 'text/javascript';
banner.setAttribute('data-culture','EN');
banner.src = 'https://policy.app.cookieinformation.com/uc.js';
document.head.appendChild(banner);
}
LoadCookieInformation();
</script>

GTM-scriptimplement.JPG

Remember to choose the right languages by setting the data-culture attribute to the right language code.

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, Moldavian, Moldovan

ES

Spanish, Castilian

RU

Russian

ET

Estonian

SI

Sinhala, Sinhalese

FI

Finnish

SK

Slovak

FR

French

SL

Slovene

GA

Irish

SQ

Albanian

HE

Modern Hebrew

SR

Serbian

HI

Hindi

SV

Swedish

HR

Croatian

TA

Tamil

ID

Indonesian

TH

Thai

IS

Icelandic

TR

Turkish

IT

Italian

UK

Ukrainian

JA

Japanese

VI

Vietnamese

KO

Korean

ZH

Chinese

Step 5:

Go one step back and click on Triggering

GTM_POP-up_6.png

Step 6:

If you choose GTM's premade trigger All Pages then the Consent Pop-up will be shown on all pages with the selected data-culture(languages).

GTM_POP-up_7.png

If you have a multi-language website then you must match the data-culture attribute to the right trigger.

GTM_POP-up_7.1.png

Remember to click Save and Name your tag for later use.

Finally, remember to submit your work

GTM_POP-up_11.png

If you want to block tags before consent, you can use our SDK for Google Tag Manager

See our guide here: https://support.cookieinformation.com/hc/en-us/articles/360017912532-3-2-Cookie-Control-SDK-and-Google-Tag-Manager