Hreflang tag implentation
-
Hi,
We've had hreflang tags implemented on our site for a few weeks now, and while we are seeing some improvements for the regional subfolders I wanted to double check I had the tags implemented correctly (a couple of examples are below). However while the regional subfolder sites are now ranking instead of the US site for some keywords, some key search terms are still returning the US site. Could this be due to incorrect implementation for that specific page?
Due to complications with using Magento we're implementing the tags in the site maps. Also magento appears to be inserting a rel canonical tag automatically for each page and self referencing e.g. On www.example.com/uk/security-cameras (one of the pages we're having issues with) the canonical tag is http://www.example.com/uk/security-cameras" />. Is this an issue?
Any advice would be appreciated. Thanks.
<url><loc>http://www.example.com/uk/dvrs-kits</loc>
<lastmod>2014-07-23</lastmod>
<changefreq>daily</changefreq>
<priority>0.5</priority></url>
<url><loc>http://www.example.com/uk/dvrs-kits/1080p</loc>
<lastmod>2014-07-23</lastmod>
<changefreq>daily</changefreq>
<priority>0.5</priority></url> -
Thanks.. it took me a while but I did realise that one eventually.
-
Thanks Thomas. That is how our sitemap now reads. It just seems odd that when you access map via a browser the hreflang tags don't appear...
-
The answers you received here in the thread are correct:
your sitemap implementation is wrong, because it commits a classic mistake: self-referencing hreflang annotations are missing.
In other words, you must declare that the URL http://www.example.com/uk/dvrs-kits is the one Google must show to English speaking users in the UK.
So you must add this:
Seeing the changes taking place in the SERPs is not immediate.
-
So I will test the site map agin after you made the XML sitemap did you tell Google about language and country targeting? Use tell Google Webmaster tools to Geo target the subfolders? http://www.google.com/webmasters/ Check your listing all over the world http://www.isearchfrom.com/ https://support.google.com/webmasters/answer/2620865?hl=en&ref_topic=2370587 You need the site map to look like this. <url><loc>http://www.example.com/english/</loc> **This is the URL we want to be indexed** <xhtml:link rel="alternate" <strong="">This tells Google there is an alternate version of the URL hreflang="de" **This tells Google the language we’re targeting with the alternate version (German)** href="http://www.example.com/deutsch/" **This tells Google the URL of the alternate version** /> <xhtml:link rel="alternate" <strong="">This tells Google that there is an alternate version of the URL hreflang="de-ch" **This tells Google the language and country we’re targeting with the alternate version (German and Switzerland)** href="http://www.example.com/schweiz-deutsch/" **This tells Google the URL of the alternate version** /> <xhtml:link rel="alternate" <strong="">This tells Google that there is an alternate version of the URL hreflang="en" **This tells Google the language we’re targeting with the alternate version (English)** href="http://www.example.com/english/" **This tells Google the URL of the alternate version** /></xhtml:link></xhtml:link></xhtml:link></url>
Important note - the example above is only for one URL which has three alternate versions. The following code is an example of a full XML sitemap which includes three URLs, each with three alternate versions.
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:xhtml="http://www.w3.org/1999/xhtml"><url> <loc>http://www.example.com/english/</loc> </url> <url> <loc>http://www.example.com/deutsch/</loc> </url> <url> <loc>http://www.example.com/schweiz-deutsch/</loc> </url></urlset> I will use Deep Crawl to look for hreflang it site maps. You might want to use the header way if it is not working. Thomas
-
I've updated the site maps but the hreflang tags still aren't showing when you view the site map...
-
I think I might see the problem. I'm only referencing the alternative pages with the hreflang tag, I've not included the site itself. it should be:
<url><loc>http://www.swann.com/uk/dvrs-kits</loc>
<lastmod>2014-07-23</lastmod>
<changefreq>daily</changefreq>
<priority>0.5</priority></url> -
This is the beginning of my sitemap for the UK subfolder, as far as I can see we're following both the case studies you posted and the Google advice on the structure. But as you point out when you view the sitemap online it's not showing the hreflang tags.
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:xhtml="http://www.w3.org/1999/xhtml"><url><loc>http://www.swann.com/uk/dvrs-kits</loc>
<lastmod>2014-07-23</lastmod>
<changefreq>daily</changefreq>
<priority>0.5</priority></url>
<url><loc>http://www.swann.com/uk/dvrs-kits/1080p</loc>
<lastmod>2014-07-23</lastmod>
<changefreq>daily</changefreq>
<priority>0.5</priority></url>
<url><loc>http://www.swann.com/uk/dvrs-kits/960h</loc>
<lastmod>2014-07-23</lastmod>
<changefreq>daily</changefreq>
<priority>0.5</priority></url></urlset> -
-
- Here is the next test
- Use this link to see in the the site
- http://crawl.blueprintmarketing.com/projects/reports/69930?ro=991e4a1c6d5086bd0bd4d0965e3b6037ed69b692
- http://cl.ly/3G2h3u464400
- Files
- http://cl.ly/3G2h3u464400
- http://searchengineland.com/how-to-implement-the-hreflang-element-using-xml-sitemaps-123030
- https://search.nerdydata.com/search/#!/searchTerm=http://www.swann.com//searchPage=1/sort=pop
- sitemap
- http://cl.ly/text/1d2E2h3P022J
- http://cl.ly/text/0t0T3T2p210h
- https://cl.ly/Xjb3
-
Thanks for running this.
The deeptrawl says that there are no hreflang tags in place. If you view the sitemap.xml files on the site you can't see any there either. However they're definitely in the files I'm giving to my colleague to upload.
I matched the structure of the tag to the two case studies you put in your first post...
-
Here is crawl 1
- http://cl.ly/3u0Z3N0S3m1B
- Interactive URL
- http://crawl.blueprintmarketing.com/projects/reports/69929?ro=0de594f6c4b262001d6d234c282d8ade7e42c020
- http://crawl.blueprintmarketing.com/report_grid/trend/69929/pages_without_hreflang
- &
- http://crawl.blueprintmarketing.com/report_grid/69929?repname=pages_without_hreflang
- I am still running a 2ed full crawl it will post in the AM
Tom
-
You could use the site map however I've had better luck with other methods. If you would like me to I am more than happy to run deep crawl on your site and figure out the problem with your current setup via site map
I have Deepcrawl & will use it to check.
I am referencing this from
http://moz.com/blog/hreflang-behaviour-insights
"Section 4: Tools for the serious International SEO
Essentials:
- Reliable rank tracker that can localize: Advanced Web Ranking, Moz, etc...
- Crawler that can validate hreflang annotations in XML sitemaps or within : The only tool on the market that can do this, and does it very well, is Deepcrawl.
Other nice-to-haves:
- Your own method of "gathering" international search results on scale. You should probably go with proxies.
- Your own method of parsing XML sitemaps and cross checking (even if you use something like Deepcrawl, you'll need to double check).
- Obvious, but worth a reminder: Google webmaster tools, Analytics, access to server logs so you can understand Google's crawl behaviour."
Please look for the report it in the AM,
Tom
-
Hi,
I did have a read through those two case studies previously. My understanding was that we could implement the code purely on the on the sitemap, and that nothing on the site was needed. Are you saying we also need some code on the site as well?
The verification tool doesn't say we have it implemented, but I wasn't sure that it would check the sitemaps or just the sites HTML.
-
Run the site through the tools below
it appears that your only running the site map and not the code itself a good look at the code need it is found in URL below
- http://moz.com/blog/using-the-correct-hreflang-tag-a-new-generator-tool
- http://www.seerinteractive.com/blog/case-study-the-impact-of-hreflang-tag
1 validator
- Validator http://flang.dejanseo.com.au/
- 2 site map tool
- site map tool http://www.themediaflow.com/tool_hreflang.php
- http://www.stateofdigital.com/hreflang-sitemap-tool/
- hreflang
- Generator http://www.internationalseomap.com/hreflang-tags-generator/
- From Google
- https://support.google.com/webmasters/answer/189077?hl=en
For language/country selectors or auto-redirecting homepages, you should add an annotation for the hreflang value "x-default" as well:
Thomas
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
-
Rank regional homepages using canonicals and hreflangs
Here’s a situation I’ve been puzzling with for some time: The situation
Technical SEO | | dmduco
Please consider an international website targeting 3 regions. The real site has more regions, but I simplified the case for this question. screenshot1.png There is no default language. The content for each regional version is meant for that region only. The website.eu page is dynamic. When there is no region cookie, the page is identical to website.eu/nl/ (because Netherlands is the most important region) When there is a region cookie (set by a modal), there is a 302 redirect to the corresponding regional homepage What we want
We want regional Google to index the correct regional homepages (eg. website.eu/nl/ on google.nl), instead of website.eu.
Why? Because visitors surfing to website.eu sometimes tend to ignore the region modal and therefor browse the wrong version.
For this, I set up canonicals and hreflangs as described below: screenshot2.png The problem
It’s 40 days now since the above hreflangs and canonicals have been setup, but Google is still ranking website.eu instead of the regional homepages.
Search console’s report for website.eu: screenshot3.png Any ideas why Google doesn’t respect our canonical? Maybe I’m overlooking something in this setup (combination of hreflangs and canonicals might be confusing)? Should I remove the hreflangs on the dynamic page, because there is no self-referencing hreflang? Or maybe it’s because website.eu has gathered a lot of backlinks over the years, whereas the regional homepages have much less, which might be why Google chooses to ig nore the canonical signals? Or maybe it’s a matter of time and I just need to wait longer? Note: I’m aware the language subfolders (eg. /be_nl) are not according to Google’s recommendations. But I’ve seen similar setups (like adobe.com and apple.com) where the regional homepage is showing ok. Any help appreciated!0 -
H1 Tags the same as Title Tags and other meta questions
I run an ecom store that has about 800 live products. When everything got set up, no one set up the title tags correctly. So I am going through to update them in bulk. What I was going to do was to take the product name (which serves as the H1 tag), use that with a postfix | CompanyName. If length is an issue I trim it down. But the question is, will having essentially duplicate information in here be an issue? Also, when someone was setting up meta descriptions, they often used basically the product name or a half sentence. Would it be better to remove the descriptions and allow google to decide? I even had some that were literally just the brand name of the product, which I already removed.
Technical SEO | | ShockoeCommerce0 -
Canconical tag on site with multiple URL links but only one set of pages
We have a site www.mezfloor.com which has a number of Url's pointing at one site. As the url's have been in use for many years there are links from many sources include good old fashioned hard copy advertising. We have now decided that it would be better to try to start porting all sources to the .co.uk version and get that listing as the prime/master site. A couple of days ago I went through and used canonical tags on all the pages thinking that would set the priority and that would also strengthen the page in terms of trust due to the reduced duplication. However when I went to scan the site in MOZ the warning that the page redirects came up and I am beginning to think that I need to remove all these canonical tags so that search engines do not get into a confused spiral where we loose the little page rank we have. Is there a way that I can redirect everything except the target URL without setting up a separate master site just for all the other pages to point at.
Technical SEO | | Eff-Commerce0 -
Multiple H1 tags in Squarespace
Hi. I'm using Squarespace, and I've noticed they assign the page title and site title h1 tag status. So if I add an on-page h1 tag, that's three in total. I've seen what Matt Cutts said about multiple h1 tags being acceptable (although that video was back in 2009 and a lot has changed since then). But I'm still a little concerned that this is perhaps not the best way of structuring for SEO. Could anyone offer me any advice? Thanks.
Technical SEO | | The_Word_Department0 -
Canonical tag for Home page: with or without / at the end???
Setting up canonical tags for an old site. I really need advice on that darn backslash / at the end of the homepage URL. We have incoming links to the homepage as http://www.mysite.com (without the backslash), and as http://www.mysite.com/ (with the backslash), and as http://www.mysite.com/index.html I know that there should be 301 redirects to just one version, but I need to know more about the canonical tags... Which should the canonical tag be??? (without the backslash) or (with the backslash) Thanks for your help! 🙂
Technical SEO | | GregB1230 -
Swapping key phrases in URL, Title and H1 tag
I was wondering if swapping key phrases would still work in URL, Titlte and H1 tags For example: <code>Car Sales Melbourne Sales Car Melbourne carsalesmelbourne.com.au salescarmelbourne.com.au</code> So the second key phrase would you be able to get similar effect with correct key phrase or if location is different, would this not work at all?
Technical SEO | | Jae830 -
Block /tag/ or not?
I've asked this question in another area but now i want to ask it as a bigger question. Do we block /tag/ with robots.txt or not. Here's why I ask: My wordpress site does not block /tag/ and I have many /tag/ results in the top 10 results of Google. Have for months. The question is, does Google see /tag/ on WordPress as duplicate content? SEOMoz says it's duplicate content but it's a tag. It's not really content per say. I'm all for optimizing my site but Google is not penalizing me for /tag/ results. I don't want to block /tag/ if Google is not seeing it as duplicate content for only one reason and that's because I have many results in the top 10 on G. So, can someone who knows more about this weigh in on the subject for I really would like a accurate answer. Thanks in advance...
Technical SEO | | MyAllenMedia0 -
Tags causing Duplicate page content?
I was looking through the 'Duplicate Page Content' and Too Many On-Page Link' errors and they all seem to be linked to the 'Tags' on my blog pages. Is this really a problem and if so how should I be using tags properly to get the best SEO rewards?
Technical SEO | | zapprabbit1