Rich results · 2 min read

Product variant structured data: group sizes and colors

For products sold in variations such as sizes, colors, materials or patterns, Google asks you to group them with the ProductGroup class and its variesBy, hasVariant and productGroupID properties, alongside Product markup, which makes them eligible to show variant information in merchant listings.

What it means for your Maryland business

Product variant structured data is code that tells Google which items on your store are versions of the same product, such as one jacket in five sizes and three colors, so the products become eligible to show variant details in Google's merchant listings. It matters for Maryland businesses selling products online in multiple versions: clothing and shoe boutiques, furniture makers, outdoor gear shops, printing companies, pet supply stores and makers selling candles, soaps or jewelry in different scents, sizes or finishes.

A boutique in Berlin, in Worcester County, sells a beach cover-up in four sizes and three prints on one product page, with the choice made from drop-down menus. The web person adds ProductGroup markup naming size and pattern in variesBy, lists each combination as a variant with its own SKU, and puts the brand and the shared review rating once on the group. The page has one canonical address with nothing pre-selected, and each variant can still be opened directly at its own address with the right photo, price and stock.

Missing IDs are the first thing to check. Each variant needs a unique ID, such as a SKU or GTIN, and each product group needs its own ID too. Variant markup doesn't replace regular Product markup; it sits alongside it. On a single-page design there must be only one canonical URL for the whole group. On a multi-page design, each page needs complete markup on its own, not markup that depends on another page. And Google requires that each variant can be preselected at its own address, which is how it crawls and identifies each one.

Once the markup is in place, test a product page in the Rich Results Test and fix critical errors. If you use a store platform, ask whether it or a plugin already outputs this markup before paying for custom work.

What to do this week

3 steps. Ticks are saved to Your plan on this device.

Open Your plan

01
If you sell products online in sizes, colors, materials or other versions, list each product that comes in more than one version.
02
If you do, ask your web person to group the versions with ProductGroup markup using variesBy, hasVariant and productGroupID.
03
Have them put shared details like brand once at the group level, then test with the Rich Results Test.

In Google's words

“Adding this markup also makes your products eligible for display with variant information in merchant listing experiences.”

Google, exact quote · Product Variant Structured Data (ProductGroup, Product) · checked against this page 2026-11-28

What Google says

For products sold in variations such as sizes, colors, materials or patterns, Google asks you to group them with the ProductGroup class and its variesBy, hasVariant and productGroupID properties, alongside Product markup, which makes them eligible to show variant information in merchant listings. Shared details like brand and reviews can be given once at the group level. Google covers single-page designs, where variants are picked without reloading, and multi-page designs, where each variant has its own page.

Report an error