Product Variant Structured Data: SEO for Size, Colour and Model Options
Implement ProductGroup and Product variant structured data for size,
By Chamko Research Team Updated 7 min read
Quick answer
An Indian apparel retailer sells one kurta design in five colours and four sizes. The product page allows shoppers to select a variant, but the website's structured data describes only one generic product.
An Indian apparel retailer sells one kurta design in five colours and four sizes. The product page allows shoppers to select a variant, but the website's structured data describes only one generic product. Search engines may have difficulty understanding which options belong to the same product family and which details differ by variant.
Google's product variant documentation describes using ProductGroup together with Product structured data. The group represents the shared product family; each variant describes a specific combination such as colour and size. This can help Google understand the relationship between variants and make eligible pages suitable for variant-related search experiences. It does not guarantee a rich result.
1. Decide how variants work on the website
Before writing JSON-LD, document the actual shopping experience.
There are two common patterns:
- Single-page variants: one URL displays a product family and the shopper changes size or colour without navigating to a separate page.
- Multi-page variants: each variant or variant combination has a distinct URL, and selecting an option loads that page.
Google's documentation treats these patterns differently. A single-page site generally has one canonical URL for the overall ProductGroup. A multi-page site needs complete, self-contained markup on each variant page, because each URL must describe the entities available there.
Do not invent variant URLs purely for structured data. The page should let a shopper open the exact option directly and see the matching image, price, availability and purchase control.
2. Understand the ProductGroup relationship
ProductGroup identifies the parent product family. Properties such as productGroupID, variesBy and hasVariant describe the group and the attributes that distinguish variants.
For example, a cotton kurta family might vary by colour and size. The parent group describes the general design and shared properties. Individual Product entities describe “indigo, size M” or “rust, size L”.
Google's documentation identifies supported variant attributes including colour, size, material, pattern, suggested age and suggested gender. Use the attributes that actually distinguish the products. Do not add a property merely because it exists in Schema.org.
3. Keep identifiers stable
Each variant needs a unique identifier in the structured data, such as a SKU or GTIN where applicable. The product group also needs a unique group identifier. If the group identifier is supplied through productGroupID and variant references, keep the values consistent.
An example internal catalogue:
| Entity | Example ID | Variant details |
|---|---|---|
| Product group | KURTA-2026-014 | Cotton printed kurta family |
| Variant A | KURTA-2026-014-BLU-M | Blue, medium |
| Variant B | KURTA-2026-014-BLU-L | Blue, large |
| Variant C | KURTA-2026-014-RST-M | Rust, medium |
These are illustrative identifiers, not official codes. A retailer should use its own inventory identifiers and real product identifiers where required. Never generate a fake GTIN to fill a structured-data field.
4. Choose the correct URL and canonical model
For a single-page variant selector, Google recommends one distinct canonical URL for the overall ProductGroup, typically the base product URL without a preselected variant. The variant choices should still be represented in structured data.
For a multi-page setup, Google says there is no single canonical URL representing the entire ProductGroup when equally important variant pages are distributed across separate URLs. Each page needs complete markup for the entities defined on that page. The product family definition is repeated across pages so that each variant page can be understood independently.
The page must also support direct variant selection through a distinct URL. If a shopper copies the URL for a green size-small shirt, the recipient should see that exact option selected. A URL that always resets to the default colour does not meet the intended experience.
5. Example JSON-LD structure
The following simplified example illustrates a single-page product family. Replace every value with the actual product information and confirm the full required property set against Google's current product documentation before deployment.
{
"@context": "https://schema.org",
"@type": "ProductGroup",
"name": "Cotton printed kurta",
"productGroupID": "KURTA-2026-014",
"variesBy": [
"https://schema.org/color",
"https://schema.org/size"
],
"hasVariant": [
{
"@type": "Product",
"name": "Cotton printed kurta - indigo, medium",
"sku": "KURTA-2026-014-BLU-M",
"color": "Indigo",
"size": "M",
"isVariantOf": {
"@type": "ProductGroup",
"productGroupID": "KURTA-2026-014"
}
}
]
}
This is a structural illustration, not a complete merchant-listing implementation. A page intended for merchant listing experiences must also follow the relevant Product requirements, including offer information and any required properties. Do not publish the snippet unchanged.
6. Align structured data with visible product information
The variant selected on the page should match the data represented in the markup. If the selected variant is out of stock, the visible page and structured data should not describe it as available. If a colour has a different price, the corresponding variant should carry the correct offer details.
Common mismatches include:
- JSON-LD says “blue” while the selected image is black.
- SKU in the markup belongs to another size.
- Variant price is copied from the cheapest option.
- A variant URL redirects to the parent product without selecting the option.
- The page shows one availability state while structured data reports another.
Build the markup from the same product database used to render the page. Avoid maintaining a separate manually edited JSON file that drifts from inventory.
7. Validate the implementation
Use Google's Rich Results Test to check whether the page contains supported structured data and whether detected items have errors. Then inspect the URL in Search Console after deployment. A valid test means the markup meets the tool's technical checks; it does not guarantee that Google will display a rich result.
For multi-page variants, test at least one URL from each variant type. For single-page selectors, test the base URL and confirm that the page exposes all variants correctly. Also test with JavaScript disabled or inspect the initial HTML where practical, because Google recommends putting Product structured data in the initial HTML for merchant pages when possible.
8. Common mistakes
Using ProductGroup without Product entities. Variant markup supplements Product data; it does not replace the product entities required for the intended search feature.
Reusing the same SKU for every variant. Give each variant a unique identifier and keep the parent group ID consistent.
Inventing variant pages. Every URL should represent a real option a shopper can select.
Canonicalising every multi-page variant to one unrelated page. Follow the single-page or multi-page model that matches the actual site.
Marking up details users cannot see. Structured data must represent visible, accurate page content.
Assuming valid markup guarantees enhanced display. Eligibility is not a promise of a particular search appearance.
9. Measure product-family coverage
Track the number of product families with complete variant markup, the number of variant URLs that can be opened directly, structured-data errors, missing identifiers, price or stock mismatches and organic clicks to product pages. Segment by product category and platform template.
When a new colour or size is introduced, make sure the catalogue system creates the correct variant ID, URL behaviour, inventory state and structured data. Treat this as a product publishing workflow, not a one-time SEO task.
Frequently asked questions
What is ProductGroup structured data?
It represents a family of related products that share common attributes but differ by variant properties such as size, colour or material.
Do I need Product and ProductGroup together?
Google's variant guidance says to add Product structured data in addition to product variant properties, following the requirements for the relevant search experience.
Should every colour have its own URL?
Not necessarily. A single-page selector can use one product-family URL. A multi-page site can provide distinct URLs for variants. The implementation must match the real shopping experience.
Can all variants share one SKU?
No. Each variant should have a unique identifier in its corresponding structured data. The product group has its own stable group identifier.
Does ProductGroup markup guarantee variant-rich results?
No. It can make pages eligible for supported experiences when all requirements are met. Google decides whether and how to display results.
What if a variant is out of stock?
Represent the actual state accurately in the product page and structured data. Do not mark an unavailable option as in stock to make it appear more attractive.
Which tool checks the markup?
Use Google's Rich Results Test for supported result eligibility and Search Console reports to monitor issues after publication.
Conclusion: model the catalogue correctly before writing JSON-LD
Good variant markup begins with a clean product catalogue: stable parent IDs, unique variant IDs, reliable URLs and consistent visible details. Choose the single-page or multi-page model based on how shoppers actually select products, then validate the markup against Google's current requirements.
Chamko Marketing helps businesses manage their Google Business Profiles through marketing and optimization features. Product catalogue architecture and variant structured data belong to the ecommerce website workflow, and should be maintained alongside inventory and merchandising systems.
References
- Google Search Central — Product variant structured data: https://developers.google.com/search/docs/appearance/structured-data/product-variants
- Google Search Central — Product structured data: https://developers.google.com/search/docs/appearance/structured-data/product