Canonical tag

Definition
A canonical tag is an HTML element that tells search engines which version of a page should be treated as the preferred or primary version. It is written as <link rel="canonical" href="URL" /> in the page’s head section. This tag helps consolidate duplicate or similar pages and ensures ranking signals are attributed to the correct URL.
For example, an online store may have a product listed under multiple categories, creating duplicate URLs. By using a canonical tag pointing to the main version, the store prevents confusion and ensures the right page appears in search results.
Advanced
Canonical tags are part of technical SEO and play a key role in handling duplicate content. They are especially useful for e-commerce sites, dynamic URLs, and sites with parameters for filters or tracking. While the canonical tag is a strong signal, search engines may override it if other signals conflict.
Advanced implementation includes self-referencing canonicals, managing cross-domain canonicalization for syndicated content, and using them with hreflang attributes in multilingual sites. Tools like Google Search Console and crawling software can verify whether canonical signals are being interpreted correctly. Mistakes such as pointing canonicals to non-indexable URLs or chains of canonicals can lead to ranking issues.
Why it matters
Use cases
Metrics
Issues
Example
A fashion retailer has the same product accessible under /dresses/red-dress and /sale/red-dress. To prevent duplication, a canonical tag is placed on both pages pointing to /dresses/red-dress. As a result, search engines index the preferred page, consolidating authority and improving ranking stability.