Technical for Shopify stores

How do I add structured data to a Shopify store?

The short answer

Most current Shopify themes already output Product structured data with the name, price, availability and images, so the first step is to check what your theme produces with Google's Rich Results Test. Gaps such as brand, GTIN or review ratings are usually filled by editing the theme's Liquid code, using product metafields, or with an app, while making sure two sources don't output competing markup.

Start by checking what your theme already outputs

Shopify themes commonly include JSON-LD structured data for products, and many also mark up the organization and blog articles. Shopify's Liquid language has a built-in way for themes to output product and article structured data, which is why so many themes include it.

Run a product page through Google's Rich Results Test or the Schema Markup Validator and look at what comes back. You are checking for:

  • A single Product item, not two or three.
  • An Offer with the right price, currency and availability for the variant shown.
  • Brand and a product identifier such as GTIN or MPN, where your products have them.
  • Review or rating data, if you collect product reviews.

Ways to fill the gaps

Edit the theme. Structured data usually sits in the product template or a snippet. A developer can add missing fields there, pulling values from product fields or metafields. This gives the most control but needs repeating if you change themes.

Use metafields. Shopify's metafields let you store extra product details, such as materials or identifiers, which the theme can output both on the page and in the markup. Keeping the visible page and the structured data in step is what search engines expect.

Use an app. Structured data apps can add or replace markup without code. The risk is duplication: if the app adds Product markup and the theme keeps its own, the page ends up with two sets that may disagree. Turn one off.

Review apps often add rating markup too. Check that the ratings in the markup match what shoppers can see on the page.

What structured data does for AI answers

Structured data helps search engines understand a product page, and Google uses it for product rich results. Google's guidance is that no special markup is needed to appear in its AI features. OpenAI hasn't published that ChatGPT relies on schema, though clear, consistent product data is likely to help any system that reads the page. See whether AI tools read schema.

So treat structured data as one part of good product data, alongside full descriptions and an accurate feed. For product results specifically, see whether your theme's product schema is enough.

Related questions

More questions from Shopify stores about AI crawlers and technical AI SEO

Schema and structured data - questions every business asks

Next questionIs Shopify a good platform for AI search visibility?

Find out whether ChatGPT and other AI tools recommend your Shopify store

Get an AI visibility audit showing whether ChatGPT and other AI tools recommend your Shopify store when people ask for what you offer, which competitors they name instead, and how you compare.

Request my AI visibility audit