# Create a distinct @id for each page

- Check 28.13 · Multilingual linking and schema · Important
- Source: https://checklist-seo-geo.com/en/multilingual-linking-schema/create-distinct-at-id-each-page
- Give the page, article and product of each language version an @id built on its own canonical, and never reuse the one from the original.
- Updated on 2026-11-25
- Licence: CC BY 4.0. Credit “Checklist SEO & GEO” with a link to https://checklist-seo-geo.com/en/multilingual-linking-schema/create-distinct-at-id-each-page.
- Plugin checklist-seo-geo: 1.3.1 · https://github.com/maximegaul/checklist-seo-geo

## In short

Each language version of a page is a separate page, with its own canonical URL. The entities specific to that page (the `WebPage`, the `Article`, the `Product`, the breadcrumb) must therefore carry a distinct `@id`, built on the URL of the version: `https://example.com/en/products/cast-iron-teapot/#product` for the English page, `https://example.com/produits/theiere-fonte/#product` for the French page. Global entities (organization, website, author), on the other hand, keep a single `@id` for every language. Once this check is done, no page `@id` is shared by two URLs.

## Why it matters

In JSON-LD, every node that carries the same `@id` designates the same entity, and its properties add up. If the English page reuses the identifier of the French page, a reader of the graph gets a single entity with two `name` values, two `description` values, two `inLanguage` values, two URLs and sometimes two currencies. The data becomes contradictory.

The defect stems from technical choices that seem reasonable:

- **Shared internal identifier**: a headless CMS or a plugin builds the `@id` from the content number (`#article-123`), shared by every translation.
- **Permalink of the original** used in a template to build the identifier.
- **Product identifier** (`#product-8842`) shared by every language of a store.
- **Template copied** from one language to another with the `@id` hard-coded.

Google points out that `@id` is used to connect items on the same page. To indicate the language versions of a page, it documents `hreflang` annotations and does not mention structured data. No generative engine documents its use of `@id` values. Distinct identifiers per version guarantee no display; they prevent a graph in which languages get mixed up.

## What it improves

- **Entities without contradictions**: each version has its own name, description, language and URL.
- **Consistency with the canonical and `hreflang`**: one URL, one page, one set of entities.
- **Reliable internal references**: the breadcrumb, video or reviews of the English page attach to the English page.
- **Maintenance**: an identifier derived from the URL can be checked at a glance.
- **Rankings and AI answers**: no documented direct effect.

## How to check

Compare the original page and its translation:

```bash
for url in https://example.com/produits/theiere-fonte/ https://example.com/en/products/cast-iron-teapot/; do
  echo "== $url"
  curl -s "$url" | grep -o -E '"@id": ?"[^"]+"' | sort -u
done
```

Expected result: the page, product and breadcrumb identifiers differ and each starts with the URL of its version; only those of the organization, the website and the authors are shared.

On a list of URLs (extracted from the sitemaps of every language), this script flags page `@id` values that are not based on the page's canonical and those shared by several URLs:

```python
#!/usr/bin/env python3
"""Usage: python3 ids_par_page.py urls.txt  (one URL per line)"""
import json
import re
import sys
import urllib.request
from collections import defaultdict

TYPES_DE_PAGE = {
    "WebPage", "ItemPage", "CollectionPage", "FAQPage", "ProfilePage", "AboutPage", "ContactPage",
    "Article", "BlogPosting", "NewsArticle", "Product", "ProductGroup", "BreadcrumbList",
    "Service", "Event", "Course",
}


def analyser(url):
    requete = urllib.request.Request(url, headers={"User-Agent": "audit-schema"})
    html = urllib.request.urlopen(requete, timeout=15).read().decode("utf-8", "replace")
    canonique = re.search(r'<link[^>]*rel="canonical"[^>]*href="([^"]+)"', html)
    identifiants = []
    for bloc in re.findall(r"<script[^>]*application/ld\+json[^>]*>(.*?)</script>", html, re.S | re.I):
        try:
            donnees = json.loads(bloc)
        except json.JSONDecodeError:
            continue
        liste = donnees.get("@graph", [donnees]) if isinstance(donnees, dict) else donnees
        for entite in liste:
            types = set(entite.get("@type", [])) if isinstance(entite.get("@type"), list) else {entite.get("@type")}
            if types & TYPES_DE_PAGE and isinstance(entite.get("@id"), str):
                identifiants.append((", ".join(sorted(t for t in types if t)), entite["@id"]))
    return (canonique.group(1) if canonique else url), identifiants


pages_par_id = defaultdict(set)

with open(sys.argv[1], encoding="utf-8") as fichier:
    for url in fichier.read().split():
        canonique, identifiants = analyser(url)
        for type_entite, identifiant in identifiants:
            pages_par_id[identifiant].add(url)
            if not identifiant.startswith(canonique):
                print(f"{url} | {type_entite} | @id outside the canonical: {identifiant}")

for identifiant, pages in pages_par_id.items():
    if len(pages) > 1:
        print(f"@id shared by {len(pages)} URLs: {identifiant}")
```

