A shirt in three colors and four sizes can create twelve separate purchasable offers in a store. Users can see from the interface that these belong to the same product family; however, when only a generic Product markup is sent to Google, it may not be clear which colors and sizes are variants of the same main product. Similar issues occur with phone storage capacities, furniture material and color options, or shoe sizes and fits.
Product variant schema links variants together under ProductGroup, making this structure machine-readable. The shared attributes of the main product family are set at group level, while the price, stock, image, and identity of each purchasable color, size, or configuration are specified in a separate Product object.
This guide does not repeat general product schema rules or product page design. The focus is on ProductGroup, hasVariant, variesBy, isVariantOf, single-page and multi-page URL architecture, and consistency between Merchant Center variant data.
What is product variant schema?
Product variant schema is a structured data model that links the purchasable versions of the same main product, which differ in specific attributes, to Google. Google supports the ProductGroup class along with the variesBy, hasVariant, and productGroupID properties to group products with differences such as size, color, material, pattern, or technical configuration Google Product Variant Structured Data Guide.
ProductGroup is not the offer purchased directly. It represents the shared product family. The actual purchasable options are the separate Product variants within the group and the Offer objects linked to them.
ProductGroup.What problem does ProductGroup solve?
Schema.org defines the ProductGroup type only as a group representing products that vary in well-defined attributes. The group can carry shared brand, description, material, or review information, while variants contain their own fields such as color, size, and offer Schema.org ProductGroup Definition.
- Variants of the same product family are clearly linked together.
- Google can understand which attributes vary.
- Each variant can have its own price, stock, image, and product code.
- Repeated shared information can be managed at group level.
- Product variants can be interpreted more accurately for merchant listing experiences.
What is the difference between a variant and a similar product?
| Scenario | Variant? | Reason |
|---|---|---|
| Black and white versions of the same shirt | Yes | Only color differs |
| Sizes 40 and 41 of the same shoe | Yes | Only size differs |
| 128 GB and 256 GB versions of the same phone | Yes | A defined technical specification differs |
| Two different jacket models from the same brand | No | Model and product identity differ |
| Single item vs. a pack of three | Usually no | Offer structure and product quantity differ |
| Standard product vs. personalized custom production | Depends on the business model | Whether the options belong to the same product family should be evaluated |
Incorrect grouping can cause unrelated products to be treated as one main product. The group should only vary in the attributes specified by variesBy.
What are the core components of the ProductGroup structure?
| Attribute | Purpose | Example |
|---|---|---|
ProductGroup | Represents the main product family | The same shirt model |
productGroupID | The group's unique parent identifier | TSHIRT-100 |
variesBy | Lists the attributes that distinguish the variants | color, size |
hasVariant | Contains the Product variants linked to the group | Black-S, Black-M |
isVariantOf | Links the Product object to the group | Relationship from the variant to the parent group |
sku or gtin | Identifies each variant uniquely | TSHIRT-100-BLK-M |
Offer | Carries the variant's price, stock, and URL | 899 TRY, InStock |
Google wants each variant to have a unique identifier in its structured data, and each product group to be uniquely identified through productGroupID or inProductGroupWithID on the variants Google Product Variant Structured Data Guide.
How should variesBy be used?
variesBy specifies which attributes make the products in the group differ. Schema.org properties can be written as full URIs:
"variesBy": [
"https://schema.org/color",
"https://schema.org/size"
]
If a product family varies only by color and size, fields such as processor, pattern, or material that do not actually define a variant should not be added. If an electronic product needs custom dimensions such as memory, screen, or processor that are not direct Schema.org properties, compatibility with Google's supported model and the visible page data should be assessed separately.
How do you mark up a single-page variant structure?
In a single-page structure, all variants are selected on the same product page. When the user changes color or size, the image, price, and stock can change without the page reloading. Even if a variant can be opened directly through a query parameter, there is still a single main page representing the overall product family.
Google wants a single canonical URL used for all variants in a single-page structure. This URL is usually the base product address opened without any variant selected Google Product Variant Structured Data Guide.
{
"@context": "https://schema.org",
"@type": "ProductGroup",
"name": "Organik Pamuk Tişört",
"productGroupID": "TSHIRT-100",
"variesBy": [
"https://schema.org/color",
"https://schema.org/size"
],
"hasVariant": [
{
"@type": "Product",
"sku": "TSHIRT-100-BLK-S",
"color": "Siyah",
"size": "S",
"offers": {
"@type": "Offer",
"url": "https://example.com/tisort?renk=siyah&beden=s",
"price": "899.00",
"priceCurrency": "TRY",
"availability": "https://schema.org/InStock"
}
}
]
}
Should the markup on a single page change with the selection?
In Google's single-page example, although the visible price and stock change as the user selects variants, the markup on the page does not have to be constantly rewritten through user interaction. The initial HTML or rendered structure can fully describe the product group and its supported variants.
That said, the visible page should not contradict the structured data. If opening a specific variant URL directly shows that variant as preselected, the offer URL, image, stock and price must match the relevant variant.
How do you mark up a variant structure with separate URLs?
In a multi-page structure, color or other main options live on separate pages. For example, the green product and the blue product may have different paths, and sizes can be selected within those pages. Each variant page should not rely on a single identifier from another page; it should fully and independently describe the entities in its own markup.
Google wants the full ProductGroup definition repeated on the variant pages of multi-page sites. Variants on other pages can be referenced by URL only; this way Google can discover the different pages Google Product Variant Structured Data Guide.
- Each page fully describes the variants it displays.
- The shared group ID stays the same across all pages.
- Other variant pages can be referenced with
url. - Each page's structured data should be understandable on its own.
- Pages should be linked to one another with real HTML links.
How should canonical be used on separate variant URLs?
In a multi-page structure, if every variant page is independent and equally important, pointing all pages to a single parent URL as canonical is not correct. Google notes that in this model there is no single canonical URL for the whole ProductGroup; because the variants are spread across different, important pages.
Every indexable variant page should usually point canonical to its own clean URL. However, if the URL only carries a tracking, session or unnecessary sorting parameter, the clean URL of the same variant should be chosen as canonical. The canonical decision should be based on real URL and content equivalence, not on the product group.
Does every variant need its own URL?
Structured data does not require a separate indexable page for each variant. If a single product page can present all options to the user, the single-page model can be used. Still, every variant offer sent to Merchant Center should have a permanent URL that opens with the relevant color and size preselected, which makes data matching easier.
Google Merchant Center recommends sending each variant in the same product group as a separate record with a unique product ID and, where possible, offering a variant-specific landing page URL that uses a different path or query parameter Merchant Center item_group_id Guide.
How Should Variant Price and Stock Status Be Shown?
Price and stock should not be a group-level estimate but the real offer of each purchasable variant. If Black-M is in stock, Black-L is sold out, and Blue-M has a different price, each Product variant must have its own Offer object.
priceshould match the visible variant price.priceCurrencyshould use the correct currency.availabilityshould show the real stock status of the selected variant.urlshould open the relevant variant directly.- The image should show the selected color or model.
- SKU and GTIN should belong only to the relevant variant.
Copying one price or stock detail to all variants can conflict with the user experience and with Merchant Center data.
How Should Color and Size Information Be Written?
Variant values should match the information actually shown to the user. A code like “BLK” may be used in the database, but if the visible page says “Black”, an easy-to-understand value should be preferred in the schema and Merchant Center data.
Merchant Center supports the color and size standard fields, and from May 2026 it also supports the variant_option field so variant-defining properties can be stated clearly. For size variants, Google recommends sending both the standard size and variant_option Merchant Center Size Field Guide.
How Does ProductGroup Match Merchant Center's item_group_id?
The productGroupID in structured data and item_group_id in Merchant Center represent the same parent product logic. Although the technical names differ, generating both from the same persistent parent SKU or group ID whenever possible strengthens data consistency.
| Layer | Group field | Variant ID |
|---|---|---|
| Product structured data | productGroupID | sku or gtin |
| Merchant Center | item_group_id | id |
| Product database | Parent SKU / model ID | Variant SKU |
Merchant Center requires that every variant sharing the same group ID have its own product ID and a unique combination of color, size or other variant values Merchant Center item_group_id Guide.
What is Merchant Center variant_option?
variant_option is the current group field that lets you send variant-defining attributes in Merchant Center product data as explicit name and value pairs. For example, values such as color:black, size:m or, for an electronics product, memory:256GB can be used.
Google expects every product within the same item_group_id to use the same attribute names, with each variant having a unique combination of values. The field should be used together with item_group_title and item_group_id Merchant Center variant_option Guide.
This field does not replace Product Variant Schema. It strengthens the variant relationship in the Merchant Center catalog, while structured data helps Google Search understand the product page.
How Should Variant IDs Be Designed?
- Create a stable parent ID for each product group.
- Give every purchasable variant a unique SKU or variant ID.
- Use a GTIN only if the manufacturer has assigned it to that variant.
- Keep variant IDs distinct whenever color, size or capacity changes.
- Never reuse the same variant ID in another product group.
- Do not rely on letter case to make IDs unique.
- Keep the same mapping across structured data, the feed and the order system.
Merchant Center does not allow the same group ID to be reused for different products, and it does not accept uniqueness based on letter case alone.
How Should a Sold-Out Variant Be Handled?
If the product group is still selling but only one size is sold out, turning the whole product page into a 404 is not the right move. The availability value of the sold-out variant should be updated, customers should be clearly informed, and any other options should stay available.
If the variant has been removed for good, the URL lifecycle needs its own review under the separate URL model. With no equivalent new variant, use 404 or 410; if a genuinely corresponding new product exists, a redirect to the right target can be considered. Any variant dropped from the group markup and from Merchant Center data should be cleaned up.
How Do You Test Product Variant Schema?
- Validate a single product page with the Rich Results Test.
ProductGroup, check the group ID and variant relationships.- Confirm that each variant carries a unique SKU or GTIN.
variesByfields match the actual options.- Compare price, stock, images, and URL with the visible page.
- In the single-page model, check the main canonical URL.
- In the multi-page model, confirm that each page carries independent and complete markup.
- Use URL Inspection to test that Google sees the rendered HTML.
- Track template issues in the Search Console Merchant listings report.
- Compare parent and variant IDs in Merchant Center product groups.
Google recommends validating markup with the Rich Results Test, checking it with URL Inspection after it has been published on several pages, and reporting changes through the sitemap Google Product Variant Structured Data Guide.
Common Product Variant Schema Mistakes
- Grouping different models under a single
ProductGroup. - Giving every variant the same SKU or GTIN.
variesByfields with attributes that do not actually vary.- Using one group-level offer instead of variant-specific price and stock.
- Duplicating variant parameters like separate canonical pages in a single-page structure.
- Making all variants canonical to a single parent URL in a multi-page structure.
- Leaving the full group definition out of the other variant pages.
- Writing visible color or size values differently in structured data.
- Separating the site's parent ID from Merchant Center
item_group_id. - Giving two variants in the same group the same color-size combination.
- Not updating the selected variant's URL, price, and stock information with JavaScript.
- Treating a passing Rich Results Test as a guarantee of visibility.
Product Variant Schema Checklist
- Are the products truly variants of the same model?
- Does every group carry a permanent and unique
productGroupID? variesByshow the actual variant dimensions?- Is every variant identified by a unique SKU or GTIN?
- Is price, stock, imagery, and URL specific to each variant?
- Was the right choice made between a single-page and a multi-page architecture?
- Does the canonical structure match the chosen variant URL model?
- Does every page in a multi-page variant setup carry complete markup?
- Does the structured data match the visible content?
- Do Merchant Center group and variant IDs come from the same data model?
- Are color, size, and the new
variant_optionfields consistent? - Have testing and error tracking been automated by template?
Producing variant data from a single source across the product page, ERP, structured data, and Merchant Center can reduce price and stock mismatches as part of an e-commerce integration service.
Conclusion: The Variant Relationship Starts in Your Product Data Model
Product Variant Schema is not just a separate piece of code added to a product page. For healthy results, the main product, variant ID, color, size, URL, price, and stock relationships must be set up correctly in your product database. Structured data reflects this relationship to Google.
Single-page stores need a single ProductGroup with a shared canonical, while structures with separate URLs need an independent and complete group relationship on every page. The productGroupID in structured data, item_group_id in Merchant Center, and the parent SKU in the store should represent the same product family. This consistency is the core technical condition for search engines to understand product variants correctly in e-commerce SEO services.
Tell Google About Your Product Variants Consistently
By reviewing ProductGroup markup, variant URLs, canonical structure, price and stock data, and Merchant Center group fields together, product family relationships can be made reliable.
Get in touch for a variant data analysisFrequently Asked Questions
What is the difference between ProductGroup and Product?
A ProductGroup represents the variant family of a single main product and its shared attributes. A Product is the specific variant that can be purchased by a combination of color, size, or technical specifications.
Do I need a separate Product object for every color and size?
Every unique, purchasable color and size combination should be modeled as a separate variant. Each variant should carry a unique SKU or GTIN, price, stock, and, where possible, a URL that opens directly.
Should variant pages point to the same canonical URL?
In a single-page model, all variants usually use the main product URL as canonical. On separate, indexable variant pages, each page should mostly give canonical to its own clean URL.
Are ProductGroup and Merchant Center item_group_id the same thing?
They are different system fields, but they represent the same parent product group. Where possible, productGroupID and item_group_id should be derived from the same permanent parent SKU or group ID.
What is Merchant Center variant_option?
Variant_option describes the attributes that define a variant in Merchant Center as name-and-value pairs. Since May 2026, Google supports this field so that color, size, and custom technical options can be grouped more clearly under item_group_id.
Does Product Variant Schema guarantee visibility?
No. Valid structured data only helps with eligibility and correct understanding of the product. Google does not guarantee that variant information will appear in search results.
