Skip to content
AgentReady
By Dylan HuntOctober 3rd, 2025Updated November 12th, 2026Structured dataStructured dataSEO

Structured Data for Shopify: A Practical Product Schema Guide

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:

{
  "@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 (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:

{
  "@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 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 Offers, 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. On Shopify the barcode field is the natural home for this.

"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. 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.

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

How to test it

Two tools, both free. Google's Rich Results Test shows you whether a live URL is eligible for product rich results and lists any errors or warnings. The Schema.org validator 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 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, 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.

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.

See where your store stands

See what AI shopping assistants can read on your store.

Run the free AI-Readiness Checker to see, in under a minute, how ChatGPT, Perplexity, and Google read your store today and exactly what is holding it back. Then AgentReady prepares the fixes, starting with Schema.org structured data, and publishes them after you approve. Install free. Paid plans start at $9/mo.

Comments

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

Loading comments…

Leave a comment

ShareXLinkedInFacebook

Written by Dylan Hunt, Founder, AgentReady. AgentReady measures what AI says about Shopify stores and helps teams improve the answer. See plans.