In short
In JSON-LD, @id is the identifier of an entity: the organization, the website, a page, an author, a product. It lets you say "this is the same thing" from one block to another and from one page to another, and refer to an entity without describing it again. The check consists of setting a convention for absolute identifiers, built on the canonical URL, and never changing them again: same entity, same @id, on every page and over time.
Why it matters
The JSON-LD specification identifies each node of a graph by @id, in the form of an IRI (a URL in the broad sense). Two nodes with the same @id refer to the same entity, and an object that contains only {"@id": "…"} is a simple reference to an entity described elsewhere.
Google uses it explicitly. Its general guidelines recommend using @id to connect items on the same page, for example a recipe and its video, and warn that without a link, Google may not know that it can show the video in the recipe result.
Without a convention, identifiers drift:
- Relative
@id(#organization): it is resolved against the page URL. On/contact/, it becomeshttps://example.com/contact/#organization, on/blog/,https://example.com/blog/#organization: as many different organizations as there are pages. - Random
@id(an identifier generated on each render) or one based on an internal number that changes during an import: no continuity. @idthat changes shape with the protocol, thewww, the trailing slash or a tracking parameter.- Switching SEO plugins: each plugin has its own convention; moving from one to another renames every entity on the site.
On the GEO (Generative Engine Optimization) side, no generative engine documents its use of @id. Stable identifiers mainly serve the consistency of the graph that search engines read; the effect on AI answers remains a hypothesis.
What it improves
- Entity linking Articles, products and pages can cite the organization or the author by reference, without duplication.
- Consistency A single organization and a single website for the whole domain, whichever page is read.
- Continuity Identifiers survive redesigns, plugin changes and migrations.
- Rich results Google correctly attaches a secondary item (video, review) to the main item.
- Rankings No direct effect.
How to check
List the @id values of a few pages from different templates and compare them:
for url in https://example.com/ https://example.com/contact/ https://example.com/blog/detartrer-bouilloire/; do
echo "== $url"
curl -s "$url" | grep -o -E '"@id": ?"[^"]+"' | sort -u
done
Expected result:
- the organization has the same
@idon every page (https://example.com/#organization); - so does the website (
https://example.com/#website); - page-specific entities (page, article, product) have an
@idbuilt on that page's canonical URL; - no relative
@id, no query parameter, no random value.
For a site-wide check, export the structured data from a Screaming Frog crawl and look, for a given global @type (Organization, WebSite), for several different @id values. Also reload the same page twice: an @id that changes between two loads is randomly generated.
How to implement
Before you start
Do not confuse four related properties:
| Property | Role | Example |
|---|---|---|
@id |
Identifier of the entity in the graph | https://example.com/#organization |
url |
Web page that presents the entity | https://example.com/ |
identifier |
Business identifier (French SIREN number, ISBN, internal reference) | 123 456 789 |
sameAs |
External pages that describe the same entity | LinkedIn profile, Wikidata item |
Recommended convention, to be documented in the repository or the site's technical guide:
| Entity | @id pattern |
Example |
|---|---|---|
| Publishing organization | Home URL + #organization |
https://example.com/#organization |
| Website | Home URL + #website |
https://example.com/#website |
| Page | Canonical URL + #webpage |
https://example.com/blog/detartrer-bouilloire/#webpage |
| Article | Canonical URL + #article |
https://example.com/blog/detartrer-bouilloire/#article |
| Product | Canonical URL + #product |
https://example.com/produits/theiere-fonte/#product |
| Author | Author page URL + #person |
https://example.com/auteurs/jeanne-martin/#person |
| Local business | Branch page URL + #localbusiness |
https://example.com/agences/nantes/#localbusiness |
| Breadcrumb, video | Canonical URL + #breadcrumb, #video |
https://example.com/tutoriels/detartrer/#video |
Rules:
- Absolute: always
https://and the full domain. - Built on the canonical URL: same protocol, same host, same trailing slash as the
canonicaltag, with no parameters. - One fragment per type: the
#…suffix distinguishes the page from the entity it describes (the#webpagepage is about the#productproduct). - Independent of technical data: no session identifier, no timestamp, no auto-increment number that may change during an import.
- Defined once, in code: a function or a constant produces each pattern, rather than a string copied into every template.
- Frozen: a published
@idnever changes. If the page URL changes, keep the same@idfor global entities; for page entities, the redirect and the new canonical URL are enough.
Good to know: an
@iddoes not need to be a page that exists, but building it on a real URL of the site makes it readable and verifiable. This is the most widespread convention.
On a multilingual site, the organization and the website keep a single @id for all languages; pages and articles have one @id per language version, built on their own canonical URL.
WordPress
Versions WordPress 6.4 to 7.1, Yoast SEO 20 and later (Schema_IDs class), Rank Math 1.0 and SEOPress.
Yoast SEO, Rank Math and SEOPress generate their @id values automatically, based on the site and page URLs. Do not replace them: reuse them. To add an entity that references Yoast's organization, read its identifier from the context rather than writing it by hand:
use Yoast\WP\SEO\Config\Schema_IDs;
add_filter('wpseo_schema_graph', function (array $graph, $context): array {
$graph[] = [
'@type' => 'Service',
'@id' => $context->canonical . '#service',
'name' => get_the_title(),
'provider' => ['@id' => $context->site_url . Schema_IDs::ORGANIZATION_HASH],
];
return $graph;
}, 10, 2);
Add such an entity only on the relevant pages (a condition on the content type). Before any change of SEO plugin, record the current @id values with the command from the "How to check" section: the new plugin will produce its own, and you will need to check that the custom references follow.
Shopify
Versions Online Store 2.0 themes (Horizon, Dawn), all Shopify plans, November 2026.
Build the identifiers on the primary domain and the page's canonical URL, which Liquid provides:
{%- assign site_url = shop.url | append: '/' -%}
{%- assign page_id = canonical_url -%}
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "Product",
"@id": {{ page_id | append: '#product' | json }},
"name": {{ product.title | json }},
"brand": { "@type": "Brand", "name": {{ product.vendor | json }} },
"manufacturer": { "@id": {{ site_url | append: '#organization' | json }} }
}
</script>
Use shop.url rather than the request host: it returns the primary domain, even if the page is viewed through another domain connected to the store. On a multilingual store, check that canonical_url does include the language prefix.
Laravel
Versions Laravel 11 to 13.
Centralize the convention in a class, and base it on the configured URL, never on the request host:
namespace App\Support;
use Illuminate\Support\Str;
class SchemaIds
{
public static function organization(): string
{
return self::home() . '#organization';
}
public static function website(): string
{
return self::home() . '#website';
}
public static function forPage(string $canonicalUrl, string $type): string
{
$url = Str::before($canonicalUrl, '?');
return "{$url}#{$type}";
}
private static function home(): string
{
return rtrim(config('app.url'), '/') . '/';
}
}
Usage: '@id' => SchemaIds::forPage(route('posts.show', $post), 'article') and 'publisher' => ['@id' => SchemaIds::organization()]. Check that APP_URL contains the production domain and protocol.
Next.js
Versions Next.js 15 and 16 (App Router).
Define the site URL in an environment variable and the patterns in a shared module:
// lib/schema-ids.ts
const SITE_URL = (process.env.NEXT_PUBLIC_SITE_URL ?? 'https://example.com').replace(/\/$/, '');
export const schemaIds = {
organization: `${SITE_URL}/#organization`,
website: `${SITE_URL}/#website`,
page: (path: string, type: string) => `${SITE_URL}${path}#${type}`,
};
In a page: '@id': schemaIds.page('/blog/detartrer-bouilloire/', 'article') and publisher: { '@id': schemaIds.organization }. The path must follow the project's trailingSlash setting, to match the canonical URL exactly.
Nuxt
Versions Nuxt 4 (same code on Nuxt 3, end of life since July 2026), Nuxt Schema.org module 6 or 7 with Nuxt Site Config (site.url key).
The Nuxt Schema.org module generates @id values from the site URL declared in the configuration (site.url in nuxt.config). Declare it once, with the production domain, and let the module build the identifiers; for a custom entity, follow the same shape: the page's canonical URL followed by a fragment.
Other CMSs and platforms
Drupal (Schema.org Metatag), Joomla, Wix, Squarespace and Webflow let you enter the @id in custom markup. Use tokens or dynamic fields for the page's canonical URL, and fixed, absolute values for the organization and the website.
Common mistakes
- Relative
@idvalues such as#organization: they change with every page. - Request host in the identifier: staging, a secondary domain or a CDN produce other
@idvalues. - Random identifiers generated on each render by a library or a component.
- Same
@idfor two entities: the page and the product, the author and the organization. The properties of both get mixed. - Two
@idvalues for the same entity: the SEO plugin publishes/#organization, the theme/#org. Google sees two organizations. - Confusing
@idandurl: the URL must point to a real page, the@idrefers to the entity. - Changing SEO plugin or domain without checking the identifiers: see preserve structured data, entity identifiers and important anchors (opens in a new tab).
Frequently asked questions
Does an @id have to be a working URL?
No. An @id is an identifier: it must be unique and stable, not necessarily reachable. The JSON-LD specification calls for an IRI, and the most widespread convention builds it on a real URL of the site followed by a fragment, such as https://example.com/#organization. This form has the advantage of being readable, specific to your domain and easy to check, and no search engine requires the address to respond.
What is the difference between @id, url and sameAs?
The @id identifies the entity in the structured data graph and is used for references from one block to another. The url property gives the web page that presents the entity, for example the home page for an organization. The sameAs property lists external pages that describe the same entity, such as a LinkedIn profile or a Wikidata item. The three complement each other and do not replace one another.
What happens if @id values change after a redesign?
The entities then change identity in the eyes of search engines: the old organization and the new one are no longer connected by their identifier, and references from one block to another can break if the change is not applied everywhere. It is not a blocking error, but an avoidable loss of continuity. Keep the same identifier patterns during a redesign or a change of SEO plugin or domain, and check them before going live.
Resources
- W3C: JSON-LD 1.1, node identifiersw3.org
- Google Search Central: General structured data guidelines (multiple items)developers.google.com
- Yoast: Schema graph technology approachdeveloper.yoast.com
- Yoast: Schema APIdeveloper.yoast.com
- schema.org: Data modelschema.org
Updated on
Topic checklist (PDF)