Volver al blog
Canonical Checker8 min de lectura18 de abril de 2026

Canonical in Ecommerce: Product Variants and Category Filters

Online stores generate thousands of duplicate URLs from product variants (size, color) and category filters. Learn to manage them with canonical, noindex, and URL parameters to avoid wasting crawl budget.


A medium-sized ecommerce can have hundreds of thousands of automatically generated URLs: product variants by color and size, category pages filtered by price or brand, internal search results, pagination pages. Most of these URLs are duplicate content or very low SEO value. Without a clear canonical strategy, Google wastes crawl budget on irrelevant URLs while important pages do not receive enough crawling.

The product variant problem

Ecommerce platforms generate separate URLs for each variant combination: /running-shoes?color=red&size=10, /running-shoes?color=blue&size=9... With 5 colors and 10 sizes, that is 50 URLs for a single product, all with practically identical content.

Strategy 1: Canonical toward the base product URL

The cleanest solution is to add a canonical on each variant pointing to the product URL without parameters. Google consolidates all PageRank from backlinks to any variant onto the canonical URL.

html
<!-- On /running-shoes?color=red&size=10 -->
<link rel="canonical" href="https://store.com/running-shoes/" />

<!-- On /running-shoes?color=blue&size=9 -->
<link rel="canonical" href="https://store.com/running-shoes/" />

<!-- On /running-shoes/ (the canonical URL, self-referential) -->
<link rel="canonical" href="https://store.com/running-shoes/" />

Strategy 2: Clean URLs per variant with canonical

Some platforms generate clean URLs for main variants (/red-running-shoes/) and these can have their own self-referential canonical if the content is sufficiently different (specific description, own images, distinct name). This strategy makes sense when the variant is itself a frequent search.

Practical rule: if the variant has its own search volume in Google (people specifically search for "red running shoes size 10"), it may deserve its own canonical. If it has no search volume, use canonical toward the base product.

The category filter problem

Category pages with filters are the biggest generator of duplicate URLs in ecommerce. /mens-shoes/, /mens-shoes/?brand=nike, /mens-shoes/?price=0-50&brand=adidas... can be thousands of combinations with very similar content.

Case 1: Filters that do not create standalone SEO value

Most filter combinations have no search volume of their own. The solution is canonical toward the category URL without filters:

html
<!-- On /mens-shoes/?brand=nike&price=50-100 -->
<link rel="canonical" href="https://store.com/mens-shoes/" />

Case 2: Filter combinations with their own search volume

Some combinations have significant search volume: "cheap nike sneakers," "women's athletic wear sale." In these cases, it may be worth creating a specific landing with a clean URL and self-canonical, rather than using the filtered URL:

  • Create a clean URL: /nike-sneakers/ instead of /shoes/?brand=nike.
  • Add a self-referential canonical on that clean URL.
  • Redirect or add a canonical from /shoes/?brand=nike to /nike-sneakers/.
  • Make sure the landing has its own content (category description, specific h1) to differentiate it.

Pagination: canonical vs. rel prev/next

Google dropped support for rel="prev" and rel="next" in 2019. The current strategy for ecommerce pagination is:

  • Page 1 (/category/): self-referential canonical, indexable.
  • Pages 2+ (/category/?page=2, /category/page/2/): canonical pointing to page 1 OR noindex, depending on whether you want Google to crawl them.
  • If you use canonical toward page 1 on pagination, Google may consolidate PageRank but will continue crawling those pages.
  • If you use noindex on pagination, Google will gradually stop crawling them, freeing up crawl budget.

The choice between canonical and noindex on pagination depends on catalog size. For large catalogs (+10,000 products), noindex on pagination helps concentrate crawl budget on actual product URLs. For small catalogs, canonical toward page 1 is sufficient.

Implementation by platform

WooCommerce

Yoast SEO and Rank Math automatically manage the canonical for base product pages. For variants, WooCommerce generates parameter URLs that by default have no canonical. You need custom code or a plugin like Yoast's "WooCommerce SEO" to add canonical to variants.

Shopify

Shopify automatically adds canonical in official themes, always pointing to the base product URL without variant parameters. Verify in your theme that the canonical tag is present and correct — some third-party themes omit it.

PrestaShop and Magento

PrestaShop has native canonical options in Configuration → SEO. Magento manages it through the catalog configuration panel → URL Options. Always verify that the "canonical meta tag" options are active for products and categories.

Canonical audit on your ecommerce

Enter a sample of URLs from your store — base products, variants, filtered categories, pagination pages — in iRankly's Canonical Checker to verify that each has the correct canonical configured.

Prueba la herramienta gratis

Canonical CheckerAnaliza tus URLs con {tool} de iRankly. Sin registro, sin tarjeta.

Usar herramienta gratis

Prueba la herramienta gratis

Analiza tus URLs con Canonical Checker de iRankly. Sin registro, sin tarjeta.

Usar herramienta gratis