Product schema is structured data that describes a product’s name, price, availability, brand and reviews in a format search engines and AI tools can read directly. It makes your products eligible for rich results in Google and helps AI shopping answers understand what you sell. Below is a copy-paste JSON-LD example and the rules for using it correctly.
A copy-paste JSON-LD example
Place a block like this in the product page template, filled with each product’s real values:
{
"@context": "https://schema.org",
"@type": "Product",
"name": "Classic Ceramic Mug, 350 ml",
"image": ["https://example.com/images/mug.jpg"],
"description": "A 350 ml ceramic mug, dishwasher and microwave safe.",
"sku": "MUG-350-BLU",
"brand": {"@type": "Brand", "name": "Example Brand"},
"offers": {
"@type": "Offer",
"url": "https://example.com/products/classic-ceramic-mug",
"priceCurrency": "INR",
"price": "499",
"availability": "https://schema.org/InStock",
"itemCondition": "https://schema.org/NewCondition"
},
"aggregateRating": {"@type": "AggregateRating", "ratingValue": "4.6", "reviewCount": "38"}
}
All values above are placeholders. Replace them with your product’s actual data, and include aggregateRating only if those reviews are visible on the page.
Fields that matter most
| Field | Why it matters |
|---|---|
| name | The product as shoppers would describe it |
| image | Needed for rich results; use high-quality images |
| offers.price and priceCurrency | Shows price in results; must match the page |
| offers.availability | In stock, out of stock or pre-order |
| brand | Helps search engines and AI tools connect products to your brand |
| sku or gtin | Uniquely identifies the product |
| aggregateRating and review | Star ratings, only when reviews are shown on the page |
Products with variants
For sizes or colours, either describe each variant as its own Offer, or use ProductGroup with hasVariant for each variation. Keep the price and availability in the markup in sync with the variant the shopper sees.
Common mistakes
- Prices in schema that do not match the page.
- Marking up reviews that are not visible.
- Out-of-stock products still marked InStock.
- Two conflicting Product blocks from the theme and an app.
- Missing brand and identifiers.
Other schema every store should have
- Organization: your logo, contact details and social profiles.
- BreadcrumbList: the path from home to collection to product.
- FAQPage: on collection or product pages with visible FAQs.
- WebSite: your site name for search results.
How to test
- Run key product pages through Google’s Rich Results Test.
- Validate syntax in the Schema Markup Validator.
- Check Search Console’s Merchant listings and Product snippets reports for errors.
Schema is one item on our ecommerce SEO checklist; for Shopify specifics, see the Shopify SEO guide.
Need it done for your store?
Our ecommerce SEO services include a full schema audit and template fixes for Shopify and WooCommerce.
Further reading: Google’s product structured data documentation.
Frequently asked questions
What is product schema?
Product schema is structured data, usually in JSON-LD, that tells search engines and AI tools a product’s name, price, availability, brand and reviews in a machine-readable way.
Does product schema improve rankings?
It is not a direct ranking factor, but it makes products eligible for rich results such as price and rating details, which can improve click-through, and it helps AI shopping answers understand your products.
Should I add review schema if I have no reviews?
No. Only mark up reviews and ratings that are genuinely shown on the page. Marking up reviews that do not exist breaks Google’s guidelines.
How do I test product schema?
Use Google’s Rich Results Test and the Schema Markup Validator, then watch the Merchant listings and Product snippets reports in Search Console.
Does Shopify add product schema automatically?
Most Shopify themes output basic Product markup. Check it in the Rich Results Test and fill gaps such as brand, SKU and reviews.

