DELTAWEB
All posts
Technical SEO

Case Study: Regaining Country Traffic After an hreflang Fix

A hypothetical case: a wrong country version ranked, the hreflang set was fixed. Follow this hreflang example step by step, with a checklist and lessons.

Case Study: Regaining Country Traffic After an hreflang Fix
9 minReading time
Arif KuruAuthor

Bir ihracat firmasının ana sitesinde Almanya pazarına yönelik sayfalar, aylar boyunca Almanca arama sonuçlarında neredeyse hiç görünmedi. Sayfalar yayındaydı, içerik güncel görünüyordu, ama Almanya'daki kullanıcı çoğu zaman İngilizce ya da başka bir ülkenin sürümüne yönlendiriliyordu. Bu yazıdaki senaryo kurgusal bir örnektir: gerçek bir firma, marka, rakam ya da trafik verisi içermez; yalnızca sık karşılaşılan bir hata zincirini somutlaştırmak için kurgulanmıştır.

Hreflang'in temel mantığını bilmiyorsanız önce What is hreflang? A complete guide from basics to advanced yazısına göz atmanızı öneririz. Bu vaka, o kuralların uygulamada nasıl bozulabildiğini ve nasıl onarıldığını adım adım gösteriyor.

Öne Çıkanlar

  • Kurgusal vakanın kök nedeni, hreflang etiketlerinin karşılıklı olmamasıydı; arama motoru hangi sürümün hangi ülkeye gösterileceğini net olarak anlayamıyordu.
  • Teşhis, her sayfanın dönüş etiketini ve x-default kullanımını tek tek kontrol eden bir taramayla yapıldı.
  • Düzeltme, etiketleri tek tek yamalamak yerine sayfa kümeleri üzerinden yapıldı; dil-bölge kodları standartlaştırıldı ve sitemap ile sayfa etiketleri eşitlendi.
  • Toparlanma tek gecede olmadı; yeniden tarama ve yeniden değerlendirme süreci kademeli ilerledi.
  • En önemli ders: hreflang bir zorlama değil bir sinyaldir; temiz bir site yapısı olmadan etiket eklemek sorunu tek başına çözmez.

The setup: how a wrong country version got ranked

Our hypothetical company is a mid-sized exporter of home textiles, which we will simply call the "sample firm". Its site offers Turkish, English and German versions. The German pages were refreshed by a team that translated the English copy, but nobody updated the hreflang annotations during that work. The result: the German pages pointed to a variant built for Austria and Switzerland, while the page meant for Germany was not referenced by any counterpart.

In a situation like this, search engines have to infer on their own which version to show which user. That inference often does not match what the business intended. A potential buyer in Germany may see the English or Austrian version in the results, which lowers click value, shortens time on page and ultimately turns into lost demand.

Diagnosis: which errors were working together?

The sample firm did not have one broken tag. It had several overlapping problems. During the audit, the link rel="alternate" hreflang annotations on every page were collected with a crawler and summarised in the table below. The situations are hypothetical, but they are the kinds of problems that appear often in real audits.

Error typeSituation seen in the hypothetical caseLikely effect
Missing return tagThe German page points to the English page, but the English page does not list German backThe relationship stays one-way and the cluster is not treated as reliable
Wrong code formatA country code used where a language code belongs, with inconsistent casingThe page does not match the intended audience
No x-defaultNo default page defined for users whose language matches none of the targetsA wrong version may be shown by default
Sitemap and page mismatchThe sitemap lists a German URL that has no counterpart annotation on the pageThe signals contradict each other

Why return tags are critical

Google's hreflang documentation expects every language version to list all alternates, including itself, and expects those links to be reciprocal. A one-way relationship breaks the integrity of the cluster. In the sample firm, the German page pointed to the English page, but because the English page did not point back to German, the relationship did not hold. For a detailed check of this failure mode, see our guide to hreflang return tag errors, detection and fix.

What x-default does

x-default defines the default page for users whose language and region match none of the listed targets. In the hypothetical case it was not defined, so visitors from some countries outside Germany could be sent to an arbitrary local version. For the correct setup, our x-default explainer covers the details.

Language and region codes

Google expects language codes in ISO 639-1 format and region codes in ISO 3166-1 alpha-2 format. For Germany the value is de-DE, for Austria de-AT. Writing a country code where a language code belongs, or putting a country name into the attribute, makes it harder for search engines to read the signal. Every annotation format should therefore be tied to a single code rule.

The fix: what was done step by step?

Rather than patching tags one by one, the fix was applied at the level of clusters. The goal was for every group of pages to be complete and consistent within itself. The team followed this order.

  1. Define the page clusters. For each product category, a table recorded which language-region versions are counterparts of one another. Pages with no counterpart were removed from the cluster and left standing on their own.
  2. Complete the return tags. Every page listed all versions in its cluster, including itself. Reciprocity was verified link by link.
  3. Define x-default. The global language selector page or the global homepage was marked as the default.
  4. Standardise the codes. All annotations were moved to ISO formats, hand-typed values were removed from templates, and output was generated by one helper function.
  5. Align the sitemap with the annotations. The hreflang entries in the XML sitemap were regenerated so that they describe exactly the same cluster as the page annotations.
  6. Re-crawl and monitor. The corrected pages were submitted for recrawling through Search Console, and crawl reports were checked on a regular schedule.

Each of these steps targets a class of errors that frequently appears in hreflang implementations. A short check at the end of each step prevents the next step from inheriting the same mistakes.

Verification: did the fix actually work?

The largest risk after a fix is that a partial change creates new errors. For that reason the whole site was crawled again after every change, and each cluster was confirmed to be complete and reciprocal. A practical starting point for that kind of crawl is our step-by-step Screaming Frog hreflang audit.

The verification checklist asked these questions:

  • Does every URL list all versions in its cluster?
  • Is every link reciprocal?
  • Do the sitemap and page annotations describe the same cluster?
  • Do the language and region codes follow the ISO standards?
  • Are pages with no counterpart pointing to the wrong version?
  • Do canonical or redirect rules contradict the hreflang cluster?

The last item is easy to miss. If a page points to another version with hreflang but declares itself as the canonical, the signals contradict each other.

Recovery: what was the expected sequence?

In the hypothetical case, recovery unfolded in three stages. The description below is a general framework: timing differs from site to site and is never guaranteed.

1. The recrawl period

The search engine first recrawls the corrected pages and processes the new annotation structure. The length of this period depends on crawl frequency and page count. On large sites this stage can take weeks.

2. Showing the right version

Once the cluster is judged reliable, the correct country version begins to appear in results. At this stage users in the target country see the page in their own language, and the visibility of the wrong version declines.

3. Gradual return of traffic

In the final stage, the ranking of the correct version settles and country-level traffic recovers gradually. In the hypothetical case this took a period of a few months. That is an illustration of how the process can unfold, not a promise of any timeline.

The most common mistake during this phase is to expect results within a few days and to change the plan accordingly. For a sound measurement, compare the country and language performance reports in Search Console with the period before the fix. A single day of fluctuation does not mean the fix failed.

Cross-team collaboration: how content, development and SEO worked together

The root cause in the sample firm was a process gap rather than a lack of technical knowledge. The team refreshing the German content did not think the hreflang update was part of their job, and the development team only checked template changes. Along with the fix, a new division of responsibility was set up across the three groups.

  • Content team: Before a new page is published, it tells the cluster which version it counterparts.
  • Development team: Generates hreflang annotations from the template and the data source, and does not allow manual value entry.
  • SEO team: Runs a short audit before and after each release and records any mismatches.

This split is the most effective way to prevent the same error from coming back. The check should be tied to the process itself, not to one person's memory.

Adapting the case to your own site

The steps in the hypothetical case may not map one-to-one onto every site. A few differences are worth examining before you apply them to your own.

Catalogue size

On a site with thousands of product pages, writing hreflang by hand for every URL is not realistic. There, annotations should be generated from a template and a data source, and clusters defined at category level. On a small site, checking one by one may be more practical.

Number of markets and language overlaps

When several markets share a language, for example Germany, Austria and Switzerland for German, you need to decide whether each region requires its own version. That decision depends on whether the content actually differs. Opening a separate URL only because the price currency changes is not always the right call. Our international SEO guide's section on hreflang errors discusses this trade-off in more detail.

Language switcher design

A language switcher is an important component that keeps users from landing on the wrong version. It does not replace hreflang, however. The switcher and the hreflang annotations must agree: if the switcher shows one page while the annotation points to another, the signals conflict.

Common wrong expectations

The most common wrong expectation drawn from this case is that adding hreflang will fix the problem immediately. In reality, the annotation is only a hint to the search engine. The content of the page, its quality and the overall structure of the site also shape the outcome. Our article on what hreflang does not do, and the common misconceptions around it, covers these misunderstandings in more depth.

Another frequent mistake is to treat the fix as a one-off project. Hreflang is a structure, and every new page, every new market and every new language affects it. The fix therefore has to become an ongoing control process.

Conclusion and next step

The hypothetical case shows that hreflang errors often accumulate silently during a refresh rather than sitting on one page. The most valuable step in any fix is to define page clusters in a table and to crawl after every change. To start on your own site today, pick the country version that brings in the most traffic, then check its return tags and x-default first. That gives the fastest visibility gain for the least effort.

FAQ

Frequently Asked Questions

  • What is hreflang and why does it matter?

    hreflang is an HTML annotation that tells search engines which language and country audience a page is meant for. On sites that publish several languages or markets, it helps the right version reach the right user. It is a hint, however, not a guaranteed redirect.

  • How can I tell that the wrong country version is ranking?

    If an unexpected version stands out in the country and language performance reports in Search Console, that is a warning sign. You can also search from different countries and check which URL appears. For a firm diagnosis, crawl the page annotations and the sitemap together.

  • What is an hreflang return tag?

    A return tag means that every version a page points to also points back to it. Without this reciprocity, search engines do not treat the relationship as reliable. Each page should list all versions in its cluster, including itself.

  • When should I use x-default?

    x-default defines the default page for users whose language and region match none of the listed targets. A global page with a language selector usually fills this role. When it is not defined, unmatched users may be sent to an arbitrary local version.

  • How long does traffic take to recover after a fix?

    It depends on site size, crawl frequency and the scope of the fix, and no timeline is guaranteed. In general, recrawling comes first, then the correct version starts to show, and traffic recovers gradually. Judging the result from a single week of data is not a sound approach.

  • Does a hreflang sitemap replace on-page annotations?

    No, hreflang entries in the sitemap are an alternative to page annotations, not a replacement for them. Whichever method you use, the cluster information must be consistent across both sources. Conflicting signals can cause more problems than a single faulty source.

  • How do I write language and country codes correctly?

    The language code follows ISO 639-1 and is two letters, while the country code follows ISO 3166-1 alpha-2. For example, Germany is written de-DE and Austria de-AT. Putting a country name or a wrong code in the attribute prevents search engines from reading the signal correctly.

  • How can I start a hreflang audit on my own site?

    First list every language and market version of the site with its counterpart pages in a table. Then collect the annotations of each page with a crawler and check the return links, the codes and the x-default definition. Fix the mismatches starting with the market that brings in the most traffic.

Related Articles

No comments yet

Leave a Comment