What is a canonical tag and when to use it - Zephyra Studio
A canonical tag is a line in the page code that tells Google: this is the main version of this content, all other addresses are copies. It looks like <link rel="canonical" href="https://example.com/page"> and sits in the head section. You set it when the same or similar content exists at several addresses: in a store with filters, a print version of an article, or when a portal republished your text. A canonical does not redirect visitors and does not remove the other addresses. It only tells Google which one to show and which one to credit.
When you actually need a canonical
The first situation is technical duplication of the same page: with and without www, http and https, with tracking parameters. A canonical is the safest fix there, because all versions stay available while Google knows which is the main one.
The second situation is content that legitimately repeats. If you published an article both on your site and as a guest piece on another portal, a canonical pointing at your original address tells Google where the source is. That is often agreed in advance with the portal that republishes the text.
A canonical that points at itself
A canonical should point at itself on every page that has no duplicate. That sounds redundant, but it is useful: it clearly confirms the main address and stops Google from wrongly assuming the page belongs to some other set.
If a page has several versions, each should carry a canonical to the same main address. Never the other way round, the main one pointing at a copy, because that sends Google in the wrong direction.
The most common mistakes
The hardest mistake is a canonical from every page to the homepage. Then, for example, every blog page tells Google its main version is the home page. Google can drop those pages from the index, because it sees them as copies of the homepage.
The second mistake is combining a canonical and noindex on the same page. The signals clash: noindex says do not show this page, canonical says show that other one. Google may pick the one you did not want, so the two are not combined.
A practical check
Checking is simple: open the page in a browser, right-click and choose to view the page source, then search for canonical. You should see exactly one tag with the right address.
For the whole site, a tool such as Screaming Frog lists the canonical address for every page and immediately shows the ones pointing at the wrong place. That is the fastest way to find the problem across many pages.
Related terms
For the wider picture, see also:
Source
Key takeaways
- A canonical tag tells Google which version of the content is the main one when several addresses exist.
- It does not redirect visitors, it only guides Google's choice.
- A canonical from every page to the homepage is a mistake that can push pages out of the index.
- A canonical and noindex are not combined on the same page.
Conclusion
A canonical is set once, but a wrong canonical can quietly remove part of your site from search, with no warning. That is why a regular index check is part of our technical SEO work, especially after any major change to the site.
Frequently asked questions
A canonical tag is a line in the page code that tells Google: this is the main version of this content, all other addresses are copies. It looks like <link rel="canonical" href="https://example.com/page"> and sits in the head section. You set it when the same or similar content exists at several addresses: in a store with filters, a print version of an article, or when a portal republished your text. A canonical does not redirect visitors and does not remove the other addresses. It only tells Google which one to show and which one to credit.