Canonical Tag
Written by Andy Sim
Last updated
A canonical tag is a line of code in a page's head that tells search engines which address is the main version of a page when the same or very similar content appears at more than one address.
The same page can be reachable in several forms: with and without www, with a tracking code on the end, or in a filtered shop list. Without guidance, a search engine has to guess which one to rank and may split the credit between them. The tag looks like rel="canonical" and points to the preferred address.
Examples
- A product page reached at /shoes/red and /shoes?colour=red, both pointing to one preferred address.
- A blog post also published on another site, pointing back to the original.
- A page with tracking parameters in the link that still counts as one page.
Why it matters for your website
It prevents duplicate-content confusion and keeps all the ranking strength on a single address. It is easy to forget and easy to get wrong, for example by pointing every page at the home page, so check it whenever a site is rebuilt or moved.