A product page already shows a buyer the three facts that decide a purchase: what the thing is, what it costs, and whether it can be bought right now. Those facts sit in the page as ordinary text and buttons, which a search engine has to locate and interpret by layout. Product schema states them directly: a block of structured data, written in JSON-LD, that names the product and carries an Offer with its price and availability in labelled fields.
This guide adds Product schema the careful way, using the free Schema Markup Generator on Ovatly, which runs in your browser. The generator builds JSON-LD for six common types: Article, FAQPage, HowTo, Product, LocalBusiness and BreadcrumbList. This guide works through the Product type, with particular care around its rating rule, because ratings are where product markup most often crosses from labelling into invention.
Contents
- Quick answer
- What Product schema actually is
- Price and availability live in the Offer
- The rating rule: both numbers, real numbers, or none
- How to add Product schema, step by step
- Worked example: one product, priced and in stock
- Limitations: what schema cannot promise
- Common mistakes
- FAQs
- Conclusion
- References
Quick answer
Open the Schema Markup Generator, choose the Product type, and fill in the fields with the page's real information: the product's name as the page gives it, and an Offer carrying the price and availability a buyer sees. Add a rating only if the page displays a real one, and then supply both the rating value and the review count, because the form includes a rating only when both are present. Paste the generated block inside the <head> of the page, or just before the closing </body> tag, keeping one block per type per page. Read the tool's note about empty recommended properties, and test the live URL afterwards. The markup makes the page eligible for rich results. It does not guarantee them.
What Product schema actually is
Schema markup is structured data: a standardised vocabulary, maintained at schema.org, for describing things on a page so search engines can read them as facts rather than prose. The Product type describes something offered for sale. In JSON-LD form, it sits inside a <script> block and changes nothing a visitor sees; it repeats, in labelled fields, what the page already displays.
For a product, the most useful fields are the name and the Offer. The Offer is the commercial part of the markup: it states the price, the currency, and the availability, meaning whether the item is in stock, out of stock, or in another state the page claims. A search engine that trusts those fields can print the price and availability in the result itself: a buyer comparing three listings can discard the out-of-stock one without clicking. That clarity is why the fields have to be accurate.
Price and availability live in the Offer
The generator's second step is the discipline for the whole guide: fill in the fields with the page's real information. For the Offer, the price in the markup is the price on the page, in the same currency, and the availability matches the stock state the buyer would meet at checkout. If the page shows a sale price, the Offer carries the sale price. And because product pages change, every price edit and stock-out has to reach the schema too; treat the block as part of the page's content, maintained with it.
The rating rule: both numbers, real numbers, or none
Structured data must describe content visible on the page. Marking up hidden or invented content, including fake ratings and review counts, breaches search engine guidelines. The generator enforces a piece of that rule mechanically: the Product form only includes a rating when you supply both a rating value and a review count. One number without the other produces no rating.
That mechanical rule is a floor, not the whole obligation. Both numbers must also be real: the average rating your buyers actually gave, and the count of reviews behind it, matching what the page shows. A product with no reviews has no rating to mark up, and the honest block leaves it out entirely.
How to add Product schema, step by step
- Open the Schema Markup Generator and choose Product, the type that matches the page.
- Fill in the fields with the page's real information: the product name as the page states it, and the Offer with the current price, its currency and the current availability.
- If the page displays a genuine rating, enter both the rating value and the review count. If it does not, leave both empty and let the form omit the rating.
- Copy the generated script block. The generator validates that the output is well-formed JSON and escapes closing script tags inside your text, so the block cannot break the page.
- Check the guidance note for missing recommended properties, and fill a flagged field only when the page genuinely carries that information.
- Paste the block inside the
<head>of the page, or just before the closing</body>tag, keeping one block per type per page. After publishing, test the live URL with Google's Rich Results Test or the Schema.org validator.
Worked example: one product, priced and in stock
Imagine a page selling a ceramic pour over coffee dripper for 24.00 US dollars, shown as in stock, with no reviews yet. The generator produces a block shaped like this:
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "Product",
"name": "Ceramic Pour Over Coffee Dripper",
"offers": {
"@type": "Offer",
"price": "24.00",
"priceCurrency": "USD",
"availability": "https://schema.org/InStock"
}
}
</script>
There is no rating in that block, deliberately: the page has no reviews, so there is nothing honest to mark up. If the product later collects real reviews and the page displays, say, an average of 4.6 from 18 reviews, the form would add an aggregate rating section carrying both figures. Until then, the block above is complete: name, price, currency and availability, each copied from what the buyer sees.
Limitations: what schema cannot promise
Schema makes a page eligible for rich results; Google decides whether to show them, based on quality, relevance and its current feature set. A correct Product block may never surface its price in your listing, and that outcome is normal, not a fault in the markup. Features also change: FAQ rich results, for example, are now limited to certain authoritative sites.
The generator's "missing properties" note is guidance based on schema.org's required and recommended properties for the type. It is not a promise of a rich result, and never an instruction to invent values. The tool validates your JSON in your browser, but it cannot see your published page, your current price, or your stock system. Only the live tests see the real page, and only you know whether the figures still match it.
Common mistakes
- Marking up a rating the product does not have. No reviews means no rating in the schema. Invented stars are the clearest breach of the visible-content rule.
- A price in the schema that the page no longer charges. Price changes and sales must be made in the block as well as on the page.
- Availability that flatters the product. Marking an out-of-stock item as in stock sends buyers to a dead end and misdescribes the page.
- Describing a product the page does not sell. The markup belongs on the page that takes the order, with that page's own price and stock state.
FAQs
When does the Product markup include a rating? Only when you supply both a rating value and a review count. Structured data must describe content visible on the page, and marking up invented ratings or review counts breaches search engine guidelines.
Does adding schema guarantee rich results? No. Schema makes a page eligible for rich results; Google decides whether to show them based on quality, relevance and its current feature set. FAQ rich results, for example, are now limited to certain authoritative sites.
Where do I paste the JSON-LD block?
Inside the <head> of the page, or just before the closing </body> tag. Both placements are accepted; keep one block per type per page.
Can I mark up content that is not on the page? No. The markup must match the visible page. A FAQ block for questions the page never asks is exactly the kind of mismatch that leads to manual actions or ignored markup.
How do I test the markup after adding it? Use Google's Rich Results Test or the Schema.org validator on the live URL. This tool verifies the JSON is valid and complete against its field guidance, but only the live tests see your real page.
Conclusion
Product schema earns its place when it tells the truth efficiently: the product's name, its real price and currency, its honest availability, and a rating only when the page shows a genuine one backed by both a value and a count. The Schema Markup Generator supports that discipline by validating the JSON, flagging empty recommended properties and refusing a half-supplied rating, all in your browser. Keep the block maintained alongside the page, test the live URL, and expect eligibility, not a guarantee.
Related guide: How to Add Article Schema to a Blog Post. More guides like this live in the SEO Tools guides archive.
References
- Schema.org, on the Product type and its properties: https://schema.org/Product
- Google Search, Rich Results Test: https://search.google.com/test/rich-results