Skip Navigation

This is the technical support forum for WPML - the multilingual WordPress plugin.

Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.

Tagged: 

This topic contains 1 reply, has 2 voices.

Last updated by Bruno 1 year, 9 months ago.

Assigned support staff: Bruno.

Author Posts
October 25, 2019 at 9:26 am #4825481

bilginK

Hi,

we have a website with 3 language, per domain per language. I have google analycis tracking codes and could you please help me to add the codes?

hidden link:

<!-- Global site tag (gtag.js) - Google Analytics -->

<script async src="hidden link"></script>

<script>

window.dataLayer = window.dataLayer || [];

function gtag(){dataLayer.push(arguments);}

gtag('js', new Date());

gtag('config', 'UA-150747280-2');

</script>

hidden link

<!-- Global site tag (gtag.js) - Google Analytics -->

<script async src="hidden link"></script>

<script>

window.dataLayer = window.dataLayer || [];

function gtag(){dataLayer.push(arguments);}

gtag('js', new Date());

gtag('config', 'UA-150747280-3');

hidden link

<!-- Global site tag (gtag.js) - Google Analytics -->

<script async src="hidden link"></script>

<script>

window.dataLayer = window.dataLayer || [];

function gtag(){dataLayer.push(arguments);}

gtag('js', new Date());

gtag('config', 'UA-150747280-1');

</script>

October 25, 2019 at 10:03 pm #4830241

Bruno

Hello,

Thank you for contacting us. Within your theme's footer.php, you should add these lines (before the </body> tag): https://pastebin.com/ti3N9a24

Then clear your site's cache and then see if the code is being added correctly when your site is accessed.

Please, let me know if I can help with any other questions you may have about it. I'll be happy to help.

Thank you.