support@schemaclinic.com Free JSON-LD checker Free schema generator Shopify App Store
Schema guide

Schema markup examples for Shopify: JSON-LD you can copy

Working JSON-LD examples for every page type on a Shopify store, written to Google's current documentation. Replace the example.com values with your own, test, and make sure each type appears only once per page.

Short answer: a Shopify product page needs a Product block with name, image and an offers Offer holding price (a number, no currency symbol), priceCurrency and availability, plus brand, sku, gtin and aggregateRating where you have them. The home page needs Organization and WebSite, other pages BreadcrumbList, collections CollectionPage with an ItemList, and blog posts Article. The examples below follow Google's documentation as of November 2026. Check your theme first: it may already output some of them.

Before you paste these schema markup examples in Shopify

Each example goes inside a script tag: <script type="application/ld+json"> ... </script>. On Shopify you would normally build it in Liquid, so the values come from the product or shop objects rather than being typed in. Our guide to adding JSON-LD to Shopify covers where the code goes.

These structured data examples use made-up values for a small linen shop. You can also find schema markup examples in Shopify's own Dawn theme, which outputs Product and Article markup through the structured_data filter. For rich snippets examples showing how these blocks can look in Google, see Shopify rich snippets.

  • Check what is already there. Most themes output Product and Organization. Adding a second block creates duplicates.
  • Match the page. Every value must be visible to shoppers. Google's guidelines do not allow markup for content that is not on the page.
  • Test it. Paste the code into our free JSON-LD checker or Google's Rich Results Test before publishing.

Shopify product schema example: price, availability and aggregateRating

This Shopify JSON-LD product schema example is the block most stores care about. It covers the required fields for merchant listings (name, image, an Offer with price and currency) and the main recommended ones:

{
  "@context": "https://schema.org",
  "@type": "Product",
  "@id": "https://example.com/products/blue-linen-shirt#product",
  "name": "Blue Linen Shirt",
  "description": "Relaxed-fit shirt in washed European linen.",
  "image": [
    "https://example.com/images/blue-linen-shirt-1x1.jpg",
    "https://example.com/images/blue-linen-shirt-4x3.jpg",
    "https://example.com/images/blue-linen-shirt-16x9.jpg"
  ],
  "sku": "BLS-M-BLUE",
  "gtin13": "5012345678900",
  "brand": { "@type": "Brand", "name": "Example Linen Co" },
  "aggregateRating": {
    "@type": "AggregateRating",
    "ratingValue": 4.6,
    "reviewCount": 128
  },
  "offers": {
    "@type": "Offer",
    "url": "https://example.com/products/blue-linen-shirt",
    "price": 45.00,
    "priceCurrency": "GBP",
    "availability": "https://schema.org/InStock",
    "itemCondition": "https://schema.org/NewCondition",
    "seller": { "@id": "https://example.com/#organization" }
  }
}

Notes: price is a number with no currency symbol, and Google requires it to be above zero for merchant listings. availability takes one schema.org value such as InStock, OutOfStock, PreOrder or BackOrder. Only include aggregateRating if the page shows real reviews. Use the GTIN property that matches the barcode length (gtin8, gtin12, gtin13, gtin14) or plain gtin. More fields in our Product schema post.

If you want Shopify product schema code that keeps itself up to date, build the same block in Liquid from the product object. Our Liquid Product template does exactly that.

Price schema: single prices, variants and price range schema

For a product with several variants on one page, either list one Offer per variant or describe the variants with ProductGroup. See product variants and ProductGroup.

"offers": [
  { "@type": "Offer", "sku": "BLS-S", "price": 45.00, "priceCurrency": "GBP", "availability": "https://schema.org/InStock" },
  { "@type": "Offer", "sku": "BLS-XL", "price": 49.00, "priceCurrency": "GBP", "availability": "https://schema.org/OutOfStock" }
]

Price range schema uses AggregateOffer with lowPrice, highPrice and priceCurrency. Be careful: Google's product snippet documentation says AggregateOffer is for a product sold by several merchants, not for variants, and merchant listings require a plain Offer. For a normal Shopify store selling its own products, use Offer.

Organization and WebSite schema examples

These belong on the home page, once each. The @id values let other blocks point to them:

