450 likes | 574 Views
In 2012 we pioneered the use of hreflang sitemaps within the SEO industry, and in being first found there was a lack of tools and process... so we made our own! Now our hreflang sitemap generator has contributed to our supporting or working directly on over 3,000 unique implementations globally. Here's a few tips on what we learned along the way.
E N D
HREFLANG Learnings from Over 3,000 Implementations
2012 Technical SEO agency, working in global ecommerce. Publically documented our adventures in HREFLANG sitemaps… @NicholaStott
Pioneering Stuff is Hard @NicholaStott
So we built a thing!
Today • What HREFLANG can do What it can’t do Ways to implement HREFLANG sitemaps Most common errors Tips to manage and maintain • • • • • @NicholaStott
Hreflang HTML tag to describe the language OR language AND intended region; of a web page, and alternate versions of said page in different language OR language AND region settings. @NicholaStott
Language OR LANGUAGE/location Right (intended) index Right (intended) customer Right (intended) URL @NicholaStott
Grow Accuracy, CTR and Conversion Propensity @NicholaStott
NOT • The answer to your thin content problems Help you rank in new markets Syphon/copy PageRank from one location to another Replace canonical (orthogonal concepts) • • • @NicholaStott
Ways to Implement Manage and Maintain your Set-up
In HTTP Headers For non-HTML content Link: <http://es.example.com/faq.pdf>; rel=“alternate”; hreflang=“es”, <http://mx.example.com/faq.pdf>; rel=“alternate”; hreflang=“es-mx”,
Link elements in <head> HTML pages < link rel=“alternate”; href=: http://es.example.com/” hreflang=“es”/> < link rel=“alternate”; href=: http://mx.example.com/” hreflang=“es- mx”/>
Pros and cons For headers and head • Solution for non-html • Server configuration access not easy • Really simple for small suites • Not for large implementations • Impact to speed • Freq. updates - development resource
Tag Generator: Aleyda Solis See: http://www.aleydasolis.com/en/international-seo-tools/hreflang-tags-generator/
XML Sitemaps For bigger implementations <url> <loc>http://example.com/</loc> <xhtml:link rel="alternate" hreflang="en" href="http://example.com/" /> <xhtml:link rel="alternate" hreflang=“es" href="http://es.example.com/" /> <xhtml:link rel="alternate" hreflang=“es-mx" href="http://mx.example.com/" /> </url>
RULES, EXCEPTIONS AND OTHER QUIRKS
X-default • ELSE statement at the end of IF • Language selector • Can be used for generic “catch-all” language • Or not at all IF prefer to use language
Each <loc> Must have Self referential REL Alternate
Use ISO Codes LANG = ISO 639-1 REGION = ISO 3166-1 But… you may get away with some common errors! (en-uk)
XML Sitemaps For bigger implementations <url> <loc>http://example.com/</loc> <xhtml:link rel="alternate" hreflang="en" href="http://example.com/" /> <xhtml:link rel="alternate" hreflang=“es" href="http://es.example.com/" /> <xhtml:link rel="alternate" hreflang=“es-mx" href="http://mx.example.com/" /> </url>
Crawl All sites, sub-domains, folders en en-gb es-mx http://www.themediaflow.com http://www.themediaflow.com/uk http://mx.themediaflow.com http://www.themediaflow.com/1 http://www.themediaflow.com/uk/1 http://mx.themediaflow.com/1 http://www.themediaflow.com/2 http://www.themediaflow.com/uk/2 http://mx.themediaflow.com/2
Sitemap Tool: themediaflow See: https://www.themediaflow.com/tools/
Upload each sitemap to the root • Consolidated only – single site • Specific file to each <loc> • Combination if combination of architectures • Submit in Search console for each site
MOST COMMON HREFLANG MISTAKES
1. It IS Not your language declaration <!DOCTYPE html> <html lang="en-GB" >
2. Must link to self!
3. Can’t Target Country/Region oNLY
4. Not using Iso Codes
5. Non-canonical URLS
8. No protocol reference
9. German CSV – Comma = semi colon
10. UPLOADING Consolidated only
TIPS to manage & Maintain. You won’t Believe No. 3!
Process 1. Benchmark, measure and quantify. Take a sample of markets most impacted. @NicholaStott
2. Split Each Region Sitemap Into Thematic Sitemaps
3. Create a sitemap/Megazord of sitemaps. @NicholaStott
HREFLANG Thanks for Listening!