Websites & Design

Canonical tags explained: duplicate URLs, self-canonicals and common mistakes

What a canonical tag is, why duplicate URLs happen, self-referencing canonicals, how Google treats them, and the mistakes that cause trouble.

The short answer

A canonical tag tells Google which URL is the preferred version of a page when the same content is reachable at more than one address. Google treats it as a strong signal, not a command. Put a self-referencing canonical on every indexable page, use redirects for true duplicates, and make sure your internal links and sitemap agree with it.

Why duplicate URLs happen

One page can be reachable at several addresses without anyone meaning it to be. Typical causes:

  • www and non-www: example.ca and www.example.ca.
  • HTTP and HTTPS: the same page on both protocols.
  • Trailing slashes: /services and /services/.
  • URL parameters: tracking codes, sort orders and filters, such as ?utm_source=newsletter.
  • Several paths to one product, common in shops.

Google's documentation says duplicates split ranking signals and waste crawl time. Naming one preferred URL helps it show the right version, consolidate links and metrics, and crawl new pages more efficiently.

What a canonical tag looks like

It is one line in the page's head section:

<link rel="canonical" href="https://www.example.ca/services/" />

The address should be the full, absolute URL. Google lists relative paths among the common mistakes. For non-HTML files such as PDFs, the same signal can be sent in an HTTP Link header, and Google says to use one method, not both.

See what Website Care & Maintenance would cost for your business

Answer a few questions about your project and budget and get a personalised plan, compared with typical market prices.

Book a free 15-min callAbout 3 minutes · no obligation · fixed price confirmed in writing

Self-referencing canonicals

Google recommends adding a canonical that points to the page's own URL on the page you want indexed. It makes your preference explicit and consistent, so a version with tracking parameters appended still tells Google which address is the real one. Most SEO plugins and platforms add this for you; check by viewing the page source.

How Google treats canonicals

Google calls rel="canonical" a strong signal, not a mandatory directive. If other signals conflict, it may choose another URL. If you specify nothing, it picks what it considers the best version itself. Google lists three ways to specify a canonical, from strongest to weakest:

  1. Redirects. A permanent redirect to the preferred URL is the right fix when you are retiring a duplicate.
  2. The rel="canonical" tag (or HTTP header) when both versions need to stay live.
  3. Sitemaps. Listing only preferred URLs is a weaker signal, but it helps. See our guide to sitemaps and robots.txt.

Google also says it generally prefers HTTPS pages over equivalent HTTP ones.

Common mistakes

Most of these come straight from Google's own list:

  • Using robots.txt to handle duplicates. Google cannot read a canonical on a page it is blocked from crawling.
  • Using noindex to pick a canonical. That removes the page from search entirely.
  • Giving different canonicals through different methods, such as a tag that says one thing and the sitemap another.
  • Relative paths in the tag.
  • Linking internally to the non-canonical version. Your menus and content links should use the preferred URL.
  • Letting JavaScript change the canonical, which Google says to avoid.
  • Listing HTTP URLs in sitemaps or redirecting HTTPS back to HTTP, which pushes Google toward the wrong version.
  • Using a fragment (after a #) as a canonical.

Two more worth knowing. Do not point the canonical of many different pages at the home page; they are not duplicates, and the signal becomes meaningless. And do not canonicalise paginated or filtered shop pages without thinking, since each may deserve its own place in search.

A quick audit for your site

  1. Open your home page and view the page source. Search for canonical.
  2. Check the address is the exact version you want: HTTPS, with or without www, matching your slash style.
  3. Type the other versions into the browser, such as the HTTP address and the www or non-www version. They should all redirect to one.
  4. In Search Console, open the Pages report and look for statuses about duplicates and which canonical Google chose.
  5. Check that your sitemap lists only the preferred URLs.

If you moved to HTTPS recently, check that your canonicals now use the HTTPS address. An SEO audit finds these issues across the whole site.

Key takeaways

  • A canonical names the preferred URL when the same content has several addresses.
  • Google treats it as a strong signal, not a command, so keep your other signals consistent.
  • Use redirects for duplicates you are retiring and a canonical when both must stay.
  • Add self-referencing, absolute canonicals to indexable pages.
  • Do not combine canonical with noindex, robots.txt blocks or conflicting sitemaps.

Frequently asked questions

What is a canonical tag in simple terms?

It is a line of code on a page that says "this is the main address for this content". When the same page appears under several URLs, it helps Google choose one to show and to give the credit to.

Does Google always follow the canonical tag?

No. Google describes it as a strong signal but not a mandatory command, and it may choose another URL if redirects, links or sitemaps point elsewhere. Keep those signals consistent so the tag is not overruled.

Should every page have a canonical tag?

Google recommends a self-referencing canonical on the page you want indexed. It is low-effort insurance against parameter and tracking-code duplicates. Most platforms and SEO plugins add it automatically.

Canonical tag or 301 redirect, which should I use?

Use a 301 if the duplicate should disappear, for example the HTTP version of a page. Use a canonical if both URLs need to stay accessible, for example a page reached with tracking parameters. Google ranks redirects as the stronger signal.

Sources

  1. How to specify a canonical URL with rel="canonical" and other methods — Google Search Central, accessed November 2026
  2. Site move with URL changes — Google Search Central, accessed November 2026

How Flowmatix can help

We put this into practice for businesses in Toronto and around the world through our Website Care & Maintenance, web development services. Want to know what it would take for your business? Get a personalised quote in about 3 minutes, or request a free website check-up.

Let's talk

Got a project in mind?

Book a free 15-minute strategy call. We talk through what you need, then you get a fixed price in writing before any work starts. No sales script.