brightonseo - international targeting with hreflang tags

32
April 2016 International targeting with hreflang tags Emily Mace Head of International SEO @ObanDigital @IAmTheLaserHawk #BrightonSEO

Upload: oban-international

Post on 08-Jan-2017

4.884 views

Category:

Marketing


2 download

TRANSCRIPT

Page 1: BrightonSEO - International Targeting with Hreflang Tags

April 2016

International targeting

withhreflang tags

Emily Mace Head of

International SEO

@ObanDigital

@IAmTheLaserHawk

#BrightonSEO 

Page 2: BrightonSEO - International Targeting with Hreflang Tags

What is a hreflang tag anyway?

Language content to different countries

Resolves duplicate content

Identifies regional differences in language (Spanish for Spain and Spanish for Mexico)

Page 3: BrightonSEO - International Targeting with Hreflang Tags

What isn’t a hreflang tag?The same as a canonical tag

A geotargeting tool which sends people to a location site by default – it’s not IP serving or like IP

Serving

Page 4: BrightonSEO - International Targeting with Hreflang Tags

Who understands the hreflang tag?

Who doesn’t?

Use the HTML Language code for these!

Understanding the Hreflang tag

Page 5: BrightonSEO - International Targeting with Hreflang Tags

GETTING IT RIGHT

Page 6: BrightonSEO - International Targeting with Hreflang Tags

How to use – on pageIn <head> section

List all versions of a page available

Syntax

<link rel="alternate" href="http://example.com/en-ie" hreflang="en-ie" />

<link rel="alternate" href="http://example.com/en-ca" hreflang="en-ca" />

<link rel="alternate" href="http://example.com/en-au" hreflang="en-au" />

<link rel="alternate" href="http://example.com/en" hreflang="en" />

Page 7: BrightonSEO - International Targeting with Hreflang Tags

How to use – sitemapSame as on page just coded as XHTML:Link

<url> <loc>http://www.example.com/english/</loc> <xhtml:link

rel="alternate" hreflang="de"href="http://www.example.com/

deutsch/" />

<xhtml:link rel="alternate"hreflang="de-ch"href="http://www.example.com/

schweiz-deutsch/" /></url>

Page 8: BrightonSEO - International Targeting with Hreflang Tags

Which way to choose?Smaller sites

Larger sites, e-commerce sites, etc.

Page 9: BrightonSEO - International Targeting with Hreflang Tags

Don’t do bothMore chance you’ll get it wrong

Page 10: BrightonSEO - International Targeting with Hreflang Tags

Get your codes the right way round

Language code first

Then country code

Page 11: BrightonSEO - International Targeting with Hreflang Tags

“Call off Christmas!”

Something went wrong

Page 12: BrightonSEO - International Targeting with Hreflang Tags

Can’t I just use canonical tags?

Won’t help your international users see the right version of the site and could lead to

pages not being indexed

NoNão

NeinNai Nu

NietNonNei

NaiTidak

Nage

NieNil

Aniyo

Nej没有

нямаনাDili

GeenJo አይ

الոչ

Yox

Ez

NeНе

InnòIngen

Nee

Neniu

Ei

Hindi

Όχι

ʻAʻole

לאनही

TsisNem

Engin

Níl

ノーOra

ಯಾವುದೕ

жоқ

គមា� ន 아니오

Na

ບມ! Nē

Tsia

ഇലല

Nru

Kahore

नाही

Үгүй ээ

မရသေ�းပါ

कन

نه

ਕਈ

НетLeai

Chan eil

Cheنهනැත

இலலை�

తబుటు� వుల

Hayır

Немаєنہیں

Yo'q

KhôngHayi

ניין Ko si

Cha

Page 13: BrightonSEO - International Targeting with Hreflang Tags

I’ve got IP Serving – that’ll work right?

JUST NO!

Page 14: BrightonSEO - International Targeting with Hreflang Tags

COUNTRY AND LANGAUGE TARGETING

Page 15: BrightonSEO - International Targeting with Hreflang Tags

Get your language codes right

