AI visibility

What is structured data? Product schema and JSON-LD

What is structured data and how do you write product schema for a store? Product, Offer and rating fields, the Rich Results Test and a JSON-LD checklist.

RoigoPublished: 14 min read

In short

  • Structured data is markup that describes the information on a page (product name, price, availability, rating) in a standard format machines can read; online stores use the schema.org vocabulary in the JSON-LD format.
  • On a product page the Product type with the Offer's price and currency fields is the foundation; Google's rich result documentation lists which fields are required and which recommended, and asks that the markup say the same thing as the visible text.
  • Write rating and review fields only when real reviews are visible on the page; a made-up rating, or one that isn't on the page, breaks the rules.
  • Markup guarantees neither a rich result nor an AI recommendation. According to Google no special markup is needed for its AI features; the page text is the real work and the markup is a machine-readable copy of it.
  • You check your own page with the Rich Results Test. Roigo GEO Studio also looks for business schema on the home page and product or list schema on topic pages, and gives you ready store and Q&A schema.
In this guide
  1. What is structured data?
  2. What is a rich result and what does product schema do?
  3. Which fields does a product page need?
  4. Rating and review fields: no made-up ratings
  5. When do BreadcrumbList and FAQPage help?
  6. What about products with variants?
  7. How to test your own page
  8. Product schema on your ideasoft or ikas store
  9. Does structured data affect AI answers?
  10. How GEO Studio checks schema
  11. Product schema checklist
  12. Frequently asked questions
  13. Sources

Structured data labels the information on a page separately for machines rather than people: “this is a product, its name is this, its price is that, it's in stock”. Product schema is the form this markup takes on store pages. Written correctly, it helps Google understand the page and, where eligible, show the price, availability or rating in search results.

This guide explains what product schema is made of, which fields are required, the rule for ratings, how to test it, what to check on your ideasoft or ikas store and, without overstating, what markup does for AI answers. Whether bots can get into your site is a separate topic: see the robots.txt and llms.txt guide.

What is structured data?

According to Google, structured data is markup that gives information about a page's content in a standard format, and Google uses it to understand the page and to show special appearances in search results (Google). Three pieces are enough to know:

  • schema.org: the shared vocabulary that defines the names and fields of things such as product, price, business and question. “Product”, “Offer” and “BreadcrumbList” are types in this vocabulary.
  • JSON-LD: the way of writing the vocabulary into a page. It sits in the page's code as a script block of the application/ld+json type, written apart from the visible content. Google recommends the JSON-LD format.
  • Microdata: a way of writing the same vocabulary as attributes inside the visible HTML. Some themes mark up price and rating this way; Google reads it too.

Structured data doesn't replace the page. Writing information into markup that isn't visible on the page goes against Google's rules; the markup is a machine-readable summary of the real text on the page.

What is a rich result and what does product schema do?

A rich result shows extra information such as price, availability, rating or an image alongside the title and description in a search result. Google's product documentation divides these appearances into two groups: product snippets and merchant listings (Google). Markup makes a page eligible for these appearances; Google decides whether they show, and the documentation doesn't guarantee display.

So the job of product schema isn't to raise your ranking; it's to describe the page correctly and completely. For the shopper the benefit is seeing more information in the result; for you it's that this information isn't misread.

Which fields does a product page need?

According to Google's product documentation, a product snippet needs name plus one of offers, review or aggregateRating; to appear as a merchant listing you need the product name, an image, and the price with its currency (Google). The table below gives a practical summary for a store's product page. The documentation's current list is the one that applies; open it before you publish.

FieldIn Google's documentationWhat to write
nameRequiredThe product name on the page; expected to match the heading
imageRequired for merchant listingsThe address of the product image; the one visible on the page
offers: price, priceCurrencyPrice and currency requiredThe price as a number with a point for decimals and no currency symbol or thousands separator (1299.90); the currency as a code such as TRY
offers: availabilityRecommendedStock status; if the page shows “in stock”, the markup must say the same
brand, sku, gtinRecommendedBrand name, stock code and, if you have it, the barcode; helps match the product to the same product on other sites
descriptionRecommendedA summary of the product description on the page
shippingDetails, hasMerchantReturnPolicyRecommended (merchant listing)Shipping and returns terms; must match the terms written as text on the page
aggregateRating, reviewRecommended; only if realRating and count from real reviews visible on the page; see the rule below

