Product schema markup is a block of structured data on a product page that tells search engines exactly what the page is about: the product name, its images, its price and whether it is in stock, who makes it and what reviewers think. It is one of the most useful technical SEO tasks for an online store because it is done once in a template and applies to thousands of pages.
This guide shows what to include, gives working JSON-LD examples and explains how to test and maintain markup. Structured data is one part of the wider product page SEO picture and our technical ecommerce SEO service.
What schema markup can and cannot do
- It helps search engines understand your page. It does not replace good content.
- It can make a page eligible for enhanced results, such as price, availability and rating details. Search engines decide whether to show them.
- It must match the visible page. Hidden or mismatched data can be treated as spam.
- It does not directly raise rankings.
The core properties
The Product type has many properties. For a typical store these are the ones to prioritise. Always check the current Google documentation for Product and merchant listing structured data, as the requirements are updated from time to time.
| Property | What it holds | Notes |
|---|---|---|
| name | The product name | Match the H1 |
| image | One or more image URLs | Use crawlable, high-quality images that show the product |
| description | A short description | Match the visible description |
| sku, gtin, mpn | Identifiers | Add the identifiers you actually have. Do not invent them |
| brand | The brand name | Use the manufacturer or label |
| offers | Price, currency, availability, URL | The most important group for merchant results |
| aggregateRating and review | Ratings and written reviews | Only if shown on the page and genuine |
A basic Product example
The example below is a template with placeholder values. Replace everything with your real data, and generate values from your catalogue so they stay in sync.
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "Product",
"name": "Example Waxed Canvas Weekender Bag",
"image": ["https://www.example.com/img/weekender-front.jpg"],
"description": "A 35 litre weekender bag in waxed canvas with a leather handle.",
"sku": "EX-WK-35-OLV",
"brand": { "@type": "Brand", "name": "Example Brand" },
"offers": {
"@type": "Offer",
"url": "https://www.example.com/products/weekender-bag/",
"priceCurrency": "USD",
"price": "129.00",
"availability": "https://schema.org/InStock",
"itemCondition": "https://schema.org/NewCondition"
}
}
</script>
Price, currency and availability
Offers must match what the shopper sees at the top of the page. Use a plain decimal number for price, a three-letter currency code, and one of the standard availability values such as InStock, OutOfStock, PreOrder or BackOrder. If the price changes by variant, handle it deliberately, as described below. If your price changes often, make sure the markup is generated server-side from the same source as the visible price.
Reviews and ratings
If your page shows genuine customer reviews, you can add an aggregateRating with the average value and the number of reviews, plus individual Review items. Use only reviews that customers wrote about this product on your site. Do not mark up reviews of the store as if they were product reviews, do not self-review, and do not include reviews not visible to users. A template for the rating group looks like this:
"aggregateRating": {
"@type": "AggregateRating",
"ratingValue": "4.6",
"reviewCount": "27"
}
The numbers above are placeholders for illustration only.
Variants
Products with options such as colour and size need a rule. There are two common approaches:
- Separate URLs per variant: each URL has its own Product markup with its own price, image and availability, and a clear canonical rule.
- One URL with several variants: use a ProductGroup with hasVariant items, or an offers group with a price range, according to the current documentation. Make sure the marked-up data matches what users can select.
Whichever you use, keep identifiers such as SKU unique per variant, and avoid marking up a price that is not what the shopper will actually pay.
Breadcrumb markup
BreadcrumbList describes the trail from the homepage to the product. It supports the structure covered in ecommerce site structure. Keep it consistent with the visible breadcrumbs.
{
"@context": "https://schema.org",
"@type": "BreadcrumbList",
"itemListElement": [
{ "@type": "ListItem", "position": 1, "name": "Home", "item": "https://www.example.com/" },
{ "@type": "ListItem", "position": 2, "name": "Bags", "item": "https://www.example.com/bags/" },
{ "@type": "ListItem", "position": 3, "name": "Weekender bag" }
]
}
Organization and shipping details
On your homepage, mark up your Organization with your name, logo and contact options. For merchant features, you may also be able to provide shipping and return policy information as structured data or through your merchant account. Rules differ by country and change, so check the current documentation and keep policies accurate and consistent with your pages.
How to implement it
- Decide your rules for variants, reviews and identifiers.
- Generate the JSON-LD in the product template using real catalogue fields.
- Output one Product block per product page, and keep it in the server-rendered HTML.
- Do not duplicate markup from your theme and from an app. Duplicates can conflict.
- Test samples from each template type and each variant case.
- Deploy, then monitor the enhancements reports in Search Console.
Testing and monitoring
- Use Google's Rich Results Test and the Schema Markup Validator to check syntax and eligibility.
- Use Search Console enhancement reports to find errors and warnings at scale.
- Check a live page against the markup: price, currency, availability and reviews should agree.
- After theme or platform changes, test again. Templates often break markup silently.
Product snippets and merchant listings
Google describes two broad kinds of product experience. Product snippets show details such as ratings, price and availability on a normal result for a page that reviews or sells a product. Merchant listings are shopping experiences that rely on more detailed product data, which can also come through a product feed in a merchant account. A store page can be eligible for both when the markup and feed are accurate.
The practical lesson is to keep a single source of truth. If your feed says one price and your markup says another, you are creating problems for yourself. Generate both from the same catalogue fields.
Sale prices and price validity
When a product is on sale, mark up the price that a shopper will actually pay now. If you show a struck-through original price, that is page content, not something the offer should replace. You may use a validity date for time-limited offers, and you should remove or update the offer when it ends. Out-of-date prices are one of the most common reasons markup and pages disagree.
A variants example
For one URL with several variants, the current documentation describes grouping variants under a parent product. The skeleton below shows the shape with placeholder values. Check the current guidance before copying it, as the supported properties change over time.
{
"@context": "https://schema.org",
"@type": "ProductGroup",
"name": "Example Weekender Bag",
"productGroupID": "EX-WK",
"variesBy": ["https://schema.org/color"],
"hasVariant": [
{
"@type": "Product",
"sku": "EX-WK-OLV",
"name": "Example Weekender Bag, Olive",
"color": "Olive",
"offers": { "@type": "Offer", "price": "129.00", "priceCurrency": "USD", "availability": "https://schema.org/InStock" }
},
{
"@type": "Product",
"sku": "EX-WK-BLK",
"name": "Example Weekender Bag, Black",
"color": "Black",
"offers": { "@type": "Offer", "price": "129.00", "priceCurrency": "USD", "availability": "https://schema.org/OutOfStock" }
}
]
}
Themes, apps and platforms
Most platforms output some Product markup by default, and many apps add their own. The risk is duplication: two Product blocks on one page with different values. Before adding anything, view the page source or run the page through a testing tool and see what is already there. If you add markup through an app or custom code, remove or disable the other source. Where your theme outputs markup through a template, ask your developer to extend that template rather than inject a second block with scripts.
On headless builds, make sure the markup is part of the server-rendered or pre-rendered HTML, not only added after the page loads in the browser.
Maintenance routine
- Re-test one page per template after every theme update, app install or platform upgrade.
- Review the Search Console enhancement reports monthly for new errors.
- When pricing, shipping or returns policies change, update the data source, not individual pages.
- Keep a note of what markup comes from where, so you know what to change.
Why matching the visible page matters
Search engines compare structured data with what users see. When the two agree, the markup helps them understand the page with confidence. When they disagree, for example a price in the markup that differs from the price on the page, or an availability value that is out of date, the markup is at best ignored and at worst treated as misleading. This is why generating markup from the same fields that drive the visible page is the safest design.
A practical habit is to spot-check ten random product pages each month. Compare the visible name, price, availability and rating with the markup and note any difference. Fix the template rather than the page, because a mismatch on one page usually means the same mismatch on many.
Common mistakes
| Mistake | Why it is a problem | Fix |
|---|---|---|
| Price in markup differs from the page | Mismatch can lose rich results and confuses shoppers | Generate both from the same data |
| Reviews not visible on page | Breaks guidelines | Show the reviews or remove the markup |
| Duplicate Product blocks from a theme and an app | Conflicting data | Keep one source |
| Invented GTIN or SKU values | Misleading and can cause product mismatches | Only use real identifiers |
| Markup on category pages claiming a single product | Wrong type for the page | Use ItemList or no product markup there |
| Out of date availability | Shoppers click and find the product gone | Update from stock data automatically |
A short checklist
- Product markup present on every product template.
- Name, image, description, brand and offers included.
- Price, currency and availability match the visible page.
- Reviews marked up only when real and visible.
- Variants follow a consistent rule.
- BreadcrumbList present and accurate.
- No duplicate markup from apps.
- Tested with Google tools and monitored in Search Console.
Structured data is not magic, but it is one of the few places where a single template change can improve how thousands of pages are understood. If you would like us to review your current markup, see our technical ecommerce SEO service or the wider ecommerce SEO checklist.



