support home

Back to website
Welcome
Login  Sign up

How to set up GTM Template for multilingual?

Hello,
thank you for reaching us!

Let me briefly explain how to use the multilingual part of the GTM template.


CS Configuration textarea

In the first textarea related to CS Configuration, you need to insert the JSON of the main script, which will also be used as a fallback. However, it is important to remove the "lang" parameter from the script. This script can contain the siteID and cookiePolicyId parameters.


CS Language Configuration textarea

In the part related to CS Language Configuration, you should insert an initial "language" code and, if possible, only the cookiePolicyId that identifies that language in the configuration. In this area as well, it is not necessary to include the "lang" parameter in the configuration file.

Here is an example:

image.png

How it works

Currently, the Cookie Solution (subject to possible future changes) automatically detects the correct language by reading the HTML code of the page, specifically the "lang" attribute found in the <html> tag of each website.
If this attribute is not available, the Cookie Solution will use the language set as the main language in the user's browser. If this is also not available, the default language will be English.

I hope this information is helpful. For further clarifications, please do not hesitate to contact us.

Did you find it helpful? Yes No

Send feedback
Sorry we couldn't be helpful. Help us improve this article with your feedback.