问题原文
原帖链接 · Steve · CC BY-SA 4.0
I recently updated my website to accept to languages, also did some SEO research and used hrelangs tags to tell google which version of my website to show based on the users language to avoid the issue i'm facing right now.
<link rel="canonical" href="https://example.gr/">
<link rel="alternate" href="https://example.gr/" hreflang="el-gr">
<link rel="alternate" href="https://example.gr/" hreflang="el">
<link rel="alternate" href="https://example.gr/" hreflang="x-default">
<link rel="alternate" href="https://example.gr/en" hreflang="en">
This is what i have in my headers, but, google displays the english version of my website, why is this happening?
**UPDATE
Using URL inspection tool within Search Console displays the canonical as the one i set, but Google hasn't set a canonical yet.
已采纳解答
原帖链接 · Kannan · CC BY-SA 4.0
Google relies on several signals to determine the language of a user. And Google's algorithms like most machine learning algorithms are not always hundred percent correct. For example, browsing history is an important factor. But a user can browse sites in different languages. In such a case, Google determines your language based on its algorithms which can be imperfect due to conflicting signals.
So it is always a good idea to have a language switcher (like a dropdown). Thus a user can navigate to the correct version if Google leads him to another.
摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。