Why price and stock must match

Google's rule is clear: markup must be consistent with the content visible on the page (Google). A page with one price on the product card and another in the markup damages both its eligibility for rich results and trust in the information. The most common mistake is on stores whose prices change with campaigns or exchange rates: the theme updates the price while the schema keeps the old one. That's why schema shouldn't be hand-written; it should be generated from where the price comes from, your store platform.

Rating and review fields: no made-up ratings

aggregateRating and review are the most misused fields. According to Google's review documentation, the reviews and ratings you mark up must come from real users and be visible on the page (Google). The rule is simple:

  • If the page has no real customer reviews, don't write a rating field at all. Leaving it out is always safer than an invented five stars.
  • Keep the rating and review count in line with the reviews visible on the page. If the page shows 12 reviews, don't write 120 in the markup.
  • Don't mark up reviews taken from another site, or written by you, as customer reviews.

If you show Google reviews on your site, don't assume that means markup; check the markup yourself in the page source (see the testing section below). For how to add reviews to your site, see the Google reviews widget guide.

When do BreadcrumbList and FAQPage help?

BreadcrumbList describes where a page sits on the site (Home › Category › Product); Google may use it to show the page's path in search results (Google). If your breadcrumb trail is visible on the page, marking it up is low-risk and clarifies the relationship between category and product.

FAQPage marks up a Q&A section on the page. A caution: according to Google's documentation, the FAQ rich result is shown only for well-known, authoritative government and health sites (Google). For a store the goal isn't an expandable question box in search results; it's that the questions and answers on the page match the markup. Don't mark up a question that isn't visible, and write the answer the same as the text on the page.

What about products with variants?

For products with variants such as size and colour, Google's product documentation has a separate section on variants (Google). A practical rule: if each variant's price and availability show separately on the page, they should be separate in the markup too; if the page shows only a “starting from” price, a single price range is also possible, but don't write a price that isn't visible on the page. Don't hand-write markup for a product with variants; check whether your platform or theme generates it.

How to test your own page

The easiest part of writing product schema is that you can test it for free. Google's Rich Results Test takes an address or code and shows which structured data types it found and which fields are missing or wrong.

  1. Paste a product page's address into the Rich Results Test and run it.
  2. In the result, see whether types such as product snippets or merchant listings are found; if none is, the page has no markup or it can't be read.
  3. Fix the errors (a required field missing) first; warnings (a recommended field missing) come after.
  4. Compare the price, currency and availability it found with what you see on the page; they must match.
  5. If the test isn't enough, open the page source (right click, view source) and search for application/ld+json; see how many blocks there are and whether the same product is marked up twice with different values.
  6. After the fix you can ask Google to recrawl the page; see how in Google's documentation.

Google's tool Search Console also provides structured data reports for the whole site (such as product snippets and merchant listings) and lists the pages with errors; the report's name and look can change in the interface. The Rich Results Test looks at a single page, Search Console at the whole site.

Product schema on your ideasoft or ikas store

Store themes usually print some markup on the product page, but which fields they print and in what form depends on the theme and the platform version. We have no document confirming this for every store; the way to check is clear though: open your product page in the test tool above and see what it finds. As a starting point there are the SEO help pages of ikas and ideasoft; they may not cover structured data, so if you can't find it, ask the platform's support.

  • If a field is missing: if the test shows merchant listing, brand, gtin or availability missing, see whether the platform's product fields offer a way to fill it. Often a missing field comes from that information never having been entered on the product.
  • If the same product is marked up twice: if the theme and an app each print a Product, the page can describe the same product with two different values. Reduce it to one source.
  • If the price differs: if the price in the markup differs from the price on the page, it's a theme or platform setting; fix the source rather than editing by hand.

Roigo's SEO Studio writes the title, meta description and product description; it doesn't add schema code and doesn't touch price and stock fields (they come from the platform, and the price in the schema comes from there too). If your description is carried into the schema's description field, the markup stays current when the text changes. For how to write the fields, see the guides on product descriptions, ideasoft product SEO and ikas product SEO.

Does structured data affect AI answers?

The honest answer: its effect shouldn't be overstated. Google says no special markup is needed for its AI features and that being indexed and eligible to show with a snippet is enough; what it asks of structured data is that the markup is consistent with the visible text (Google). For ChatGPT search, the published documentation contains no structured data requirement; that isn't proof that it doesn't help, only that it isn't required.

