Tagged: google analytics, wpml
-
AuthorPosts
-
March 31, 2021 at 1:19 pm #1291543
Dear Kriesi Team!
I’ve created a new website in 3 different languages using the WPML plugin and Enfold Theme.
I’m not sure how to insert the google analytics when having a multilingual site. Searched the internet but nothing clear when it comes to the Enfold theme.What I’ve done is this:
In the wordpress dashboard under the “Enfold” menu the “Google Services” can include different tracking codes depending on which language version I click on inside the Enfold dashboard. So therefore I created in google analytics three different properties with each one directing to either the default language (www.lamola.dk), the english version (lamola.dk/?lang=en) or the german version (lamola.dk/?lang=de). So one property for each language. I did not create a subdomain/subfolder for the languages in wpml.
In the Enfold menu of the dashboard, I choose a language and insert the corresponding google analytics code for each language. See screenshot: https://ibb.co/ThhLHDn
My question is:
is this correct way of doing it in Enfold? Or should I use the same google analytics tracking code on the whole website and copy paste the same code in all 3 language versions of the Enfold dashboard?And does this disrupt that I also have the MonsterInsigts pluding installed with a UA code connected from the Danish google analytics property (the UA used in MonsterInsights and the G copied into Enfold, the two other languages only have G codes).
Please bear in mind I have no knowledge of coding or programming. Just using wordpress/enfold and copy pasting code :)
Thanks in advance!
Best
Toni- This topic was modified 3 years, 7 months ago by SoundComposer.
April 3, 2021 at 8:13 am #1292057Hi Toni,
If you need different tracking codes for each language, then what you have done is correct. If you don’t need different codes for each language, then you can paste the same code in all languages.
I’m not if the theme code will clash with your plugin, but it’s likely better to only have the tracking code in one place.
Best regards,
RikardApril 7, 2021 at 12:33 am #1292938Ok, thanks for the answer Rikard!! :)
In you opionion what is best. As a newbie in google tracking codes I’m guessing one code for all languages would be the easiest and the best, right?
April 8, 2021 at 3:21 pm #1293283Hi,
It is recommended to add one analytics code per domain so please use one :)
Best regards,
YigitApril 13, 2021 at 12:49 pm #1294098Thanks Yigit! :)
April 13, 2021 at 12:51 pm #1294100Hi,
You are welcome! :)
For your information, you can take a look at Enfold documentation here – https://kriesi.at/documentation/enfold/
If you have any other questions or issues, feel free to start a new thread under Enfold sub forum and we will gladly try to help you :)
Enjoy the rest of your day!
Best regards,
Yigit -
AuthorPosts
- The topic ‘Google Analytics on Multilingual Enfold’ is closed to new replies.