Canonical Tags for Ecommerce: Variants and Duplicates

A canonical tag is a <link rel="canonical"> element that tells Google which URL is the main version of a page when several URLs show the same or very similar content. Online stores create these duplicates constantly: sorting and filter URLs, ad tracking parameters, HTTP and HTTPS versions and variant URLs. Google's canonicalization guide says some duplicate content is normal and not a spam violation, but it can make performance harder to track. Google's canonical documentation ranks redirects and rel="canonical" as strong signals and sitemap inclusion as a weak one. Here is how to apply that to a store.
Where Store Duplicates Come From
Google lists the usual causes of duplicate URLs. In store terms:
- Site functions: sorting and filtering on category pages, such as
?sort=priceor?color=blue. - Protocol variants: HTTP and HTTPS versions of the same page.
- Device variants: separate mobile and desktop URLs.
- Region variants: separate country URLs with essentially the same content in the same language.
- Accidental variants: a staging or demo site left open to crawlers.
- Tracking parameters: Google's own example is a product page reached through a URL with a
gclidad parameter.
The Signals Google Uses
| Method | Strength | Best use in a store |
|---|---|---|
| 301 redirect | Strong | Retired products, merged categories, HTTP to HTTPS |
| rel="canonical" | Strong | Filter, sort and tracking URLs that must stay live |
| Sitemap inclusion | Weak | List only canonical URLs in your sitemap |
Google says these methods stack, so using two or more increases the chance your preferred URL is shown. It also says none of them are required, but specifying a canonical helps choose the URL people see in results, consolidate signals such as links, simplify tracking and avoid wasting crawl time on duplicates.
Google's Best Practices
From the same documentation:
- Do not use robots.txt for canonicalization. Google may still index disallowed URLs without their content.
- Do not use the URL removal tool. It hides all versions of a URL from Search.
- Do not point to different canonicals with different methods, for example one URL in the sitemap and another in rel="canonical".
- Do include a self referencing canonical on the canonical page itself.
- Use absolute URLs rather than relative paths in the canonical link.
- Avoid noindex as a way to pick a canonical within your site, because it blocks the page from Search completely.
- Link internally to the canonical URL, not to duplicates.
Product Variants: Size and Color
Variants need care because each one can be a real product a shopper searches for. Google's product variants documentation separates two designs:
- Single page: all options are chosen on one page, usually through query parameters. Google says there must be one distinct canonical URL for the whole product group, typically the page without a variant preselected.
- Multi page: variants live on separate pages. Google says the single canonical rule does not apply, each page needs full, self contained markup, and each variant should be reachable directly with a distinct URL.
Our product structured data guide shows how to mark variants up with ProductGroup.
Filters and Sorting
Most sort orders and narrow filter combinations should point their canonical to the main category page. Filters that match real searches, such as a brand or a popular color, may deserve their own indexable page with unique content. Our faceted navigation guide covers how to decide.
When Google Picks a Different Canonical
Google's troubleshooting guide says it may choose a different canonical because of content quality or technical signals. Use the URL Inspection tool in Search Console to see which page Google considers canonical, and ask whether its choice makes more sense for searchers. After fixing content issues, you can use Request Indexing in the same tool, but Google notes it is subject to quotas, so save it for important URLs.
Quick Checklist
- Every indexable page has a self referencing, absolute canonical
- Sort, filter and tracking URLs point to the main page
- Retired products and merged categories use 301 redirects
- Sitemap lists canonical URLs only
- Internal links point to canonical URLs
- Variant setup matches single page or multi page rules
- Google selected canonical checked in URL Inspection
Where an Agency Fits
Duplicate URLs split signals across search engines and AI assistants alike. Our AI search optimization service cleans up canonicals, sitemaps and product data so one strong URL represents each product.
Not sure which version of your pages Google picked? The Full AI Visibility Audit ($99) reviews how search and AI assistants see your brand, and the Deep Growth Audit ($249) adds search, traffic, ads and product feed checks with a 90 day plan.
Frequently Asked Questions
What does a canonical tag do?
It tells Google which URL you prefer as the main version among duplicate or very similar pages. Google treats rel=canonical as a strong signal, not a directive.
Is duplicate content a penalty?
Google says some duplicate content on a site is normal and not a violation of its spam policies, though it can be a bad user experience and make performance harder to track.
Should filter URLs have canonical tags?
Most sort and narrow filter URLs should point to the main category page. Filters that match real searches may deserve their own indexable page.
Can I use robots.txt to handle duplicates?
Google says not to use robots.txt for canonicalization, because disallowed URLs may still be indexed without their content.
How do canonicals work for product variants?
For single page variants, Google says to use one canonical URL for the product group, usually the page with no variant preselected. For multi page variants, each page is self contained.
How do I see which canonical Google chose?
Use the URL Inspection tool in Search Console to check which page Google considers canonical.
AI search and ads readiness checklist
25 checks for Amazon, Walmart and Shopify sellers: tracking, product feeds, Google, Bing and Meta ads, and getting cited by ChatGPT, Perplexity and Google AI Overviews. Two pages, about 20 minutes.
- Break-even ROAS table by margin
- The AI search (AEO) checks most stores miss
- A simple score that tells you what to fix first
No spam. We use your email to send the checklist and follow up about it.
Want to see where your store stands in AI search? Get the Full AI Visibility Audit for $99 or the Deep Growth Audit for $249.
Get your AI visibility audit

