- A canonical tag points search engines to the preferred version of a page when similar versions exist.
- Online stores need canonicals for product variants, filtered URLs, tracking parameters and products in several collections.
- Canonicals are hints, not commands; combine them with clean internal links and consistent sitemaps.
Why do online stores create duplicates?
- Products appear under several category paths.
- Variants create separate URLs for color or size.
- Filters and sorting add parameters. See faceted navigation SEO.
- Tracking parameters from ads and emails.
- HTTP and HTTPS, or www and non-www versions.
See duplicate content.
How should you use canonicals?
| Situation | Canonical approach |
|---|---|
| Product in several collections | Canonical to one main product URL |
| Variant URLs with same content | Canonical to main product, unless variants have search demand |
| Filtered or sorted URLs | Canonical to the main category, unless the filter is a target page |
| Tracking parameters | Canonical to the clean URL |
| Paginated categories | Self-referencing canonicals on each page. See pagination SEO |
When should variants have their own canonical?
If a variant has distinct search demand, such as “black leather sofa” versus “grey fabric sofa”, it may deserve its own indexable page with unique content. See product variant SEO.
What are common mistakes?
- Canonical pointing to a page that redirects or returns 404.
- All pages canonicalized to the homepage.
- Paginated pages canonicalized to page 1.
- Canonical conflicting with sitemap URLs or internal links.
- Noindex and canonical sending mixed signals.
How do you check canonicals?
- Use Search Console URL inspection to see the user-declared and Google-selected canonical.
- Crawl the site to find missing or conflicting canonicals.
- Compare sitemap URLs with canonical URLs. See XML sitemaps.
Platform notes
- Shopify: product URLs in collections usually canonicalize to the main product URL.
- WooCommerce: SEO plugins handle most canonicals; check filters and parameters.
- Magento: settings exist for product and category canonicals; review them. See Magento SEO.
Worked example: fixing filter duplicates
(Illustrative numbers.) A furniture store had 40,000 indexed filter URLs and only 3,000 products. Google often chose filter pages as canonicals.
Changes:
- Canonicalized non-strategic filter URLs to main categories.
- Kept 50 high-demand filter combinations as indexable pages with unique content.
- Removed filter URLs from the sitemap.
Indexed URLs fell to 6,000 within three months, and category rankings improved.
Checklist: canonical tags
- [ ] Main product URLs defined
- [ ] Variant strategy decided
- [ ] Filter and parameter URLs canonicalized
- [ ] Pagination self-referencing
- [ ] Canonicals match sitemaps and internal links
- [ ] Google-selected canonicals checked
FAQ
Is a canonical the same as a redirect?
No. A redirect sends users and bots to another URL; a canonical is a hint about which version to index.
Can Google ignore my canonical?
Yes, if other signals disagree. Keep links, sitemaps and canonicals consistent.
Should every page have a canonical?
Yes, usually a self-referencing canonical on indexable pages.