Information & support > Knowledge base > Google Tag Manager >Laatst bijgewerkt opMarch 12, 2021Besides the cookiebanner you can set the language for the cookie declaration (policy) as well.When you operate a multilingual website and would like to have the cookie declaration displayed in the same language as your website you can use the data-culture attribute.In this example, the language is set to Spanish:var contentPlaceholder = document.getElementById("bodycontent"); var cookieDeclarationScript = document.createElement("script"); cookieDeclarationScript.type = "text/javascript"; cookieDeclarationScript.id = "CookiePolicy"; cookieDeclarationScript.src = "https://consent.cookiebot.com/00000000-0000-0000-0000-000000000000/cd.js"; cookieDeclarationScript.setAttribute("data-culture", "es"); contentPlaceholder.appendChild(cookieDeclarationScript); </script>14 day free trial CookiebotCookie scanner, cookie banner, cookie declaration and cookie consent in one solution.Use cookies on your website compliant with GDPR, ePrivacy and cookie legislationCookie management completely automatedCookie banner based on your corporate identityAutomatic composed cookie declaration, always up to dateStart 14 day free trialThe Cookiebot solution runs on 2,3 million websites, manages 7 billion monthly User Consents and supports 47+ languages.Previous Facebook Twitter LinkedIn E-mailNext
Laatst bijgewerkt opMarch 12, 2021Besides the cookiebanner you can set the language for the cookie declaration (policy) as well.When you operate a multilingual website and would like to have the cookie declaration displayed in the same language as your website you can use the data-culture attribute.In this example, the language is set to Spanish:var contentPlaceholder = document.getElementById("bodycontent"); var cookieDeclarationScript = document.createElement("script"); cookieDeclarationScript.type = "text/javascript"; cookieDeclarationScript.id = "CookiePolicy"; cookieDeclarationScript.src = "https://consent.cookiebot.com/00000000-0000-0000-0000-000000000000/cd.js"; cookieDeclarationScript.setAttribute("data-culture", "es"); contentPlaceholder.appendChild(cookieDeclarationScript); </script>