# WooCommerce Canonical Tag: URL by URL

Source: https://crawlcove.com/blog/woocommerce-canonical-tag
Published 2026-11-24 · By Lewis Jones

> What the canonical tag named on 73 WooCommerce stores, from products and variations to sorted, filtered and paginated categories, and how to change it.

## Key takeaways
- WooCommerce writes no canonical tag itself; WordPress adds one to single products, and category, shop and paginated pages get one only from an SEO plugin or the theme
- On 73 UK WooCommerce stores, every product named itself, and tracking and variation links named the clean product URL, with or without an SEO plugin
- 16 of the 24 stores with no SEO plugin had no canonical on their category pages, sorted copies or page 2
- The mistakes were rare and specific: page 2 pointed at page 1 on 2 of 34 stores, one shop page named an old page ID that redirected to a product, and one product named an http address
- Change one product's canonical in the Advanced tab of Yoast SEO, Rank Math or All in One SEO; leave sorted, filtered and paginated URLs to the plugin's default

A WooCommerce canonical tag tells Google which address is the real one for a product or category page. WooCommerce does not write one itself. WordPress adds it to single products, and every list page (categories, the shop page, their sorted and filtered copies and page 2) depends on your SEO plugin or theme. With a plugin installed, the defaults are right on almost every URL. Without one, list pages usually have no canonical at all.

