Structured data is a small block of code that tells search engines and AI systems exactly what is on a page: this is a product, it costs this much, it is in stock, it ships to these countries, it has these reviews. On Shopify it is usually added as JSON-LD, a script tag containing Schema.org data. Done well, it makes your pages eligible for rich results and makes your catalog far easier for AI assistants to understand.
Key takeaways
- JSON-LD is Google's recommended structured data format and is easy to generate from Liquid.
- Every Shopify store should have Organization, WebSite, Product and BreadcrumbList data at minimum.
- Many themes and apps output incomplete or duplicate Product data. Duplicates confuse search engines.
- Always validate with Google's Rich Results Test and monitor Search Console.
Each connected property is a fact Google, Merchant Center and AI assistants can use without guessing.
Why structured data matters for Shopify stores
- Rich results: product snippets with price, availability and review stars can appear in search results and Google Shopping surfaces.
- Merchant listings: Google can show shipping and return information directly in results when you provide it.
- AI search: assistants that compare products rely on clean, consistent product data.
- Entity clarity: Organization data connects your store to your brand, logo and social profiles.
The structured data types a Shopify store needs
| Type | Where | What to include |
|---|---|---|
| Organization | Homepage (or every page) | name, url, logo, sameAs (social profiles), contactPoint |
| WebSite | Homepage | name, url, potentialAction for site search |
| Product | Product pages | name, image, description, sku, gtin, brand, offers (price, currency, availability, url), aggregateRating and review when real reviews exist |
| BreadcrumbList | Products, collections, articles | Each level of the breadcrumb with name and URL |
| Article / BlogPosting | Blog articles | headline, image, datePublished, dateModified, author |
| CollectionPage / ItemList | Collections | name, description, list of products |
What most themes get wrong
Only one offer for products with variants
If a product has variants with different prices or availability, describe each variant as its own offer (or use ProductGroup with hasVariant). A single offer at the lowest price can trigger price mismatch warnings in Merchant Center.
Duplicate Product markup
The theme outputs Product data, then a review app adds another Product block, and an SEO app adds a third. Search engines may ignore all of them or pick the wrong one. There should be one complete Product entity per page.
Missing identifiers
GTIN (barcode), MPN and brand help search engines match your product to the right listings. Shopify stores barcodes on variants, so output them in your markup.
Missing shipping and return details
Adding shippingDetails and hasMerchantReturnPolicy to offers lets Google show delivery costs and return windows in results. These can be generated from metafields or a theme setting.
Example: Product JSON-LD in Liquid
Shopify provides a structured_data Liquid filter that outputs a basic Product (or ProductGroup) block, which is a good starting point. For full control, build the JSON yourself. A simplified example:
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "Product",
"name": {{ product.title | json }},
"description": {{ product.description | strip_html | json }},
"image": {{ product.featured_image | image_url: width: 1200 | prepend: 'https:' | json }},
"brand": { "@type": "Brand", "name": {{ product.vendor | json }} },
"offers": [
{%- for variant in product.variants -%}
{
"@type": "Offer",
"sku": {{ variant.sku | json }},
"gtin": {{ variant.barcode | json }},
"price": {{ variant.price | divided_by: 100.0 | json }},
"priceCurrency": {{ cart.currency.iso_code | json }},
"availability": "https://schema.org/{% if variant.available %}InStock{% else %}OutOfStock{% endif %}",
"url": {{ request.origin | append: variant.url | json }}
}{% unless forloop.last %},{% endunless %}
{%- endfor -%}
]
}
</script>
In production you would also handle missing barcodes, add reviews only when real review data exists, and include shipping and return policies.
What about FAQ structured data?
Since 2023 Google shows FAQ rich results only for a limited set of authoritative government and health sites, so most stores will not get FAQ snippets. FAQ content itself is still valuable: it answers buyer questions on the page and is exactly the kind of content AI assistants quote.
How to test and monitor
- Run key templates through Google's Rich Results Test and the Schema.org validator.
- Check the Merchant listings and Product snippets reports in Search Console for errors and warnings.
- Re-test after every theme update or new app install, because apps often inject their own markup.
Organization and WebSite markup for your homepage
Product markup gets the attention, but Organization and WebSite markup tell search engines and AI systems who you are, which helps with your site name, logo and brand knowledge. Add them once, in the layout or homepage section:
{
"@context": "https://schema.org",
"@graph": [
{
"@type": "Organization",
"@id": "https://example.com/#org",
"name": "Example Store",
"url": "https://example.com/",
"logo": "https://example.com/logo.png",
"sameAs": [
"https://www.instagram.com/example",
"https://www.linkedin.com/company/example"
],
"contactPoint": {
"@type": "ContactPoint",
"contactType": "customer support",
"email": "hello@example.com"
}
},
{
"@type": "WebSite",
"@id": "https://example.com/#website",
"name": "Example Store",
"url": "https://example.com/",
"publisher": { "@id": "https://example.com/#org" }
}
]
}Validation routine
- Test a product, a collection, an article and the homepage in Google's Rich Results Test after every theme or app change.
- Make sure only one Product block exists per product page; theme markup plus an SEO app often creates duplicates.
- Keep structured data in sync with visible content: same price, same availability, same rating.
- Monitor the Merchant listings and Product snippets reports in Search Console for new errors.
Variants: ProductGroup and hasVariant
Most Shopify products have variants: sizes, colours, materials. Google supports a dedicated structure for this. A ProductGroup describes the parent product, lists which properties vary (variesBy, for example size and colour) and links each variant as its own Product through hasVariant, each with its own SKU, GTIN, price and availability.
For stores with many variants this makes your data much clearer: search engines and AI shopping tools can see that the blue size M is in stock while the red size S is not, rather than a single price range for the whole product. In Liquid, loop over product.variants and output one variant entry per item, using the variant URL with the ?variant= parameter.
Breadcrumb and Article markup
Two smaller types are worth adding on every store. BreadcrumbList on product and collection pages helps search engines understand your site structure and can replace the URL with a readable path in results. Article or BlogPosting on blog posts adds the headline, author, publish and modified dates, and image. Keep the author and dates accurate: they are trust signals for both search engines and readers.
Common validation errors and how to fix them
| Message | Typical cause on Shopify | Fix |
|---|---|---|
| Missing field "offers" | Product markup output without price data, often from an app snippet | Ensure Offer with price, priceCurrency and availability is present |
| Invalid value for "availability" | Plain text like "in stock" instead of a schema.org URL | Use https://schema.org/InStock or OutOfStock |
| Duplicate Product items | Theme markup plus a review or SEO app both output Product | Disable one source, or merge reviews into the theme markup |
| Missing "review" or "aggregateRating" | No reviews on the page (warning, not an error) | Only add ratings when real reviews are shown on the page |
| Price mismatch in Merchant Center | Structured data shows a different currency or price than the page | Output the price for the current market and currency |
Structured data is not a one-time task. Every new app, theme update or market expansion can change it, so keep testing as part of your release process.
FAQ
Does structured data directly improve rankings?
Not directly, but it makes pages eligible for rich results, which can improve click-through rate, and it helps search engines and AI systems understand your content accurately.
Should I use an app or custom code?
Apps are quick, but custom Liquid gives you complete, accurate data with no extra scripts and no duplicates. For larger catalogs we usually recommend custom implementation.
Need complete, error-free structured data? JSON-LD implementation is part of our Shopify SEO Package. Read our full Shopify SEO guide for the bigger picture.
