Expanding your business into international markets is an exciting prospect. You’ve built region-specific landing pages, translated your content, and are ready to welcome a new global audience. But this expansion brings a significant technical SEO challenge: ensuring the right user finds the right page. Nothing undermines your international marketing faster than a user from Germany landing on your Spanish homepage or an Australian customer seeing prices in US dollars. This is precisely the problem hreflang tags were designed to solve.
These small but powerful snippets of code are the foundation of a strong international SEO strategy. When implemented correctly, they are a clear signal to search engines about the complex relationships between your global pages. This guide provides a simple, straightforward approach to getting hreflang tags right, helping you avoid the common mistakes that can sabotage your global reach.
What Are Hreflang Tags and Why Do They Matter?
Before diving into the « how-to, » it’s essential to understand what these tags are. An hreflang tag is an HTML attribute (rel= »alternate » hreflang= »x ») that tells search engines like Google which language and, optionally, which region a specific page is intended for. They signal that other pages exist as variations of the page a user is currently on, rather than being duplicates.
Their importance in your SEO strategy cannot be overstated. Firstly, they massively improve user experience (UX) by serving the most appropriate content to a user based on their language and location, which reduces bounce rates and increases conversions. Secondly, they solve the critical issue of duplicate content. Without hreflang, Google might see your en-AU and en-GB pages as identical content competing against each other. Hreflang tags clarify this relationship, consolidating your link equity and helping the correct page rank in the correct country’s search results.
The Most Common Hreflang Mistakes to Avoid
While the concept is simple, the execution is notoriously finicky. A single typo or broken link can render your entire hreflang setup ineffective. Failing to target the right region can be particularly disastrous for businesses in regulated or highly competitive industries. For example, the rapidly growing online casino market relies on precise geotargeting for both compliance and marketing. Showing an Australian-specific page for Fortunica casino AU to a user in a different jurisdiction isn’t just bad UX; it can breach strict licensing regulations. Ensuring the correct en-au tag is used is critical for both visibility and legality in such markets.
This is just one high-stakes example, but many common errors can undermine your efforts. Here are some of the most frequent mistakes that SEO specialists encounter:
- Using incorrect language or region codes: A classic error is using the wrong code, like en-UK instead of the correct ISO code en-GB for the United Kingdom, or en-AUS instead of en-AU for Australia.
- Missing or broken return links: Hreflang tags must be reciprocal. If Page A links to Page B as its en-GB alternative, Page B must link back to Page A as its en-AU alternative. A one-way link is treated as an error.
- Using relative URLs: Hreflang tags demand absolute URLs. You must use the full URL, including https://www., for every link (e.g., https://example.com/page, not /page).
- Pointing to non-canonical or redirected pages: All hreflang links should point to the canonical (final) version of a page. Pointing to a URL that redirects or has a different canonical tag will confuse search engines.
- Forgetting the x-default tag: The x-default tag is a crucial fallback. It tells search engines which page to show if a user’s language or region doesn’t match any of your other specified versions (e.g., a user searching in French when you only have English and Spanish pages).
Avoiding these common pitfalls is the first major step towards a successful international implementation.
How to Implement Hreflang Tags Correctly
Once you know what to avoid, you can focus on the three valid methods for implementation. You only need to choose one of these methods, not all three.
Method 1: HTML <head> Tags
The most common method is placing <link> tags in the <head> section of your page’s HTML. For every page, you must include a full set of links identifying all its international variations, including a link to itself.
For example, if you have an en-AU page and an en-GB page, the <head> of your en-AU page would look like this:
<link rel= »alternate » hreflang= »en-AU » href= »https://example.com.au/page » /> <link rel= »alternate » hreflang= »en-GB » href= »https://example.co.uk/page » /> <link rel= »alternate » hreflang= »x-default » href= »https://example.com.au/page » />
This method is straightforward and gives you direct control, but it can become difficult to manage on large, dynamic websites, as it adds code to every single page.
Method 2: XML Sitemaps
A cleaner and more scalable solution, especially for large e-commerce sites, is to define your hreflang relationships within your XML sitemap. Instead of adding code to your HTML, you use the <xhtml:link> attribute for each URL entry to list all its variations.
This approach keeps your HTML clean and light, is often easier to automate, and doesn’t impact page load speed. The main downside is that it can be more complex to set up initially, and it may take search engines longer to discover changes compared to on-page HTML tags.
Method 3: HTTP Headers
This third method is not for standard web pages but is the correct solution for non-HTML content, such as PDFs or other downloadable files. You configure your server to return an HTTP header that specifies the hreflang information.
It’s a more technical implementation and is only necessary for these specific file types. While these three methods cover how you implement the tags, the implementation is useless if the values inside those tags are wrong.
Hreflang Values: Getting the Codes Right
The value you use for the hreflang attribute must follow a specific format: language or language-region. The language code must be in ISO 639-1 format (two letters), and the optional region code must be in ISO 3166-1 Alpha 2 format (two letters). You cannot use a region code alone.
To help you distinguish between common codes, the table below provides a quick reference for common implementations.
| Code | Language | Region | Use Case |
| en | English | Any | A general page for all English speakers. |
| en-AU | English | Australia | Targeted at English speakers in Australia. |
| en-GB | English | UK | Targeted at English speakers in the United Kingdom. |
| es | Spanish | Any | A general page for all Spanish speakers. |
| es-ES | Spanish | Spain | Targeted at Spanish speakers in Spain. |
| es-MX | Spanish | Mexico | Targeted at Spanish speakers in Mexico. |
| x-default | N/A | N/A | The fallback page for all unspecified languages. |
This table illustrates the most common formats. Always double-check the correct ISO codes for your target countries before implementation to avoid simple, costly errors.
A Step-by-Step Guide to Auditing Your Hreflang Setup
How do you know if your implementation is working? You must audit it. A « set it and forget it » approach to hreflang is a recipe for failure. Here is a simple, step-by-step process to audit your setup.
- Crawl your site: Use an SEO crawler (like Screaming Frog or Sitebulb) to extract all hreflang directives. Most crawlers have built-in reports specifically for hreflang.
- Check for return links: This is the most critical check. Ensure that every hreflang link is bidirectional (Page A links to B, and Page B links back to A).
- Validate codes: Check the crawl data for any invalid or incorrect language/region codes (e.g., en-UK).
- Identify conflicts: Look for contradictions, such as two different pages both claiming to be the en-AU version, or pages pointing to non-canonical URLs.
- Use Google Search Console: While the old International Targeting report is gone, GSC still reports on hreflang errors within its standard reports. Look for « Hreflang tags with errors » in your coverage reports.
- Test manually: Use a VPN or a browser extension to simulate browsing from your target countries. Perform Google searches for your brand and keywords to see if the correct regional page appears in the SERPs.
This audit should be performed regularly, especially after site migrations, redesigns, or adding new international sections.
Your Roadmap to Flawless International SEO
Mastering hreflang tags is a non-negotiable part of modern, global SEO. Whilst they may seem like a minor technical detail, they are the primary mechanism for communicating your site’s international structure to search engines, directly impacting your user experience and search visibility. By understanding what they are, recognising the common mistakes, and implementing them methodically, you can eliminate the guesswork.
Don’t let these crucial tags be an afterthought. The key is to be precise, ensure all links are reciprocal, and audit your setup regularly. Take 30 minutes this week to audit your top 10 international pages using the steps above. Find one error—a broken return link or an incorrect code—and fix it. Your global audience, and your bottom line, will thank you.

