Canonical Tags
What are canonical tags and how do they prevent duplicate content?
What is canonical tags?
A canonical tag (rel="canonical") is an HTML element placed in the <head> of a page that tells search engines which URL is the preferred or "canonical" version of that page. When the same content is accessible at multiple URLs (due to query parameters, www/non-www variations, HTTP/HTTPS, or syndication), the canonical tag consolidates all ranking signals to a single URL.
A canonical tag is an HTML link element with rel="canonical" that tells search engines which URL is the preferred version of a page when the same content is accessible at multiple URLs. It consolidates ranking signals to a single URL and prevents duplicate content from diluting your page authority in search results.
Why does canonical tags matter?
Without canonical tags, search engines may index multiple versions of the same page, splitting link equity and ranking signals across duplicate URLs. This dilutes your page's authority and can result in the wrong URL appearing in search results. In severe cases, search engines may perceive widespread duplication as low-quality content, negatively affecting your site's overall crawl efficiency and rankings.
Key statistics
Up to 29% of the web consists of duplicate content, making canonical tags essential for consolidating ranking signals across URL variations.
Source: Raven Tools
How to fix it
-
1
Add a self-referencing canonical tag to every indexable page, pointing to its own clean URL (without query parameters or tracking codes).
-
2
For pages accessible at multiple URLs (e.g., with and without trailing slashes, with sorting parameters), set the canonical to the preferred version.
-
3
Use absolute URLs in canonical tags (e.g., https://example.com/page), not relative paths.
-
4
Ensure canonical tags are consistent with other signals — do not canonical to a URL that is blocked by robots.txt, returns a 404, or is set to noindex.
-
5
Audit your site for conflicting canonicals where page A canonicals to page B but page B canonicals to page C (canonical chains).
Code example
<!-- Page: /products?sort=price&color=red -->
<!-- No canonical tag — search engine indexes the filtered URL separately -->
<!-- Page: /products?sort=price&color=red -->
<link rel="canonical" href="https://example.com/products">
<!-- Consolidates all filtered variations back to the main products page -->
Frequently asked questions
Related topics
Robots Meta
The robots meta tag is an HTML <meta name="robots"> element that instructs search engine crawlers whether to index a page and whether to follow its links. Common directives include index/noindex (whether to include the page in search results) and follow/nofollow (whether to pass link equity through the page's outbound links). An X-Robots-Tag HTTP header can also deliver these directives.
Title Tags
The title tag is the HTML <title> element that defines the page's title in the browser tab and, most importantly, as the clickable headline in search engine results pages (SERPs). It is widely considered the single most important on-page SEO element because it directly tells search engines and users what the page is about.
Open Graph
Open Graph (OG) is a protocol originally created by Facebook that uses meta tags in the <head> of a page to control how content appears when shared on social media platforms. The four required OG properties are og:title, og:type, og:image, and og:url. Without them, platforms attempt to auto-generate a preview that is often inaccurate or visually unappealing.
Analyze your site's SEO health
eiSEO automatically detects and helps you fix issues like this across your entire site.