<link rel="alternate" href="http://example.com/se" hreflang=“se-se" />

Swedish is SV not SE

Page 16: BrightonSEO - International Targeting with Hreflang Tags

Get your language codes right

<link rel="alternate" href="http://example.com/at" hreflang="at-at" />

They speak German in Austria – not Austrian

Page 17: BrightonSEO - International Targeting with Hreflang Tags

Get your country codes right

Some aren’t what you’d think

Israel's code is?

South Africa’s code is?

Page 18: BrightonSEO - International Targeting with Hreflang Tags

Get your country codes right

Some aren’t what you’d think

Israel's code is?IS is Iceland and IL is Israel

South Africa’s code is?SA is Saudi Arabia and ZA is South

Africa

Page 19: BrightonSEO - International Targeting with Hreflang Tags

Don’t make up countries<link rel="alternate" href="http://example.com/ar" hreflang=“ar-ar" />

AR is Argentina – NOT ARABIA

<link rel="alternate" href="http://example.com/de" hreflang=“de-eu" />

EU is not a country – this won’t target German speakers in Europe!

Page 20: BrightonSEO - International Targeting with Hreflang Tags

Don’t forget the page you’re on

Often see people leaving out the current page

Listing alternatives only works if you include the current page

Leave that out and the search engines will potentially ignore all the other hreflang tags

for the content

Page 21: BrightonSEO - International Targeting with Hreflang Tags

Don’t overcomplicate things

English .eu domain name hreflang tags

<link rel="alternate" href="http://example.eu" hreflang="en-de" />

<link rel="alternate" href="http://example.eu" hreflang="en-be" />

<link rel="alternate" href="http://example.eu" hreflang="en-ch" />

<link rel="alternate" href="http://example.eu" hreflang="en-pt" />

<link rel="alternate" href="http://example.eu" hreflang="en-fi" />

And on and on and on

One page for all those locations??????

Page 22: BrightonSEO - International Targeting with Hreflang Tags

Don’t overcomplicate things

Try this…..

<link rel="alternate" href="http://example.eu" hreflang="en" />

But really?

People want content in their language, not English – thanks!

Page 23: BrightonSEO - International Targeting with Hreflang Tags

X-DEFAULT TAG

Page 24: BrightonSEO - International Targeting with Hreflang Tags

What’s the X-default option?This is my original website right?

The canonical one which is most important?

The one to serve to people who I’ve not covered….

Page 25: BrightonSEO - International Targeting with Hreflang Tags

X-default as your main site?

NOPE

Page 26: BrightonSEO - International Targeting with Hreflang Tags

So why use X-default?Language selector page

Page 27: BrightonSEO - International Targeting with Hreflang Tags

Use real URLs

Don’t use URL aliases

Don’t use URLs which redirect

All URLs in the hreflang should be the live version of the page else you’ll confuse

Google

Page 28: BrightonSEO - International Targeting with Hreflang Tags

No returns!No Return Tag Errors – Google Search

Console’s favourite moan

Linking all over the place

French Services

Page

English Services

Page

English Home Page

Page 29: BrightonSEO - International Targeting with Hreflang Tags

No returns!Not neatly from one thing to the same thing

English service page

French service page

Page 30: BrightonSEO - International Targeting with Hreflang Tags

No Mans Land codeCode goes in the <head> not anywhere else

Certainly not in no man’s land

</head>

<link rel="alternate" href="http://example.com/at" hreflang=“de-at" />

<body>

Page 31: BrightonSEO - International Targeting with Hreflang Tags

Remember it’s like this

<link rel="alternate" href="http://example.com/en-ie" hreflang="en-ie" />

<link rel="alternate" href="http://example.com/en-ca" hreflang="en-ca" />

<link rel="alternate" href="http://example.com/en-au" hreflang="en-au" />

<link rel="alternate" href="http://example.com/en" hreflang="en" />

Page 32: BrightonSEO - International Targeting with Hreflang Tags

Thanks and any questions?www.obandigital.com | +44 1273 613 400 | @ObanDigital | @IAmTheLaserHawk