# Manage variants

- Check 20.15 · E-commerce SEO · Critical
- Source: https://checklist-seo-geo.com/en/e-commerce-seo/manage-variants
- Choose one URL per product or per variant, give each variant an address that preselects it, and set up canonical, feeds and ProductGroup without duplicates.
- Updated on 2026-11-25
- Licence: CC BY 4.0. Credit “Checklist SEO & GEO” with a link to https://checklist-seo-geo.com/en/e-commerce-seo/manage-variants.
- Plugin checklist-seo-geo: 1.3.1 · https://github.com/maximegaul/checklist-seo-geo

## In short

A variant is a version of the same product: color, size, capacity, material. This check means choosing how to expose them, one page for all variants or one page per variant, giving each variant a URL that displays it directly with the right image, price and stock, then aligning the canonical, structured data and Merchant Center feed with that choice. Once it is done, Google indexes a single page per product (or one page per variant that deserves it), without duplicates, and each variant's offer points to a page that matches it.

## Why it matters

A poorly configured store multiplies near-identical URLs: one per size, one per color-and-size combination, sometimes one per parameter order. Google then has to choose which one to index, crawls hundreds of duplicates and may pick an out-of-stock variant rather than the main page.

Google documents two models:

- **One page for the group**: all variants are selected on the same page, without reloading. Each variant must be preselectable through a distinct URL, usually a parameter (`?couleur=vert`), and there must be only one canonical URL for the whole group, usually the URL with no variant preselected.
- **One page per variant**: each page carries complete, self-contained markup for its variant; there is no canonical URL shared by the group.

In both cases, preselection must display the right image, price and availability, and allow that variant to be added to the cart. Merchant Center applies the same logic: each variant is a separate item, grouped by a shared `item_group_id`, and its landing page must show the same title, price and availability as the feed.

For AI assistants and shopping agents, a URL that preselects the requested variant (“the 250 g tin”) avoids sending the user to the wrong price. It is a prerequisite for being recommended correctly, not a guarantee.

## What it improves

- **Indexing**: one canonical page per product, instead of dozens of duplicates.
- **Crawling**: fewer useless URLs to crawl on large catalogs.
- **Merchant listings and free listings**: grouped variants, compliant landing pages, fewer disapprovals for mismatched price or availability.
- **Conversion**: a visitor who clicks on “red teapot” lands on the red teapot.
- **Long tail**: pages per variant for the versions people actually search for.

## How to check

1. **Does a variant have a URL?** Choose a color on a product page: the address must change (parameter or path). Open that address in a private window: the right variant must be preselected, with its photo and price.
2. **Canonical**:

```bash
curl -s "https://example.com/produits/theiere-fonte/?couleur=rouge" | grep -o -i '<link rel="canonical"[^>]*>'
```

“One page” model: the canonical points to `https://example.com/produits/theiere-fonte/`. “One page per variant” model: each page points to itself.

