Canonical tags tell Google which version of a page is the main one when the same content can be reached at more than one URL. Online shops create duplicates all the time: filter and sort parameters, tracking codes, product URLs inside collections, HTTP and HTTPS versions. Get canonicals right and Google puts all its signals into the page you want to rank. Get them wrong and the wrong URL ranks, or nothing does. This guide explains how canonical tags work, when to use them, and how to fix the common problems. If you want this handled across your store, our ecommerce SEO agency page explains how we help.

Google guidance quoted below comes from Google Search Central and Search Console Help, checked in November 2026.

Quick Answer

A canonical tag is a line in a page's <head> such as <link rel="canonical" href="https://www.example.co.uk/products/blue-mug">. It tells Google which URL you prefer when several URLs show the same or very similar content. Google treats it as a strong hint, not a rule. Use absolute URLs, add a self-referencing canonical to every indexable page, link internally to the canonical URL, and keep your sitemap, redirects and canonicals pointing at the same place. Do not use robots.txt or noindex to choose a canonical.

Seeing "Duplicate" errors in Search Console?

We will check your canonicals, redirects and sitemap and tell you exactly what to change.

Get a free technical SEO check

What Is a Canonical Tag?

Google defines canonicalisation as "the process of selecting the representative" URL of a piece of content, in its guide to canonicalization. When several URLs show the same content, Google groups them and shows one in search results. That one is the canonical.

A canonical tag is how you tell Google which URL you prefer. It looks like this, inside the page's <head>:

<link rel="canonical" href="https://www.example.co.uk/products/blue-mug">

Every duplicate version of the page carries the same tag pointing at the preferred URL. The preferred URL points at itself. That is called a self-referencing canonical.

Why Duplicate URLs Happen

Most duplicates are created by the platform, not by people copying content. Typical examples on UK sites:

CauseExample duplicate URL
Sort and filter parameters/collections/mugs?sort_by=price-ascending
Tracking codes/products/blue-mug?utm_source=newsletter
Product URLs inside collections/collections/kitchen/products/blue-mug
Protocol and host variantshttp://example.co.uk/ and https://www.example.co.uk/
Trailing slashes and capitals/Blue-Mug/ and /blue-mug
Separate regional sites in the same languageUK and Ireland pages with near-identical copy
Staging or demo sites left openstaging.example.co.uk/products/blue-mug

Duplicates are not a penalty. Google simply picks one. The risk is that it picks the wrong one, or splits links and signals across several versions.

How Google Picks a Canonical

Google says plainly that "indicating a canonical preference is a hint, not a rule". It weighs several signals. Its guide to consolidating duplicate URLs ranks the methods you control like this:

