Are my language tags correct?
-
Hello,
I have a Spanish website for Spanish speaking people es.example.com. I also have example.com for all English speaking people across the world.
I want that users who go to google.es and search in English get our example.com site and others who search in Spanish on google.es get the Spanish site.
Should the tags be like this:
Or should we also have this tag aswell to specify? Otherwise we might only show the es.domain even for english queris? :
-
Both the hreflang looks correct if your site is targeting only :
- Spanish speaking users in Spain (hreflang="es-ES")
- English speaking users in Spain (hreflang="en-ES"
If you are targeting English speaking users no matter the country, then you should use the hreflang="en" and not "en-ES".
-
You can create an hreflang with codes "en-es", because "es" also is the iso code of Spain as country, so the hreflang "en-es" is English in Spain (albeit would be better writing en-ES, but Google is not caps sensitive from what I know).
Second... you don't need to use the hreflang in every page, only in the ones that really need it.
For instance, if a page is canonicalized to another, the best way to avoid potential hreflang implementation mistakes (for instance, for not using the canonical URLs in the hreflang annotations) is not implementing it at all... because for its same canonicalized nature.
-
Hi there!
Just to confirm (it was implied by the Google.es comment but international targeting was never specified) - are you looking to target Spanish speakers in Spain only? Or are you attempting to target Spanish speakers worldwide?
If you are looking to target Spanish speaks in Spain only, then yes, this would be correct.
If you are looking to target Spanish speakers globally, you would want the tag to be:
-
Hello!
yeap, those are correct.
And no, you should not create a hreflang tag with es-en. Remember that those tags must be in all pages, and have the self referential tag.Here a few resources to help you more:
Hreflang generator - Aleyda Solis International SEO - Moz Learning Center The Guide to International Website Expansion: Hreflang, ccTLDs, & More! - Moz Blog The International SEO Checklist - Moz BlogBest Luck!
GR.
Got a burning SEO question?
Subscribe to Moz Pro to gain full access to Q&A, answer questions, and ask your own.
Browse Questions
Explore more categories
-
Moz Tools
Chat with the community about the Moz tools.
-
SEO Tactics
Discuss the SEO process with fellow marketers
-
Community
Discuss industry events, jobs, and news!
-
Digital Marketing
Chat about tactics outside of SEO
-
Research & Trends
Dive into research and trends in the search industry.
-
Support
Connect on product support and feature requests.
Related Questions
-
X Default on hreflang tags
Hi guys, I would like to clarify something about hreflang markups and most importantly, x-default. Sample URLs:
Intermediate & Advanced SEO | | geekyseotools
http://www.example.com/au/collection/dresses (Australia)
http://www.example.com/us/collection/dresses (United States)
http://www.example.com/uk/collection/dresses (United Kingdom) Sample Markups: Questions:
1. Can I use my AU page as x default? I noticed that some x default are US. Note that my biggest market is AU though.
2. If I indeed use AU page as x default, and the user is searching from China, does it mean that Google will return my AU page?
3. Can you spot any issues with these markups I made? Anything that I need to correct. Keen to hear from you! Cheers,
Chris0 -
In our reports we get alt tag errors for our banner images. We are unable to add alt tags to the banner images as they live inside CSS. We can add a title tag on the div title for the banner. Does that help with SEO and accessibility?
We are unable to add alt tags to the banner images as they live inside CSS. We can add a title tag on the div title for the banner. Does that help with SEO and accessibility?
Intermediate & Advanced SEO | | Shirley.Fenlason0 -
How long does internationlisation take to be indexed correctly
Hi guys I have had a UK site that has been indexed in Google for some time. Recently we started targeting Ireland and so I created a folder to do this (domain.com/ireland/) As well as adding an /irland/ folder I created a hreflang sitemap and in Webmaster Tools I specified that .com/ireland/ targets Ireland and .com targets UK. However this was all two weeks ago and Im still not seeing the Irish pages start ranking in Google.ie and was hoping one of you guys would be able to help me out? How long should it take for these pages to start appearing in the relevant country specific search engine? Deepcrawl states that the Hreflang is correct as well so Im just a bit worried that Ive missed something glaringly obvious! Thanks
Intermediate & Advanced SEO | | AndrewAkesson0 -
K3 duplicate page content and title tags
I'm running a Joomla site, have just installed k2 as our blogging platform. Our Crawl Report with SEOMOZ shows a good bit of duplicate content and duplicate title tags with our K2 blog. We've installed sh404SEF. Will I need to go into sh404SEF each time we generate a blog entry to point the titles to one URL? If there is something simpler please advise. Thank you, Don
Intermediate & Advanced SEO | | donaldmoore0 -
Should I remove Meta Keywords tags?
Hi, Do you recommend removing Meta Keywords or is there "nothing to lose" with having them? Thanks
Intermediate & Advanced SEO | | BeytzNet0 -
Should i use Categories or Tags ?
Hi 🙂 My blog is http://www.dota2club.com/ and i am not sure should i use Categories as tags or normally tags like most ? And how much are important tags generally ? Right now you can see that i am using Categories as tags , is this ok ? Thank you !!!!
Intermediate & Advanced SEO | | wolfinjo1 -
Is a 301 Direct with a canonical tag Possible ?
Hi All, Quick question , Are we correct in thinking that for any given URL it's not possible to do a 301 redirect AND a canonical tag? thanks Sarah
Intermediate & Advanced SEO | | SarahCollins0 -
Does having several long title tags hurt you?
Our title tags are dynamically generated, and some have over 140 characters. Does having a large quantity of URLS with an excessive number of characters hurt you in any way?
Intermediate & Advanced SEO | | nicole.healthline0