We read the canonical tags on 73 live UK WooCommerce stores on 24 November 2026: a product, the same product with a tracking parameter, a variation link, a category, the category sorted by price, its page 2, an attribute filter and an add-to-cart link. This post shows what writes each tag, what those stores served, the few mistakes we found and how to change a canonical when you need to. For the rest of a store audit, see the [WooCommerce SEO audit](https://crawlcove.com/blog/woocommerce-seo-audit).

## How WooCommerce handles canonicals by default

WordPress's own `rel_canonical()` function prints a canonical only on singular pages, and a WooCommerce product is a singular page. It names the product's permalink, so any query string on the request (`?utm_source=`, `?attribute_pa_size=`) is dropped from the canonical. WooCommerce's own code adds no canonical tag anywhere; what it does add is a noindex on the cart, checkout and My account pages, and rules in the robots.txt WordPress generates that block `add-to-cart=` links (we read the WooCommerce source on GitHub, November 2026).

**Figure:**
src: /media/blog/woocommerce-canonical-tag/who-writes.webp
alt: Table of WooCommerce page types and who writes their canonical. With WordPress and WooCommerce alone, products and their tracking or variation links get a canonical to the clean product URL, while category and shop pages, sorted or filtered categories and page 2 get no canonical tag, and cart, checkout and My account are noindexed. With Yoast SEO, Rank Math or All in One SEO every list page gets a canonical: categories to themselves, sorted and filtered copies to the clean category, page 2 to itself
label: Who writes it
inline: html
caption: Remove the SEO plugin and every list page on the store loses its canonical at the same moment.
aspect: 1400/541

So the first question on any store is which SEO plugin, if any, is running. On our 73 stores, 32 ran Yoast SEO, 7 Rank Math, 3 The SEO Framework and 2 All in One SEO. On 29 we could see no SEO plugin.

## What 73 live stores served

The stores came from our UK WooCommerce sample (shops in OpenStreetMap in Bristol, Manchester, Leeds and Edinburgh that answer WooCommerce's public Store API). For each one we requested the eight URL types above, one request every 1.5 seconds, skipped any URL the store's robots.txt disallowed, and recorded every canonical tag in the HTML and in the HTTP `Link` header.

**Figure:**
src: /media/blog/woocommerce-canonical-tag/live-stores.webp
alt: Bar chart of what the canonical named on 73 UK WooCommerce stores on 24 November 2026. Product page right on 73 of 73, product with utm_source on 72 of 72, variation link on 19 of 19. Category right on 37 of 55, with 2 noindexed and 16 with no tag. Sorted category right on 36 of 54. Page 2 of a category right on 19 of 34, with 2 noindexed, 11 with no tag and 2 pointing at the wrong page. Attribute filter right on 9 of 13, with 1 noindexed, 2 with no tag and 1 wrong
label: 73 stores
caption: No store sent a canonical in an HTTP header, and none used a relative URL.
aspect: 1400/538

The product side was clean everywhere. Every gap on a list page was on a store with no SEO plugin, and the two noindexed categories with no tag were on Yoast stores, which is Yoast's documented behaviour: it prints no canonical on a page marked noindex.

## Product URLs: tracking links, variations and add-to-cart

Because the product canonical is built from the permalink, the extra addresses a product picks up are handled without any setting. This held on stores with and without an SEO plugin.

**Figure:**
src: /media/blog/woocommerce-canonical-tag/product-urls.webp
alt: Three cards. A tracking link, /product/oak-shelf/?utm_source=newsletter, named /product/oak-shelf/ on 72 of 72 stores, 29 with no SEO plugin. A variation link, /product/linen-shirt/?attribute_pa_size=small, named /product/linen-shirt/ on 19 of 19 stores with a variable product. An add-to-cart link on a category named the clean category on 11 of the 16 stores we could request it on, and was blocked in robots.txt on 46 of 73 stores
label: Product URLs
inline: html
caption: The example URLs are illustrations; the counts are what the stores served.
aspect: 1400/406

Variations do not need their own canonical. A variation link shows the same product with one option chosen, and naming the parent product is right. If you want a variation to rank on its own (a colour people search for by name), it has to be its own product with its own content, not a canonical setting.

Add-to-cart links are the one product URL worth keeping crawlers away from, because requesting one changes a cart. WooCommerce marks its add-to-cart buttons `rel="nofollow"`, and 43 of our stores served its two robots.txt rules for `add-to-cart=`, so we did not request those URLs there. Of the 16 stores where we could, 11 named the clean category, 2 with no SEO plugin had no canonical and 2 redirected to the cart or a noindexed page.

## Categories, sorting, filters and page 2

List pages are where the SEO plugin earns its place. With one, a category names itself, a sorted or filtered copy names the clean category, and page 2 names itself. Without one, the category and all its copies stand alone.

**Figure:**
src: /media/blog/woocommerce-canonical-tag/list-pages.webp
alt: Table comparing list-page canonicals on 31 stores with an SEO plugin and 24 with none seen. Category: 29 to itself and 2 noindexed with no tag, against 8 to itself and 16 with no canonical. Sorted by price: 28 to the clean category and 2 noindexed, against 8 and 16 with no canonical. Page 2: 15 to itself, 2 noindexed and 2 to page 1, against 4 to itself and 11 with no canonical. Attribute filter: 7 to the clean page, 1 noindexed and 1 to an old page ID, against 2 to the clean page and 2 with no canonical
label: List pages
inline: html
caption: On the 8 stores with no SEO plugin that still had list-page canonicals, the theme or a plugin that does not sign its output wrote them.
aspect: 1400/472

If your store has no SEO plugin, open any category with `?orderby=price` on the end and view the source. No `rel="canonical"` line means every sort order and filter combination is a separate page as far as Google is concerned. Installing Yoast SEO, Rank Math or All in One SEO fixes all of them at once. [WooCommerce duplicate content](https://crawlcove.com/blog/woocommerce-duplicate-content) covers the copies a canonical cannot handle, such as product tags and copied products, and [WooCommerce product category SEO](https://crawlcove.com/blog/woocommerce-product-category-seo) the rest of a category page.

Page 2 deserves a separate check even with a plugin. Google's pagination guidance asks for each page in a series to name itself, so the products listed only on later pages stay reachable. Two stores pointed page 2 at page 1: one Yoast store, where something had overridden Yoast's default, and one All in One SEO store that also set page 2 to noindex, nofollow.

## The mistakes we found

Most canonicals were right. The four faults below were each on one or two stores, and none shows up on the page itself; you only see them in the source or in a crawl.

**Figure:**
src: /media/blog/woocommerce-canonical-tag/mistakes.webp
alt: Four cards. Page 2 names page 1, on 2 stores: remove the custom canonical or snippet so the plugin's default returns. The shop names an old page ID, on 1 store: /shop/?filter_colour= named /?page_id=17, which redirects to a product; check the shop page set in WooCommerce settings is published and clear any typed canonical. An http canonical on an https store, on 1 store, with the http address answering 200: correct the address in the SEO box and redirect http to https. Two canonical tags in one head, on 1 store, both naming the same product: turn off the second writer
label: Mistakes
inline: html
caption: The page ID canonical was on the shop page itself as well as its filtered copy, so the store's main catalogue page asked Google to index a product.
aspect: 1400/551

The shop page fault is the one to look for first. A canonical like `/?page_id=17` is what WordPress produces for a page that has no published permalink, so the likeliest cause is a shop page that was replaced or unpublished while WooCommerce's setting still pointed at the old one.

## How to change the canonical URL on one product

Most stores never need to. The cases that do are rare: two products that are really one item, a product syndicated from another of your sites, or a page whose plugin default is wrong for a reason you can name. Each SEO plugin has a field for it, and each has a filter for code.

**Figure:**
src: /media/blog/woocommerce-canonical-tag/set-it.webp
alt: Four cards on where to change one product's canonical. Yoast SEO: the Yoast box, Advanced, Canonical URL; filter wpseo_canonical. Rank Math: the Advanced tab, Canonical URL, with Advanced mode on; filter rank_math/frontend/canonical. All in One SEO: AIOSEO Settings, Advanced, Canonical URL; filter aioseo_canonical_url. No SEO plugin: WordPress prints the canonical on products only with no field; filter get_canonical_url
label: Where to set it
inline: html
caption: A canonical typed into one of these fields replaces the plugin's default for that page and nowhere else.
aspect: 1400/493

In code, use the filter of whichever plugin prints the tag. This Yoast SEO example points one product at another; Yoast's documentation adds that returning `false` from the same filter removes the tag.

```php
add_filter( 'wpseo_canonical', function ( $canonical ) {
    if ( is_product() && get_the_ID() === 123 ) {
        return 'https://www.example.com/product/oak-shelf/';
    }
    return $canonical;
} );
```

Two rules keep a change safe. Name a URL that answers 200 and is indexable, never one that redirects or is noindexed. And keep one writer: if a theme or snippet also prints a canonical, turn it off, so two tags cannot end up naming different pages.

## Canonical, noindex or robots.txt?

They do different jobs. A canonical says "index the other URL instead", and Google can still crawl the copy and follow its links. Noindex says "do not show this page at all", which is right for the cart, checkout and My account, and WooCommerce already sets it there. A robots.txt block stops the crawl, so Google never sees the page's canonical; use it for URLs that act on the store (`add-to-cart=`) or, on a very large catalogue, for parameters that waste a real share of crawling. None of our stores blocked `orderby=`, and one blocked `filter_`.

Do not combine noindex and a canonical that points elsewhere on one page. Yoast SEO drops the canonical when a page is noindexed anyway, and Google's canonicalisation guidance advises against using noindex to choose a canonical.

## How to check every canonical on a WooCommerce store

For one URL, view the source and search for `canonical`, or paste it into the free [canonical checker](https://crawlcove.com/tools/canonical-checker), which follows the target to see whether it can be indexed. For the whole store, crawl it, because the faults above were each on one page type and you will not guess which.

In [Crawl Cove](https://crawlcove.com/ecommerce-seo-crawler), an indexable page with no canonical is a medium canonical finding, which is how the list pages of a store without an SEO plugin show up. A canonical that names a page which redirects is a [canonical to redirect](https://crawlcove.com/issues/meta/canonical-to-redirect) finding, as the shop page above would be; one that names a noindexed or erroring page is a [canonical to noindex](https://crawlcove.com/issues/meta/canonical-to-noindex) finding; an `http://` canonical on an https page is an [insecure canonical](https://crawlcove.com/issues/meta/insecure-canonical) finding; and two canonical tags on one page are a low multiple-canonical finding. Pages that canonicalise elsewhere are left out of the duplicate title, description and near-duplicate checks, so sorted and filtered copies do not fill those lists. Crawl Cove detects WooCommerce from the page markup, as WordPress with a WooCommerce shop. The [canonical tag template bugs](https://crawlcove.com/blog/canonical-tag-template-bugs) post covers the faults a theme can bake into every page at once, and [WooCommerce permalinks](https://crawlcove.com/blog/woocommerce-permalinks) the product and category addresses the canonical is built from.

## FAQ

### Does WooCommerce add canonical tags?
Not itself. WordPress adds a canonical tag to single posts, pages and products, so every product has one naming its own permalink. Category pages, the shop page, tag pages and their sorted, filtered and paginated copies get one only from an SEO plugin such as Yoast SEO, Rank Math or All in One SEO, or from the theme.

### What should the canonical be on a WooCommerce variation URL?
The parent product. A link such as /product/linen-shirt/?attribute_pa_size=small shows the same product with one option chosen, so its canonical should name /product/linen-shirt/. On all 19 stores we tested with a variable product, it did, including the five with no SEO plugin, because WordPress builds the canonical from the product's permalink.

### Should page 2 of a WooCommerce category canonicalise to page 1?
No. Page 2 lists different products, so it should name itself, which is the default in Yoast SEO and what Google recommends for paginated series. Two of the 34 stores we checked pointed page 2 at page 1, which tells Google the products listed only on later pages are not worth reaching from there.

### How do I change the canonical URL of a WooCommerce product?
Edit the product and open your SEO plugin's box. In Yoast SEO it is under Advanced, then Canonical URL; in Rank Math under the Advanced tab, which needs Advanced mode; in All in One SEO under AIOSEO Settings, then Advanced. Without a plugin there is no field, only the get_canonical_url filter in code.

### Should I use a canonical tag or noindex for WooCommerce filter pages?
Use the canonical tag for sorted and filtered copies of a category, which every SEO plugin in our sample already did. Use noindex for pages that should never appear in search at all, such as the cart, checkout and My account, which WooCommerce noindexes itself. Do not put both on one page: Yoast SEO prints no canonical on a noindexed page.
