In short
- 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.
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).
Who writes the canonical on each WooCommerce page
WordPress covers single products. Every list page needs an SEO plugin or the theme.
| PAGE | WORDPRESS AND WOOCOMMERCE ALONE | WITH YOAST, RANK MATH OR AIOSEO |
|---|---|---|
| Product | Canonical to the product, from WordPress | Canonical to the product, from the plugin |
| Product with a tracking or variation parameter | Canonical to the clean product URL | Canonical to the clean product URL |
| Category and shop page | No canonical tag | Canonical to itself |
| Sorted or filtered category | No canonical tag | Canonical to the clean category |
| Page 2 of a category | No canonical tag | Canonical to itself, page 2 |
| Cart, checkout, My account | Noindex from WooCommerce | Noindex; Yoast prints no canonical on a noindexed page |
From WordPress's rel_canonical(), WooCommerce's source and the plugins' own documentation, checked November 2026.
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.
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.
Three product addresses and the canonical each one named
A canonical built from the product's permalink drops whatever query string was on the request.
A tracking link
Requested: /product/oak-shelf/?utm_source=newsletter
Canonical: /product/oak-shelf/
72 of 72 stores, 29 of them with no SEO plugin
A variation link
Requested: /product/linen-shirt/?attribute_pa_size=small
Canonical: /product/linen-shirt/
19 of 19 stores with a variable product
An add-to-cart link
Requested: /product-category/candles/?add-to-cart=123
Canonical: /product-category/candles/ on 11 of the 16 stores we could request it on
Blocked in robots.txt on 46 of 73 stores, so we did not request it there
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.
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 covers the copies a canonical cannot handle, such as product tags and copied products, and 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.
The four canonical mistakes we found, and the fix for each
Each was on one or two of the 73 stores. Each one is invisible until someone reads the page source.
2 STORES
Page 2 names page 1
/product-category/stihl/page/2/ with canonical /product-category/stihl/.
Fix: remove the custom canonical or snippet, so the plugin's default (page 2 names itself) comes back.
1 STORE
The shop names an old page ID
/shop/?filter_colour= with canonical /?page_id=17, which redirects to a product.
Fix: check that the page set as the shop page under WooCommerce, Settings, Products is published, and clear any canonical typed into its SEO box.
1 STORE
An http:// canonical on an https store
One product named http:// as its canonical, and the http address answered 200 instead of redirecting.
Fix: correct the address in the product's SEO box, and redirect every http request to https at the server.
1 STORE
Two canonical tags in one head
Both named the same product, so nothing is wrong today. They will disagree the day one is edited.
Fix: find the second writer (theme, snippet or second SEO plugin) and turn its canonical off.
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.
Where to change one product's canonical
Each field overrides the plugin's default for that page only. Checked against each vendor's documentation, November 2026.
Yoast SEO
Edit the product, open the Yoast box, then Advanced, then Canonical URL.
Filter: wpseo_canonical
Rank Math
Edit the product, open Rank Math, then the Advanced tab, then Canonical URL. The tab needs Advanced mode on.
Filter: rank_math/frontend/canonical
All in One SEO
Edit the product, scroll to AIOSEO Settings, then the Advanced tab, then Canonical URL.
Filter: aioseo_canonical_url
No SEO plugin
WordPress prints the canonical on products only, with no field to change it. Code can, through its filter.
Filter: get_canonical_url
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.
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, 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, 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 finding, as the shop page above would be; one that names a noindexed or erroring page is a canonical to noindex finding; an http:// canonical on an https page is an 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 post covers the faults a theme can bake into every page at once, and WooCommerce permalinks the product and category addresses the canonical is built from.
Frequently asked questions
- 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.