Short answer: @id is a JSON-LD keyword that gives a thing in your schema a unique name, so other blocks can point at it instead of repeating it. It is written as a URL, and the fragment on the end (#product, #organization, #website) separates the thing from the page it sits on: /products/shirt is the web page, /products/shirt#product is the product described on it. Pick one id per entity, keep it stable, and reuse it wherever you refer to that entity.
What @id is
JSON-LD is the format Google recommends for structured data, and @id is one of its core keywords. The JSON-LD 1.1 specification says a node (a thing being described) is identified with @id, and that the value is treated as an IRI, a web-style identifier. The spec draws a useful line: a URL locates a resource, an IRI identifies one. An @id does not have to load anything in a browser. It just has to be unique and consistent.
Once a thing has an @id, any other block can refer to it with an object holding only that id, for example { "@id": "https://example.com/#organization" }. A reader of the markup then knows the two mentions are the same entity.
Why add #product to the id?
This is the question we see most. The product page URL already identifies something: the web page. If the Product's @id were exactly that URL, you would be saying the product and the page are the same thing, and your WebPage markup, if any, would collide with it.
Adding a fragment fixes that. The convention is:
| Entity | Typical @id |
|---|---|
| The business | https://example.com/#organization |
| The website | https://example.com/#website |
| A product | https://example.com/products/linen-shirt#product |
| A collection page | https://example.com/collections/linen#collection |
| A blog post | https://example.com/blogs/news/post#article |
The word after the # has no special meaning to search engines. #product is a readable label, not a keyword. What matters is that the id is unique to that entity and does not change. Shopify's own structured_data filter includes an @id in the Product markup it generates, and its offers carry their own.
Linking entities across a graph
The real value of @id is linking. A Shopify store has a handful of entities that point at each other: the Organization runs the WebSite, sells the Product, and publishes the Article. Without ids, each block either repeats the Organization in full or leaves the connection unstated. With ids, you define the Organization once and point at it:
{
"@context": "https://schema.org",
"@graph": [
{
"@type": "Organization",
"@id": "https://example.com/#organization",
"name": "Example Linen Co",
"url": "https://example.com/"
},
{
"@type": "WebSite",
"@id": "https://example.com/#website",
"url": "https://example.com/",
"publisher": { "@id": "https://example.com/#organization" }
},
{
"@type": "Product",
"@id": "https://example.com/products/linen-shirt#product",
"name": "Blue Linen Shirt",
"brand": { "@id": "https://example.com/#organization" },
"offers": {
"@type": "Offer",
"price": "45.00",
"priceCurrency": "GBP",
"seller": { "@id": "https://example.com/#organization" }
}
}
]
}
The @graph array holds several entities in one script block. The same references also work across separate blocks on the same page. Note that pointing brand at your Organization only makes sense if you make the products yourself; for resold brands, use a separate Brand with its own name.
@id vs url: what is the difference?
They look alike and often share most of their text, but they do different jobs:
urlis an ordinary schema.org property: the address where a person can view the thing. For a product, the product page.@idis a JSON-LD keyword: the identifier for the thing within the data. Other blocks use it to refer back.
A product usually has both: "url": "https://example.com/products/linen-shirt" and "@id": "https://example.com/products/linen-shirt#product". Do not drop url because you have an @id; Google's documented properties, such as Organization's url, are the schema.org properties, not the keyword.
Google does not document how it uses @id on its structured data pages. Ids are standard JSON-LD, the Schema Markup Validator reads them, and they keep your facts consistent. That is reason enough; just do not expect them to unlock a rich result on their own.
The @id Shopify themes and apps should use
In a Shopify theme, build ids from stable values, never from anything that changes per visit:
"@id": {{ request.origin | append: '/#organization' | json }}
"@id": {{ canonical_url | append: '#product' | json }}
canonical_url gives the canonical address of the current page, without filter or tracking strings. request.origin is the store's domain, which is what Dawn uses when it builds URLs in its own markup.
The catch on Shopify is that schema comes from several places: the theme, review apps, SEO apps. Each uses its own id scheme, or none. The theme's Organization may have no @id at all (Dawn's does not), so an app's { "@id": "…#organization" } reference points at nothing the theme defined. For the bigger picture of where each block comes from, see does Shopify add schema automatically?
Common @id mistakes
- Changing ids. An id that includes a variant, a session value or a date changes between visits and stops identifying anything. Build ids from canonical URLs.
- Duplicate ids for different things. Giving the Product and the WebPage the same
@idmerges them into one confused entity. This is why the fragment exists. - Two blocks, same id, different facts. If the theme and an app both define
…#productwith different prices, the data contradicts itself under one name. - References to nothing.
"publisher": { "@id": "…#organization" }when no block on the page or site defines that id. - Mixed domains. Ids on
yourstore.myshopify.comin one block and your real domain in another. Use the primary domain throughout. - Treating the fragment as SEO.
#best-linen-shirt-ukis not better than#product. Keep it plain.
How Schema Clinic uses @id
Schema Clinic's audit reads every block on your pages, from the theme, apps and manual code, and flags duplicates and conflicts with the source of each one. On the Pro plan ($19.99/month) the generator builds Organization, WebSite, Product, Article, BreadcrumbList and CollectionPage markup and links them all with @id references into one connected graph, deployed through an app embed. See features or install from the Shopify App Store.