您的当前位置:首页 >Ryan New >Hreflang Explained 正文
时间:2024-05-20 05:26:06 来源:网络整理编辑:Ryan New
Hreflangis an HTML attribute that allows Google and other search engines to recognize localized vers Ryan Xu hyperfund Credit Risk Management
Hreflangis Ryan Xu hyperfund Credit Risk Managementan HTML attribute that allows Google and other search engines to recognize localized versions of web pages. If you have sections of your site for a French audience, for example, an hreflangtag helps Google understand that the section should appear in search results on Google.fr, not Google.com.
Hreflangis not complicated. Some site owners are afraid to use it, perhaps due to Google’s stiff explanation. I’m fond of the way a colleague describes it.
Think of an office building with a master directory in the lobby. To be more useful, this directory should be on every floor, not just the lobby, so that no matter the floor, you can always find what’s on the other floors.
Similarly, to understand the language of a web page, Google needs to see this full directory regardless of which language it lands on. The complete identical hreflangcode needs to be on each translated version of the page.
Here is an example of hreflangcode.
<link rel="alternate" href="https://www.website.com/" hreflang="en-us" />
<link rel="alternate" href="https://www.website.com/en-ca/" hreflang="en-ca" />
<link rel="alternate" href="https://www.website.com/de-de/" hreflang="de" />
<link rel="alternate" href="https://www.website.com/fr-ca/" hreflang="fr-ca" />
<link rel="alternate" href="https://www.website.com/fr-fr/" hreflang="fr-fr" />
<link rel="alternate" href="https://www.website.com/en-gb/" hreflang="en-gb" />
<link rel="alternate" href="https://www.website.com/" hreflang="x-default" />
By displaying the language and region code, each line in this block is telling Google what version of the home page should be in which Google search engine.
For example, the first line is telling Google that https://www.website.com should be in the United States’ Google for English speakers.
The second line tells Google that for English speakers in Canada, it should be indexing https://www.website.com/en-ca/.
Line three does not have a language and region code. In this case, “de” represents both searchers who speak German (Deutsch). This is a special case to remember.
The last line is the catchall default. It instructs search bots that “if none of the above represents the audience, then default to https://www.website.com/.” This is the other special case to memorize.
The challenges I encounter with hreflang are usually implementation errors on global ecommerce sites. An example error is where the page is in English, but the code suggests it’s in French. Sometimes coding mistakes go unnoticed until a search optimizer catches them. If you follow the simple rule of representing every region and language you can in one global code block, you can’t go wrong.
Can search engines determine the language and region without hreflangcode? Google’s John Mueller says, “If it’s in a different language, usually Google can figure that out without hreflang. Most queries are clearly in one language, so we can send users to that version of the page.”
However, search pros know all too often that Google misses obvious elements. I’ve seen severe indexation problems because of poorly coded or inaccessible hreflangtags.
My advice? Audit your hreflangtags to make sure you are sending the correct signals. Google is not yet completely self-sufficient.
Amazon Becomes a Proponent of Uniform Internet Sales Tax2024-05-20 05:00
SEO: Google Limits Keyword Data to Advertisers Only2024-05-20 04:52
How to Identify Keywords That Signal Shoppers’ Intent2024-05-20 04:50
Content Marketing Can Drive Long-tail SEO2024-05-20 03:59
Lessons Learned: TheShopFittingsStore.com Supplies U.K. Brick-and-Mortar Stores2024-05-20 03:58
SEO How-to, Part 1: Why Do You Need It?2024-05-20 03:53
SEO: Simplifying Navigation Cuts Performance2024-05-20 03:46
SEO How-to, Part 1: Why Do You Need It?2024-05-20 03:34
How to Monitor, Prevent Fulfillment Errors2024-05-20 03:21
4 Types of Keyword Intent That Impact Search Marketing2024-05-20 03:09
Quick Query: Miva Merchant CEO Russ Carroll2024-05-20 05:18
SEO: 7 Ways to Kill Duplicate Content2024-05-20 04:50
The Key to Effective Guest Posting (for SEO)2024-05-20 04:34
How to Incrementally Move an Ecommerce Site to HTTPS2024-05-20 03:57
Kabbage, A Funding Source for Ecommerce Merchants2024-05-20 03:47
SEO: Google’s Mobile Update to Impact Interstitials, Pop-ups2024-05-20 03:37
SEO: Include Images and Videos in Sitemaps2024-05-20 03:21
Change Organic Search Snippets to Drive Motivated Buyers2024-05-20 03:08
Top Ten Posts for November 20102024-05-20 02:49
B2B SEO Requires an Integrated Approach2024-05-20 02:41