Google Not Detecting Link Hreflang Tags
We have a single TLD.
We vary content for different regions and languages using paths, e.g.:
example.com/CA/fr-CA (French Canadian for Canada)## Heading ## example.com/AT/de-AT (Austrian German for Austria)
These pages link to each other using
rel="alternate" hreflang="xx-YY", as described here:
There is a link with
hreflang="x-default" which points to
Here's a snipt;x-default" which points to
Here's a snippet of the tags
<link rel="alternate" href="https://www.example.com/" hreflang="x-default" /> <link rel="alternate" href="https://www.example.com/AE/en-GB" hreflang="en-AE" /> <link rel="alternate" href="https://www.example.com/GB/en-GB" hreflang="en-GB" /> <link rel="alternate" href="https://www.example.com/US/en-US" hreflang="en-US" /> <link rel="alternate" href="https://m.example.com/" media="only screen and (max-width: 754px)" hreflang="x-default" /> <link rel="alternate" href="https://m.example.com/AU/en-AU" media="only screen and (max-width: 754px)" hreflang="en-AU" /> <link rel="alternate" href="https://m.example.com/AT/de-AT" media="only screen and (max-width: 754px)" hreflang="de-AT" />
Because we have a separate mobile site, we are also linking to the equivalent mobile url, using a
media="only screen and (max-width: 754px)"
Google Webmaster Tools reports
Your site has no hreflang tags
It's unclear why, because they are present.
Do we just need to be patient for these hreflang tags to be recognised? How long do we wait?
Does Google not like combining the mobile and internationalisation linking? We can drop mobile if so.
Does Google require default languages, e.g.
hreflang="en"? This doesn't make sense for us because all our content is regionalised. if this is true, what do I do?
The mobile version of each page is treated as an alternate version of the desktop page. On the mobile version, you use canonical links to point to the desktop version. Use only 1 canonical link on mobile and use it to point to the desktop version of the same language/region. No need to use hreflang on the mobile version of the page.
Similarly, on the desktop page, use hreflang to link to all other desktop pages. No need to link to mobile pages (except the mobile version of the same lang/region).
You can use my hreflang testing tool at hreflang dot org to validate your tags.
- → How do I call the value from another backed page form and use it on a component in OctoberCms
- → Inline JS callback syntax Vs Internal JS callback syntax
- → Prevent form action from being followed by robots
- → How to remove parameters from the root URL if it does I18n
- → SEO Canonical URL in Greek characters
- → Htaccess negation
- → Wrapping anchor elements with text
- → Adding schema.org to site
- → dynamic php title depends on page id and using of "if (isset"
- → Building sitemap for 2 wordpress install under 1 domain
- → Bigcommerce Repeating url
- → 301 Redirection from no-www to www in wordpress
- → Wrapper inside or outside HTML5 semantics main, which is best practice?