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
-
General questions about implementing hreflang using XML sitemap
I created another thread regarding hreflang sitemaps. However, this one is more general and doesn't cover multiple sitemaps for different localizations so I think it's reasonable creating a new thread. We are trying to implement hreflang using XML sitemap. We have localized content for a few countries, but only 1/3 of the content is 'duplicate' localized content. How should this be presented in the sitemap? Can we have some urls with hreflang-tags and some without? Also, where should this be located? In the usual sitemap file at site.com/sitemap.xml or should we create a different sitemap site.com/hreflang.xml where we just paste all hreflang-info? And if it should be in /hreflang.xml - can we have the same URL twice (in both current sitemap and hreflang sitemap)?
Technical SEO | | Telsenome0 -
Does google look at H3 tags?
I've had someone tell me that google doesn't pay attention to H3 tags -- only H1 and H2. I haven't found much online to back this up or discredit it; thought I'd ask the Moz community!
Technical SEO | | LivDetrick5 -
Shopify Canonicals for Tagged Filters
I've been researching this topic endlessly and thought I had arrived at a solution but Screaming Frog indicates my solution was not successful. Problem: I used tags to filter my collections pages. The result, I discovered, was the creation of dozens and dozens, maybe hundreds, of additional collection URLs for each possible permutation of tag filters. I would like to make the collection page URL, with no tag filters, the canonical. Proposed Solution: I found the following code described somewhere as the solution: {% if template contains 'collection' and current_tags %} {% else %} {% endif %} However, I crawled my site with Screaming Frog and found that the canonical link element is still listed as the URL with the tags included. The crawler does recognizes the "noindex" instruction. Any ideas on what the best move is here?
Technical SEO | | vgusvg0 -
Are duplicate page titles fixed by the canonical tag
Google Web Master Tools is saying that some of my pages have duplicate page titles because of pagination. However, I have implemented the canonical tag on the paginated pages which I thought would keep my site from being penalized for duplicate page titles. Is this correct? Or does canonical tag only relate to duplicate content issues?
Technical SEO | | Santaur0 -
Title Tags & Url Structure
So I'm working on a website for a client in the Tourism Industry. We've got a comprehensive list of museums & other attractions in a number of cities that have to go online. And we have to come up with the correct url structure, title tags and obviously content. My current line of thought was to work the urls in the following way. http://domain.com/type-of-attraction/city/name-of-attraction/ This is mainly because we think that the type of attraction is far more important then the city (SEO wise) as the country as a whole receives more searches, however we require a city in the url to make it unique because some attractions across cities happen to share names and we don't want to have the names of attractions littered with city names. However for title-tags I wanted to go the other way around, again due to the attraction type being more important then the city. Name of Attraction - Type of Attraction - City - Brand Name or Name of Attraction - Type of Attraction in City - Brand Name I am quite confident in working it this way; however I would appreciate if I receive some feedback on this structure, you think its good or you would make any suggestions / alterations. One last thing, There's the possibility of having many urls ending up with the same city names (For each type of attraction) I would think that just providing a list of links & duplicate text is not enough; would you suggest a canonical pointing to a link containing just information on the city? and using the other pages for user-navigation only? or should i set variables in the text which are replaced by the types of attraction so that the text looks different for each one?
Technical SEO | | jonmifsud0 -
Duplicate Title Tags and Meta Desc even with the correct Canonical Tag
I show a large/growing number of duplicate title tags and duplicate meta descriptions in my webmaster tools. I look at both pages Link 1 - http://www.thatsmytopper.com/wedding-cake-toppers/theme-cake-toppers/beach-theme-cake-toppers/where/color/petal-pink.html Link 2 - http://www.thatsmytopper.com/wedding-cake-toppers/theme-cake-toppers/beach-theme-cake-toppers/where/color/petal-pink/limit/16.html Both pages have the following canonical url: <link rel="<a class="attribute-value">canonical</a>" href="http://www.thatsmytopper.com/wedding-cake-toppers/theme-cake-toppers/beach-theme-cake-toppers.html" > Why does this show up as a duplicate title tag and description to Google still?
Technical SEO | | bhalverson0 -
Can I put the tag in the MasterPage of my ASP.NET website or does this need to be specific to each page?
Hi Moz Community, I am a designer/junior SEO'er and have been working with our web developer to setup SEO oriented redirects and the rel canonical tag on our ASP.NET page running MasterPages - www.tisbest.org. I know setting up an incorrect canonical tag can be devastating so I'm hoping for some guidance. Can we put the <title> </span>Charity Gift Cards | Donation Gift Ideas | TisBest Philanthropy</p> <p style="color: #5e5e5e; font-family: Helvetica, Arial, sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal;"><span style="color: #5e5e5e;"> </span></p> <p style="color: #5e5e5e; font-family: Helvetica, Arial, sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal;"><span style="color: #5e5e5e;"></title> Thanks! Chad
Technical SEO | | TisBest0 -
Canonical Tag
Does it do anything to place the Canonical tag on the unique page itself? I thought this was only to be used on the offending pages that are the copies. Thanks
Technical SEO | | poolguy0