On this page
Structured data is hidden code on a product page that tells search engines exactly what the product is, so they don't have to guess from the marketing writing. On Shopify it's usually a block of code called JSON-LD: a list of facts, like name and price, that computers read and shoppers never see.
This post covers what to include, what Shopify gives you already, and how to check what you've got.
Who reads it
An AI can read your description, but descriptions can be unclear. “Runs small” could be a fit note or a review quote. Structured data has no such problem: a field means one thing, and every site uses the same field name for it. That's why Google and Bing read it when they scan your site, for their search and shopping results. AI assistants that open a page while answering a question are a different story: tests show they read the visible text, not the hidden code. So the facts that matter belong in both places: in the markup for search engines, and on the product page for everyone else.
The code, with the fields that matter
Google's required fields are name, image, offers, offers.price, and offers.priceCurrency. Everything else below is recommended, and the recommended fields are what make a product comparable.
{
"@context": "https://schema.org",
"@type": "Product",
"name": "Summit Trail Runner",
"image": ["https://example.com/summit-trail-runner.jpg"],
"description": "Trail running shoe for wet, soft ground. 5mm lugs, water-resistant upper, true to size.",
"sku": "STR-42-GRN",
"gtin13": "0123456789012",
"brand": { "@type": "Brand", "name": "Example Co" },
"material": "Recycled polyester upper, rubber outsole",
"color": "Moss green",
"size": "42 EU",
"audience": { "@type": "PeopleAudience", "suggestedGender": "unisex" },
"aggregateRating": {
"@type": "AggregateRating",
"ratingValue": "4.6",
"reviewCount": "128"
},
"offers": {
"@type": "Offer",
"url": "https://example.com/products/summit-trail-runner",
"price": "129.00",
"priceCurrency": "USD",
"availability": "https://schema.org/InStock",
"itemCondition": "https://schema.org/NewCondition"
}
}Two details people get wrong:
- The price in the code must match the price on the product page. A mismatch gets the code ignored.
- Only label what shoppers can see. Ratings that appear nowhere on the product page break Google's rules. They're not a shortcut.
Sizes and colors (variants)
A product in five sizes is one product, not five. Group them with ProductGroup and hasVariant, or point each size or color at its main product with inProductGroupWithID. Google's variant documentation has the full shape. Sizes and colors that aren't grouped compete with each other and split whatever attention they get.
What Shopify already does
Most modern Shopify themes add basic Product JSON-LD: name, image, price, currency, availability. That covers the required set. What themes can't know is the rest: material, sizing, who it's for, product codes, and the use-case wording that makes the listing answer a real question. Those come from your product information, and usually have to be added.
Check before assuming either way: themes differ, and apps sometimes add a second, conflicting block of code.
How to check your work
- Run a product page's web address through Google's free Rich Results Test. Read the warnings, not only the errors: warnings are the recommended fields you're missing.
- In Google Search Console, open the Merchant listings report to see the issues across all your products rather than one page at a time.
- View the product page's source code and search for ld+json to confirm there's exactly one Product block, not two disagreeing ones.
Where this stops
Structured data is the minimum. It makes your facts clear; it doesn't invent facts you never wrote down. If your listing doesn't say what the product is for, no hidden code will fix that. See Google's product structured data guide for the full specification.
The facts themselves come first. Our guide to AEO for ecommerce in 7 steps covers what to put on the product page, and where structured data fits in. To see what an AI assistant can read on your product pages, get your free check.
Frequently asked questions
What is structured data on a Shopify product page?
It's hidden code that lists facts about the product, like its name, price and whether it's in stock, in a format computers read without guessing. Shoppers never see it. On Shopify it's usually a block of code called JSON-LD.
Does Shopify add structured data automatically?
Most modern Shopify themes add basic product code: name, image, price, currency and stock. They can't add details your store never wrote down, like material or who the product is for. Themes differ, so check rather than assume.
How do I check my store's structured data?
Run a product page through Google's free Rich Results Test and read the warnings as well as the errors. In Google Search Console, the Merchant listings report shows problems across all your products. Then check the product page's source code to make sure there's only one product block.
Do AI assistants read structured data?
Search engines like Google and Bing do. Tests show that AI assistants opening a product page to answer a question read the visible text instead. So every fact that matters should be in the text shoppers can read too.



