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
-
Link title tags on devices - product category page
I saw that any big page doesn't have a title tag on the product link on the category page. Title tag has any advantages on internal links?
Intermediate & Advanced SEO | | Tormar0 -
Bad SEO Practice: in title tag?
Greetings, I just discovered that some of our content was produced with
Intermediate & Advanced SEO | | Eric_Lifescript
tags in the title tag. Example: <title>Diabetes Symptoms <br> In Women Over 40</title> My gut says this is bad for SEO, but I couldn't find a definitive answer on the web, so I thought I would ask the community of gurus here at Moz. 🙂 Thanks in advance for any reply. Kind regards, Eric0 -
Using on two pages a keyword in alternative language in the title
Hello SEO wizards, The main language on my website is english, and I am wondering if I can add a keyword in russian to couple of pages to the title and image alt tag and maybe header , with the hope that it would rank in google with that russian keyword.. But I am not sure how google would react to that, I tried to search information on that, but could not find a clear answer.... Many thanks for anybody who takes time to respond
Intermediate & Advanced SEO | | bidilover0 -
SEO Title Versus Meta Description Tag
From an SEO perspective, is the title tag more important than the description tag? We use a set format for these tags on our real estate web site. The site contains 300 listings. Sample Title Tag:
Intermediate & Advanced SEO | | Kingalan1
Greenwich Village | Office Space Rental| 2300SF $9583/month Sample Description Tag:
Classic Greenwich Village office rental. Hardwood floors, 11' ceiling. 5 oversized windows. 24/7 attended lobby. Renovated common areas. Below market rent. Are we shooting ourselves in the foot by repeating the Square Footage and monthly rent amounts in the title tag? Should this tag be used for a short more descriptive terms so as to maximize the SEO benefit? Should these numbers be listed in the description tag? The listings are not heavily SEO optimized so I don't know whether this is really a non-issue.0 -
Blog Content In different language not indexed - HELP PLEASE!
I have an ecommerce site in English and a blog that is in Malay language. We have started the blog 3 weeks ago with about 20-30 articles written. Ecommerce is using MAgento CMS and Blog is wordpress. URL Structure: Ecommerce: www.example.com Blog: www.example.com/blog Blog category: www.example.com/blog/category/ However, google is indexing all pages including blog category but not individual post that is in Malay language. What could be the issue here? PLEASE help me!
Intermediate & Advanced SEO | | WayneRooney0 -
Multi Language Redirect Issues
Hello everyone, this is my first post and as so let me first say, Thank you! The SEO Moz community and SeoMozPro have been giving a great help in making my workflow simpler and richer. Lately I've been reading and learning a lot about indexation, in the process I have been making several improvements to some websites, but there is one particular that I am not able to understand. I am writing this post to ask for your help on an issue related to this website: www.dengun.com We are a Web Agency based in Portugal and most our clients are from Portugal. We have an English version and a Portuguese version of the website. It is setup like this: www.dengun.com/en www.dengun.com/pt When the user hits www.dengun.com it redirects to /en or /pt acording to the browser language. The HTTP status code is 302, i was reading in SEOMoz that this is bad because it's not passing rank to the other pages. Will a 301 redirecting to /en and /pt according to the browsers language? What is the best solution? Thanks.
Intermediate & Advanced SEO | | PedroSaiote0 -
301 redirect changed googles cached title tags ??
Hi, This is a new one to me ?! I recently added some 301 redirects from pages that I've removed from my site. Most of them just redirect to my home page, whilst a few redirect to appropriate replacement pages. The odd thing is that when I now search my keywords googles serp shows my website with a title that was on some of the old (now removed and redirected) pages. Is this normal? If so, how should I prevent this from happening? What is going on? The only reasons I set up the redirects was to collect any link juice from the old pages and prevent 404s. Should I remove the 301s? I fetched as google and submitted - to see if that updates the tags. (not been indexed yet) Any help would be appreciated. Kind Regards Tony
Intermediate & Advanced SEO | | thephoenix250 -
Does City In Title Tag Inhibit Broader Reach?
I use our city/state in the majority of our title tags and consequently we do very well locallly for the majority of terms on our ecommerce site. I'm wondering however, if this "localized" optimization will inadvertently affect our keyword rankings outside of our city/state? If a keyword query does not include our city or state, would Google interpret our titles as less relevent and therefore move other results ahead of ours? The city/state is last in the string on the title: Blue Widgets - Our Company in City, State Thanks for any insight.
Intermediate & Advanced SEO | | AWCthreads0