MethodStrength (Google's words)Use when
301 redirectA strong signalThe duplicate does not need to exist for users
rel="canonical" (tag or HTTP header)A strong signalUsers still need the duplicate, such as sorted or filtered views
Sitemap inclusionA weak signalAlways: list only canonical URLs in your sitemap

Google also looks at whether a page uses HTTPS and how your internal links point. The more of these signals agree, the more likely Google follows your choice.

How to Add a Canonical Tag

Rules for the tag

  • Put it in the <head>. Google only accepts rel="canonical" link elements in the head.
  • Use the full, absolute URL. Include https:// and the domain. Google recommends absolute rather than relative paths.
  • One canonical per page. Two different canonical tags on the same page send mixed signals, and Google may ignore them. Check that your theme and an SEO plugin are not both adding one.
  • Point to a live, indexable page. The target should return a 200 status, not a redirect, 404 or noindex.
  • Do not point to a URL fragment such as #reviews. Google generally does not support fragments as canonicals.

On WordPress

SEO plugins such as Rank Math and Yoast add a self-referencing canonical to every post and page automatically. You can override it in the plugin's advanced settings for a single page. Only do that when you know the page duplicates another one.

On Shopify

Shopify says its first-party themes set a canonical on all pages, using the canonical_url Liquid object in the theme head, according to Shopify's guide to canonical URLs. If you use a third-party theme, check that the tag is there. Our Shopify SEO guide covers the rest of the platform's quirks.

For PDFs and other files

Files have no HTML head, so you send the canonical as an HTTP header instead. Google gives this example:

Link: <https://www.example.com/downloads/white-paper.pdf>; rel="canonical"

Use either the HTML tag or the header for a page, not both.

Canonical Tags for Online Shops

Product URLs inside collections (Shopify)

Many Shopify themes link to products through the collection, such as /collections/kitchen/products/blue-mug. That page carries a canonical to /products/blue-mug, so Google should pick the clean URL. But your internal links still point at the collection version, which sends mixed signals. As Amsive explains, the fix is to remove the within: collection filter from product links in your theme so every collection links to the clean product URL.

Before: {{ product.url | within: collection }} creates /collections/kitchen/products/blue-mug

After: {{ product.url }} creates /products/blue-mug everywhere

Paginated category pages

Do not canonicalise page 2, 3 and so on back to page 1. Google's pagination guidance for ecommerce says: "Don't use the first page of a paginated sequence as the canonical page." Give each page its own self-referencing canonical, or Google may never find the products on later pages. Our pagination SEO guide covers this in depth.

Filter and sort URLs

Sorted and filtered views should usually canonicalise to the unfiltered category. If a filter creates a page people genuinely search for, such as "black leather sofas", consider making it a proper category page with its own copy and self-referencing canonical instead.

Product variants

If variants (sizes, colours) share one URL with a parameter, the canonical should point to the main product URL. If each colour has its own page with unique images and copy, each can have its own canonical. Pick one approach and stay consistent.

UK and international versions

If you run a UK site and, say, an Irish or US site with near-identical copy, use hreflang rather than canonicalising one country to another. Each page should canonicalise to itself and list its alternates with hreflang. Google advises picking a canonical in the same language.

Canonicals vs Redirects vs Noindex

ToolWhat users seeWhat Google doesUse for
Canonical tagThe duplicate page still worksUsually indexes the canonical and merges signalsSort, filter and tracking URLs
301 redirectSent to the new URLMoves signals to the targetOld, moved or merged pages. See our 301 redirects guide.
NoindexThe page still worksRemoves the page from search entirelyPages that should never appear, such as basket or account pages
Robots.txt disallowThe page still worksStops crawling, but the URL can still be indexed without contentSaving crawl effort on endless parameter combinations

Google is clear on two points. Do not use robots.txt for canonicalisation, and avoid noindex to choose a canonical, because noindex "will completely block the page from Search". And never point a canonical at a page that has noindex: the two signals contradict each other.

How to Check Your Canonicals

  1. View the source. Right-click a page, view source and search for "canonical". Check there is exactly one and it points where you expect.
  2. Use URL Inspection in Search Console. It shows the canonical you declared and the one Google selected. If they differ, Google disagrees with you.
  3. Read the Page indexing report. Three statuses relate to canonicals (see below).
  4. Crawl the site. A crawler such as Screaming Frog lists every canonical, canonicals to redirects or 404s, and pages missing a canonical. See our SEO tools guide.
Page indexing statusWhat it meansAction
Alternate page with proper canonical tagThe page correctly points to an indexed canonicalNone. Google's Page indexing help says there is nothing you need to do.
Duplicate without user-selected canonicalGoogle found a duplicate with no canonical and chose another pageAdd a canonical to the duplicates if Google picked the wrong page
Duplicate, Google chose different canonical than userYou declared a canonical but Google prefers another URLCheck your internal links, sitemap and redirects agree with your canonical

Google's canonical troubleshooting guide adds that pages may stay grouped as duplicates for up to two weeks after you fix the content. Be patient before you change things again.

Common Canonical Tag Mistakes

Every page canonicalised to the homepage. A theme bug or bad template can do this. Google will usually ignore it, but your important pages may drop out while it decides.

Canonicals pointing to staging or HTTP. After a migration, canonicals sometimes still point to the old domain or http://. Check them on launch day.

Conflicting signals. The sitemap lists one URL, the canonical names another and internal links use a third. Make them all match.

Canonical plus noindex on the same page. Pick one. Use the canonical for duplicates and noindex for pages that should never rank.

Using canonicals for syndicated content. Google says the canonical element is not recommended to deal with syndication. Ask partners to noindex their copy instead.

Why UK Ecommerce Brands Choose Growth Pulse Media

Canonical problems are rarely one tag. They come from themes, apps, filters, migrations and internal links all pulling in different directions. We audit the whole picture, fix the templates rather than single pages, and check Google's chosen canonicals in Search Console until they match. Our ecommerce SEO agency service covers this technical work alongside content, links and AI search visibility.

SEO starts from £1,500 a month, with no lock-in contract. You work with a founder-led team that explains every change in plain English.

Who This Is NOT For

Small brochure sites with a few pages. Your SEO plugin's default self-referencing canonicals are probably fine.

Anyone wanting to hide copied content. Canonicals are not a way to rank content you took from another site.

Sites that cannot edit their theme. Most canonical fixes need template changes. If no one can make them, start there.

Frequently Asked Questions

What is a canonical tag in SEO?

It is a link element in a page's head that tells search engines which URL is the preferred version when the same content appears at several URLs. Google treats it as a strong hint when choosing which URL to show in search.

Does every page need a canonical tag?

Google recommends a self-referencing canonical on the canonical page itself. It is good practice to add one to every indexable page, so parameter and tracking versions of that page point back to the clean URL.

Does Google always follow canonical tags?

No. Google says a canonical preference is a hint, not a rule. If your internal links, sitemap or redirects point elsewhere, or the pages are not really duplicates, Google may choose a different URL.

Should paginated pages canonicalise to page one?

No. Google says not to use the first page of a paginated sequence as the canonical. Give each paginated page its own self-referencing canonical so Google can find products on later pages.

What is the difference between a canonical tag and a 301 redirect?

A 301 redirect sends both users and Google to a new URL, so the old one is no longer visible. A canonical tag leaves the duplicate page working for users and asks Google to index the preferred URL instead.

Can a canonical tag point to another domain?

Yes, cross-domain canonicals are supported. But Google does not recommend them for syndicated content, and for country versions in the same language you should use hreflang with self-referencing canonicals.

Want Google to rank the right pages?

Share your site and Search Console access. We will find your duplicate and canonical issues and show you the fix list.

Book your free technical SEO call

Dirk van Greuning — Founder, Growth Pulse Media
Dirk van Greuning Founder, Growth Pulse Media

Dirk has worked in digital marketing since 2016. He built and scaled an ecommerce business before starting Growth Pulse Media, and now runs SEO, Google Ads, Meta ads and email for ecommerce brands. Growth Pulse Media is a Shopify Partner and a Premium Omnisend Partner.

Connect on LinkedIn