The same page on a website can often be reached at several addresses: with and without www, with tracking tags, through different categories or with filter parameters. A canonical URL is the one address you want search engines to treat as the main version.
Quick answer
A canonical URL is the preferred version of a page when duplicates or near-duplicates exist. You suggest it with a rel="canonical" tag, redirects and your sitemap. Google treats these as strong hints, not commands, and may choose a different canonical if signals conflict.
What a canonical tag looks like
<link rel="canonical" href="https://example.ie/services/boiler-repair/" /> This line sits in the <head> of the page. Every duplicate version, such as ?utm_source=facebook, should carry the same tag pointing to the clean URL. Most SEO plugins add a self-referencing canonical to every page automatically.
Why duplicates happen
| Source of duplicates | Example |
|---|---|
| Protocol and www | http://, https://, www. and non-www versions |
| Tracking parameters | ?utm_source=newsletter |
| Shop filters and sorting | ?colour=blue&sort=price |
| Several category paths | /kitchen/oak-table/ and /sale/oak-table/ |
| Printer or AMP versions | Alternative formats of the same content |
How Google chooses the canonical
Google’s canonicalisation guide explains that it groups duplicate pages and picks one to show, using signals such as the canonical tag, redirects, whether the URL is in your sitemap, HTTPS, and internal links. When your signals agree, Google usually follows your choice. When they conflict, for example a canonical tag pointing one way and internal links pointing another, Google may pick its own.
Canonical, redirect or noindex?
| Situation | Best tool |
|---|---|
| Old page replaced permanently | 301 redirect |
| Duplicate versions that must stay reachable (filters, tracking) | Canonical tag |
| Page that shouldn’t appear in search at all | Noindex; see robots meta tag |
| Two similar pages competing | Merge them; see keyword cannibalisation |
Common mistakes
- Every page canonicalised to the homepage, often from a theme bug.
- Canonicals pointing to redirected or 404 URLs.
- Canonical to HTTP on an HTTPS site. See HTTP and HTTPS versions.
- Blocking duplicates in robots.txt, so Google can’t see their canonical tags. See robots.txt.
- Pointing paginated pages all to page one, which can hide products further down.
Related terms: Duplicate without user-selected canonical and XML sitemap. For more, read checking canonical tags point to the right pages, finding duplicate URLs and the technical SEO guide. Our technical SEO service and SEO audit both check canonicals.
Frequently asked questions
Does every page need a canonical tag?
It’s good practice for every page to have a self-referencing canonical. Most SEO plugins add one.
Is a canonical tag a redirect?
No. Visitors stay on the page; it only tells search engines which version to index.
Can I canonicalise to another website?
Yes, for syndicated content, but Google treats it as a hint like any other.
Why did Google ignore my canonical?
Usually because other signals, such as internal links or sitemaps, point to a different URL.