How should hreflang tags be set up and when are they needed?

How should hreflang tags be set up and when are they needed?

25 Jan 2024

'hreflang' tag

With globalization, many websites have started to launch multilingual versions to better serve users in different countries. To make these multilingual websites more effective in search engine results pages in different regions, using hreflang tags becomes very important. So what are the benefits of setting up hreflang tags, and what impact would there be if hreflang tags are not set up? How should hreflang tags be configured under different circumstances? Let’s continue reading with these questions in mind.

What are the benefits of websites setting up hreflang tags?

● Improves SEO issues with multilingual websites, allowing search engines to more accurately understand the language versions of a website, which helps improve rankings for multilingual websites.

● Improves user experience issues by allowing search engines to provide users with versions more suitable to their language preferences.

● Avoids duplicate content issues. By clearly defining the relationships between language and regional versions using hreflang tags, search engine penalization due to duplicate content can be avoided.

What are the disadvantages if a website does not set up hreflang tags?

● If a website does not set up hreflang tags, it would have the following disadvantages:

● Risks search engines identifying duplicate content or mirrored pages.

● Inability to properly understand the website’s language structure.

● Degraded user experience.

Let’s first take a look at Google’s official recommendation for multilingual websites as shown below:

It is recommended from both an SEO and user perspective to use region-specific URLs in the format example.com/de/. Why choose this format? Firstly, it reduces SEO optimization complexity across sites. Secondly, customers only need to maintain one domain name, greatly reducing human resource needs.

Reminder: Do not use IP analysis to adjust content. IP geolocation analysis is difficult to implement and is often unreliable. In addition, Google may be unable to properly crawl website variants. Most (not all) Google crawls originate from the US and we do not attempt to alter location information to detect website variants. Hreflang tags should not be used if IP delivery is needed.

Before setting up hreflang tags, you need to understand language and region codes. The hreflang attribute consists of one or two values separated by a hyphen, e.g. zh-CN. The first code in hreflang is the language code (using ISO 639-1 format), followed by the second code representing the region of the alternate website (using ISO 3166-1 alpha 2 format). This means: Chinese-China.

A practical case study for implementing hreflang tags is as follows:

Customer Case 1: Different regions use subdomains

Different countries and regions use local languages and subdomains to display content. This approach is not optimal for SEO and requires maintaining 6 domain names for the website.

https://cn.domain.com/

https://de.domain.com/

https://jp.domain.com/

https://es.domain.com/

https://kr.domain.com/

Recommended to change to:

https://www.domain.com/zh-cn/

https://www.domain.com/de-de/

https://www.domain.com/ja-jp/

https://www.domain.com/es-es/

https://www.domain.com/ko-kr/

hreflang tags set up as follows:

<link rel="alternate" hreflang="x-default" href="https://www.domain.com/" />
<link rel="alternate" hreflang="en-US" href="https://www.domain.com/" />
<link rel="alternate" hreflang="zh-CN" href="https://www.domain.com/zh-cn/" />
<link rel="alternate" hreflang="de-DE" href="https://www.domain.com/de-de/" />
<link rel="alternate" hreflang="ja-JP" href="https://www.domain.com/ja-jp/" />
<link rel="alternate" hreflang="es-ES" href="https://www.domain.com/es-es/" />
<link rel="alternate" hreflang="ko-KR" href="https://www.domain.com/ko-kr/" />

Customer Case 2: If the customer can afford to maintain 7 domain names, subdomain names can be retained. With retained subdomains, hreflang tags can be modified as follows:

<link rel="alternate" hreflang="x-default" href="https://www.domain.com/">
<link rel="alternate" hreflang="en-US" href="https://www.domain.com/">
<link rel="alternate" hreflang="zh-CN" href="https://cn.domain.com/">
<link rel="alternate" hreflang="de-DE" href="https://de.domain.com/">
<link rel="alternate" hreflang="ja-JP" href="https://jp.domain.com/">
<link rel="alternate" hreflang="es-ES" href="https://es.domain.com/">
<link rel="alternate" hreflang="ko-KR" href="https://kr.domain.com/">

Customer Case 3: If the website only needs to retain one language, with differences in shipping fees or product descriptions between regions, hreflang tags can be set up as follows:

