
What is a
canonical tag?
How to tell Google which page is the original, and avoid duplicate content problems.
A canonical tag is a line of HTML code that tells search engines which URL is the preferred version of a page. It is used when the same or nearly the same content is available at several addresses. Google then consolidates ranking signals on the main version instead of spreading them across several copies.
In the code it is a link element with rel="canonical" and the address of the main version, placed in the head section of the page.
Duplicate content happens more often than many people think, and usually without any bad intent:
Filters and sorting in online stores that create new URLs, such as ?colour=blue.
Tracking parameters such as UTM codes in campaign links.
The same product in several categories with different URLs.
Versions with and without www, or with and without a trailing slash.
Content published on several websites, such as a press release.
An example: an online store sells a jacket listed under both /women/jackets/ and /sale/. Without a canonical, Google sees two pages with the same content. With a canonical tag pointing to the main address, links and signals are consolidated there, and that is the version shown in search.
It is also recommended that every page has a canonical tag pointing to itself. This makes it clear which address is correct, even if someone links to the page with parameters.
Google treats the canonical tag as a strong signal, but not an absolute rule. If other signals point in the opposite direction, for example internal links, the sitemap and redirects pointing to another version, Google may choose a different URL itself. You can see which version Google has chosen in the URL Inspection tool in Google Search Console.
A canonical is also not the same as a redirect. With a 301 redirect , the user is actually sent onwards, while a canonical tag keeps both pages available to users, but asks the search engine to prioritise one of them.
A canonical pointing to a page that has been redirected, deleted or set to noindex.
All pages pointing to the homepage, so the rest disappear from the index.
Conflicting signals, such as a canonical to one URL and a sitemap with another.
Using canonicals to solve content that really should have been merged.
Errors in the canonical setup can have major consequences silently, because important pages can disappear from search without anyone noticing. That is why it is a standard part of a technical review. Read more about technical SEO.
Indexing: the canonical decides which version ends up in Google's index.
Crawling: the search engine reads the canonical tag when it crawls the page.
Keyword cannibalisation: a canonical can be one of the tools when similar pages compete.
Sitemap: the sitemap should only contain the URLs you have chosen as canonical.
See all the terms in the glossary.