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
-
Adding a Canonical Tag to each page referencing itself?
Hey Mozers! I've noticed that on www.Zappos.com they have a Canonical tag on each page referencing it self. I have heard that this is a popular method but I dont see the point in canon tagging a page to its self. Any thoughts?
Intermediate & Advanced SEO | | rpaiva0 -
Crawl Issue Found: No rel="canonical" Tags
Given that google have stated that duplicate content is not penalised is this really something that will give sufficient benefits for the time involved?Also, reading some of the articles on moz.com they seem very ambivalent about its use – for example http://moz.com/blog/rel-confused-answers-to-your-rel-canonical-questionsWill any page with a canonical link normally NOT be indexed by google?Thanks.
Intermediate & Advanced SEO | | fdmgroup0 -
Shall i mark my tag pages as nofollow
Ran moz crawl, the tag pages are coming up with missing description Is it okay if the tag been 'noindexed', though they are not coming in as duplicate one Some examples been Gagan Modi - Blog entries tagged in finance
Intermediate & Advanced SEO | | Modi
http://www.mycarhelpline.com/index.php?option=com_easyblog&view=blogger&layout=statistic&id=128&
stat=tag&tagid=67&Itemid=91 Gagan Modi - Blog entries tagged in nissan
http://www.mycarhelpline.com/index.php?option=com_easyblog&view=blogger&layout=statistic&id=128&
stat=tag&tagid=68&Itemid=91 Gagan Modi - Blog entries tagged in dc avanti
http://www.mycarhelpline.com/index.php?option=com_easyblog&view=blogger&layout=statistic&id=128&
stat=tag&tagid=69&Itemid=91 Gagan Modi - Blog entries tagged in mahindra
http://www.mycarhelpline.com/index.php?option=com_easyblog&view=blogger&layout=statistic&id=128&
stat=tag&tagid=7&Itemid=91 Gagan Modi - Blog entries tagged in budget
http://www.mycarhelpline.com/index.php?option=com_easyblog&view=blogger&layout=statistic&id=128&
stat=tag&tagid=72&Itemid=91 Gagan Modi - Blog entries tagged in datsun
http://www.mycarhelpline.com/index.php?option=com_easyblog&view=blogger&layout=statistic&id=128&
stat=tag&tagid=73&Itemid=910 -
Canonical tag
Hi all, I have an ecommerce client and on the pages they have a drop down so customers can view via price, list etc. Natrurally I want a canonical tag on these pages, here's the question. as they have different pages of products, the canonical tag on http://www.thegreatgiftcompany.com/occassion/christmas#items-/occassion/christmas/page=7/?sort=price_asc,searchterm=,layout=grid,page=1 is to http://www.thegreatgiftcompany.com/occassion/christmas#items-/occassion/christmas/page=7. now, because the page=7 is a duplicate of the main page, shouldn't the canonical just be to the main page rather than page=7? Even when there is a canonical tag on the /Christmas/page=7 to the /Christmas page? hope that makes sense to everyone!
Intermediate & Advanced SEO | | KarlBantleman0 -
Canonical Tag for Pages with Less Content
I am considering using a cross-domain canonical tag for pages that are very similar but one has less content than the other. The domains are geo specific, so for example. www.page.com - with content xxx, yyy, zzz, and www.page.fr with content xxx is this a problem because while there is clearly duplicate content here the pages are not actually significantly similar since there is so much less content on one page than the other?
Intermediate & Advanced SEO | | theLotter0 -
Google tagged URL an overly-dynamic URL?
I'm reviewing my campaign, and spotted the overly-dynamic URL box showing a few links. Reviewing it, they are my Google Tagged URLs (utm_source, utm_medium_utm_campaign etc) I've turned some internal links to Google Tagged URLs but should these cause concern?
Intermediate & Advanced SEO | | Bio-RadAbs0 -
Canonical Tags?
I read that Google will "honor" these tags if your website has two url's with duplicate content. The duplicate content does not show up in my SEOmoz crawls report but they do in the search engines and many of "non authoritative links" that are generated from my search feature j(ugly url's with % ...not real user friendly) are ranking higher than the "good URL" links. So if I do the canonical tags I guess my higher ranking bad urls will drop. I even read that google might even completely overlook the links. I read somewhere that the best way to do this is with a 301 redirect...is that correct? I m ranking pretty good with my main keyword terms so I am afraid to make changes not knowing the effect. Any suggestions? Thanks, Boo
Intermediate & Advanced SEO | | Boodreaux0 -
2 Language Versions on Same URL
A site we are working on is a large gift retailer in Canada. They have a language option for French, but the page URLs are the same. If you click 'French' in the header, a cookie is set and then all pages are dynamically served the French content (and all nav/site elements of course change to French). The URLs then are exactly the same as it's the cookie that determines the language option to serve. e.g. www.site.ca/index.php?category=7&product=99.... would be the same regardless of if I'm set for English or French. Question: Does this setup have a negative impact on any SEO factors? The site has several thousand pages.
Intermediate & Advanced SEO | | BMGSEO0