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.

Updated · 9 min read

By the ROASaurus team

The short answer
  • 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

  1. 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.

  2. List what is missing

    Compare with the types in this guide: Product with offers and policies, reviews, breadcrumbs, organisation, articles.

  3. 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.

  4. Test again

    No errors in the Rich Results Test and the Schema Markup Validator; the values match the visible page.

  5. 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.

A minimal Product in JSON-LD (example values)
<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 resultWhat shoppers seeNeeds
Product snippetPrice, availability and review stars under the listingProduct with offers; reviews or aggregateRating for stars
Merchant listingProduct in shopping results and panels, with price, shipping and returnsProduct with offers, plus shipping details and return policy for the extras
BreadcrumbA path such as Home › Shirts › Linen shirt instead of the URLBreadcrumbList
OrganizationLogo and business details in knowledge panelsOrganization on the home page
ArticleHeadline, image and date for blog postsArticle or BlogPosting
Product variantsVariant-aware results (sizes, colours)ProductGroup with hasVariant
From Google Search Central's structured data documentation. Google decides whether to show a rich result.

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. shippingDetails and hasMerchantReturnPolicy are 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 typeWhereKey propertiesNotes
Product / ProductGroupProduct pagesname, image, sku, gtin, brand, offers (price, priceCurrency, availability)Use ProductGroup with hasVariant for variants
Offer extrasProduct pagesshippingDetails, hasMerchantReturnPolicy, priceValidUntil for sale pricesFeeds merchant listing details
AggregateRating / ReviewProduct pagesratingValue, reviewCountOnly for reviews shown on the page, collected from customers
BreadcrumbListProduct and collection pagesitemListElement with name and item URLMatch the visible breadcrumb
OrganizationHome pagename, url, logo, sameAs (social profiles), contactOnce for the site
WebSiteHome pagename, urlHelps Google show the site name
Article / BlogPostingBlog postsheadline, image, datePublished, authorShopify's filter covers articles
FAQPagePages with visible Q&AmainEntity of Question and acceptedAnswerNo Google rich result for most stores; still machine-readable
LocalBusinessStore locator or contact pageaddress, openingHours, geoFor 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

  1. 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.

  2. Schema Markup Validator

    validator.schema.org checks all schema.org types, including those Google does not use for rich results.

  3. Compare with the page

    Price, currency, availability, rating and review count in the markup must match what a visitor sees, for every variant.

  4. 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.

  5. Retest after changes

    After theme updates, new apps, a currency or market change, or a sale with compare-at prices.

Common mistakes
  • 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 typeExamplePut it on
Product-specificDoes the linen shirt shrink after washing?That product page
Category-specificHow do I choose a shirt size?The collection page and a size guide
Store-wide policyHow long do returns take?A single FAQ or policy page, linked from products
Pre-purchase objectionsIs 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

  1. Create an FAQ metaobject

    Fields: question and answer. Each entry is created once in the admin.

  2. 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.

  3. Render them in the theme

    Use dynamic sources in the theme editor to show the linked entries as visible HTML (an accordion is fine).

  4. Output FAQPage JSON-LD from the same entries

    The markup and the visible text then always match.

  5. 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.

In ROASaurusWebsite › Search › Search Console
  1. Connect your Google account under Connections › Channels and choose the Search Console property.
  2. Open Website › Search › Search Console to see clicks, impressions and position by query and page, before and after you change the markup.
  3. 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.
The ROASaurus Mac app showing Profit › Products: the POAS of every product with its trend, by product or by variant. Fictional demo store, simulated data.
The ROASaurus iPhone app showing Profit › Products: the POAS of every product with its trend, by product or by variant. Fictional demo store, simulated data.
Profit › Products: units, revenue, refunds, COGS, gross profit, CM2, net margin, ad spend, CM3 and POAS per product. Fictional demo store, simulated data.

Start freeOpen the live demo14-day trial of every feature, no credit card.

Sources

  1. Google Search Central: Introduction to structured data
  2. Google Search Central: Product structured data
  3. Google Search Central: Merchant listing structured data
  4. Google Search Central: Product variant structured data
  5. Google Search Central: Breadcrumb structured data
  6. Google Search Central: Organization structured data
  7. Google Search Central: FAQ structured data
  8. Google Search Central Blog: Changes to HowTo and FAQ rich results (2023)
  9. Google Search Central: Structured data general guidelines
  10. Shopify Dev: Liquid structured_data filter
  11. Shopify Dev: Metaobjects
  12. Google: Rich Results Test
  13. Schema.org: Schema Markup Validator

More guides on growth and retention · All guides

FAQ

Questions, answered

More answers in the FAQ and the help center.

What is JSON-LD for Shopify?

A script block in the page that describes it in schema.org terms, such as a Product with price and availability. Shopify themes output some of it through Liquid's structured_data filter; the rest is added in the theme, through metafields or by an app.

Does Shopify add structured data automatically?

Most current themes output Product markup, and the structured_data filter covers products and articles. Reviews, shipping and return details, breadcrumbs and the organisation are often missing and need to be added.

How do I set up FAQs on Shopify?

Create an FAQ metaobject with question and answer fields, link entries to products and collections with a metafield, show them with dynamic sources in the theme, and output FAQPage JSON-LD from the same entries.

Will FAQ schema show FAQ dropdowns in Google?

For most stores, no. Since August 2023 Google shows FAQ rich results only for well-known government and health sites. The markup remains valid and readable by other systems.

Why are FAQs on product and collection pages useful?

They answer the questions that stop people buying, reduce support tickets and give search engines and AI assistants specific answers to match to specific queries.

How do I test structured data on Shopify?

Use Google's Rich Results Test for rich result types and the Schema Markup Validator for all schema.org types, then watch the Merchant listings and Product snippets reports in Search Console.

Can two apps output Product schema at the same time?

They can, but they should not. Duplicate Product blocks with different values confuse search engines; keep one source per type and turn off the overlap.

Every sale, traced to the ad that earned it

Server-side tracking, profit and lifetime value in one app. Free plan, no credit card.