3. **Indexed duplicates**: in Search Console, [Page indexing](https://search.google.com/search-console/index) report, reasons “Alternate page with proper canonical tag” (normal) and “Duplicate without user-selected canonical” (to fix). URL Inspection on a variant shows the canonical Google has chosen.
4. **Structured data**: the Rich Results Test must detect a `ProductGroup` and its variants, or one `Product` per page depending on the model, with a unique `sku` or `gtin` per variant.
5. **Merchant Center**: in `Products > All products`, check that the variants share a group ID and that no item is disapproved for a mismatched price or mismatched availability.

## How to implement

### Before you start

Decide on the model, attribute by attribute. Example for Thé des Lisières, a fictional shop:

| Attribute | Its own searches? | Its own content? | Choice |
|---|---|---|---|
| Size (100 g, 250 g) | No | No | Same page, parameter, canonical to the page |
| Teapot color (black, red, green) | Low | Photos only | Same page, parameter, canonical to the page |
| Origin of the same tea (Japan, China) | Yes (“Japanese sencha”) | Yes (taste, harvest) | Separate products, not variants |

Criteria for one page per variant, all required: measurable search demand for the variant, genuinely different content (photos, description, specifications), and a reasonable number of variants. Sizes almost never justify a separate page.

Rules common to every environment:

- **Named parameters** (`?couleur=rouge`, not `?rouge`), consistent order, no duplicates. See [control URL parameters](https://checklist-seo-geo.com/en/architecture-navigation/control-url-parameters).
- **A unique identifier per variant**: SKU, and GTIN when one exists. See [display available SKU, GTIN or MPN](https://checklist-seo-geo.com/en/e-commerce-seo/display-available-sku-gtin-mpn).
- **Internal links and sitemap** pointing to the canonical URL only.
- **Out-of-stock variants**: shown as unavailable, not hidden or deleted. See [manage temporarily out-of-stock products](https://checklist-seo-geo.com/en/e-commerce-seo/manage-temporarily-out-stock-products).

Markup for the “one page” model, to adapt (full details in [implement Product, ProductGroup and Offer](https://checklist-seo-geo.com/en/e-commerce-seo/implement-product-productgroup-offer)):

```json
{
  "@context": "https://schema.org",
  "@type": "ProductGroup",
  "name": "Cast-iron teapot 0.8 L",
  "url": "https://example.com/produits/theiere-fonte/",
  "productGroupID": "TF08",
  "variesBy": ["https://schema.org/color"],
  "hasVariant": [
    {
      "@type": "Product",
      "sku": "TF08-NOIR",
      "name": "Cast-iron teapot 0.8 L, black",
      "color": "Black",
      "image": "https://example.com/img/tf08-noir.jpg",
      "offers": {
        "@type": "Offer",
        "url": "https://example.com/produits/theiere-fonte/?couleur=noir",
        "price": "59.00",
        "priceCurrency": "EUR",
        "availability": "https://schema.org/InStock"
      }
    },
    {
      "@type": "Product",
      "sku": "TF08-ROUGE",
      "name": "Cast-iron teapot 0.8 L, red",
      "color": "Red",
      "image": "https://example.com/img/tf08-rouge.jpg",
      "offers": {
        "@type": "Offer",
        "url": "https://example.com/produits/theiere-fonte/?couleur=rouge",
        "price": "59.00",
        "priceCurrency": "EUR",
        "availability": "https://schema.org/OutOfStock"
      }
    }
  ]
}
```

### WordPress

Versions: WordPress 6.8 and later, WooCommerce 10 and 11 (variation-specific offer: WooCommerce 11.0 and later).

With WooCommerce, a variable product (`Product data > Variations`) has a single URL. A variation is preselected through attribute parameters, for example `?attribute_pa_couleur=rouge` for a global `couleur` attribute. WordPress places a canonical to the parameter-free permalink on product pages; check that an SEO plugin does not replace it with the parameterized URL.

- Give each variation its own SKU, image, price and stock status.
- Merchant Center feed plugins generally send one row per variation with the parameterized URL and the parent's `item_group_id`: check an item in Merchant Center.
- Markup: WooCommerce describes a variable product with an aggregate offer (`AggregateOffer`, lowest and highest price). Since WooCommerce 11.0, when the URL specifies all of a variation's attributes, it describes it with a single `Offer` at its exact price and adds `inProductGroupWithID`, which avoids price errors in Merchant Center. On earlier versions, a variation's URL keeps the parent's aggregate offer. Check what your SEO plugin adds.

### Shopify

Versions: Shopify, all plans, Online Store 2.0 themes, November 2026.

A product's variants share the `/products/handle` URL; `?variant=ID` preselects a variant and recent themes update the address when the visitor changes an option. The canonical tag generated by `{{ canonical_url }}` must point to the product URL without the parameter: check it in your theme's source code.

- Fill in the SKU and barcode (GTIN) for each variant, and one image per variant.
- The Google & YouTube channel sends variants to Merchant Center, grouped by product.
- To give each color its own URL, you need to create separate products; Shopify offers a combined listings app for this, restricted to certain plans, and themes can link these products through color swatches. Only do this for variants with their own demand.

### PrestaShop

Versions: PrestaShop 8 and 9.

Combinations are created in the product's combinations tab. Combination URLs contain the combination ID and, depending on the theme, a `#/…` fragment describing the attributes. Check in the source code that the canonical points to the product URL, and that the generated sitemap (`gsitemap` module) does not list one URL per combination. Assign each combination its images, its reference and its EAN-13 or GTIN.

### Magento

Versions: Adobe Commerce and Magento Open Source 2.4.7 to 2.4.9.

A configurable product groups simple products. Set the visibility of the simple products to “Not Visible Individually” (product page, `Visibility` field): otherwise every size and every color gets its own indexable product page. Enable the product canonical in `Stores > Configuration > Catalog > Catalog > Search Engine Optimization` (“Use Canonical Link Meta Tag For Products”). Preselecting a variant through the URL is not native in every version: an extension or custom development adds it.

### Laravel

Versions: Laravel 11 to 13.

```php
public function show(Request $request, Product $product): View
{
    $variant = $product->variants()
        ->when($request->query('couleur'), fn ($query, $color) => $query->where('color_slug', $color))
        ->first() ?? $product->defaultVariant;

    abort_if(! $variant, 404);

    return view('products.show', [
        'product' => $product,
        'variant' => $variant,
        'canonical' => route('products.show', $product),
    ]);
}
```

The view displays the image, price and stock of `$variant`, and the canonical always points to the URL without parameters. An unknown color value falls back to the default variant; if you prefer, return a 404.

### Next.js

Versions: Next.js 15 and 16 (App Router).

In the App Router, read `searchParams` in the product page to preselect the variant on the server, and declare the canonical in `generateMetadata`:

```ts
export async function generateMetadata({ params }: { params: Promise<{ slug: string }> }) {
  const { slug } = await params;

  return {
    alternates: { canonical: `https://example.com/produits/${slug}/` },
  };
}
```

Update the URL when an option changes with `router.replace`, so that a shared address matches the variant displayed.

## Common mistakes

- **One indexable product page per size**, with the same text: dozens of duplicates for a single intent.
- **Variant selection without a URL change**: impossible to link to a variant from the feed, an AI answer or a message.
- **A variant URL that does not display the variant**: the feed says “red, €59”, the page opens on “black, €49”; Merchant Center disapproves the item.
- **Canonical to an out-of-stock variant** instead of the group page.
- **Internal links and sitemap pointing to parameterized URLs.**
- **A different `item_group_id` from one variant to another**, or the same one reused for two products.
- **Magento simple products visible individually.**
- **Creating “variants” that are different products** (two tea origins): each deserves its own product page.

## Frequently asked questions

### Does each product variant need a different URL?

Each variant must be displayable through a distinct URL, but not necessarily through a distinct indexable page. Most often, a parameter such as ?couleur=rouge preselects the variant on the product page, and the canonical points to the URL without the parameter. One indexable page per variant is only justified if the variant has its own search demand and its own content.

### Which canonical should a variant URL have?

If all variants are selected on the same page, give each variant URL a canonical to the product URL with no variant preselected: Google asks for a single canonical URL for the group. If each variant has its own page with distinct content, each page carries a self-referencing canonical and its own complete markup. Do not mix the two models for the same product.

### How do you group variants in Google Merchant Center?

Submit each variant as a separate item, with its identifier, price, availability and the URL that preselects it, and give every variant of the same product the same value in the item_group_id attribute. Also fill in the attributes that distinguish them, such as color or size. Each variant's landing page must show the same information as the feed.

### Should size variants have their own page?

Almost never. Nobody searches for a size without the product, and pages per size duplicate the same content. Keep one page per product with a size selector, a parameterized URL per variant for feeds and links, and a canonical to the product page. Colors can justify their own page only if people search for them and they are illustrated differently.

## Resources

- [Google Search Central: product variant structured data](https://developers.google.com/search/docs/appearance/structured-data/product-variants?hl=en)
- [Google Search Central: designing a URL structure for ecommerce sites](https://developers.google.com/search/docs/specialty/ecommerce/designing-a-url-structure-for-ecommerce-sites?hl=en)
- [Google Merchant Center Help: item_group_id attribute](https://support.google.com/merchants/answer/6324507?hl=en)
- [Google Search Central: consolidate duplicate URLs with canonical](https://developers.google.com/search/docs/crawling-indexing/consolidate-duplicate-urls?hl=en)
- [Schema.org: ProductGroup](https://schema.org/ProductGroup)

Next steps: [implement Product, ProductGroup and Offer](https://checklist-seo-geo.com/en/e-commerce-seo/implement-product-productgroup-offer) and [sync prices and stock across site, feeds and markup](https://checklist-seo-geo.com/en/e-commerce-seo/sync-prices-stock-across-site-feeds-markup).
