# Structured Data for Shopify: A Practical Product Schema Guide

Canonical: https://joinagentready.com/blog/structured-data-for-shopify-product-schema-guide

[By Dylan Hunt](https://joinagentready.com/authors/dylan-hunt) October 3rd, 2025 Updated November 12th, 2026 [Structured data](https://joinagentready.com/blog/topics/structured-data)

Most Shopify themes ship some product structured data out of the box. The trouble is that "some" is often incomplete, occasionally invalid, and sometimes actively wrong in ways that cost you rich results in Google and clean parsing by AI assistants. This is a hands on guide to getting it right, checked against Google's current documentation.

Structured data is metadata you add to a page in a vocabulary search engines and assistants understand. The vocabulary is Schema.org, and the format everyone recommends now is JSON-LD, a small script block that sits in your HTML and describes the page as data. For a product page, the type you want is `Product`.

## The minimum that actually qualifies

Google has documented requirements for product rich results. Miss a required field and you get nothing, no partial credit. At a minimum a `Product` needs a name, an image, and an `offers` block with a price and currency. Availability is technically optional but you should always include it, because it is the field assistants lean on most.

Here is a clean baseline for a single product:

```json
{
  "@context": "https://schema.org",
  "@type": "Product",
  "name": "Trailhead Merino Base Layer",
  "image": [
    "https://cdn.shopify.com/.../trailhead-front.jpg",
    "https://cdn.shopify.com/.../trailhead-back.jpg"
  ],
  "description": "A 200gsm merino crew built for cold-weather running.",
  "brand": { "@type": "Brand", "name": "Trailhead" },
  "sku": "TH-BL-200-BLK-M",
  "offers": {
    "@type": "Offer",
    "url": "https://store.com/products/trailhead-base-layer?variant=42",
    "price": "118.00",
    "priceCurrency": "CAD",
    "availability": "https://schema.org/InStock",
    "itemCondition": "https://schema.org/NewCondition"
  }
}
```

A few things are worth saying about even this small block. The `price` must be a plain number as a string, with no currency symbol and no thousands separator. The `availability` value is a full Schema.org URL, not the word "in stock." The `image` should be a real, crawlable URL, ideally more than one. These sound obvious, and they are exactly the fields I most often find broken.

## Variants are where Shopify themes go wrong

A Shopify product is usually a family of variants: sizes, colors, the same shirt in nine versions. Themes handle this inconsistently. Some emit one `Offer` for the first variant and call it done, which hides the rest of your range. Some emit a price range with no way to map a price to a buyable variant.

Google's documented pattern for this is [`ProductGroup`](https://developers.google.com/search/docs/appearance/structured-data/product-variants) (checked November 12, 2026). The parent `ProductGroup` carries what the variants share and a `productGroupID`, `variesBy` names the attributes that change (Google accepts `color`, `size`, `suggestedAge`, `suggestedGender`, `material`, and `pattern`), and `hasVariant` lists each variant as its own `Product` with its own `Offer`. On a normal Shopify product page, where every variant lives on one URL and is selected with `?variant=`, that looks like this:

```json
{
  "@context": "https://schema.org",
  "@type": "ProductGroup",
  "name": "Trailhead Merino Base Layer",
  "description": "A 200gsm merino crew built for cold-weather running.",
  "url": "https://store.com/products/trailhead-base-layer",
  "brand": { "@type": "Brand", "name": "Trailhead" },
  "productGroupID": "TH-BL-200",
  "variesBy": ["https://schema.org/size", "https://schema.org/color"],
  "hasVariant": [
    {
      "@type": "Product",
      "name": "Trailhead Merino Base Layer, Black, M",
      "sku": "TH-BL-200-BLK-M",
      "image": "https://cdn.shopify.com/.../trailhead-black.jpg",
      "size": "M",
      "color": "Black",
      "offers": {
        "@type": "Offer",
        "url": "https://store.com/products/trailhead-base-layer?variant=42",
        "price": "118.00",
        "priceCurrency": "CAD",
        "availability": "https://schema.org/InStock",
        "itemCondition": "https://schema.org/NewCondition"
      }
    },
    {
      "@type": "Product",
      "name": "Trailhead Merino Base Layer, Black, L",
      "sku": "TH-BL-200-BLK-L",
      "image": "https://cdn.shopify.com/.../trailhead-black.jpg",
      "size": "L",
      "color": "Black",
      "offers": {
        "@type": "Offer",
        "url": "https://store.com/products/trailhead-base-layer?variant=43",
        "price": "118.00",
        "priceCurrency": "CAD",
        "availability": "https://schema.org/OutOfStock",
        "itemCondition": "https://schema.org/NewCondition"
      }
    }
  ]
}
```

Two rules from Google's variant guidelines matter on Shopify. The `ProductGroup` `url` is the product's canonical URL without a variant selected, and each variant has to be preselectable from its own URL, which Shopify's `?variant=` parameter already does. If your variants live on separate product pages instead, Google asks you to repeat the full `ProductGroup` on each page.

What about `AggregateOffer`? Earlier versions of this guide recommended it for a price range, and that was the wrong advice for a store. Google's [merchant listing documentation](https://developers.google.com/search/docs/appearance/structured-data/merchant-listing) says merchant listings require an `Offer`, because the merchant has to be the seller of the product; only product snippets accept `AggregateOffer`. A single store selling its own sizes and colors should use `ProductGroup` with per-variant `Offer`s, which is also the version that lets an assistant say "the medium in black is in stock at 118" instead of hedging.

While you are in the offer, the same merchant listing documentation recommends `shippingDetails` and `hasMerchantReturnPolicy`. Google suggests setting a store-wide shipping and return policy on your `Organization` markup and using the offer-level properties only to override it.

## Identifiers

If your products have GTINs, which covers UPC, EAN, and ISBN, include them. Google's merchant listing documentation recommends them as product identifiers, and they are how product data gets matched across systems, which we go deep on in [GTINs, barcodes, and MPNs for AI shopping](https://joinagentready.com/blog/gtin-barcode-product-identifiers-ai-shopping-shopify). On Shopify the barcode field is the natural home for this.

```json
"gtin13": "0123456789012",
"mpn": "TH-BL-200",
"brand": { "@type": "Brand", "name": "Trailhead" }
```

If you genuinely do not have GTINs, which is common for made to order or private label goods, do not invent them. Use `mpn` and `brand` together instead, which Google accepts as an alternative identifier pair.

## Reviews, but only real ones

`aggregateRating` and `review` can make a product page eligible for star ratings in results. The rule is simple and strict: the rating must be visible on the page and it must be genuine, a discipline we unpack in [review and rating schema on Shopify, done right](https://joinagentready.com/blog/review-rating-schema-shopify). If you run Judge.me, Loox, Okendo, or another review app, pull the real average and count into the schema. Do not hardcode a glowing number, and do not mark up ratings that a shopper cannot see on the page. Google has handed out manual penalties for exactly that.

```json
"aggregateRating": {
  "@type": "AggregateRating",
  "ratingValue": "4.7",
  "reviewCount": "212"
}
```

## How to test it

Two tools, both free. Google's [Rich Results Test](https://search.google.com/test/rich-results) shows you whether a live URL is eligible for product rich results and lists any errors or warnings. The [Schema.org validator](https://validator.schema.org/) is stricter about the vocabulary itself and catches structural mistakes. Run a product page through both after any theme change, because theme updates are the most common way valid schema silently breaks.

A warning worth internalizing: warnings are not errors, but they are recommendations Google is making about fields that improve your eligibility. Treat "missing field: brand" as a task, not noise.

Before you write any markup, check what your theme already prints: most Shopify themes output a `ProductGroup` on their own, and [what Shopify's default product schema includes](https://joinagentready.com/blog/does-shopify-add-product-schema-automatically) lists the fields it carries and the ones it leaves out. The two warnings almost every store sees, missing return policy and missing shipping details, are covered in [missing hasMerchantReturnPolicy on Shopify](https://joinagentready.com/blog/missing-hasmerchantreturnpolicy-shopify), including when Google ignores page markup in favour of your Merchant Center settings.

## A note on doing this at scale

Hand writing JSON-LD into a Liquid template is fine for one store and one theme. It gets fragile across a large catalog, multiple currencies, and frequent theme work, which is the situation most growing brands are in. The data has to stay correct as products change, as variants sell out, and as you edit the theme that prints it.

That maintenance problem is why we built AgentReady, which prepares `Product` and `ProductGroup` schema from your catalog, publishes it after you approve it, checks that it is live on your homepage and a sampled product page, and keeps it in step as the catalog moves, without touching your theme code. If you prefer to own the markup directly, the patterns above are the ones we would write by hand anyway. The important part is not who writes it. It is that the facts on the page are labeled, complete, and true. To see how your store's structured data scores today, run it through the free [Shopify AI-Readiness Checker](https://joinagentready.com/tools/shopify-ai-readiness-checker).

Quick answers

## Frequently asked questions

**What is the minimum Product schema needed to qualify for rich results?**

Google requires a name, an image, and an offers block with a price and currency. Miss a required field and you get nothing, with no partial credit. Availability is technically optional, but you should always include it, because it is the field assistants lean on most. The price must be a plain number as a string with no currency symbol, and availability must be a full Schema.org URL rather than the words 'in stock.'

**How should I handle product variants in Shopify structured data?**

Use Google's documented ProductGroup pattern. The ProductGroup carries the shared details, a productGroupID, and variesBy (for example size and color), and hasVariant lists each variant as a Product with its own sku, attributes, and Offer whose url carries the ?variant= parameter. Avoid AggregateOffer for one store's own variants: Google's merchant listing docs require an Offer, and only product snippets accept AggregateOffer.

**Can I add review stars to my product schema?**

Yes, with aggregateRating and review, but the rule is strict: the rating must be visible on the page and it must be genuine. If you run Judge.me, Loox, Okendo, or another review app, pull the real average and count into the schema. Do not hardcode a glowing number or mark up ratings a shopper cannot see on the page, because Google has handed out manual penalties for exactly that.

Dylan Hunt

Author

[Dylan Hunt](https://joinagentready.com/authors/dylan-hunt)

Builds Shopify catalog readability and AI answer visibility at AgentReady and Caffeine and Commerce.

[About Dylan →](https://joinagentready.com/authors/dylan-hunt)

## Check your storefront’s public data

Get a free report on the product markup and discovery files the checker finds in under a minute.

[Run free audit](https://joinagentready.com/tools/shopify-ai-readiness-checker) [View on the App Store](https://apps.shopify.com/agentreadyapp?utm_source=agentready&utm_medium=referral&utm_campaign=site_install&utm_content=blog_cta)

## Comments

Every comment here comes from a verified email. Write yours, confirm from your inbox, and it's live.

Loading comments…

Share [X](https://twitter.com/intent/tweet?url=https%3A%2F%2Fjoinagentready.com%2Fblog%2Fstructured-data-for-shopify-product-schema-guide&text=Structured%20Data%20for%20Shopify%3A%20A%20Practical%20Product%20Schema%20Guide) [LinkedIn](https://www.linkedin.com/sharing/share-offsite/?url=https%3A%2F%2Fjoinagentready.com%2Fblog%2Fstructured-data-for-shopify-product-schema-guide) [Facebook](https://www.facebook.com/sharer/sharer.php?u=https%3A%2F%2Fjoinagentready.com%2Fblog%2Fstructured-data-for-shopify-product-schema-guide)

Written by [Dylan Hunt](https://joinagentready.com/authors/dylan-hunt), Founder, AgentReady. AgentReady audits Shopify structured data and checks approved changes on the live storefront. [See plans](https://joinagentready.com/pricing).

For Shopify today

### Schema for AI

Make your Shopify catalog easier for AI to understand.

From $9/mo

[Run free audit →](https://joinagentready.com/tools/shopify-ai-readiness-checker) [Explore Schema for AI](https://joinagentready.com/features/structured-data)

Free guide

### The Shopify Functions Playbook

25 real things you can build with Functions, with the plan requirements and limits stated plainly. Emailed to you, readable immediately.

More in Structured data

-   [Does Shopify Add Product Schema Automatically? What the Default Markup Includes](https://joinagentready.com/blog/does-shopify-add-product-schema-automatically)
-   [Missing hasMerchantReturnPolicy on Shopify: What the Warning Means and Whether to Fix It](https://joinagentready.com/blog/missing-hasmerchantreturnpolicy-shopify)
-   [Three Things Write Structured Data to Your Product Page. Here Is How to See Who Wins](https://joinagentready.com/blog/who-writes-structured-data-shopify-product-page)
-   [Your AI Assistant and Your Shoppers' AI Read the Same Catalog](https://joinagentready.com/blog/your-ai-and-shoppers-ai-read-the-same-catalog)

[See all in Structured data →](https://joinagentready.com/blog/topics/structured-data)