<link rel="alternate" hreflang="x-default" href="https://www.domain.com/" />
<link rel="alternate" hreflang="en-US" href="https://www.domain.com/" />
<link rel="alternate" hreflang="en-DE" href="https://www.domain.com/en-de/" />
<link rel="alternate" hreflang="en-JP" href="https://www.domain.com/en-jp/" />
<link rel="alternate" hreflang="en-ES" href="https://www.domain.com/en-es/" />
<link rel="alternate" hreflang="en-KR" href="https://www.domain.com/en-kr/" />

Customer Case 4: With different subsidiaries in different regions, using local domain suffixes like .com / .hk / .au / .sg, set up can refer to the following (using .com domain name as example):

<link rel="alternate" hreflang="x-default" href="https://www.domain.com/" />
<link rel="alternate" hreflang="en-US" href="https://www.domain.com/" />
<link rel="alternate" hreflang="en-HK" href="https://www.domain.hk/" />
<link rel="alternate" hreflang="en-AU" href="https://www.domain.au/" />
<link rel="alternate" hreflang="en-SG" href="https://www.domain.sg/" />

The above setups demonstrate the importance of properly configuring hreflang tags for multilingual websites. It can improve SEO effectiveness and provide users with a better experience. For businesses with cross-border ecommerce or overseas market needs, building multilingual websites for global users is very necessary. Properly implemented hreflang tags allow your website to be better searched and identified by search engines and international users globally.

At this point, do not forget to also adjust the sitemap format, below is the setup when using a multilingual, multi-region sitemap format:

More Blogs

Featured Articles

In today’s globalized business environment, having an excellent ecommerce website is crucial for businesses to expand into international markets. A professional and practical ecommerce website can not only effectively showcase the company’s image but also enhance the interactive experience with global customers. So, what are the core elements that need to be considered when building an outstanding ecommerce website? Let’s analyze them one by one. 1. Responsive Website Design With the prevalence of mobile internet, your ecommerce website must be device-adaptive. Responsive design ensures that the website provides an excellent browsing experience across various screen sizes, regardless of the device. Choosing a responsive theme with a sleek design and logical layout will lay a solid foundation for your ecommerce website development. 2. Emphasize Content Quality High-quality content is key to attracting and retaining visitors. The content on your ecommerce website should clearly communicate the company’s value proposition, product features, and service advantages. The content needs to be original and readable while catering to the target audience’s cultural background and language preferences. Additionally, extensive use of multimedia elements such as images and videos can help enhance the content’s appeal. 3. SEO Optimization Strategy Effective SEO optimization is a prerequisite for your ecommerce website to achieve high rankings on search engines. Keyword research should be undertaken at the initial stage of website development, and these keywords should be naturally incorporated into the website’s titles, URLs, and body content. It’s also essential to utilize H1 and H2 tags to organize the content structure, enhancing the webpage’s semantic relevance. A well-planned internal and external linking structure will also contribute significantly to your ecommerce website development. 4. Accelerate Website Performance Robust technical performance is the…

Practical Tools and Advanced Technologies Google has been continuously striving to improve search relevance and user experience. In recent years, they have introduced a series of new features and tools, such as AMP, Google Retail, and Google Jobs, to assist SEO professionals in better optimizing various types of content and services for overseas SEO success. Cultural and Language Adaptation When conducting overseas SEO, cultural differences and language adaptation must be considered. Content not only needs to be original and high-quality but also tailored to the target market’s cultural norms and linguistic styles. For instance, for the Spanish-speaking market, using authentic Spanish expressions and incorporating popular local expressions and cultural elements can significantly enhance user engagement and satisfaction. Multi-language SEO Strategies This includes using hreflang tags to ensure search engines display the correct webpage version suited to the user’s language and region. Culturally Adapted Content Adjust content to align with different countries’ cultural expectations, such as modifying visual elements and holiday promotional campaigns. User Experience Optimization Optimizing user experience is key to boosting overseas SEO effectiveness. Websites must be easy to navigate, with fast page load times, while providing a top-notch experience across both mobile devices and desktops. Responsive Design Ensure the website delivers a great browsing experience on all devices. Interaction Element Optimization Improve forms, buttons, and other interactive elements to ensure they are user-friendly and understandable across different cultural backgrounds. Monitoring and Analysis After implementing SEO strategies, continuous monitoring and analysis of their effectiveness are indispensable. This includes tracking key performance indicators like click-through rates, conversion rates, and user retention rates. Utilizing Analytics Tools Such as Google Analytics, to track user behavior and website performance. SEO Performance Reports Generate…

