How to fix seo variant urls not canonicalized on Adobe Commerce (Magento)

Add a canonical tag to every product variant URL pointing back to the base product page, so Google consolidates ranking signals onto one authoritative URL instead of splitting them across hundreds of near-duplicate pages.

Steps for Adobe Commerce (Magento)

  1. Adobe Commerce (Magento) generates configurable product URLs with parameters like ?color=45&size=12. By default, Magento may not canonicalise these back to the base product — this must be configured.
  2. In the Admin panel, go to Stores → Configuration → Catalog → Catalog → Search Engine Optimization.
  3. Set 'Use Canonical Link Meta Tag For Products' to 'Yes'. This tells Magento to output a canonical pointing to the base product URL on all product pages, including those loaded with option/attribute parameters.
  4. Also set 'Use Canonical Link Meta Tag For Categories' to 'Yes' to cover filtered category pages.
  5. Save the config, then flush the Magento cache: System → Cache Management → Flush Magento Cache.
  6. If you are on a PWA Studio or headless Adobe Commerce frontend, ensure your product page component reads the canonical_url field from the GraphQL product query and outputs it as <link rel="canonical" href={product.canonical_url}> in the document head.
  7. Verify with Google Search Console URL Inspection on a ?color= or ?size= variant URL.
Official Adobe Commerce (Magento) documentation ↗
<link rel="canonical" href="https://www.example.com/products/base-product-slug">

What is seo variant urls not canonicalized?

When a shopper picks a color, size, or other option on a product page, most ecommerce platforms create a new URL — for example, `/products/my-shirt?color=Red` or `/products/my-shirt?size=L`. These variant URLs contain almost identical content to the main product page. A canonical tag is a small HTML snippet you place in the `<head>` of each variant page that says to Google: "The definitive version of this content lives at [base product URL] — please treat that as the real one." It does not redirect shoppers; it only guides search engines.

Without canonical tags on variant URLs, Google sees hundreds or thousands of near-duplicate product pages and must guess which one to rank. This splits your "link equity" (the ranking power earned from backlinks and user signals) across all variants instead of concentrating it on your main product page, pushing every version lower in search results. It also wastes your crawl budget — Googlebot spends time re-crawling colour and size variants instead of discovering new products or categories. Stores with large catalogues (hundreds of products × multiple variants) can lose significant organic traffic this way. Fixing canonicalisation is one of the highest-ROI SEO tasks for any product-rich store.

See the complete Seo variant urls not canonicalized guide for every platform and the full background.

Not sure if your Adobe Commerce (Magento) store has this?

Run a free SEOLZ audit — we’ll find seo variant urls not canonicalized and every other issue across your whole site.

Scan my site free

Fix seo variant urls not canonicalized on another platform