Home › Blog › What Is a Canonical Tag? How It Prevents Duplicate Content Problems
What Is a Canonical Tag? How It Prevents Duplicate Content Problems
A canonical tag is a small line in the head of your page that tells search engines which web address is the main version of that page.
Why duplicates happen
The same page can be reachable at several addresses: with and without www, with http or https, with a trailing slash, or with tracking parameters such as utm. To Google these look like different pages with the same content.
What the tag looks like
It is a link element in the head with rel set to canonical and href set to the full address of the preferred page, including https.
Use a self-referencing canonical
Each page should point to itself as the canonical unless it is a true duplicate of another page. This is a simple habit that avoids many problems.
Common mistakes
- Pointing every page to the home page.
- Using a relative address instead of a full one.
- Pointing to a page that redirects or does not exist.
- Using different canonical and sitemap addresses.
How to check
Right-click your page, choose View source and search for canonical. Or use the URL Inspection tool in Search Console, which shows the canonical that Google selected.
Remember
A canonical tag is a strong hint, not a command. Google may choose a different version if the signals disagree.
Frequently asked questions
Do I need a canonical tag on every page?
It is good practice. A self-referencing canonical on each page is safe and simple.
Is canonical the same as a redirect?
No. A redirect sends visitors to another address. A canonical only tells search engines which version to prefer.
Related articles
- What Is a Sitemap? How to Create and Submit It to Google
- What Is robots.txt? A Beginner Guide With Safe Examples
- How to Check If Your Website Is Indexed on Google (3 Easy Ways)
- How to Read the Google Search Console Performance Report
- Why Is My Website Not Showing on Google? 7 Reasons and Fixes
- How to Add Your Website to Google Search Console (Step by Step)
Free tools: Free website checker in Urdu · Free website speed test · Free SEO checker in Roman Urdu
Check my website free