The practical upshot: give the information on the page as text first (price, shipping, returns, who it suits), then add markup as a consistent copy of that text. Adding markup to a page without the text won't bring you forward in AI answers. For the whole picture of AI visibility, see What is GEO?.

How GEO Studio checks schema

When a check starts, Roigo's GEO Studio reads your site's pages; it doesn't call AI and costs nothing. Three rules are evaluated for schema:

  • Store schema: does the home page have a business type such as Organization, OnlineStore, OnlineBusiness, Store, LocalBusiness or Corporation.
  • Page schema: does at least one of the topic pages read (category, product or guide) have Product, ProductGroup, ItemList, CollectionPage, OfferCatalog or BreadcrumbList.
  • Q&A: do the pages have FAQPage data or headings ending with a question mark.

This check looks at the type, not at the correctness of the fields: if a page has a Product type the rule passes; a missing or wrong price field is something the Rich Results Test shows. The page review, in turn, extracts as facts which JSON-LD types the page read contains and whether its product data has a price, rating and reviews; these are an order of places to look, not a diagnosis. For a page that can't be read, the rule stays silent and doesn't count towards the score.

The ready outputs include store schema (OnlineStore with WebSite) and Q&A schema; both are generated only from the site's own information: store name, domain, home page description and the test questions. In the Q&A schema the answer is left blank: you write the answers and keep them the same as the text visible on the page. Product schema isn't generated, because price and stock come from the platform and it's the platform or theme that has to produce them. GEO Studio doesn't write code onto your site; you or whoever manages your theme add it.

On the Free trial plan your site is checked once (per site and brand) and the readiness rules are open in the report; the ready outputs are in the full report. The full report and weekly tracking come with paid plans.

Product schema checklist

Frequently asked questions

What is structured data?

Structured data is markup that describes the information on a page (such as product name, price, availability and rating) in a standard format machines can read. Stores use the schema.org vocabulary, most often in the JSON-LD format. Google uses it to understand the page and, where eligible, to show rich results.

Which fields are required in product schema?

According to Google's documentation, a product snippet needs the product name plus one of offers, review or aggregateRating; a merchant listing needs the product name, an image, and the price with its currency. Recommended fields (brand, availability, barcode, description) add further value. The documentation's current list is the one that applies.

Should I use JSON-LD or microdata?

Google recommends the JSON-LD format; it sits in a block apart from the page's visible content, which also makes it easier to maintain. Microdata is read too. What matters more than the format is that the markup is consistent with the visible text.

Does product schema put me ahead in ChatGPT and AI answers?

There's no proof of that and we don't promise it. Google says no special markup is needed for its AI features; the published documentation for ChatGPT search contains no structured data requirement. Give the information on the page as text first, and make the markup a consistent copy of it.

How do I test my product schema?

Paste your product page's address into Google's Rich Results Test: it shows the types found, errors and warnings. For the whole site, look at the structured data reports in Search Console. You can also search the page source for `application/ld+json` to see how many blocks there are.

Do ideasoft and ikas themes add product schema themselves?

We have no document confirming this for every store; it can vary with the theme and platform version. Run your product page through the Rich Results Test to see what your theme prints; if markup is missing or duplicated, write to the platform's support.

Sources

The official documents the information in this guide is based on.

  1. developers.google.com/search/docs/appearance/structured-data/intro-structured-data
  2. developers.google.com/search/docs/appearance/structured-data/product
  3. developers.google.com/search/docs/appearance/structured-data/review-snippet
  4. developers.google.com/search/docs/appearance/structured-data/breadcrumb
  5. developers.google.com/search/docs/appearance/structured-data/faqpage
  6. search.google.com/test/rich-results
  7. developers.google.com/search/docs/crawling-indexing/ask-google-to-recrawl
  8. search.google.com/search-console/about
  9. support.ikas.com/tr/seo-alanlari
  10. ideasoft.com.tr/yardim/kategori-sayfasi-seo-ayari
  11. developers.google.com/search/docs/appearance/ai-features

Are your pages ready for AI and Google?

Enter your site address; we'll look at your business and page schema, robots.txt and llms.txt, and ask ChatGPT and Gemini the questions your customers ask.

No card required · No store connection needed · Your first report is free

Related guides

All guides