Skip to page contentGo to the request box

How to add schema markup to a Shopify store

Most Shopify themes already add basic product markup, so you add schema markup to a Shopify store by first checking what your theme and apps output, then filling the gaps, such as breadcrumbs, reviews, brand, barcodes, and shipping and returns details, with a Liquid snippet in your theme or an app, and an AI marketer like Kite can audit the store, write the snippet, fill the product fields the markup depends on, and check the live result.

Part of Add schema markup to your website

By Devon WellsDevon Wells leads product marketing at Kite, the AI marketer. He spent a decade marketing industrial AI, from self-driving trucks to computer vision, but now Kite handles most of the work itself. and KiteUpdated

On this page

How do I add schema markup to Shopify?

You add schema markup to a Shopify store by checking what your theme already outputs, removing any duplicates, and then adding only the missing types with a Liquid snippet in your theme or with an app from the Shopify App Store. Schema markup is a short block of code, usually written in a format called JSON-LD, that tells Google and AI systems what a page is: a product with a price, an article with an author, or a business with a location. Google uses it to decide whether your listing can show extras such as the price, stock status, and star rating right in the search results.

Shopify gives you a head start. Dawn and the other free themes in the Shopify Theme Store use a built-in Liquid filter that turns each product into product markup automatically, with its title, description, images, price, currency, and availability. Blog posts get article markup the same way, and the homepage carries your store's name, logo, and the social profiles you added in the theme settings. Paid and older themes vary. Some write their own markup by hand, and some use an older format that Google still reads but that is harder to keep correct.

So the real job has three parts:

  1. Find out what's already there. Open a product page in Google's Rich Results Test or the Schema Markup Validator at validator.schema.org and look at every block it finds. Do the same for a collection page, a blog post, and your homepage. If a product page shows two product blocks, one usually comes from your theme and one from a review or SEO app.
  2. Fix duplicates and gaps. One page should carry one product block. When an app adds its own, turn off either the app's markup or the theme's, using the app's settings or a small theme edit. Then list what's missing, which for most stores is breadcrumbs, star ratings, brand, barcodes, and shipping and returns details.
  3. Add what's missing. You can add the missing types in two ways:
    • A Liquid snippet. In your Shopify admin, open Online Store, then Themes. Duplicate your live theme first so you have a backup, then choose Edit code on the live theme. Create a new file in the Snippets folder, paste the markup in, and add a line that renders it in your product section or in theme.liquid. Because the snippet uses Liquid, Shopify's template language, it fills in each product's own details on every page.
    • A schema app. Several apps in the Shopify App Store add markup for you. They're quick to set up, but they often add a second product block beside the theme's instead of replacing it, so check the result.

Here's a breadcrumb snippet of the kind that fills the most common gap. It names the collection a shopper came from, when there is one, and the product they're looking at:

<script type="application/ld+json">
{
  "@context": "https://schema.org",
  "@type": "BreadcrumbList",
  "itemListElement": [
    {
      "@type": "ListItem",
      "position": 1,
      "name": "Home",
      "item": "{{ shop.url }}"
    }{% if collection %},
    {
      "@type": "ListItem",
      "position": 2,
      "name": {{ collection.title | json }},
      "item": "{{ shop.url }}{{ collection.url }}"
    }{% endif %},
    {
      "@type": "ListItem",
      "position": {% if collection %}3{% else %}2{% endif %},
      "name": {{ product.title | json }},
      "item": "{{ shop.url }}{{ product.url }}"
    }
  ]
}
</script>

The markup is only half the work. Product markup reads from your product records, so a product with no vendor, no barcode, or a one-line description produces thin markup no matter how good the code is. Every edit also needs testing on a product with several sizes or colors, because that's where prices and stock in the markup most often stop matching the page. And when you update your theme to a new version, Shopify carries your code edits over only when they don't conflict with the update, so a snippet you added may have to be added again. Kite does this whole job for you, from the audit through the check on your live pages.

How to get started

Start by asking Kite in plain words, in the Kite web app or in Slack:

"Check the schema markup on our Shopify store and fix what's missing."
Send this to Kite

Or start from a problem you've already noticed:

"Our star ratings stopped showing in Google after we switched review apps. Find out why."

Kite is an AI marketer. It researches your business, builds a growth strategy, and ships the work that brings you new customers. By the time you ask, it already knows what you sell, how your store is organized, whether you have a physical shop, and where your business is listed elsewhere, so it can judge which markup your store needs without a long brief.

