Guide · Growth and retention
Structured data (JSON-LD) for Shopify: products, FAQ and rich results
How JSON-LD structured data works on Shopify: what themes output, which schema types to add, product and FAQ markup, testing and managing FAQs per page.
- JSON-LD is a script block that describes a page in schema.org terms (a Product with price and availability, a breadcrumb, an organisation) so search engines read it reliably.
- Most Shopify themes output basic Product markup through Liquid's structured_data filter, but often miss reviews, shipping and return policies, GTINs, breadcrumbs and the organisation.
- Markup must match what the page shows; Google ignores or penalises structured data for content visitors cannot see.
- Since 2023 Google shows FAQ rich results only for well-known government and health sites, but FAQ content and markup still help shoppers and other search and AI systems read the page.
- Test with the Rich Results Test, watch Search Console's enhancement reports, and retest after every theme or app change.
Structured data tells search engines in a fixed vocabulary what a page is about: this page is a product, it costs €49, it is in stock, it ships to the Netherlands in two days, it has 120 reviews averaging 4.6. With that information Google can show the page as a rich result, with price, availability and stars in the listing, and include it in shopping surfaces. On Shopify, part of this comes with the theme and part has to be added. This guide covers what JSON-LD is, what rich results look like for stores, what Shopify does and does not do by default, which schema types matter, how to test and maintain the markup, and how to handle FAQs on product and collection pages.
Getting structured data right on Shopify, in five steps
- See what your theme outputs
Run a product page, a collection page and the home page through Google's Rich Results Test and note which types it finds.
- List what is missing
Compare with the types in this guide: Product with offers and policies, reviews, breadcrumbs, organisation, articles.
- Add the missing types once
In the theme, in an app, or in a snippet fed by metafields; never in two places for the same type.
- Test again
No errors in the Rich Results Test and the Schema Markup Validator; the values match the visible page.
- Monitor
Watch Search Console's Merchant listings and Product snippets reports, and retest after theme updates.
What JSON-LD is and why it matters
JSON-LD (JavaScript Object Notation for Linked Data) is one of three formats for structured data, next to Microdata and RDFa. It sits in a <script type="application/ld+json"> block, separate from the HTML, and uses the schema.org vocabulary. Google supports all three formats and recommends JSON-LD, because it is the easiest to add and maintain without touching the visible markup.
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "Product",
"name": "Linen shirt",
"image": ["https://example.com/images/linen-shirt.jpg"],
"sku": "SHIRT-LIN-M-BLU",
"gtin13": "0123456789012",
"brand": { "@type": "Brand", "name": "Demo Studio" },
"offers": {
"@type": "Offer",
"price": "49.00",
"priceCurrency": "EUR",
"availability": "https://schema.org/InStock",
"url": "https://example.com/products/linen-shirt"
}
}
</script>Why it matters for a store:
- Eligibility for product rich results and free listings in Google's shopping surfaces.
- Clarity: price, currency, availability and identifiers are read from fields, not guessed from the page text.
- Machine readers: other search engines and AI assistants also read schema.org data when they summarise or compare products.
Structured data makes a page eligible for rich results; it does not make them certain, and it is not a ranking boost in itself.
What rich results look like for Shopify stores
| Rich result | What shoppers see | Needs |
|---|---|---|
| Product snippet | Price, availability and review stars under the listing | Product with offers; reviews or aggregateRating for stars |
| Merchant listing | Product in shopping results and panels, with price, shipping and returns | Product with offers, plus shipping details and return policy for the extras |
| Breadcrumb | A path such as Home › Shirts › Linen shirt instead of the URL | BreadcrumbList |
| Organization | Logo and business details in knowledge panels | Organization on the home page |
| Article | Headline, image and date for blog posts | Article or BlogPosting |
| Product variants | Variant-aware results (sizes, colours) | ProductGroup with hasVariant |
Swipe the table sideways to see every column.
Why Shopify does not fully handle schema by default
Shopify gives themes a Liquid filter, structured_data, that turns a product or article into schema.org JSON-LD: a Product for a product without variants, a ProductGroup for one with variants, and an Article for a blog post. Most current themes use it or write their own markup. What is typically missing:
- Reviews. Ratings live in a review app; the theme's markup has no aggregateRating unless the app adds it.
- Shipping and return policies.
shippingDetailsandhasMerchantReturnPolicyare rarely in theme markup, though Merchant Center settings can cover them. - Identifiers and brand. GTINs and the brand are only output if they are filled in the product's barcode and vendor fields.
- Breadcrumbs, organisation and website markup, which depend on the theme.
- Collection and FAQ content, which have no standard markup in Shopify.
The opposite problem is just as common: a theme and two SEO or review apps each output a Product, with different prices or ratings. Search engines then have to choose, and validators show conflicting items. One source per type is the rule.
High-impact schema use cases for Shopify
| Schema type | Where | Key properties | Notes |
|---|---|---|---|
| Product / ProductGroup | Product pages | name, image, sku, gtin, brand, offers (price, priceCurrency, availability) | Use ProductGroup with hasVariant for variants |
| Offer extras | Product pages | shippingDetails, hasMerchantReturnPolicy, priceValidUntil for sale prices | Feeds merchant listing details |
| AggregateRating / Review | Product pages | ratingValue, reviewCount | Only for reviews shown on the page, collected from customers |
| BreadcrumbList | Product and collection pages | itemListElement with name and item URL | Match the visible breadcrumb |
| Organization | Home page | name, url, logo, sameAs (social profiles), contact | Once for the site |
| WebSite | Home page | name, url | Helps Google show the site name |
| Article / BlogPosting | Blog posts | headline, image, datePublished, author | Shopify's filter covers articles |
| FAQPage | Pages with visible Q&A | mainEntity of Question and acceptedAnswer | No Google rich result for most stores; still machine-readable |
| LocalBusiness | Store locator or contact page | address, openingHours, geo | For stores with physical shops |
Swipe the table sideways to see every column.
How to add JSON-LD to a Shopify store
In the theme
Edit the product section or a snippet and output a script block, either with {{ product | structured_data }} or with your own JSON built from Liquid objects. Escape text with the json filter so quotes in product titles do not break the script. Keep a copy of your changes: theme updates can overwrite them.
With metafields and metaobjects
Store values the product object does not have (a GTIN source, material, FAQ entries) in metafields or metaobjects, and render them in the JSON-LD snippet. Merchants then edit content in the admin, and the markup follows.
With an app
SEO and review apps can inject structured data. Before installing one, check what the theme already outputs, and turn off the overlapping types on one side.
How to test and maintain JSON-LD on Shopify
- Rich Results Test
Paste a URL into Google's Rich Results Test. It shows the types Google can use for rich results, with errors and warnings.
- Schema Markup Validator
validator.schema.org checks all schema.org types, including those Google does not use for rich results.
- Compare with the page
Price, currency, availability, rating and review count in the markup must match what a visitor sees, for every variant.
- Search Console reports
The Merchant listings, Product snippets and Breadcrumbs reports show valid and invalid items across the site and alert you to new errors.
- Retest after changes
After theme updates, new apps, a currency or market change, or a sale with compare-at prices.
- Two Product blocks from theme and app with different prices.
- Prices without currency, or in a currency the page does not show.
- Availability that says InStock for a sold-out variant.
- Reviews in markup that are not visible on the page, or imported from elsewhere.
- Markup on pages blocked from crawling, or with a noindex tag.
- Broken JSON from an unescaped quote in a product title.
FAQs on product and collection pages
Why FAQs on product and collection pages matter
Shoppers have the same few questions before buying: sizing, materials, delivery time, returns, compatibility. Answering them on the page removes reasons to leave, cuts support tickets and gives search engines and AI assistants specific text to match to specific questions.
What FAQ schema does for search and AI visibility
FAQPage markup marks up each question and its answer as a pair. For most stores it no longer creates an FAQ rich result in Google, but it remains a clear, machine-readable statement of what the page answers, which other search engines and AI systems can use. Google's rules still apply: the questions and answers must be visible on the page, written by the site, and not used for advertising. See schema markup and AI visibility.
The two problems with how most stores manage FAQs
- Copied everywhere: the same block of shipping questions is pasted onto every product, so pages repeat each other and product-specific questions are missing.
- Stuck in code or an app: FAQs hard-coded in a theme file nobody edits, or loaded by an app's script after the page renders, so the content is out of date or invisible to crawlers that do not run scripts.
Which FAQs belong where
| Question type | Example | Put it on |
|---|---|---|
| Product-specific | Does the linen shirt shrink after washing? | That product page |
| Category-specific | How do I choose a shirt size? | The collection page and a size guide |
| Store-wide policy | How long do returns take? | A single FAQ or policy page, linked from products |
| Pre-purchase objections | Is this compatible with model X? | The product page, near the add-to-cart button |
Swipe the table sideways to see every column.
How to manage FAQs on Shopify
- Create an FAQ metaobject
Fields: question and answer. Each entry is created once in the admin.
- Link FAQs to products and collections
A metafield on products and collections that lists FAQ entries, so a product shows its own questions plus a few category ones.
- Render them in the theme
Use dynamic sources in the theme editor to show the linked entries as visible HTML (an accordion is fine).
- Output FAQPage JSON-LD from the same entries
The markup and the visible text then always match.
- Review quarterly
Add the questions customer service hears most; delete answers that are no longer true.
Boost Shopify SEO with JSON-LD: a summary
Get Product markup complete and correct on every product page first, with identifiers, brand, offers and, if you have them, real reviews. Add breadcrumbs and the organisation. Then add FAQ content where shoppers need it and mark it up from the same source. Test, watch Search Console, and keep one source per type. For more on finding pages that leak traffic, see tracking 404 errors, and for turning visits into orders, Shopify conversion rate optimisation.
Where ROASaurus fits
ROASaurus does not edit your theme or add structured data. It reads Google Search Console, so you can see whether rich results move clicks, and it shows which products earn money after costs, so you know which product pages deserve the SEO work first.
Website › Search › Search Console- Connect your Google account under Connections › Channels and choose the Search Console property.
- Open Website › Search › Search Console to see clicks, impressions and position by query and page, before and after you change the markup.
- Open Profit › Products for units, revenue, refunds, product cost, margin and POAS per product, and start your structured data work with the products that carry the store.

Start freeOpen the live demo14-day trial of every feature, no credit card.
Sources
- Google Search Central: Introduction to structured data
- Google Search Central: Product structured data
- Google Search Central: Merchant listing structured data
- Google Search Central: Product variant structured data
- Google Search Central: Breadcrumb structured data
- Google Search Central: Organization structured data
- Google Search Central: FAQ structured data
- Google Search Central Blog: Changes to HowTo and FAQ rich results (2023)
- Google Search Central: Structured data general guidelines
- Shopify Dev: Liquid structured_data filter
- Shopify Dev: Metaobjects
- Google: Rich Results Test
- Schema.org: Schema Markup Validator