All posts
SEO & AI search

What Is a Canonical Tag? A Plain-English Definition

What is a canonical tag? A plain-English definition of rel canonical, a real example, common mistakes, and where to set it in Webflow, Framer and Next.js.

By Mehdi Hassan4 min read

The short answer

A canonical tag is a line of HTML in a page's head, written as rel="canonical", that tells search engines which URL is the main version of a page when the same or similar content is reachable at several addresses. It consolidates ranking signals onto that one URL. Google treats it as a strong hint, not a command.

Key takeaways

  • A canonical tag names the preferred URL when duplicate or near-duplicate versions of a page exist.
  • Every indexable page should carry a self-referencing canonical with its own clean URL.
  • Google treats canonicals as a hint and can choose a different URL if signals disagree.
  • Webflow, Framer and Next.js each set canonicals differently, so check the live HTML after launch.
  • Wrong canonicals after a migration can quietly remove pages from search.

Part of Web Design, SEO and AEO Glossary: 50 Terms Explained Simply

What is a canonical tag?

A canonical tag is a link element placed in the head of a page that points to the canonical URL, meaning the single address you want search engines to index and show. It looks like this in plain HTML: link rel="canonical" href="https://example.com/pricing".

Duplicates happen more than most teams expect. The same page can load with and without a trailing slash, with tracking parameters such as utm_source, on a staging subdomain, or under two different paths. Without a canonical, search engines guess which one matters and may split signals between them. Google explains the mechanics in its guide to consolidating duplicate URLs. The term sits with other technical SEO basics in our SEO and AEO glossary.

What does a canonical tag look like on a real site?

On a real site, canonical tags mostly work in the background to collapse URL variations into one. Shopify is a well-known example of this behavior by default.

Example: one product, two URLs

In a standard Shopify store, a product can be reached through a collection path, such as /collections/new/products/blue-mug, and through its direct path, /products/blue-mug. Both show the same page. Shopify's themes set the canonical on both to the direct /products/ URL, so search engines index one address and credit all links to it.

The B2B marketing-site version is simpler. A pricing page shared in a newsletter as /pricing?utm_source=newsletter should carry a canonical pointing to /pricing, so the tracked links don't become separate indexed pages.

Parameters, pagination and filtered URLs are the most common sources of duplicates on marketing sites, and we cover them in pagination, faceted URLs and parameters.

Where do you set a canonical tag in Webflow, Framer and Next.js?

Where you set a canonical tag depends on the platform, and each one has a different default worth checking.

Platform

Where canonicals are set

What to check

Webflow

Site settings, SEO tab: a global canonical URL; check current docs for page-level options

The global URL uses your primary domain, with no staging domain

Framer

Set automatically for your primary custom domain; check current docs for overrides

Old domains and the framer.app address aren't the canonical

Next.js

The metadata API: alternates.canonical in metadata or generateMetadata, with metadataBase for the domain

Dynamic routes output their own URL, not a shared template value

Platform settings change, so confirm the result in the live page source after every launch. In Next.js the generateMetadata reference documents the options. If your marketing site is a client-rendered React app, canonicals may not be in the initial HTML at all; see fixing a React SPA for SEO.

What are common canonical tag mistakes?

The most common canonical tag mistakes point search engines at the wrong page, and they usually come from templates or migrations rather than manual edits.

  • Every page canonicalized to the homepage, often from a template value copied site-wide. Google may ignore inner pages.
  • Canonicals to staging or old domains left over after a rebuild or a cloned site. See website cloner tools and SEO.
  • Canonical pointing to a redirected or noindexed URL, which sends mixed signals.
  • Canonical used instead of a redirect for pages that have permanently moved. A 301 is the right tool there.
  • Paginated pages all canonicalized to page one, which can hide the items listed on later pages.

How does a canonical tag relate to other SEO terms?

A canonical tag is one of several signals that tell search engines which URL to trust. A 301 redirect moves a page permanently; a noindex tag removes a page from results; a sitemap lists preferred URLs; and internal links show which version you treat as primary. All of them should agree. Consistent URLs also support a clear entity, because engines see one stable address for each important page about your company.

Frequently asked questions

Does every page need a canonical tag?
Every indexable page should have one, even when no duplicates exist. A self-referencing canonical, pointing to the page's own clean URL, protects against parameter and trailing-slash variations you didn't plan for. Most modern platforms add it automatically, but check that it uses your production domain and the exact URL format you want indexed.
What is the difference between a canonical tag and a 301 redirect?
A 301 redirect sends visitors and crawlers from one URL to another, so the old page can't be viewed. A canonical tag leaves both URLs working for visitors and only tells search engines which one to index. Use a redirect when a page has moved for good, and a canonical when duplicate versions need to stay reachable.
Can I point a canonical tag to another domain?
Yes. Cross-domain canonicals are valid, for example when you republish an article on a partner site and want the original to rank. The partner adds a canonical pointing to your URL. Google still treats it as a hint, so the content should be substantially the same, and the original should be the stronger, more complete version.
Why does Google ignore my canonical tag?
Google may pick a different canonical when other signals disagree with your tag, such as internal links, sitemaps or redirects pointing to another version, or when the two pages aren't really duplicates. Check the URL Inspection tool in Search Console to see which canonical Google chose, then make your links, sitemap and tag all point to the same URL.

· CEO & Design Director

Copywriter, designer and developer, and founder of Designify Studio. Over five years, 60+ projects across 14+ industries, for startups that have raised $300M+.

Want this done for you? Website, $8,000.

A multi-page marketing site, designed by us, developed in Next.js and animated. $8,000, one-time, up to 6 pages. Book a free 30-minute call to see if it fits.

Schedule Call