You don't have to connect anything for Kite to audit your markup, because it reads your store's public pages the way Google does. Connecting your Shopify store through OAuth, which is a sign-in screen where you approve access, lets Kite read your products, variants, pages, and metafields directly, and fill in missing product details once you approve them. Kite can't edit your theme's code, so you paste the snippet it writes into your theme yourself, using its steps. Connect Google Search Console when you want Kite to confirm what Google has picked up.

How Kite adds schema markup to a Shopify store

  1. What markup does your store output today?

    Kite starts by reading one page of every type your store has, because Shopify uses a different template for each and each one carries different markup. It loads your homepage, a collection page, a product with a single option, a product with several sizes or colors, a blog post, and your contact or about page. On each one it pulls out every block of markup and records its type, the fields it fills, and the values in them.

    Then Kite works out where each block comes from. A product block written by Shopify's built-in filter looks different from one an app adds, and many review and SEO apps label their output. This matters because the fix for a duplicate depends on which one should stay. Kite also notes any markup written in the older microdata format, which some older themes use and which often contradicts the JSON-LD an app adds on top.

    Kite also runs its readiness scan on your store, which tests how well AI agents can find and use a site across 24 checks. Structured data is one of the areas it scores, so the scan gives you a before score to compare against once the work is done.

  2. What does your store need?

    Kite decides what to add from what each page shows and what your business is, so the plan fits your store rather than a generic checklist. For almost every store, that means the following:

    • Product markup with every field Google uses. Name, images, description, brand, SKU, a barcode such as a UPC or EAN where the product has one, price, currency, availability, and condition, with a separate offer for each variant that has its own price.
    • Star ratings from your real reviews. An overall rating and recent reviews, taken from the review app that shows them on the page.
    • Shipping and returns details. Delivery cost and time, and how long customers have to return an item, taken from your shipping and refund policies.
    • Breadcrumbs. The trail from your homepage through the collection to the product, which most themes leave out.
    • Your store's identity. Your store's name, logo, website address, and links to your official profiles on the homepage, so search engines and AI systems connect your store to the same business everywhere else.

    When you have a physical shop, Kite adds local business markup with your address, phone number, and opening hours for each day. When a page shows questions and answers, such as a product FAQ, it adds FAQ markup written word for word from the page. Kite tells you up front that Google shows FAQ dropdowns in results only for government and health websites, so for a store that markup helps machines read the page but won't change your listing.

    Kite only adds what the page actually shows. Google requires markup to describe what a shopper can see, so Kite doesn't add a rating to a product with no reviews on its page, or a shipping time your store never states. When one product block already exists and works, Kite keeps it and adds the missing fields around it rather than writing a second one.

  3. Are your product details complete?

    Kite checks your product records before it writes any code, because product markup can only repeat what your products contain. With your store connected, it searches your products and their variants and lists the gaps: products with no vendor to use as the brand, variants with no SKU or barcode, products whose description is one line, and images with no alt text.

    Then Kite fills the gaps it can confirm. It takes a barcode only from a source that states it, such as your supplier's product page or your own records, and marks the rest as not found rather than guessing. It can write a fuller product description in your brand's voice for products that need one. Kite shows you each change first. Approve the changes and Kite updates the products and variants in Shopify.

    Some details don't have a standard product field, such as a product's material or the questions in a product FAQ. For those, Kite can create a metafield, which is a custom field Shopify lets you add to any product, and fill in its values for each product. The snippet then reads from that field, so your team can change the value in the Shopify admin and the markup follows.

  4. Writing the snippet

    Kite writes one snippet for your theme that adds only what's missing and reads every value from Liquid, so the markup changes on its own when a price, a stock level, or a product title changes. It names the file, tells you which section or layout file to render it from, and gives you the one line to paste there.

    When it finds a duplicate, Kite tells you which block to keep and exactly how to turn the other off. Often that's a setting in the review or SEO app, such as the option to stop adding rich snippet markup. Sometimes it's a short edit to the theme's product section, and Kite gives you the line to remove. If you'd rather not touch theme code, Kite tells you whether an app you already use can cover the gap, and which of its settings to change.

    Kite keeps the snippet separate from your theme's own files on purpose. When a theme update can't carry your edits over, you add back one snippet file and one line, instead of searching through a section you edited months ago.

  5. Is the live markup right?

    Once you've pasted the snippet in, Kite reads the same pages again and checks the result against what shoppers see. It confirms that each product page carries one product block, that the price and availability in the markup match the page for every variant it tests, that the rating matches the rating shoppers see, and that every block reads without errors. It checks collection pages and blog posts too, because a snippet rendered from the wrong file can end up on pages where it doesn't belong.

    With Google Search Console connected, Kite inspects your key product pages to see what Google has indexed and which rich results it has detected, such as product snippets and merchant listings. Google can take days or weeks to read updated pages, so Kite checks again after that time and reports the change. It also runs its readiness scan a second time so you can compare the structured data score with the one from the start.

  6. What Kite reports back

    When the work is done, Kite posts a summary in the conversation where you asked. It lists each page type, the markup it found there and where each block came from, what it added or removed, and the check results for your live pages. It includes the snippet and the steps for putting it in place, the product details it filled in, the products it couldn't complete and why, and any duplicate it asked you to turn off.

    If you want the markup watched over time, ask Kite to check it on a schedule, such as every month or after each theme update. Each check reads your pages again and tells you when an app update, a theme change, or a new product leaves the markup broken, duplicated, or out of step with the page.

What the finished work contains

When Kite finishes, every product page on your store carries one complete block of product markup that matches what shoppers see, along with the breadcrumbs, ratings, and store details your theme was missing.

From KiteAdd schema markup to a Shopify store.Ready for your yes
  • The markup audit A page-by-page list of the markup your store output before the work, where each block came from, and which duplicates and gaps Kite found.
  • The snippet One Liquid file that adds the missing markup, with the line that renders it and the exact place in your theme to paste it.
  • Complete product records Brands, SKUs, barcodes, and fuller descriptions filled in on the products and variants that lacked them, plus any metafields the markup reads from.
  • The duplicate fixes The app setting or theme line to change for each duplicate block, so every page carries one clean version.
  • The check results Confirmation that the live pages carry the markup, that prices, availability, and ratings match the page, and what Google has detected in Search Console.
  • Ongoing checks A scheduled re-check, when you ask for one, that tells you when an app, a theme update, or a new product breaks the markup.

Common questions

Does Shopify add schema markup automatically?

Yes, but only the basics, and how much depends on your theme. Dawn and the other free Shopify themes add product markup to product pages, article markup to blog posts, and your store's name and profiles to the homepage. They usually leave out breadcrumbs, star ratings, barcodes, and shipping and returns details. Paid themes vary, so test a product page in Google's Rich Results Test to see what yours adds.

Do I need an app to add schema markup to Shopify?

No. A Liquid snippet in your theme adds the same markup an app does, and it doesn't add a monthly fee or a second product block you then have to remove. An app makes sense when nobody on your team will open the theme code editor, or when your review app already adds ratings to your theme's product markup. Kite tells you which route suits your store and writes the snippet when you go that way.

How do I add a meta description in Shopify?

You add a meta description in Shopify from the bottom of each product, collection, or page in your admin, under the search engine listing section, where you can edit the page title and description Google shows. Your homepage's title and description live in the Online Store preferences. These are separate from schema markup, but they come from the same product information and are worth fixing in the same pass. Shopify title and meta description examples Coming soon shows what good ones look like.

Does schema markup help a Shopify store appear in ChatGPT answers?

Schema markup helps AI systems read your products and your store accurately, but it won't get you recommended on its own. Product markup gives them a clean statement of what you sell, what it costs, and whether it's in stock, and your store's identity markup helps them connect your store to the same business elsewhere. Recommendations depend more on whether your product and policy pages answer what shoppers ask, and on what other sites say about you. To see whether AI answers mention your store today, try Kite's free AI visibility checker. It asks ChatGPT, Gemini, Perplexity, and Claude the questions your customers ask, and in about 45 seconds it shows whether they recommend you and who they recommend instead.

About the author

Devon Wells leads product marketing at Kite, the AI marketer. He spent a decade marketing industrial AI, from self-driving trucks to computer vision, but now Kite handles most of the work itself.

Source /how-to/how-to-add-schema-markup-to-a-shopify-store.md

You decide what matters. Kite does the work.

Your privacy choices

We use necessary cookies to keep the site working, plus optional cookies for analytics and marketing.

You can choose what to allow. You can read our Cookie Policy.