Mobile app version of vmapp.org
Login or Join
Kristi941

: Getting user language via Google cookies Just thought, if that would be possible, I can get users native language, and display my webpage on their language, or on the closest one. So; Is it

@Kristi941

Posted in: #Cookie #Design #Google #Language

Just thought, if that would be possible, I can get users native language, and display my webpage on their language, or on the closest one. So;

Is it possible to get someone's language using his/her Google account cookies in somehow?

10.03% popularity Vote Up Vote Down


Login to follow query

More posts by @Kristi941

3 Comments

Sorted by latest first Latest Oldest Best

 

@Sent6035632

You don't need a to get GOOGLE cookies because you can get yourself with PHP or other things the System language because that I find persobaly better. Reason is that the system labguage us very iften not the language from client location

10% popularity Vote Up Vote Down


 

@Deb1703797

To answer your question, you don't need to hack into Google's cookies to get that information, but can find it out yourself in your own code.

IMPORTANT NOTE: You are talking about automatically serving content to users based on their language settings, which can actually lead to a lot of SEO problems if done badly. A better option is to serve the URLs as normal, and if you detect that the user is viewing a different language version than their own, you provide a pop-up that offers to take them to the language of their choice. This approach will also allow you to correctly encode hreflang tags on your pages and will facilitate Google automatically picking up the most relevant language version to show users is search results.

10% popularity Vote Up Vote Down


 

@Sarah324

No, because you do not have access to Google's cookies. You only have access to the cookies your website sets.

Fortunately there are ways to get this language yourself using JavaScript.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme