The Moz Q&A Forum

    • Forum
    • Questions
    • My Q&A
    • Users
    • Ask the Community

    Welcome to the Q&A Forum

    Browse the forum for helpful insights and fresh discussions about all things SEO.

    1. SEO and Digital Marketing Q&A Forum
    2. Categories
    3. Technical SEO Issues
    4. Hreflang tag implentation

    Hreflang tag implentation

    Technical SEO Issues
    15 3 765
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as question
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • BlueprintMarketing
      BlueprintMarketing @ahyde last edited by

      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:

      1. Your own method of "gathering" international search results on scale. You should probably go with proxies.
      2. Your own method of parsing XML sitemaps and cross checking (even if you use something like Deepcrawl, you'll need to double check).
      3. 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

      g14fz0V.png 33Akp9p.png

      1 Reply Last reply Reply Quote 0
      • BlueprintMarketing
        BlueprintMarketing last edited by

        Here is crawl 1

        • PDF
        • 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

        nOlovJ8.png

        ahyde 1 Reply Last reply Reply Quote 0
        • ahyde
          ahyde @BlueprintMarketing last edited by

          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...

          BlueprintMarketing 1 Reply Last reply Reply Quote 0
          • BlueprintMarketing
            BlueprintMarketing @ahyde last edited by

            • Here is the next test
            • Use this link to see in the the site
            • http://crawl.blueprintmarketing.com/projects/reports/69930?ro=991e4a1c6d5086bd0bd4d0965e3b6037ed69b692
            • PDF
            • 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
            1 Reply Last reply Reply Quote 0
            • BlueprintMarketing
              BlueprintMarketing last edited by

              Look at your site maps

              • http://www.swann.com/us/sitemap.xml
              • http://www.swann.com/au/sitemap.xml
              • http://www.swann.com/ca/sitemap.xml
              • http://www.swann.com/uk/sitemap.xml

              See https://support.google.com/webmasters/answer/2620865?hl=en

              D5MUoY2.png

              ahyde 2 Replies Last reply Reply Quote 1
              • ahyde
                ahyde @BlueprintMarketing last edited by

                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>

                1 Reply Last reply Reply Quote 0
                • ahyde
                  ahyde @BlueprintMarketing last edited by

                  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>

                  ahyde 1 Reply Last reply Reply Quote 0
                  • ahyde
                    ahyde @ahyde last edited by

                    I've updated the site maps but the hreflang tags still aren't showing when you view the site map...

                    BlueprintMarketing 1 Reply Last reply Reply Quote 0
                    • BlueprintMarketing
                      BlueprintMarketing @ahyde last edited by

                      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
                      
                      ahyde 1 Reply Last reply Reply Quote 0
                      • gfiorelli1
                        gfiorelli1 last edited by

                        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.

                        ahyde 1 Reply Last reply Reply Quote 2
                        • ahyde
                          ahyde @BlueprintMarketing last edited by

                          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...

                          1 Reply Last reply Reply Quote 0
                          • ahyde
                            ahyde @gfiorelli1 last edited by

                            Thanks.. it took me a while but I did realise that one eventually.

                            1 Reply Last reply Reply Quote 0
                            • 1 / 1
                            • First post
                              Last post
                            • International SEO - Hreflang tags and URL Structure
                              SEOCT
                              SEOCT
                              0
                              7
                              100

                            • H1 Tags the same as Title Tags and other meta questions
                              Houses
                              Houses
                              0
                              3
                              629

                            • Hreflang tags with link to redirect loop
                              DanielKiely6
                              DanielKiely6
                              0
                              3
                              817

                            • Hreflang Tags - error: 'en' - no return tags
                              DirkC
                              DirkC
                              0
                              4
                              645

                            • Canonical Tags on Parameter Pages With Hreflang
                              TeespringMoz
                              TeespringMoz
                              0
                              3
                              860

                            • Custom hreflang tags in WP & using with Yoast
                              dalapayal
                              dalapayal
                              0
                              8
                              11.7k

                            • Duplicate title tags and meta description tags
                              RanjeetP
                              RanjeetP
                              1
                              6
                              1.6k

                            • Tags - Should i add description for every tag ?
                              wolfinjo
                              wolfinjo
                              0
                              7
                              310

                            Get started with Moz Pro!

                            Unlock the power of advanced SEO tools and data-driven insights.

                            Start my free trial
                            Products
                            • Moz Pro
                            • Moz Local
                            • Moz API
                            • Moz Data
                            • STAT
                            • Product Updates
                            Moz Solutions
                            • SMB Solutions
                            • Agency Solutions
                            • Enterprise Solutions
                            • Digital Marketers
                            Free SEO Tools
                            • Domain Authority Checker
                            • Link Explorer
                            • Keyword Explorer
                            • Competitive Research
                            • Brand Authority Checker
                            • Local Citation Checker
                            • MozBar Extension
                            • MozCast
                            Resources
                            • Blog
                            • SEO Learning Center
                            • Help Hub
                            • Beginner's Guide to SEO
                            • How-to Guides
                            • Moz Academy
                            • API Docs
                            About Moz
                            • About
                            • Team
                            • Careers
                            • Contact
                            Why Moz
                            • Case Studies
                            • Testimonials
                            Get Involved
                            • Become an Affiliate
                            • MozCon
                            • Webinars
                            • Practical Marketer Series
                            • MozPod
                            Connect with us

                            Contact the Help team

                            Join our newsletter
                            Moz logo
                            © 2021 - 2026 SEOMoz, Inc., a Ziff Davis company. All rights reserved. Moz is a registered trademark of SEOMoz, Inc.
                            • Accessibility
                            • Terms of Use
                            • Privacy