In this post
To add product schema, you place a block of JSON-LD in the HTML of each product page. It names the product, points to an image and gives an offer with a price and currency. Those are the fields Google lists as required for merchant listings.
What is product schema and why does a store need it?
Product schema is structured data that tells Google, in a fixed format, what a page is selling. Without it, Google has to guess the price and stock status from your page layout. With it, you're making the page eligible for richer shopping results.
Notice the word eligible. Google's documentation describes eligibility, not a promise that your price or stars will appear. The markup just removes the guesswork.
Google splits this into two experiences. Product snippets are for pages where people can't buy directly. Merchant listings are for pages where they can, and they allow shipping and return details too. A store's product pages belong in the second group, and meeting those requirements covers the first as well.
A small example helps. Say you sell a $49 canvas bag in two colours. Each colour page should carry its own name, image, price in USD and stock status, matching what the shopper reads on the page. That's the whole job, repeated for every product.
Which properties does product schema need?
Start with what Google's merchant listing guide marks as required.
- Product: name, image and offers.
- Offer: a price above zero and a currency, such as USD for a US store.
The offer has to be a plain Offer, not an AggregateOffer, because you're the seller. Google also prefers crawlable images, ideally in 16:9, 4:3 and 1:1 ratios.
Then add the recommended fields you can fill in honestly: brand, description, sku, a GTIN where you have one, availability, shipping details, a return policy and reviews. Don't add a field just to fill the box, and don't guess at values you can't check. If you don't have a barcode number, leave it out.
How do you add product schema to Shopify or WooCommerce?
Check first. Your theme or an SEO plugin may already output some product markup, and adding a second copy can create conflicting data. Open one product page in the Rich Results Test and see what it finds before you change anything.
If markup is missing or incomplete, you have three routes:
- Switch on the schema option in your SEO plugin, if it has one.
- Edit the theme's product template so it prints the JSON-LD from the live product data.
- Ask a developer to do the template edit for you.
Whichever you pick, the values must come from the same data the shopper sees. Hard-coding a price in the markup is how stores end up showing $49 on the page and $59 to Google after a sale ends.
Google also recommends putting the Product data in the initial HTML. Markup generated by JavaScript can be crawled less often and less reliably. If you're building on Shopify or WordPress, ask whoever builds the template to confirm where the data is printed.
How do you test product schema before going live?
Run a few pages through the Rich Results Test and fix every critical error. Then publish those pages and check them with the URL Inspection tool in Search Console. Make sure robots.txt, a noindex tag or a login wall isn't blocking Google.
Give it several days. Google says crawling and indexing aren't instant, so a clean test today won't show in results tomorrow. If you haven't set Search Console up yet, our guide to setting up Google Search Console covers it.
What mistakes make Google ignore product markup?
Most failures come from a few habits.
- Marking up things shoppers can't see. Google's structured data policies say not to mark up hidden content.
- Using it on category pages. Merchant listings need a page focused on one product, or variants of the same product.
- Selling in two currencies on one URL. Google says to use a distinct URL for each currency.
- Fake or partial reviews. If a page shows several reviews, mark up all of them. Invented ones break the policy.
Spammy markup can bring a manual action. That doesn't change your rankings, but the page loses its eligibility for rich results.
What should you do next?
Pick your best-selling product, test its page today and note what's missing. Fix that one page properly, then roll the same template change across the store. If you'd rather not touch theme files, our e-commerce solutions page shows what we set up for online stores, and you can get in touch to talk it through. Google's rules can change, so check the linked guides before you start.
Common questions
Does product schema guarantee my price or stars show in Google?
No. Google describes the markup as making a page eligible for richer results, not as a promise. Whether anything is shown is Google's decision, so treat it as a way to give Google clean data.
Do I also need Google Merchant Center?
Google recommends using both on-page structured data and a Merchant Center feed, because together they maximise your eligibility. Some experiences can use the feed's price if the page doesn't give one.
Can I mark up reviews my customers left on my own store?
Yes, if they're real and visible on the page. Google says a reviewer's name must be a valid name for a person or team, and that all reviews shown on a page should be marked up, not a hand-picked few.