Multilingual websites and language tracking


#1

Hello,

I would like to know how one could best track languages and pages across a multilingual website.
Specifically, what I would seek to do would be to have multiple pages:

A visit to either of those pages should be counted as a hit of the page /mypage/ and on the side, there should be a statistic about the chosen languages. The content of those pages, except for the language, is exactly the same, so why would someone want to consider the pages as different ones?
I could manually push the page urls but that seems to me like a workaround, not a solution.

Also, I’d like to track the “user accepted languages”. I know that those are saved in the visitor log but I have not seen any chart. Did I miss something?

What would you do? Do you have any advises?
Thank you


#2

I did this way:
https://www.example.com (site in english)
https://jp.example.com
https://de.example.com
https://fr.example.com
and so on

each and every subdomain has its own id in matomo, so i got separated stats, and in all cases(98%) japanese will go only on the japanese website and so,

but I should say that they are not “exactly” the same … visual are adapted at the culture country for example japanese and chinese have mostly the same look which is quite different from the www - de - fr etc… BUT all the same thing inside :wink:


#3

Thank you for your answer.

Your way is a method how to handle such things but there are nevertheless some things that bother me in your approach:
Your different “languages” seem to have different region contents. So they are targeted at different regions.

I’m rather in the case of a website available in a country whose citizens are fluent in multiple languages. Think of Belgium or Luxembourg. Nearly everybody there speaks at least 4 languages. The language versions are targeted at the same group of people. Or think of the European Union where you have a mix of many many languages and still you are not creating a version of your website for every country individually but a general one where de and fr have exactly the same information.

Having a different site-id for every language does not attack the following questions:

  • What language is used the most?
  • On what pages do the users switch languages the most?
  • What browser language do people have who look at the website in a certain language?

and many more questions that one could think about. And finally, all the hits and visitor counts that are displayed in Matomo need to be combined throughout the different language versions. Because it is, after all, a language, an user setting, and not a different information.

Thanks :slight_smile: