Shopify Structured Data: A Plain-English Guide to JSON-LD

Structured data is a hidden label on each page of your store that tells Google the facts about it: what the product is, what it costs, whether it's in stock and how customers rate it. Shoppers never see the label, but Google reads it. With it, Google can show your products in search results with a price, stock status or star rating under the title, instead of only a title and a short description.
Most Shopify themes add some of this label already. This guide explains what it contains, how to check what your store has, and how to fix the gaps, with or without code.
Key takeaways
- Structured data describes your pages to Google in a fixed format. On Shopify it's usually written as JSON-LD, the format Google recommends.
- It makes your pages eligible for listings with prices, stock and star ratings in Google. Google decides whether to show them.
- The labels that matter most for a store are for products, prices, ratings, blog posts, your business and, if you have a shop front, your location.
- Many themes include basic product labels. Ratings, business details and location are the usual gaps.
- Google's free Rich Results Test shows what any page on your store tells Google.
What structured data is, in plain words
When Google visits a product page, it sees the same text and images a shopper does. It can usually work out that "$34.00" is a price, but it's guessing. Structured data removes the guesswork. It's a short block of text in the page's code that says, in a format search engines agree on: this is a product, its name is "Linen Kitchen Apron", its price is 34.00 in US dollars, and it's in stock.
The shared vocabulary for these labels comes from schema.org, a project the major search engines support. You'll see it called "schema markup" for that reason.
Shopify structured data and JSON-LD
JSON-LD is simply the way the label is written. It sits in its own block in the page, separate from the text shoppers read, which makes it easy to add or change without touching your design. Google's introduction to structured data recommends it over the older formats that mix labels into the visible page.
You don't need to read or write JSON-LD yourself. What matters is that the right facts are in it, that they're correct, and that they match what shoppers see on the page.
What it changes in Google
Google calls search listings with extra details "rich results". For a product, Google's product snippet documentation describes listings that can include ratings, review information, price and availability. A shopper comparing aprons can see your price and rating before they click.
Two points to keep in mind:
- Structured data makes a page eligible, not guaranteed. Google states that it doesn't guarantee these features will appear. It decides per search and per page.
- It doesn't directly move you up the results. It changes how your listing looks, not where it ranks. A clearer listing can still earn more clicks from the same position.
The types of structured data a Shopify store needs
Each label has a type. These are the ones worth having:
- Product. The name, description, image, brand and product codes such as SKU or barcode (GTIN). This is the base for every product listing.
- Offer. The price, currency and stock status, attached to the product. A product with several variants (sizes, colors) can have one offer per variant.
- AggregateRating. The average star rating and the number of reviews. This is what Google uses for the stars under a product.
- Article. For blog posts: headline, author, publish date and image.
- Organization. Your business name, logo, contact details and social media profiles, so Google has one consistent description of your brand.
- LocalBusiness. Your street address, map position and opening hours. Only useful if customers can visit you in person.
What your Shopify theme probably includes, and what it misses
Many Shopify themes add Product and Offer labels to product pages, and some add Article labels to blog posts. What's included varies a lot between themes and even between versions of the same theme, so don't assume.
The common gaps are:
- Ratings. Your theme doesn't know about your reviews. Stars only appear in the label if your review app adds them or stores them somewhere another tool can read.
- Business details. Logo, social profiles and contact details are often missing or incomplete.
- Location and hours. Themes rarely add LocalBusiness labels, since most online stores don't need them.
How to test your structured data with Google's Rich Results Test
Google's Rich Results Test shows exactly what a page tells Google:
- Open the Rich Results Test.
- Paste the full address of one of your product pages and click Test URL.
- Wait for the test to load the page, then look at the list of items detected, such as "Product snippets".
- Click an item to see the facts Google read: name, price, availability, rating.
- Check any errors (things Google needs that are missing) and warnings (things it recommends).
Test one product, one blog post and your home page. If you want to see every label on a page, including types Google doesn't use for rich results, the Schema Markup Validator shows them all.
Common structured data problems on Shopify
The price is wrong. Google's documentation asks for a period as the decimal separator, so 34.50 rather than 34,50. Stores that display prices in a European format can end up with a price in the label that Google misreads. Compare the price in the test with the price on the page.
Products show as out of stock. The label's stock status usually follows your Shopify inventory. If you sell on backorder or dropship, Shopify may show zero stock while you're happy to take orders, and Google then sees "out of stock".
No stars, even with reviews. Check whether the rating appears in the Rich Results Test at all. If it doesn't, your review app isn't adding it to the label. If it does, Google is choosing not to show stars for that search, which is its call.
Two sets of product labels. If your theme and an app both add Product labels, the test shows two products for one page. Keep one, ideally the more complete one, and turn the other off.
Labels that don't match the page. Google's guidelines say structured data should describe content shoppers can see. A rating or price in the label that isn't on the page can cost you eligibility.
Review stars depend on your review app and on Google
Stars need two things. First, a rating must be in your product label, which depends on your review app. Some review apps add it themselves; others store ratings in your product data for your theme or another app to use. Check your review app's settings or help pages.
Second, Google has to choose to show them. Even with a valid rating that passes the test, Google decides per search whether stars appear.
Adding structured data to Shopify without code
You can edit your theme's code to add or fix labels, but changes can be lost when you update or switch themes. The alternative is an app embed: a small piece of an app that you switch on in your theme editor under App embeds, which adds code to every page without changing your theme files.
Ongoing SEO works this way. Turn on its app embed and it adds labels built from your live Shopify data: Product with an offer per variant (price, currency and stock), barcodes as GTIN, Article for blog posts, and Organization with your logo, contact details and social profiles. If you use one of the seven review apps it reads (Shopify Product Reviews, Loox, Yotpo, Stamped, Reevio, Eggviews or KudoBuzz), it includes your rating and review count. Settings cover two of the problems above: you can choose comma or period decimal prices, and tell search engines to treat products as in stock if you sell on backorder.
If you have a shop front, the app's Local SEO settings add LocalBusiness labels with your address, an adjustable map pin and opening hours for each day. The app doesn't remove your theme's own labels, so run the Rich Results Test after turning it on and switch off whichever set you don't need.
Structured data is one part of a store's search setup. Our Shopify SEO checklist covers the rest, including meta descriptions.
FAQ
Does Shopify add structured data automatically?
Shopify itself doesn't add a fixed set. Your theme decides what's included, and many themes add basic Product labels to product pages. Run a product page through Google's Rich Results Test to see what yours has.
What is JSON-LD in Shopify?
JSON-LD is the format most Shopify themes and apps use to write structured data. It's a block of text in the page's code that lists facts like price and stock for search engines, separate from what shoppers see.
Will structured data get my products star ratings in Google?
It makes them possible, not certain. Your product label needs a rating from your review app, and Google decides whether to show the stars for a given search.
Does structured data improve my Google ranking?
Google doesn't describe it as a ranking boost. It changes how your listing can look, adding details like price and stock, which can help shoppers choose your result.
How do I check my Shopify structured data?
Paste a page address into Google's Rich Results Test. It lists the labels it found, the facts in them and any errors or warnings.
Can I have too much structured data?
Duplicate labels are the usual issue, for example when a theme and an app both describe the same product. Keep one complete set per page.