The script assumes that the `rel` attribute comes before `href` in the `canonical` tag; adapt the expression if your template reverses them.

## How to implement

### Before you start

Convention for a product available in French (default language, no prefix) and in English:

| Entity | French version | English version |
|---|---|---|
| `WebPage` | `https://example.com/produits/theiere-fonte/#webpage` | `https://example.com/en/products/cast-iron-teapot/#webpage` |
| `Product` | `https://example.com/produits/theiere-fonte/#product` | `https://example.com/en/products/cast-iron-teapot/#product` |
| `BreadcrumbList` | `…/produits/theiere-fonte/#breadcrumb` | `…/en/products/cast-iron-teapot/#breadcrumb` |
| `Organization` | `https://example.com/#organization` | Identical |
| `WebSite` | `https://example.com/#website` | Identical |
| `Person` (author) | `https://example.com/auteurs/jeanne-martin/#person` | Identical |

Rules:

- **Page entities: one `@id` per version**, built on the canonical URL of the version, followed by a fragment per type. The exact form (with or without `#webpage`) matters little, as long as it is the same everywhere.
- **Global entities: one `@id` for every language.** A person remains the same person when their biography is translated; choose a reference page to build their identifier. See [keep a stable organization @id](https://checklist-seo-geo.com/en/multilingual-linking-schema/keep-stable-organization-at-id).
- **Never a shared internal identifier** (content number, product ID) as the sole basis of the `@id`.
- **The shared identity goes through other properties**: for a product, `sku`, `gtin` or `mpn` are the same in every language; they are what says it is the same physical item.
- **Consistent URL and `@id`**: the entity's `url` is that of the version. See [adapt url to the language](https://checklist-seo-geo.com/en/multilingual-linking-schema/adapt-url-language).

For an article, schema.org offers to connect a translation to the original with `translationOfWork`, and the original to its translations with `workTranslation`. These properties come from schema.org's bibliographic extension; no engine documents their use, and `hreflang` remains the mechanism Google recognizes. They are optional:

```json
{
  "@context": "https://schema.org",
  "@type": "BlogPosting",
  "@id": "https://example.com/en/blog/cast-iron-teapot-care/#article",
  "url": "https://example.com/en/blog/cast-iron-teapot-care/",
  "headline": "How to care for a cast iron teapot",
  "inLanguage": "en-GB",
  "translationOfWork": { "@id": "https://example.com/blog/entretenir-theiere-fonte/#article" },
  "publisher": { "@id": "https://example.com/#organization" }
}
```

### WordPress

Versions: WordPress 6.5 and later, Yoast SEO, Rank Math, WPML and Polylang, November 2026.

With WPML or Polylang, each translation is a separate piece of content with its own canonical. Yoast SEO and Rank Math build page identifiers on this canonical: each version therefore receives distinct `@id` values without any configuration. The risk comes from markup added by the theme or a third-party plugin. In your code, always start from the canonical provided by the SEO plugin:

```php
add_filter('wpseo_schema_graph', function (array $graph, $context): array {
    if (! is_singular('recette')) {
        return $graph;
    }

    $graph[] = [
        '@type' => 'Recipe',
        '@id' => "{$context->canonical}#recipe",
        'name' => get_the_title(),
        'inLanguage' => get_bloginfo('language'),
        'mainEntityOfPage' => ['@id' => $context->canonical],
    ];

    return $graph;
}, 10, 2);
```

With Yoast, the `@id` of the `WebPage` is the canonical itself, hence the `mainEntityOfPage` reference above. Avoid `get_the_ID()` or the ID of the original content in an `@id`.

### Shopify

Versions: Online Store 2.0 themes, Liquid, November 2026.

`canonical_url` returns the URL of the version being viewed, language prefix included. Build identifiers on it, never on `product.id` or `product.handle` alone, which are shared by every language:

```liquid
"@id": {{ canonical_url | append: '#product' | json }},
"url": {{ canonical_url | json }},
"sku": {{ product.selected_or_first_available_variant.sku | json }},
```

Also check review or structured data apps: some publish their own `Product` with a fixed identifier.

### Drupal

Versions: Drupal 10 and 11, Schema.org Metatag module.

Build the `@id` with the `[node:url]` token, resolved in the language of the translation, followed by the fragment: `[node:url]#article`. Do not use `[node:nid]`, which is identical for every translation of the same content.

### Laravel

Versions: Laravel 11 to 13.

Derive the identifier from the canonical URL of the version, generated by the route of the current language:

```php
namespace App\Support;

use Illuminate\Support\Str;

class SchemaIds
{
    public static function forPage(string $canonicalUrl, string $fragment): string
    {
        $url = Str::before($canonicalUrl, '?');

        return "{$url}#{$fragment}";
    }
}
```

Usage: `SchemaIds::forPage(route('products.show', $product), 'product')`, with the language already set by the language middleware. Do not use `$product->id` in the `@id`: it is shared by every translation of a translatable model.

### Next.js

Versions: Next.js 15 and 16 (App Router).

With a headless CMS, each entry often has an identifier shared by all its languages: do not use it in the `@id`. Start from the URL of the version:

```ts
const url = absoluteUrl(locale, `/products/${product.slug}/`);

const jsonLd = {
  '@context': 'https://schema.org',
  '@type': 'Product',
  '@id': `${url}#product`,
  url,
  name: product.name,
  sku: product.sku,
};
```

`absoluteUrl` is the per-language URL building function described in [adapt url to the language](https://checklist-seo-geo.com/en/multilingual-linking-schema/adapt-url-language); `product.slug` must be the slug for the route's language.

### Nuxt

Versions: Nuxt 3 and 4, @nuxtjs/i18n and Nuxt Schema.org modules.

Nuxt Schema.org builds the identifiers of page entities from the URL of the current route, language prefix included: each version receives distinct identifiers. Only check the entities you declare with an explicit `@id`.

## Common mistakes

- **`@id` built on the CMS identifier** (`#article-123`), shared by every translation.
- **Same page `@id` in every language**, copied from a template.
- **Organization or author duplicated per language**, the opposite mistake: these are global entities.
- **`@id` that does not match the canonical**: a different trailing slash, parameter or `www`.
- **A single product `@id` for the whole multilingual catalog**, even though the name, description, URL and sometimes currency differ from one language to another.
- **Regional variants of the same language** (`/fr-ca/`, `/fr-be/`) that share the identifier of the French version: they are separate pages too.

## Frequently asked questions

### Can a translated page reuse the @id of the original page?

No. In JSON-LD, two nodes that carry the same @id designate the same entity and their properties are combined: the page would end up with two names, two descriptions, two languages and two URLs. Each language version has its own canonical URL; build the @id of its page, article or product on it. Only the organization, the website and people keep a shared identifier.

### Should a product sold in several languages have a single @id?

One @id per product page is better. The name, description, URL and sometimes the currency differ from one version to another: a shared identifier would mix these values. What says it is the same physical item are the commercial identifiers, such as sku, gtin or mpn, identical in every language. Build the @id on the canonical URL of each version.

### Should translations be connected with workTranslation?

It is optional. The schema.org properties workTranslation and translationOfWork let you connect an article to its translations in structured data, but they come from the bibliographic extension and no engine documents their use. To tell Google about the language versions of a page, the recognized mechanism remains the hreflang annotation. Only add these properties if your CMS generates them easily and without errors.

## Resources

- [W3C: JSON-LD 1.1, Node identifiers](https://www.w3.org/TR/json-ld11/#node-identifiers)
- [Google Search Central: General structured data guidelines](https://developers.google.com/search/docs/appearance/structured-data/sd-policies?hl=en)
- [Google Search Central: Localized versions of your pages](https://developers.google.com/search/docs/specialty/international/localized-versions?hl=en)
- [schema.org: workTranslation](https://schema.org/workTranslation) and [translationOfWork](https://schema.org/translationOfWork)
- [Yoast: Schema graph technology approach](https://developer.yoast.com/features/schema/technology-approach/)

Next steps: [translate FAQ and Article markup](https://checklist-seo-geo.com/en/multilingual-linking-schema/translate-faq-article-markup), [validate the markup for each language](https://checklist-seo-geo.com/en/multilingual-linking-schema/validate-markup-each-language) and [use stable @id values](https://checklist-seo-geo.com/en/schemaorg-structured-data/use-stable-at-id-values).
