Ecommerce SEO studio · plain-English audits · no ranking promises[email protected]
Structured data

Product schema markup: a practical guide with working JSON-LD

10 min readUpdated 2026-11-23By the Emac Media team
A hand holding a phone showing a barcode to a scanner

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.

PropertyWhat it holdsNotes
nameThe product nameMatch the H1
imageOne or more image URLsUse crawlable, high-quality images that show the product
descriptionA short descriptionMatch the visible description
sku, gtin, mpnIdentifiersAdd the identifiers you actually have. Do not invent them
brandThe brand nameUse the manufacturer or label
offersPrice, currency, availability, URLThe most important group for merchant results
aggregateRating and reviewRatings and written reviewsOnly 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.

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

  1. Decide your rules for variants, reviews and identifiers.
  2. Generate the JSON-LD in the product template using real catalogue fields.
  3. Output one Product block per product page, and keep it in the server-rendered HTML.
  4. Do not duplicate markup from your theme and from an app. Duplicates can conflict.
  5. Test samples from each template type and each variant case.
  6. 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

MistakeWhy it is a problemFix
Price in markup differs from the pageMismatch can lose rich results and confuses shoppersGenerate both from the same data
Reviews not visible on pageBreaks guidelinesShow the reviews or remove the markup
Duplicate Product blocks from a theme and an appConflicting dataKeep one source
Invented GTIN or SKU valuesMisleading and can cause product mismatchesOnly use real identifiers
Markup on category pages claiming a single productWrong type for the pageUse ItemList or no product markup there
Out of date availabilityShoppers click and find the product goneUpdate from stock data automatically

A short checklist

  1. Product markup present on every product template.
  2. Name, image, description, brand and offers included.
  3. Price, currency and availability match the visible page.
  4. Reviews marked up only when real and visible.
  5. Variants follow a consistent rule.
  6. BreadcrumbList present and accurate.
  7. No duplicate markup from apps.
  8. 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.

Quick answers

What is product schema markup?

It is structured data, usually JSON-LD, that describes a product on a page in a format search engines can read: name, image, price, availability, brand and reviews.

Does product schema improve rankings?

Not directly. It helps search engines understand the page and can make it eligible for richer results such as price and availability or review stars. Eligibility is never a guarantee.

Should I use JSON-LD or microdata?

Google recommends JSON-LD. It sits in a script block and is easier to maintain than attributes scattered through the HTML.

Can I mark up reviews that are not on the page?

No. Markup must reflect content users can see. Marking up reviews that are hidden, invented or copied from elsewhere breaks guidelines and can lead to loss of rich results.

Want a second pair of eyes on your store?

Ship to: your organic channel

Ready when you are

Send your store address and a few lines about what you sell. We reply with a short, honest list of what to look at first.