Displaying the Cookie banner in a specific language with Google Tag Manager

You can display the cookie banner in a specific language. This can be done by adding the attribute “culture” to the Cookiebot script. The attribute value is the ISO language code.

Simply modify the CookieConsent tag code in GTM. Do you have a multilingual website and would like the banner display a custom language for each specific URL? Have a look at the article: multilingual support when using GTM.

Example: Always show the cookie banner in Spanish

<script id="CookieConsent" src="https://consent.cookiebot.com/uc.js?cbid=00000-0000-00000-0000-00000000&amp;culture=es" type="text/javascript" async>
 <script>
 function CookieConsentCallback_OnAccept() {
 if (CookieConsent.consent.preferences)
 dataLayer.push({'event':'cookieconsent_preferences'});
 if (CookieConsent.consent.statistics)
 dataLayer.push({'event':'cookieconsent_statistics'});
 if (CookieConsent.consent.marketing)
 dataLayer.push({'event':'cookieconsent_marketing'});
 }
 </script>

Don’t forget to change the cbid=00000000-0000-0000-0000-000000000000 with your own code.

30 day free trial Cookiebot

Cookie scanner, cookie banner, cookie declaration en cookie consent in one solution.

  • Use cookies on your website compliant with GDPR, ePrivacy and cookie legislation
  • Cookie management completely automated
  • Cookie banner based on your corporate identity
  • Automatic composed cookie declaration, always up to date

The Cookiebot solution runs on 500,000+ websites, manages 13 billion User Consents and supports 40+ languages. CookieInfo is the largest Cookiebot partner in Europe.