Product Variant Structured Data: Help Google Understand Size, Colour and Model Options
Implement ProductGroup and Product variant structured data for ecommerce catalogues, with guidance for single-page and multi-page variant URLs.
By Chamko Research Team Updated 8 min read
Quick answer
An Indian apparel store sells one kurta design in six sizes and four colours. A furniture retailer offers a sofa in different fabrics and dimensions. An electronics shop lists a laptop with several RAM and storage configurations.
An Indian apparel store sells one kurta design in six sizes and four colours. A furniture retailer offers a sofa in different fabrics and dimensions. An electronics shop lists a laptop with several RAM and storage configurations. To shoppers, these are variations of one underlying product family. To a search engine, a catalogue with separate URLs and inconsistent product data can be harder to interpret.
Google's product variant structured data uses ProductGroup together with Product to describe related variants. The properties variesBy, hasVariant and productGroupID help express the relationship between the parent product family and its specific options. Correct markup can make product pages eligible for variant information in merchant listing experiences, but eligibility is not a guarantee that a rich result will appear.
This guide explains the data model, URL choices and validation process.
Understand the product family and the individual variant
A product group describes the shared product family. Each product variant represents a specific purchasable configuration, such as a particular colour and size.
For example, "Classic cotton shirt" may be the group name. "Classic cotton shirt, navy, size M" is one variant. Another variant may be the same shirt in white, size L. The group can share common properties where appropriate, while each variant needs its own identifying information and offer details.
Google's documentation identifies ProductGroup as a way to help Search understand that variants belong to the same parent product. It recognises properties including variesBy, hasVariant and productGroupID, in addition to the Product structured data.
Choose a URL architecture before writing markup
Google documents two broad patterns.
Single-page variant selector: All options are available on one canonical product page. A customer selects colour or size, and the page updates the displayed image, price or availability. For this architecture, Google describes one distinct canonical URL for the overall ProductGroup, typically the base URL without a variant preselected.
Multi-page variant URLs: Each important variant has its own URL and can be preselected directly. Google says each page should have complete, self-contained markup for the entities defined on that page. Each variant URL should load the correct selected option, including image, price and availability, and allow the shopper to add that variant to the cart.
Do not generate variant URLs that all display the same default product. A URL is only useful as a variant URL if it consistently selects the correct variant in the browser and on the server-rendered page.
Understand the key properties
| Property | Purpose | Implementation consideration |
|---|---|---|
ProductGroup |
Describes the family of related variants | Use a meaningful group name |
variesBy |
Identifies the properties that distinguish variants | Use supported variant dimensions such as size or colour |
hasVariant |
Connects the group to its individual Product variants | Ensure the listed options exist on the page |
productGroupID |
Gives the group a stable identifier | Keep it consistent across the family |
Product |
Describes an individual purchasable variant | Include the appropriate Product properties |
sku or gtin |
Identifies the specific variant | Use real identifiers, not invented values |
Google's technical guidance requires each variant to have a unique ID in its corresponding markup, such as SKU or GTIN, and each group to have a unique group identifier. Do not reuse one SKU for every size if the store's inventory system treats them as separate sellable units.
Design the data source before implementing JSON-LD
A common mistake is to hand-write structured data separately for every product page. That approach becomes fragile when a catalogue has thousands of variants and inventory changes daily.
Create a source-of-truth record for each product family. The record should include a group ID, group name, variant dimension, variant ID, URL, image, price, currency, availability and product identifiers where applicable.
The website template can then generate the structured data from the same product records that power the visible page. The goal is not merely to produce valid JSON-LD; it is to ensure that the markup describes what the shopper can actually select and purchase.
For a product with three colours and four sizes, the system may have twelve purchasable variants. If two sizes are unavailable, those variants should not be marked as in stock simply because the parent product has inventory in another size.
Single-page implementation workflow
For a single-page selector:
- Choose one canonical URL for the product family.
- Ensure the page displays all available variants.
- Decide which dimensions distinguish the variants.
- Generate a stable
ProductGroupidentifier. - Include each variant in the group's structured data.
- Add the relevant
ProductandOfferinformation for each variant. - Ensure the selected option changes the visible image, price and stock state.
- Test the canonical page and the structured data after deployment.
Google's documentation notes that the single-page setup should use one distinct canonical URL for the overall group. Avoid creating multiple competing canonical URLs for the same group unless the actual page architecture requires a different approach.
Multi-page implementation workflow
For multi-page variants:
- Give each variant a stable URL that can be opened directly.
- Ensure the URL preselects the correct colour, size or configuration.
- Display the matching image and price on initial page load.
- Generate complete markup for the group and the relevant variant entities on each page.
- Give each variant a unique identifier.
- Use the same group identifier across the family.
- Link the variant pages through the visible selector or navigation.
- Confirm that each page works without relying on a previous browser session.
Google explains that multi-page variants do not have one single canonical URL representing the ProductGroup in the same way as a single-page setup. Each page should contain self-contained markup for its entities. Follow the current official examples for the exact graph structure.
Validate the markup against the rendered product
Use the Rich Results Test and Search Console's available product or merchant listing reports to check for structured data issues. A successful test means the tool can parse the markup and identify eligible properties; it does not guarantee a rich result.
Test a representative sample:
- One product with a single variant.
- One product with many options.
- One variant that is out of stock.
- One multi-page variant URL.
- One product with a price change.
- One product with a discontinued option.
Compare the markup with the visible page. If the page displays a selected blue shirt at ₹1,499, the structured data for that URL should not describe a red shirt at ₹1,799.
Common implementation mistakes
Reusing the same SKU across variants
Each variant should have a unique identifier. A group identifier is not a replacement for the variant SKU or GTIN.
Marking every option as available
Availability belongs to the specific variant. If a size or colour is unavailable, reflect that in the page and structured data.
Using variant URLs that do not preselect the option
A URL should load the selected variant directly. A URL parameter that is ignored by the page does not create a meaningful variant destination.
Duplicating incomplete group markup across pages
Google says multi-page pages need full, self-contained markup for the entities defined on that page. Follow the current examples rather than relying on hidden data from another URL.
Expecting structured data to force rich results
Markup creates eligibility when requirements are met. Google decides whether and how eligible results appear.
A catalogue QA checklist
- Product families have stable group IDs.
- Each sellable variant has a unique identifier.
-
variesBymatches the actual selector dimensions. - Every listed variant exists and can be selected.
- URLs resolve to the correct selected option.
- Price, image and availability match the visible page.
- Single-page and multi-page canonical choices follow the appropriate pattern.
- Structured data passes testing and is monitored after template releases.
Frequently asked questions
What is ProductGroup structured data?
ProductGroup describes a family of related product variants. Google recognises properties such as variesBy, hasVariant and productGroupID to help understand the relationship.
Do I need Product markup as well as ProductGroup?
Yes. Google's product variant guidance says to add Product structured data in addition to the variant-group properties, following the applicable requirements for merchant listings or product snippets.
Does every variant need a unique SKU?
Google's technical guidance requires a unique ID for each variant, for example a SKU or GTIN. Use the actual identifiers maintained by the merchant.
Should every colour have a separate URL?
Not necessarily. A single-page selector can represent variants on one canonical product URL. Multi-page variant URLs are also supported when each URL preselects the correct option and has complete markup.
Will ProductGroup guarantee variant-rich results?
No. Correct markup can make a page eligible for variant information in merchant listing experiences. Google does not guarantee that a particular rich result will be shown.
What should I do when one size is out of stock?
Represent the availability of that specific variant accurately on the page and in the structured data. Do not mark the entire group as available merely because another size is in stock.
Conclusion: keep the variant model consistent across the store
Product variant markup works best when the ecommerce data model, URL architecture, visible selector and structured data all describe the same purchasable options. Decide whether variants live on one page or separate preselected URLs, assign stable group and variant identifiers, and test stock and price changes. The main benefit is clearer machine-readable product relationships—not a guaranteed visual enhancement in Search.
Chamko Marketing focuses on local profile workflows rather than ecommerce catalogue engineering. Retailers can manage their local business presence separately while assigning variant data integrity to the ecommerce development and merchandising teams.