Canonical Tag
A canonical tag is a link element that tells search engines which URL is the preferred version when several URLs show the same content.
Also called: rel canonical, rel=canonical, canonical URL, canonicalization
A canonical tag is a rel="canonical" link element in a page's head that tells search engines which URL is the preferred version when several URLs show the same or nearly the same content. It consolidates signals onto one URL so duplicates don't compete. It's a strong hint, not an order: Google can pick a different canonical if other signals disagree.
How it works
Duplicate URLs happen constantly. Tracking parameters, trailing slashes, http and https, www and non-www, sort and filter options, and pages that live in two categories all create copies. The canonical tag on each copy points to the one URL you want indexed. The markup is one line: <link rel="canonical" href="https://www.example.com/pricing">.
Google weighs that hint alongside other signals to choose a canonical: 301 redirects, internal links, your XML sitemap, HTTPS over HTTP and which version gets linked from elsewhere. When all of those agree, your choice usually wins. When they conflict, Google decides for you, and Search Console's URL Inspection tool shows both the canonical you declared and the one Google selected.
A few mechanics worth knowing:
- Use the full absolute URL, including protocol and hostname.
- For files without an HTML head, like PDFs, send the canonical as a
LinkHTTP header. - Cross-domain canonicals work, so a syndicated article can point back to the original.
- Language versions aren't duplicates. Each one gets a self-referencing canonical plus hreflang annotations.
Example
Your pricing page is reachable at /pricing, /pricing/ and /pricing?utm_source=linkedin. Without a canonical, those can look like three pages splitting the same signals. Add a canonical on all three pointing to https://www.example.com/pricing, link internally only to that version and list only that URL in your sitemap.
On a Next.js site, the metadata API lets you set alternates.canonical for each route, so a programmatic SEO template can generate the right canonical for every page automatically. Say the template ships 2,000 pages and each is reachable with and without a trailing slash (assumption). That's 4,000 URLs for 2,000 pages of content. One template line fixes all of them.
Canonical vs 301 redirect vs noindex
| Tool | What users see | What search engines do | Use when |
|---|---|---|---|
| Canonical tag | Both URLs still load | Index the canonical, consolidate signals | Duplicates must stay live |
| 301 redirect | Old URL forwards | Drop the old URL, pass signals | The duplicate has no reason to exist |
| Noindex | Page still loads | Keep the page out of results | Useful page, no search value |
Canonicals are the fix for duplicate content you can't remove. Redirects are the fix for duplicates you can.
Why it matters for GTM teams
Duplicate URLs waste crawl budget on large sites and split ranking signals on small ones. Canonicals are a five-minute fix in a template that prevents a slow, invisible leak. Get them right before you launch hundreds of pages, not after.
Common mistakes
- Pointing canonicals to URLs that redirect, 404 or carry noindex.
- Combining noindex and a canonical to another page, which sends mixed signals.
- Canonicalizing every page to the homepage because of a template bug.
- Canonical URLs that disagree with your sitemap and internal links.
- Pointing every page in a paginated series to page one, which hides the items on later pages.
- Using relative URLs that resolve wrongly on staging or alternate hostnames.
FAQ
Does a canonical tag pass link equity?
When Google accepts your canonical, it consolidates signals such as links from the duplicate URLs onto the canonical URL. That's the main reason to use one. If Google picks a different canonical because your signals disagree, the consolidation goes to its choice instead of yours.
Should every page have a self-referencing canonical?
Yes, as a default for indexable pages. A self-referencing canonical with the full absolute URL protects the page when tracking parameters, alternate hostnames or trailing slash variants create copies. It costs nothing to add in a template.
What is the difference between a canonical tag and a 301 redirect?
A 301 redirect sends users and crawlers to another URL, so the old one effectively disappears. A canonical tag leaves both URLs reachable and only tells search engines which one to index. Use a redirect when the duplicate has no reason to exist and a canonical when it needs to stay live, such as a filtered or tracked version.
Related
Used in these articles
- ArticleContent Syndication: Republish Safely and Buy Leads Without Getting Burned
- ArticleCrawled, Currently Not Indexed: What It Means and What to Do
- ArticleEcommerce SEO: The Full Map for a Store, From Site Structure to AI Shopping
- ArticleGoogle Discover: How It Works and Whether a B2B Site Should Care
- ArticleHeadless CMS SEO: Rendering, Metadata, Sitemaps and Previews
- ArticleInternational SEO: When to Expand and How to Get It Right