Skip to content
Product data

Add Product schema to every product page

· 5 min read
Short answer

Put one Product block of JSON-LD in the HTML of every product page, with at least name, image and offers. If a product has variants, use ProductGroup with one Product per variant.

Why it matters

A product page is built for people: price in one div, title in another, stock status in a button label. An AI shopping agent or a search crawler has to guess which number is the price. Product structured data removes the guess by stating the facts in a fixed vocabulary from schema.org.

Google uses this markup for two result types. Merchant listings cover pages where a shopper can buy from you and can show price, availability, shipping and returns. Product snippets cover pages that describe a product without selling it. For merchant listings Google requires name, image and offers on the Product.

Agents that compare products across stores work from the same fields. When we check your store, the product page passes if its JSON-LD contains at least one node of type Product or ProductGroup. Every other product check (price, availability, identifiers, price on the page) builds on this one.

How to fix it

  1. Pick one product page and view its source

    Open a product page, view the page source (not the inspector after scripts run) and search for application/ld+json. If you find a block with "@type": "Product", your theme already outputs markup and you only need to fill gaps. If you find nothing, you need to add it.

  2. Add a Product block with the required fields

    Place a <script type="application/ld+json"> element in the page HTML. Use real values from the page: the product title as name, at least one product image URL as image, and an Offer with the current price. Generate it on the server so it is present in the first HTML response.

    HTML
    <script type="application/ld+json">
    {
      "@context": "https://schema.org",
      "@type": "Product",
      "name": "Canvas tote bag, natural",
      "image": ["https://www.example.com/images/tote-natural.jpg"],
      "description": "Heavy cotton canvas tote, 38 x 42 cm, with inner pocket.",
      "sku": "TOTE-NAT-01",
      "brand": { "@type": "Brand", "name": "Example Goods" },
      "offers": {
        "@type": "Offer",
        "url": "https://www.example.com/products/canvas-tote-natural",
        "price": 24.00,
        "priceCurrency": "USD",
        "availability": "https://schema.org/InStock",
        "itemCondition": "https://schema.org/NewCondition"
      }
    }
    </script>

  3. Use ProductGroup for products with variants

    If one page sells several sizes or colors, describe the parent as ProductGroup with hasVariant listing a Product for each variant, and variesBy naming the attribute (for example https://schema.org/size). Each variant Product carries its own offers, sku and identifiers.

  4. Apply it to the product template, not page by page

    Add the markup in the product template so every product page gets it. On Shopify, the Liquid filter structured_data outputs a Product (or a ProductGroup for products with variants) from the product object; check whether your theme already calls it before adding a second block. On other platforms, check what your theme or SEO plugin outputs first, so you do not end up with two conflicting Product blocks.

How to verify

  • Run Citeto’s free check on your store. Product schema shows Passed when the product page we fetch contains a Product or ProductGroup node.

  • Paste the product URL into Google’s Rich Results Test. It should list Merchant listings or Product snippets with no errors.

  • Use the Schema Markup Validator to see every node on the page, including blocks Google does not use for rich results.

Common pitfalls

  • Markup added only by client-side JavaScript after load. Google can render it, but many crawlers and agents read the first HTML response only. Output it on the server.

  • Two Product blocks on one page from a theme and a plugin, with different prices. Keep one source.

  • Marking up products that are not on the page. Google’s guidelines say not to mark up content that is not visible to readers of the page, and markup on a category page should not describe items that page does not show.

  • Using Product markup on non-product pages such as blog posts to try to get rich results. Google can apply a manual action for misleading structured data.

FAQ

Google accepts all three formats. JSON-LD is easier to keep in one place and to generate from your product data, so we recommend it. Our check reads JSON-LD.

Google does not promise a ranking change from structured data. What it changes is eligibility for richer results, and how reliably machines read your price and stock.

The merchant listing and product snippet features are for pages about a single product. Put the full Product markup on product pages.

Sources

  1. [1]Google Search Central: Merchant listing structured datadevelopers.google.com
  2. [2]Google Search Central: Introduction to Product structured datadevelopers.google.com
  3. [3]Google Search Central: General structured data guidelinesdevelopers.google.com
  4. [4]Shopify Liquid: structured_data filtershopify.dev
Add Product schema to every product page