Expand my Community achievements bar.

Guidelines for the Responsible Use of Generative AI in the Experience Cloud Community.

Google search results are based on their country-specific website is not working

Avatar

Level 2

We have multiple English websites targeting different regions such as the US, India, and Europe.

We have implemented hreflang tags in the head section of each website to indicate the corresponding language and country. However, we are experiencing an issue where Google search results for our website in India or Europe are showing results for the US website instead.

We have also created country-specific sitemap.xml files. CDN also there and geo based we can access our website 

Please advise on how we can resolve this issue and ensure that when users search for our website on Google, the search results are based on their country-specific website.

 

=============================================

<meta name="template" content="base-page"/>
<meta name="robots" content="index,follow"/>
<link rel="alternate" href="https://www.xyz.com/us/en.html" hreflang="en-US"/>


<link rel="canonical" href="https://www.xyz.com/us/en.html"/>

===============================================
<meta name="template" content="base-page"/>
<meta name="robots" content="index,follow"/>
<link rel="alternate" href="https://www.xyz.com/in/en.html" hreflang="en-IN"/>


<link rel="canonical" href="https://www.xyz.com/in/en.html"/>

===============================================

<meta name="template" content="base-page"/>
<meta name="robots" content="index,follow"/>
<link rel="alternate" href="https://www.xyz.com/eu/en.html" hreflang="en-GB"/>


<link rel="canonical" href="https://www.xyz.com/eu/en.html"/>

5 Replies

Avatar

Community Advisor

Hi @upendarme1 ,

You may give a try by lowering the case like en-us, en-in, en-gb

MukeshYadav__1-1721465538862.png

 

Note:- The hreflang attribute is a signal, not a directive. So there’s no guarantee that search engines will display a certain version of the page. 

And it’s worth pointing out that Google and Yandex use hreflang attributes. While Baidu and Bing don’t—they rely on the content-language HTML attribute.

Reference:- https://www.semrush.com/blog/hreflang-attribute-101/

Thanks

Avatar

Level 2

Let me try and another thing , do we need to put all countries hreflang in every page?

 
<link rel="canonical" href="https://www.xyz.com/en-in/"/>
<link rel="alternate" hreflang="en-us" href="https://www.xyz.com/en-us/"/>
 
<link rel="alternate" hreflang="en-gb" href="https://www.xyz.com/en-gb/"/>
 
<link rel="alternate" hreflang="en-in" href="https://www.xyz.com/en-in/"/>

Avatar

Administrator

@upendarme1 Did you find the suggestion helpful? Please let us know if you require more information. Otherwise, please mark the answer as correct for posterity. If you've discovered a solution yourself, we would appreciate it if you could share it with the community. Thank you!



Kautuk Sahni