Last Friday, I was invited to speak at BrightonSEO on the subject of hreflang tags. You can take a look at the slides here.
Following the presentation we had a number of questions on the implementation of hreflang tags on a range of website setups. I’ve answered the top 12 questions below which will help you make the most of your international targeting.
(Source: A&P Twitter)
If you are going to use the hreflang tag on page the syntax looks like this:
<link rel=”alternate” href=”http://example.com/en-ie” hreflang=”en-ie” />
<link rel=”alternate” href=”http://example.com/en-ca” hreflang=”en-ca” />
<link rel=”alternate” href=”http://example.com/en-au” hreflang=”en-au” />
<link rel=”alternate” href=”http://example.com/en” hreflang=”en” />
If you are using the hreflang tag in your sitemap.xml file the syntax looks like this:
In the <head> section. Placing them outside of the <head> or in the <body> will result in the search engines not seeing the codes correctly.
No it doesn’t – however make sure you only do one of these because if you do more you will potentially create problems where your hreflang tags for a specific page are different in the sitemap than on the code of the page. Generally, if your website is ecommerce, very large, or has a lot of regularly updating content it will likely be that a sitemap file solution is better for you.
No, this can go either at the beginning of the tag directly after <link or at the end after the URL and the hreflang tag declaration.
X-Default tags should be used for the language selection pages of your site – if someone has a default country selector on their main domain when someone first visits the site this is the X-default page. Similar to the UPS website shown below:
You can, but this won’t work very well and could result in subpages not performing correctly. The search engines don’t automatically filter this down to all subpages on a site.
Ideally yes. If your original website has been running a long time it may still perform better than a newer ccTLD domain in a different country. We’ve seen instances in Google.fr where multiple ccTLDs outranked a new .fr domain name for a company. Yes, a ccTLD is better for gaining an advantage in terms of targeting a country, but it doesn’t preclude a search result showing up for a ccTLD for another country if the domain is strong and the content is relevant.
Yes – these are different things. Hreflang tags are for the search engines, encouraging them to serve the correct site for each geographic location your website is in, in the correct location for this site. Remember to make sure IP serving can be overridden as the search engine crawlers don’t come from lots of different locations – Google is always in the US for example.
No. Using the Hreflang tag you can target a language (French for anyone in the world) but you can’t target a country (France) unless you’ve already declared a language. Language always comes first.
No, so for example you can’t target an English language .eu domain to every country in Europe.
No, because you can’t target one page to multiple locations or group a series of countries together in the hreflang tag. Each target location must be a unique country and not a group of countries such as the EU. Targeting in this way is best achieved on site with a banner or message similar to Amazon. However from a user point of view it might be better to have either one unique ‘catch all’ site or all localised content.
There could be a number of reasons why this might be the case. Below I’ve outlined some of the most frequent things we find might be causing this:
– Time the hreflang tag has been in place – if this has just been a few weeks the search engines might not have picked it up yet.
-Ignoring the current page – make sure you list the current language and country target as well as the alternatives.
– No Return errors – where the hreflang tags aren’t reciprocally linking to each other and confusing the search engines.
– Correct implementation of language and country combinations, including the correct codes used.
If you are still having issues with the hreflang tag or have further questions for Emily, then get in touch. Send us an email to firstname.lastname@example.org or tweet us at @ObanDigital. You can find further information in our latest guide to International SEO here.