For companies engaged in foreign trade, it is extremely important to have a high-conversion, high-quality foreign trade website and use foreign trade SEO promotion to continuously bring target traffic and orders to the website. So how do we systematically carry out foreign trade SEO promotion work? This article will answer that for you one by one. I. Correctly Understand Foreign Trade SEO Promotion Foreign trade SEO promotion, as a way of website promotion, is only half-understood by many people. Therefore, we must first look at foreign trade SEO promotion correctly: Foreign trade SEO promotion is divided into two ways: white hat and black hat. White hat SEO follows search engine rules, aiming to optimize website quality and improve user experience; while black hat SEO adopts cheating methods, although effective for a time, it will eventually be discovered and punished. We recommend adopting the white hat SEO method. Foreign trade SEO promotion is not set in stone, it needs to keep up with the times. No SEO method is an eternal truth, we must abandon dogmatism, maintain an open mind, and constantly explore and adjust according to the actual situation. The purpose of foreign trade SEO promotion is to improve website quality and meet user needs, not solely to improve rankings and traffic. We should focus our optimization work around the user experience. Foreign trade SEO promotion requires input of human resources and material resources. To do it well, we cannot be afraid of trouble and money, such as hiring professionals to assist in completing some technical work. Be wary of various SEO hypes and rumors, and maintain a rational and sober understanding. Foreign trade SEO promotion will not end here,…

In the current tide of globalization, foreign trade website promotion has become an important means for Chinese enterprises to explore international markets and achieve transformation and upgrading. Effective foreign trade website promotion strategies require the integration of various online and offline marketing methods to form a synergy and achieve twice the result with half the effort. Therefore, foreign trade practitioners must attach great importance to foreign trade website promotion and continuously innovate and optimize their promotion plans to win more overseas orders. Comprehensive Foreign Trade Website Promotion Strategies Multi-platform Integrated Promotion In today’s internet era, third-party platforms are an important battlefield for foreign trade website promotion. Foreign trade enterprises need to integrate the traffic and buyer resources from multiple online and offline platforms to form a three-dimensional synergy for foreign trade website promotion. Leveraging B2B Platforms For the foreign trade industry, well-known B2B platforms such as Alibaba International Station, China Manufacturers, and Global Sources are indispensable important grounds for foreign trade website promotion. These platforms gather buyer resources and massive industry traffic from around the world, creating convenient conditions for foreign trade enterprises to connect with product sales and brand promotion. The biggest advantage of using B2B platforms for foreign trade website promotion is the ability to directly reach existing buyer groups and achieve efficient product display. At the same time, the platforms have huge traffic, which is conducive to rapid product exposure and acquisition of inquiry leads. However, it also requires facing fierce competition from peers, paying high service fees, and continuous investment to maintain product visibility. B2C Cross-border E-commerce Platforms In recent years, large cross-border e-commerce platforms such as Amazon, AliExpress, Wish, and DHgate have also become an…

Blogs serve as platforms for information dissemination and as channels for driving website traffic and exposure. Their layout design is crucial for attracting readers, enhancing user experience, and optimizing search engine rankings. In this regard, sidebars and footers become key elements for SEO optimization. This article will explain in detail why optimizing the sidebar and footer layouts of a blog is essential and provide some recommendations. Improving User Experience 1.1 Convenient Navigation Blog sidebars can serve as excellent navigational aids for users. By placing a table of contents, popular posts, related tags, etc., in the sidebar, readers can more quickly find content they are interested in, improving the overall user experience. 1.2 Increasing Interactive Elements Adding interactive elements such as social media links and recent comments to the sidebar and footer can foster reader engagement with the blog, increasing user stickiness. Such a design not only facilitates reader participation but also creates a stronger sense of community for the blog. A Tool for SEO Optimization 2.1 Keyword Layout Strategically placing keywords in the sidebar and footer can help improve a website’s search engine ranking. Ensuring the natural integration of keywords not only enhances the relevance of the content but also strengthens search engines’ recognition of the blog. 2.2 Internal Linking By including links to related articles, tags, etc., in the footer, not only can user dwell time be extended, but search engines are also provided with more information, increasing the website’s exposure opportunities in search results. Establishing a Professional Blog Image 3.1 Copyright Notice and Privacy Policy Adding a copyright notice and privacy policy to the footer helps establish a professional image for the blog. This not only demonstrates accountability…