WHAT DOES THIS MEAN - hreflang conflicts within page source code

Hello.

I did a scan on my website on semrush and I got this error

28,893 hreflang conflicts within page source code

Could anyone assist me on how to fix this issue?

Thanks!

Lisa

@Lisa_Bulpin

May this help you. Click Here.

The hreflang attribute helps a search engine to identify the version of a web page that matches the language and region of an audience and display it in the search results. However, conflicts may occur when using hreflang attributes resulting in incorrect search results.

A website with different language versions is not a unique attribute for large-scale projects, such as an ecommerce store or an airline reservation service . In such cases you need to enable the Hreflang tag, so that visitors can choose the appropriate language in the website’s functionality.

There are two situations where you Hreflang tag needs to be implemented -

  1. Other countries - so geographically just users locate in another country

  2. Users who are speaking another language, whether it is in the same country.

Hreflang tags are different from google translators. Hreflang are only needed when you are targeting the above two points.

The basic form of an hreflang tag is as follows:

In this, the important part is the “en” code, because this lets Google know about the language and region being targeted.

How to use Hreflang tags?

There are three places you can put hreflang labels:

  1. In on-page markup
  2. In the HTTP header of your archives
  3. In a XML sitemap

To properly set up hreflang tags to target each page to its intended language and region, you’d place tags on every page across all versions of your page.

Additionally, Google recommends specifying a default version of a page for users who don’t have a specified country or region. The default tag looks like this:

Sometimes the user’s browser language does not match any of the language versions of your website. In this case, the best option is to choose one of the default languages and direct a user to it. To do this, use the value hreflang=“x-default”.

Validating Hreflang Attributes
When using hreflang, you need to make sure that the attributes are correctly applied and if there are any conflicts between hreflang and other code elements.

The previous version of Google Search Console included the “International Targeting” section for managing hreflang tags and specifying target regions. This function has not yet been transferred to the new interface.

You may use the below tool useful for testing purposes:

https://technicalseo.com/tools/hreflang/