使用 hreflang 标签将客户定向到特定于其地区的 URL

hreflang 标签是模板中的代码元素,可使搜索引擎能够确定网站的目标语言和地区,然后根据客户的语言和所在地点返回相应的 URL。假设您商店的默认 URL 为 johns-apparel.com,还有一个西班牙 URL es.johns-apparel.com。当客户位于西班牙并且其设备或浏览器中设置了西班牙语时,您模板中的 hreflang 标签会增加将客户定向到西班牙 URL 的可能性。

由于 hreflang 标签可将本地化 URL 标识为地区性版本,而不是重复网页,因此它们对于搜索引擎优化 (SEO) 是有必要的。

系统会为您设置的每个国际域名或子文件夹自动创建 hreflang 标签和元标签。您的站点地图还包括所有已发布的语言,以帮助搜索引擎检测您商店中的不同语言。

Shopify商户官网原文详情:

Using hreflang tags to direct your customers to their region-specific URL

Hreflang tags are code elements in your theme that enable search engines to determine which language and region a website is intended for, and then return the appropriate URL based on a customer's language and location. For example, your store might have a default URL of johns-apparel.com, and a Spanish URL of es.johns-apparel.com. When a customer is located in Spain and has the Spanish language set on their device or browser, then the hreflang tag in your theme increases the likelihood that the customer is directed to the Spanish URL.

Because hreflang tags identify your localized URLs as regional versions instead of duplicate web pages, they're necessary for search engine optimization (SEO).

Hreflang tags and meta tags are automatically created for every international domain or subfolder that you set up. Your sitemaps also include all published languages to help search engines detect the different languages on your store.


文章内容来源:Shopify商户官方网站

(本文内容根据网络资料整理,出于传递更多信息之目的,不代表连连国际赞同其观点和立场)