{
  "@context": "https://schema.org",
  "@graph": [
    {
      "@type": "Organization",
      "@id": "https://example.com/#organization",
      "name": "Example Linen Co",
      "url": "https://example.com/",
      "logo": "https://example.com/images/logo.png",
      "sameAs": [
        "https://www.instagram.com/examplelinen",
        "https://www.facebook.com/examplelinen"
      ],
      "contactPoint": {
        "@type": "ContactPoint",
        "contactType": "customer service",
        "email": "hello@example.com"
      }
    },
    {
      "@type": "WebSite",
      "@id": "https://example.com/#website",
      "name": "Example Linen Co",
      "url": "https://example.com/",
      "publisher": { "@id": "https://example.com/#organization" }
    }
  ]
}

Google uses WebSite with other signals to choose the site name shown in results. A SearchAction can still be added, but the sitelinks search box it triggered was retired in November 2024. More in our Organization and WebSite posts, and on @id in @id explained.

A breadcrumb trail for a product reached from a collection. The last item can leave out item, since it is the current page:

{
  "@context": "https://schema.org",
  "@type": "BreadcrumbList",
  "itemListElement": [
    { "@type": "ListItem", "position": 1, "name": "Home", "item": "https://example.com/" },
    { "@type": "ListItem", "position": 2, "name": "Shirts", "item": "https://example.com/collections/shirts" },
    { "@type": "ListItem", "position": 3, "name": "Blue Linen Shirt" }
  ]
}

A collection page with its products listed in an ItemList:

{
  "@context": "https://schema.org",
  "@type": "CollectionPage",
  "name": "Shirts",
  "url": "https://example.com/collections/shirts",
  "isPartOf": { "@id": "https://example.com/#website" },
  "mainEntity": {
    "@type": "ItemList",
    "itemListElement": [
      { "@type": "ListItem", "position": 1, "url": "https://example.com/products/blue-linen-shirt" },
      { "@type": "ListItem", "position": 2, "url": "https://example.com/products/white-linen-shirt" }
    ]
  }
}

Collection markup produces no rich result for a shop, and it should not carry ratings. See BreadcrumbList, CollectionPage and CollectionPage vs ItemList.

Article schema example for a blog post

{
  "@context": "https://schema.org",
  "@type": "BlogPosting",
  "headline": "How to Care for Linen Shirts",
  "image": ["https://example.com/images/linen-care-16x9.jpg"],
  "datePublished": "2026-10-02T09:00:00+01:00",
  "dateModified": "2026-11-12T14:30:00+00:00",
  "author": { "@type": "Person", "name": "Sam Example", "url": "https://example.com/pages/about" },
  "publisher": { "@id": "https://example.com/#organization" }
}

Give dates with a time zone and the author as a Person or Organization, not plain text. See Article schema.

FAQ schema markup example

A short FAQPage block with one question. Add one Question per question shown on the page:

{
  "@context": "https://schema.org",
  "@type": "FAQPage",
  "mainEntity": [
    {
      "@type": "Question",
      "name": "Do you deliver to Ireland?",
      "acceptedAnswer": { "@type": "Answer", "text": "Yes. Delivery to Ireland takes 3 to 5 working days." }
    }
  ]
}

This is valid schema.org markup, but Google stopped showing FAQ rich results on 7 May 2026. Read FAQ schema on Shopify before adding it.

Generating these instead of hand-writing them

Hand-written Shopify schema code has to be kept in step with prices, stock and theme changes. Schema Clinic's Pro plan ($19.99/month) generates Organization, WebSite, Product (offers, brand, identifiers, aggregateRating where review data exists), Article, BreadcrumbList and CollectionPage with ItemList from your Shopify data, linked by @id as above, and deploys it through the "Schema Clinic" app embed. It does not generate FAQPage, video or LocalBusiness markup. Starter ($9.99/month) audits what you already have. There is no free plan or trial. See our schema markup generator page.

Questions people ask

What is a JSON-LD schema example for a Shopify product?
A Product block with name, image, brand, sku, gtin and an Offer holding price, priceCurrency and availability, plus aggregateRating if the page shows reviews. The full example is above.
Should price include the currency symbol?
No. Use a number such as 45.00 for price and put the three-letter currency code, such as GBP or USD, in priceCurrency.
Can I use AggregateOffer for a price range on Shopify?
Google says AggregateOffer is for products sold by several merchants, not variants, and merchant listings need an Offer. List one Offer per variant or use ProductGroup.
Where do I put JSON-LD in a Shopify theme?
Usually in the section or snippet for that page type, such as the main product section, built with Liquid. An app embed can also output it without theme edits.
Will these examples work alongside my theme's schema?
Only if you remove the theme's block of the same type. Two Product blocks for one product cause duplicates and conflicting data.

See what Google sees on your store

Run an audit in minutes. Every schema block, every error and duplicate, with its source.

Install Schema Clinic