iubenda / gtm-cookie-solution

Google Tag Manager template for iubenda's Cookie Solution
Apache License 2.0
3 stars 2 forks source link

Insert Cookie Banner manually #2

Open emkeythekeyem opened 2 years ago

emkeythekeyem commented 2 years ago

Hello, how do you handle multiple languages while using the Automatically via GTM template ? Is there a way to pass some GTM variables to it? I've tried with {{ iubenda_cookie_id }} or the {{iubenda_lang_id}} but it does not work.

Alternatively how do you manually insert the cs script ? Is there an example ? I've tried creating a new custom htm tag and adding the iubenda banner script and it shows, the only problem that is necessary is that the gtag("consent", "update", {...}) is not fired whilte with the "Automatically via GTM template" it is.

Thanks!

dancom86 commented 2 years ago

Hi, thank you for reaching us.

In this case, you should create a specific Cookie solution script using javascript as explained here https://www.iubenda.com/en/help/1209-how-to-use-the-cookie-solution-in-a-multilingual-wordpress-site#without-plugin

The example in our guide needs jQuery but here you can also find a simple javascript snippet https://github.com/dancom86/iubendacookiesolution-multilangual

Since you can't use the "automatically via GTM template" I suggest you add the cookie solution script in the head tag of your website.

Hope this helps!

NoSync commented 1 year ago

Any news regarding being able to use the template for multiple languages? Been a while.

dancom86 commented 1 year ago

Hi!

I wanted to thank you for reaching out to us.

At the moment, I regret to inform you that we do not have any other solutions available.

However, I want to reassure you that we are doing everything we can to assist you with the steps we have already provided in our last response.

Please do not hesitate to let us know if you have any further questions or concerns. We are always here to help in any way we can.

Thank you again for your understanding and cooperation.

mlocati commented 9 months ago

See #8 for a solution.