# Support for multiple languages in custom consent form

**URL:** <https://community.piwik.pro/t/support-for-multiple-languages-in-custom-consent-form/1825>\
**Category:** Data collection and tags\
**Created:** [March 15, 2023, 11:23am UTC](https://community.piwik.pro/t/support-for-multiple-languages-in-custom-consent-form/1825 "2023-03-15T11:23:50Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![mdouletpro](https://avatars.discourse-cdn.com/v4/letter/m/f04885/32.png) [@mdouletpro](https://community.piwik.pro/u/mdouletpro)\
**Post date:** [March 15, 2023, 11:23am UTC](https://community.piwik.pro/t/support-for-multiple-languages-in-custom-consent-form/1825/1 "2023-03-15T11:23:50Z")

</div>

Hi,

In order to have custom consent type, I am using Tag manager on a multilanguage website.  
How can i manage the translation and how can i load the langage related to the website’s language ?

Thanks

---

<div class="post-metadata">

**Author:** ![Admin](https://avatars.discourse-cdn.com/v4/letter/a/3ec8ea/32.png) [@Admin](https://community.piwik.pro/u/Admin)\
**Post date:** [March 15, 2023, 11:50am UTC](https://community.piwik.pro/t/support-for-multiple-languages-in-custom-consent-form/1825/2 "2023-03-15T11:50:24Z")

</div>

Hi,

consent popups for different language versions can be adjusted in Consent Manager module directly:

 ![image](https://europe1.discourse-cdn.com/flex005/uploads/piwikpro/original/2X/8/89536d656e2e6f5f0302862456782fce848db306.png)

When it comes to loading language, by default it’s based on user’s browser language.

---

<div class="post-metadata">

**Author:** ![mdouletpro](https://avatars.discourse-cdn.com/v4/letter/m/f04885/32.png) [@mdouletpro](https://community.piwik.pro/u/mdouletpro)\
**Post date:** [March 15, 2023, 12:49pm UTC](https://community.piwik.pro/t/support-for-multiple-languages-in-custom-consent-form/1825/3 "2023-03-15T12:49:26Z")

</div>

Yes i know but i am talking about **Tag manager** with custom content and not **Consent Manager**  
Consent informations are in Tag code

---

<div class="post-metadata">

**Author:** ![Admin](https://avatars.discourse-cdn.com/v4/letter/a/3ec8ea/32.png) [@Admin](https://community.piwik.pro/u/Admin)\
**Post date:** [March 15, 2023, 12:57pm UTC](https://community.piwik.pro/t/support-for-multiple-languages-in-custom-consent-form/1825/4 "2023-03-15T12:57:40Z")

</div>

Could you share an example?

---

<div class="post-metadata">

**Author:** ![mdouletpro](https://avatars.discourse-cdn.com/v4/letter/m/f04885/32.png) [@mdouletpro](https://community.piwik.pro/u/mdouletpro)\
**Post date:** [March 15, 2023, 1:22pm UTC](https://community.piwik.pro/t/support-for-multiple-languages-in-custom-consent-form/1825/5 "2023-03-15T13:22:15Z")

</div>

![Screenshot 2023-03-15 at 14-02-36 Cookie Consent Modal (Edit tag) - Tags - Tag Manager - Staging rivageinvestment](https://europe1.discourse-cdn.com/flex005/uploads/piwikpro/original/2X/6/673eba171e596b41c71b880c94bf0c0e2fe6f0c0.png)

Here is my custom code.

---

<div class="post-metadata">

**Author:** ![Admin](https://avatars.discourse-cdn.com/v4/letter/a/3ec8ea/32.png) [@Admin](https://community.piwik.pro/u/Admin)\
**Post date:** [March 15, 2023, 3:11pm UTC](https://community.piwik.pro/t/support-for-multiple-languages-in-custom-consent-form/1825/6 "2023-03-15T15:11:10Z")

</div>

Ok, now I get it. Our examples don’t include support for multiple languages. I’m afraid I can’t help you. I’ll provide the feedback to the product team though to extend the examples a bit in the future.

---

<div class="post-metadata">

**Author:** ![Robert\_Clements](https://dub1.discourse-cdn.com/flex005/user_avatar/community.piwik.pro/robert_clements/32/1568_2.png) [@Robert\_Clements](https://community.piwik.pro/u/Robert_Clements)\
**Post date:** [July 13, 2023, 2:17pm UTC](https://community.piwik.pro/t/support-for-multiple-languages-in-custom-consent-form/1825/7 "2023-07-13T14:17:13Z")

</div>

Continuing the discussion from [Support for multiple languages in custom consent form](https://community.piwik.pro/t/support-for-multiple-languages-in-custom-consent-form/1825):

Hi there,

I am dealing with the same issue here with the implementation of a custom consent banner on a multi-language site.

Would the work around be implementing a tag for each language containing the custom consent banner script with the language copy, each trigged to fire on the respective language version of the site? i.e. triggered on all pages + url contains language (de)

Thanks

---

<div class="post-metadata">

**Author:** ![Dave\_W](https://dub1.discourse-cdn.com/flex005/user_avatar/community.piwik.pro/dave_w/32/2503_2.png) [@Dave\_W](https://community.piwik.pro/u/Dave_W)\
**Post date:** [October 21, 2023, 1:07pm UTC](https://community.piwik.pro/t/support-for-multiple-languages-in-custom-consent-form/1825/8 "2023-10-21T13:07:23Z")

</div>

Hi, just wondering fi you found a solution for this? I have a client asking for the exact same thing.

---

<div class="post-metadata">

**Author:** ![Robert\_Clements](https://dub1.discourse-cdn.com/flex005/user_avatar/community.piwik.pro/robert_clements/32/1568_2.png) [@Robert\_Clements](https://community.piwik.pro/u/Robert_Clements)\
**Post date:** [October 23, 2023, 7:38am UTC](https://community.piwik.pro/t/support-for-multiple-languages-in-custom-consent-form/1825/9 "2023-10-23T07:38:27Z")

</div>

Hi @Dave_W ,

My site now has a custom consent banner that loads based on users browsers language. I have six banner tags for the six languages of my site and these trigger based on the users browser language (which I pull through as a custom variable using a JS script).

For example if a users browser language contains on of the following (fr|fr-be|fr-ca|fr-fr|fr-lu|fr-mc|fr-ch) the French banner is triggered.

Thanks

---

<div class="post-metadata">

**Author:** ![Dave\_W](https://dub1.discourse-cdn.com/flex005/user_avatar/community.piwik.pro/dave_w/32/2503_2.png) [@Dave\_W](https://community.piwik.pro/u/Dave_W)\
**Post date:** [November 22, 2023, 1:37pm UTC](https://community.piwik.pro/t/support-for-multiple-languages-in-custom-consent-form/1825/10 "2023-11-22T13:37:45Z")

</div>

Thanks that’s helpful.
