Skip to main content Scroll Top

Canonical Tag: What It Is and How to Use rel=canonical for SEO

Written and maintained by the Progression Agency strategy team

A canonical tag is a link element in the head of a web page, written with rel=canonical and an href, that names the preferred URL when the same or nearly the same content can be reached at more than one address. Search engines read it as a strong signal about which version to index and show, and they fold signals such as links from the duplicates into that version. This guide covers canonical tag SEO the way Google Search Central documents it today, and the free generator and checker below builds the tag, cleans URL variants and audits pasted HTML. Progression, the technical SEO team that runs site migrations and catalog cleanups, built the checker; nothing you type is fetched or sent anywhere.

On this page · 16 sections
  1. How to use the canonical tag generator and checker
  2. What is a canonical tag?
  3. Canonical tag SEO: why consolidation matters
  4. How Google chooses a canonical URL
  5. rel=canonical vs 301 redirects vs noindex
  6. Self-referencing canonicals
  7. Cross-domain canonicals and syndicated content
  8. The HTTP Link header for PDFs and other files
  9. Sitemaps and internal links as canonical signals
  10. Canonicals with hreflang, pagination and faceted navigation
  11. Checking canonicals in Google Search Console
  12. Common canonical tag mistakes
  13. Canonical tags in WordPress, Shopify and other platforms
  14. Canonical tags during migrations, rebrands and redesigns
  15. Technical SEO from Progression
  16. More free SEO tools and guides

Before you add a canonical Decide the one address you want indexed before writing any tag: protocol, host, trailing slash and which parameters stay. Then make redirects, the XML sitemap, internal links and the canonical itself all name that exact address.

Search engine rules on this page are described as Google Search Central, Search Console Help, the IETF standard RFC 6596 and MDN state them on November 23, 2026, and each is named where it is used. Examples labeled Illustrative example. use made up addresses on example.com.

Canonical tag generator and checker

Type the preferred URL and the tool cleans it into a canonical address, then writes the HTML link element and the HTTP Link header. Add duplicate addresses to see which ones collapse into it, or paste a page source to find every canonical on the page and the problems with each one.

The canonical tag checker loads here. It needs JavaScript switched on.

Nothing is fetched. The tool never visits the URL you type or sends it anywhere: it works only on the text in these boxes, inside your own browser, and the report download is created on your device.

The checker opens with an illustrative example already filled in: a messy product address with an uppercase host, a default port, two tracking parameters and a fragment, four duplicate variants and a page source that hides two conflicting canonicals. Replace any box with your own and the results update as you type.

How to use the canonical tag generator and checker

Type the address you want indexed into step 1 and the generator returns a cleaned canonical URL, the link element for the head and the HTTP Link header for files. Steps 2 and 3 are optional checks on duplicate addresses and on a page’s own source.

A four step flow for the checker: type the preferred URL, copy the link element or the HTTP header, paste duplicate variants to compare, then paste a page source to list every canonical and its problems.A four step flow for the checker: type the preferred URL, copy the link element or the HTTP header, paste duplicate variants to compare, then paste a page source to list every canonical and its problems.
What happens each time a box changes. Nothing is fetched from the web.
  1. Paste the preferred URL, exactly as you would share it.
  2. Leave tracking stripping on unless a parameter really changes the content.
  3. Choose whether the site uses www and a trailing slash, or keep them as typed.
  4. Add any session or referral parameters your platform appends.
  5. Copy the link element into the head, or the header into your server or CDN rules.
  6. Paste other addresses for the same page into step 2 to see which collapse into the canonical.
  7. Paste the page source into step 3 to list every canonical it already prints.
  8. Copy or download the report for a developer ticket.

What does the generator change in a URL?

It lowercases the protocol and host, converts international domain names to their ASCII form, drops default ports, resolves ./ and ../ segments, percent encodes spaces and non ASCII characters, removes the fragment and, if you ask, strips tracking parameters. Letter case in the path and the order of the parameters you keep stay exactly as typed, because servers can treat both as meaningful.

What does the checker flag in pasted HTML?

A missing canonical, more than one, an empty or relative href, a target on another host, an http target on an https page, a fragment, tracking parameters in the target, a tag sitting in the body, a body element that closes the head early, and attributes such as hreflang that Google ignores on a canonical link. It also reads pasted response headers and notices when a header and an element disagree.

  • Tags inside HTML comments and scripts are ignored, the way a browser ignores them.
  • A canonical that JavaScript adds after load cannot be seen in pasted source; check the rendered head too.
  • Output is shown as text, so pasted markup never runs on this page.
  • Nothing is stored: refresh and the example comes back.

What is a canonical tag?

What is a canonical tag in one line: it is the HTML link element with rel=canonical that tells search engines which URL is the preferred version of a page that exists at several addresses. The IETF standard RFC 6596, published in April 2012, defines the canonical link relation as the preferred address among resources with duplicative content, and MDN describes it as the preferred URL for the current document, used to help search engines reduce duplicate content.

rel: rel=canonical. The link type that names the preferred URL.
href: Target URL. The absolute address you want indexed.
self: Self referencing. A page naming its own URL.
dup: Duplicate. Another address showing the same content.
hdr: Link header. The HTTP form for PDFs and other files.
pick: Google-selected. The canonical Google actually chose.
<head>
  <title>Red sneakers</title>
  <link rel="canonical" href="https://www.example.com/shoes/red-sneakers/">
</head>

Illustrative example. A sneaker page served at several addresses carries the tag above, so each variant names the same clean URL and the clean URL names itself.

A drawn card with four rows: the link element, the rel=canonical relationship, an absolute href target and placement inside the head.A drawn card with four rows: the link element, the rel=canonical relationship, an absolute href target and placement inside the head.
The four parts of the canonical link element, as Google Search Central and MDN describe it.

Is a canonical tag the same as a canonical URL?

Not quite. The canonical URL is the address chosen to represent a set of duplicates; the canonical tag is one way of declaring the address you prefer. Google Search Central uses canonical URL for the page Google itself picked as most representative, which may or may not be the one your tag names.

What the standard allows

RFC 6596 says the target must hold content that duplicates the referring page or is a superset of it. The target may be relative, may be the page itself and may sit on a different hostname or domain, and authors should expect search engines to index only the target, consolidate properties such as link popularity onto it and display it as the representative address.

  • The tag is an annotation, not a redirect: both addresses keep loading.
  • It belongs on duplicates and on the preferred page itself.
  • It names one URL; a page with two canonicals names none clearly.
  • Search engines treat it as a signal, so the content has to back it up.

Canonical tag SEO: why consolidation matters

Canonical tag SEO matters because a declared canonical decides which address people see in results, pools the links pointing at every copy and stops crawlers spending time on duplicates. Google lists four reasons to specify one: choosing the URL shown in search, consolidating signals such as links, simplifying tracking for a piece of content and saving crawl time for new or updated pages.

Common sources of duplicate URLs and the usual fix
Where duplicates come fromIllustrative exampleUsual fix
Protocol variantshttp:// and https:// both loadRedirect http to https; canonical names https
Host variantsexample.com and www.example.comRedirect to one host; canonical names it
Tracking parameters?utm_source=email, ?gclid=abc123Self referencing canonical on the clean URL
Sorting and filtering?sort=price, ?color=redCanonical to the listing, or crawl controls
Device variantsm.example.com for phonesCanonical on mobile, rel=alternate on desktop
Region variants/us/ and /uk/ in the same languageCanonical plus hreflang
Trailing slash and case/Shoes and /shoes/Pick one form, redirect and link to it
Accidental copiesA demo or staging site left openBlock access; absolute canonicals

Does duplicate content break Google’s rules?

No. Google Search Central says some duplicate content on a site is normal and is not a violation of its spam policies. The cost is practical: the same page at many addresses confuses visitors, splits reporting and leaves Google to choose a representative on its own.

Do you have to declare a canonical at all?

Google says none of the methods are required and that a site will likely do fine without them, because Google picks the best version when no preference is given. Declaring one is still worth it wherever parameters, filters, several hosts or syndication create copies, since the choice then reflects your preference rather than a guess.

  • Links to any duplicate can be consolidated into the canonical once it is chosen.
  • Analytics and Search Console data line up under one address.
  • Crawlers spend more of their visits on pages that changed.
  • Visitors see one consistent address when they share the page.
  • Our guide to backlinks explains why consolidated links matter for rankings.

How Google chooses a canonical URL

Google chooses a canonical by clustering pages whose main content is the same or very similar, then picking the one it judges most complete and useful for searchers, using the signals it collected while indexing. Your tag is one of those signals: Google calls an indicated preference a hint, not a rule.

A four step flow: Google indexes a page and finds its main content, clusters pages with very similar content, weighs canonical signals, then chooses the most complete and useful URL as canonical.A four step flow: Google indexes a page and finds its main content, clusters pages with very similar content, weighs canonical signals, then chooses the most complete and useful URL as canonical.
The process Google Search Central describes for canonicalization.
A drawn card ranking canonical signals: permanent redirects and rel=canonical are strong, sitemap inclusion is weak, and Google also prefers HTTPS URLs and URLs in hreflang clusters.A drawn card ranking canonical signals: permanent redirects and rel=canonical are strong, sitemap inclusion is weak, and Google also prefers HTTPS URLs and URLs in hreflang clusters.
How strongly each method can influence canonicalization, per Google Search Central.

Is a canonical tag a directive or a hint?

A hint. Google’s canonicalization overview names HTTP or HTTPS serving, redirects, sitemap presence and rel=canonical annotations as the factors involved, and says Google may choose a different page than you do for various reasons. The canonical page is then crawled most regularly, while duplicates are crawled less often to reduce load on the site.

Why does Google prefer HTTPS versions?

Google prefers an HTTPS page over its HTTP twin unless something conflicts: an invalid certificate, insecure dependencies other than images, an HTTPS page redirecting to HTTP, or an HTTPS page whose canonical points to HTTP. Redirecting HTTP to HTTPS, pointing canonicals at HTTPS and turning on HSTS all reinforce the default.

Which result does a searcher see?

Usually the canonical. Google says a result can point to a duplicate when that version suits the searcher better, for example a separate mobile page for someone on a phone, even when the desktop page is canonical.

  • Translated pages count as duplicates only when the main content is in the same language.
  • Regional copies in one language need both canonicalization and hreflang.
  • Google evaluates content and quality mainly on the canonical page.
  • Signals that disagree make Google’s choice harder to predict.

Search Console full of duplicate statuses?Send the domain and a screenshot of the Page indexing report. The free proposal maps every duplicate cluster and the canonical, redirect and sitemap changes Progression would make.

Get a free proposalTell us about a project you’d like help with.

rel=canonical vs 301 redirects vs noindex

Use rel=canonical when both addresses must keep working, a permanent redirect when the duplicate should disappear, and noindex only for pages that should never appear in search at all. Google ranks redirects and rel=canonical as strong signals, sitemaps as weak, and advises against noindex and robots.txt for choosing a canonical.

Canonicalization methods compared
MethodWhat Google says it doesUse it when
rel=canonical link elementA strong signal for the named URL; HTML pages onlyDuplicates must keep working for visitors
rel=canonical HTTP headerSame signal, sent with the response; web search onlyPDFs, Word files and other non HTML documents
Sitemap inclusionA weak signal; Google still finds the duplicates itselfLarge sites, as backup for the other methods
Permanent redirect (301 or 308)A strong signal that the target is canonicalRetiring, merging or moving a page
Temporary redirect (302, 303, 307)Not used as a canonical signalShort term moves you plan to reverse
noindexBlocks the page from Search entirelyPages that should never appear, not duplicates within one site
robots.txt disallowBlocks crawling; the URL may still be indexed without contentCrawl control, never canonicalization
Two columns comparing a canonical tag, where both URLs keep loading and search engines prefer the target, with a 301 redirect, where the old URL stops showing content and visitors move to the new address.Two columns comparing a canonical tag, where both URLs keep loading and search engines prefer the target, with a 301 redirect, where the old URL stops showing content and visitors move to the new address.
Pick by whether people still need the duplicate address.
A two column check grid: a canonical tag keeps the duplicate reachable and suits tracked or sorted URLs; a permanent redirect retires the duplicate; both are strong signals and both can be applied to PDFs.A two column check grid: a canonical tag keeps the duplicate reachable and suits tracked or sorted URLs; a permanent redirect retires the duplicate; both are strong signals and both can be applied to PDFs.
Choose by what should happen to the duplicate address.

When should a 301 redirect replace a canonical tag?

When the duplicate has no reason to exist. Google suggests redirects for deprecating duplicate pages, such as consolidating example.com, www.example.com and a separate home subdomain onto one address. According to Google’s redirect guide, 301 and 308 redirects tell Google the target should be canonical, while 302, 303 and 307 redirects do not, although the target can still be indexed through other signals.

Why not use noindex or robots.txt instead?

Because both remove information Google needs to consolidate. Google does not recommend noindex for choosing a canonical within one site, since it blocks the page from Search completely, and it says rel=canonical annotations are the preferred solution. It also warns that URLs disallowed in robots.txt can still be indexed without their content, and its robots.txt introduction states the file is not a mechanism for keeping a page out of Google.

Can you combine canonicalization methods?

Yes, and Google says the methods stack, so a redirect, a matching canonical and a sitemap entry together raise the chance your choice wins. The one rule is consistency: never name one URL in the sitemap and another in the tag for the same page.

  • Keep the URL removal tool out of canonicalization; Google says it hides every version.
  • Pair any noindex decision with a real reason the page should not rank.
  • Map redirects before launch, as our SEO diagram guide shows with a redirect map.
  • Tag tracking variants rather than redirecting them, so campaign links keep working.

Self-referencing canonicals

A self-referencing canonical is a canonical tag on the preferred page that names that page’s own URL, and Google recommends adding it alongside the tags on the duplicates. It protects the page when copies appear with parameters, session IDs or a scraper reusing your HTML.

A drawn card. Illustrative example: one sneaker page reachable at its clean URL, a newsletter tracking URL, an ad click URL, a sorted URL and an old http host, all consolidating to the clean URL.A drawn card. Illustrative example: one sneaker page reachable at its clean URL, a newsletter tracking URL, an ad click URL, a sorted URL and an old http host, all consolidating to the clean URL.
Illustrative example. The canonical page carries a self referencing tag; the parameter variants inherit it; the old host is redirected.

Should every page carry a self-referencing canonical?

On sites with parameters, filters or campaign links, yes in practice: every indexable page names itself, and every variant inherits that tag automatically because the same page code produces it. The RFC explicitly allows a canonical to be self-referential, and Google’s best practices list it.

Absolute URLs, not relative ones

Google supports relative paths in a canonical but does not recommend them, warning that they can cause problems later, for instance when a testing site is accidentally crawled and its tags resolve to the test host. Write the full address with https and the exact host. The UTM builder shows how tagged campaign links are built; the canonical should always name the version without those tags.

  • Use the same host spelling everywhere: with or without www.
  • Match the trailing slash your server actually returns with a 200.
  • Keep only parameters that change the content, such as a product variant.
  • Point at a URL that loads directly, not one that redirects.

Cross-domain canonicals and syndicated content

A cross-domain canonical points from a page on one site to a page on another, and RFC 6596 allows a canonical target on a different hostname or domain. Google is more cautious: its troubleshooting guide says the canonical link element is not recommended for avoiding duplication by syndication partners, because the pages are often very different.

Does a cross-domain canonical work for syndicated articles?

Not as Google recommends today. Google’s guide to fixing canonicalization issues says the most effective solution is for syndication partners to block indexing of your content, and it points publishers to its Google News guidance on article duplication. Agree that in the syndication contract before the first article runs.

When your canonical points at someone else’s site

Treat it as a red flag. Google describes attacks that insert a cross-domain rel=canonical into the head or the HTTP header, pointing at a spammy URL that its systems may then choose instead of yours. If the checker reports another host you never chose, review the theme, plugins and server rules, and see our website security services.

  • Cross-domain canonicals suit sites you control on several domains with the same content.
  • Google notes you will not see the duplicate’s traffic if the canonical sits in a Search Console property you do not own.
  • Misconfigured servers can return another site’s content and cause unexpected cross-domain choices.
  • Moving a whole site is a redirect job; see website migration services.

For files that have no HTML head, such as PDFs or Word documents, the canonical travels as an HTTP Link header with rel=canonical in the server response. Google supports this header for web search results and asks for absolute URLs in it, just as in the element.

HTTP/1.1 200 OK
Content-Type: application/vnd.openxmlformats-officedocument.wordprocessingml.document
Link: <https://www.example.com/guides/sizing-guide.pdf>; rel="canonical"

Illustrative example. The response for a Word download names its PDF twin as the canonical, the pattern Google’s own documentation uses for documents published in several formats.

A drawn card. Illustrative example: a Word file is served with an HTTP Link header naming the PDF version as canonical, using an absolute URL.A drawn card. Illustrative example: a Word file is served with an HTTP Link header naming the PDF version as canonical, using an absolute URL.
Illustrative example. A Word download names its PDF twin as canonical through the HTTP Link header.

One of them. Google supports both on HTML pages but recommends choosing one, because using both is more error prone; a header and an element can drift apart and name different URLs. The checker flags a pasted header and element that disagree.

Who sets the header?

Whoever controls the server or CDN configuration for that file type. Progression writes the rule with your developer or hosting team, then confirms the live response carries one header naming the right file.

  • The element only works for HTML pages; the header covers any file type.
  • The header does not add weight to the page itself.
  • Mapping many files by hand gets complex on large or fast changing sites.
  • Google applies the header to web search results only.

Sitemaps and internal links are supporting signals: Google treats sitemap inclusion as a weak suggestion and reads consistent internal linking to one URL as a sign of your preference. Neither replaces the tag, but both should agree with it.

What a sitemap can do for canonicals

Google says every page listed in a sitemap is suggested as a canonical, and that it then decides which are duplicates based on content. Its sitemap documentation asks you to list the canonical URLs you want shown in results, in absolute form, and to choose one version when the same content sits at several addresses.

Google advises linking to the canonical URL rather than a duplicate when linking within your site, because consistent links help it understand your preference. Menus, breadcrumbs, related product blocks and body links should all use the exact canonical spelling, including the trailing slash.

  • Remove parameters and fragments from internal links unless they change the content.
  • Keep the sitemap free of redirected, noindexed or duplicate URLs.
  • Update links after a migration instead of relying on redirects for years.
  • Our guide to URL length and SEO covers clean URL design.

Canonicals with hreflang, pagination and faceted navigation

Canonicals interact with three other systems: hreflang for languages and regions, pagination for long lists, and filter or sort parameters on category pages. In each case Google’s documentation sets a specific rule, summarized below and covered in depth on the linked pages.

How do canonical tags interact with hreflang?

Each language or regional version should name a canonical in its own language, or the best substitute if none exists, and Google prefers URLs that sit inside hreflang clusters when it chooses canonicals. Google also ignores rel=canonical annotations that carry hreflang, lang, media or type attributes. Our hreflang guide sets out return links, x-default and the conflicts that follow when a country page canonicalizes elsewhere.

Should page 2 of a list canonicalize to page 1?

No. Google’s pagination guidance says not to use the first page of a paginated sequence as the canonical and to give each page its own canonical URL; it also notes Google no longer uses rel=next and rel=prev. RFC 6596 gives the same warning, since content on later pages would be treated as duplicative of page 1 and lost.

Filters, sorting and tracking parameters

For faceted navigation Google prefers keeping filter URLs from being crawled, through robots.txt or URL fragments, when those views need not be indexed. Pointing a filtered URL’s canonical at the unfiltered listing may reduce crawling of filtered versions over time, but Google’s faceted navigation guide calls it generally less effective in the long term.

  • Return a 404 for filter combinations with no results, as Google advises.
  • Keep filters in one consistent order when they are encoded in the path.
  • Use the standard & separator between parameters.
  • Our SEO for directory websites page works through a large filtered catalog.

Moving to a new platform, domain or URL structure?Share the old and new site plans. You receive a free proposal covering the redirect map, canonical rules and the checks Progression runs before and after launch.

Get a free proposalTell us about a project you’d like help with.

Checking canonicals in Google Search Console

Search Console shows your declared canonical and Google’s choice side by side in the URL Inspection tool, and the Page indexing report counts pages by canonical status. Read both before changing anything, because a duplicate status is often Google working as intended.

Search Console statuses tied to canonicalization
Search Console statusWhat Search Console Help says it meansWhat to do
Alternate page with proper canonical tagAn alternate, such as an AMP or mobile page, correctly points to an indexed canonicalNothing
Duplicate without user-selected canonicalA duplicate with no declared canonical; Google chose another URLDeclare one if Google picked the wrong URL
Duplicate, Google chose different canonical than userYou declared this page canonical; Google prefers another URLCompare all three pages; align or differentiate
Duplicate, submitted URL not selected as canonicalA URL you submitted was not chosen as canonicalList only canonical URLs in the sitemap
Page with redirectA non canonical URL that redirects; it is not indexedUsually nothing; confirm the target is right
A drawn card listing five Search Console statuses: alternate page with proper canonical tag, duplicate without user-selected canonical, duplicate where Google chose a different canonical, submitted URL not selected as canonical, and page with redirect.A drawn card listing five Search Console statuses: alternate page with proper canonical tag, duplicate without user-selected canonical, duplicate where Google chose a different canonical, submitted URL not selected as canonical, and page with redirect.
Page indexing statuses tied to canonicalization, as Search Console Help names them.

User-declared canonical vs Google-selected canonical

In URL Inspection, the Page indexing section lists the User-declared canonical, taken from your tag, header or sitemap, and the Google-selected canonical. Google’s choice can only be read from indexed data, so a live test cannot predict it, and the value may lag the index by a few hours.

What does Duplicate, Google chose different canonical than user mean?

Your page declares itself canonical, but Google decided another URL in the cluster makes a better canonical and indexed that one. Search Console Help suggests comparing the current page, your declared canonical and Google’s choice; if your declared URL is not similar to the page, Google will never choose it, because a duplicate has to resemble its canonical.

A five step timeline: inspect the URL, check technical misconfigurations, make clustered pages clearly different, request indexing, then allow up to two weeks.A five step timeline: inspect the URL, check technical misconfigurations, make clustered pages clearly different, request indexing, then allow up to two weeks.
Google notes that pages may stay clustered for up to two weeks after a fix.
  1. Open URL Inspection and note both canonical fields.
  2. View the source and the rendered head for every canonical the page prints.
  3. Check redirects, the sitemap and internal links name the same address.
  4. Look for plugins or theme code inserting a second canonical.
  5. If the pages should rank separately, make their main content clearly different.
  6. Request indexing for the most important URLs only, since the feature has quotas.
  7. Recheck after two weeks before changing anything else.

Search Console Help adds that you should not expect every URL on a site to be indexed, only the canonical pages. If pages are missing entirely rather than marked duplicate, start with our guide to a website not showing up on Google.

Common canonical tag mistakes

Most canonical problems come from conflicting signals rather than a missing tag: two tags, a tag and a sitemap that disagree, or a CMS plugin pointing pages somewhere unexpected. Google’s troubleshooting guide names incorrect canonical elements from content management systems and plugins as a common cause.

Canonical mistakes, what goes wrong and the fix
MistakeWhat goes wrongFix
Two or more canonical tagsConflicting signals, often a theme plus a pluginRemove every source but one
Relative hrefSupported, but breaks if a test copy is crawledWrite the full https address
Canonical in the bodyGoogle only accepts the element in the headMove it into the head
Body element before the tagParsers end the head earlyPlace the canonical high in the head
#fragment in the canonicalGoogle generally does not support fragmentsDrop everything after the #
Sitemap names one URL, tag anotherConflicting methods for one pageMake every method name the same URL
noindex on a duplicateBlocks the page instead of consolidating itUse rel=canonical within one site
Every page of a series canonical to page 1Later pages lose their content in the indexSelf referencing canonical on each page
Canonical to the http versionWorks against Google’s HTTPS preferenceName the https URL
hreflang attribute on the canonical linkGoogle does not use it for canonicalizationSeparate rel=alternate hreflang links
JavaScript changes the canonicalTwo different values for one pageSet it in the HTML source only
A drawn checklist: absolute URLs in the head, self referencing tags and internal links to the canonical are ticked; fragment canonicals, page 2 pointing to page 1 and JavaScript rewriting the canonical are crossed.A drawn checklist: absolute URLs in the head, self referencing tags and internal links to the canonical are ticked; fragment canonicals, page 2 pointing to page 1 and JavaScript rewriting the canonical are crossed.
Six habits drawn from Google Search Central guidance.

Why does JavaScript cause canonical trouble?

Because the page can end up with two values: one in the HTML source and another after a script runs. Google asks for the canonical in the HTML source with JavaScript leaving it alone, or, when that is impossible, for the tag to be left out of the source and set only by JavaScript. Our SSR vs CSR guide explains how rendering choices affect what crawlers read first.

  • Run the checker on the raw source and on the rendered head from developer tools.
  • Search the theme and plugins for every place that prints rel=canonical.
  • Confirm the target returns a 200, not a redirect or an error.
  • Re-test after each plugin or theme update.

Canonical tags in WordPress, Shopify and other platforms

Most platforms print a canonical for you, so the job is usually checking what they print rather than writing tags by hand. Google itself notes that a CMS may offer a search engine settings page instead of direct access to the HTML head.

WP: WordPress core. Prints a canonical on single views.
Yoast: Yoast SEO. Canonical URL field under Advanced.
Liquid: Shopify themes. A global canonical_url object.
Wix: Wix. Search settings instead of raw HTML.
SQ: Squarespace. Managed hosts and domains.
Mag: Magento. Store settings for categories and products.
Platform canonical notes, as each platform documents them
PlatformWhat its own documentation statesWhere Progression starts
WordPress (core)rel_canonical() outputs a canonical for singular queries; introduced in version 2.9.0Archives, attachments and parameters
WordPress with Yoast SEOAdds canonicals; a Canonical URL field under Advanced; none printed on noindex pagesOverrides set by hand over the years
ShopifyThe Liquid canonical_url object holds the canonical URL for the current pageCollection paths, variants and theme edits
Other CMSsGoogle notes a CMS may offer a search settings page instead of HTML accessThe settings page and the rendered head

WordPress core and Yoast SEO

The WordPress rel_canonical() function outputs a canonical for singular queries, so single posts and pages get one from core, and it has used wp_get_canonical_url() since version 4.6.0. The Yoast SEO help center says the plugin adds canonical URLs, lets editors set a full canonical URL in the Advanced tab of its sidebar and prints no canonical on pages marked noindex. See WordPress SEO services for how Progression sets these up.

Shopify themes

Shopify’s Liquid reference documents a global canonical_url object holding the canonical URL for the current page, which a theme prints in its head. Theme edits and apps can still add a second tag, so check the rendered head after every change. Shopify SEO services covers collections and variants.

Squarespace, Magento, Wix and other builders

Platform specific settings live on their own pages: Squarespace SEO services covers domains and SSL on that platform, Magento SEO services explains the category and product settings, and Wix SEO services covers what Wix manages for you.

Canonical tags during migrations, rebrands and redesigns

Launches are where canonicals break most visibly: a staging host leaks into live tags, a new template drops the tag, or old and new URL schemes both stay live. Progression checks canonicals in the staging crawl, again on launch day and then weekly until Search Console settles.

Which canonical checks belong in a launch plan?

Every template should print one absolute canonical naming the new production URL, the old addresses should redirect permanently, and the sitemap should list only new canonical URLs. A rebrand with a new domain adds host level redirects and a fresh Search Console property to the same list.

Staging and test copies

Google lists an accidentally crawlable demo site among the common sources of duplicates, and it warns that relative canonicals make that worse. Keep staging behind a password, use absolute canonicals in production templates and search the live head for the staging host on launch day.

  • Crawl old and new sites side by side before switching DNS.
  • Compare canonical, title and status code for every mapped URL.
  • Watch Duplicate statuses in the Page indexing report for the first month.
  • Read traffic dropped after a website redesign if numbers fall after launch.
  • Plan the build with website redesign services so canonical rules are part of the brief.

Technical SEO from Progression

Progression audits, fixes and monitors canonicalization as part of technical SEO: crawling every template, mapping duplicate clusters, setting one canonical per page, aligning redirects, sitemaps and internal links, and tracking Google’s selected canonicals until they match. The table shows typical market ranges so proposals can be compared on equal terms.

Technical SEO work and typical market ranges (market ranges only)
Technical SEO workTypical market range (market ranges only)What it covers
Technical SEO audit$1,200 to $6,000 one time (market ranges only)Crawl, canonical, redirect and indexing review with named URLs
Site migration support$2,500 to $15,000 one time (market ranges only)Redirect map, canonical rules and launch checks
Domain or URL structure migration$2,000 to $10,000 per project (market ranges only)New host or path scheme with every old URL mapped
Ecommerce SEO$2,000 to $15,000 a month (market ranges only)Catalog size and faceted navigation drive the scope
International or multilingual SEO$3,000 to $20,000 a month (market ranges only)hreflang clusters with matching canonicals

Every Progression proposal is scoped to the site, the platform and the number of templates in front of it, and the ranges above are market ranges only.

Running a store with filters, variants and tracking links?Tell us the platform and roughly how many products you sell. The free proposal sets out which URLs should be indexed, which should consolidate and how Progression enforces it.

Get a free proposalTell us about a project you’d like help with.

More free SEO tools and guides

Progression publishes free browser tools next to this canonical tag checker, from robots.txt rules to schema checks, and each runs on its own page without sending your data anywhere.

This page leaves out a lot: the Progression Method, proprietary and reserved for clients. Reach out to learn more

Frequently asked questions

What does a canonical tag do in simple terms?
It tells search engines which address to treat as the main one when the same content appears at several URLs. Google then tends to index and show that URL and folds signals such as links from the duplicates into it. The tag is a strong hint, so Google can still pick another page.
Where in the HTML does rel=canonical belong?
Inside the head of the page, as a link element with rel=canonical and an absolute href. Google only accepts the element in the head, so a canonical printed in the body, or placed after an element that closes the head early, can be ignored. Keep the head section valid HTML.
Is canonical tag SEO still worth the effort?
Yes. Google says no canonicalization method is required and it will choose a canonical on its own, but a declared canonical helps decide which URL people see, consolidates link signals and saves crawling on duplicates. On sites with parameters, filters or several hosts, it is basic housekeeping.
Does Google always follow the canonical you declare?
No. Google calls a declared canonical a hint, not a rule. It clusters similar pages, then picks the one it judges most complete and useful, weighing redirects, rel=canonical, sitemaps, HTTPS and internal links. If the declared URL is not similar to the page, Google will not choose it.
Should the preferred page name itself as canonical?
Yes. Google recommends adding the rel=canonical link element to the canonical page itself as well as to its duplicates. A self referencing canonical means copies created by tracking parameters, session IDs or scrapers reusing your HTML still point back to the clean URL instead of to themselves.
Is a relative href acceptable in rel=canonical?
It works, but Google recommends absolute URLs. Relative paths are supported, yet Google warns they can cause problems later, for example if a testing site is accidentally crawled and its canonicals resolve to the test host. Write the full address, including https and the exact host you prefer.
How is a canonical tag different from a 301 redirect?
A 301 sends visitors and crawlers to the new address, so the old URL stops showing content. A canonical tag leaves both URLs working and only asks search engines to prefer one. Google suggests redirects for retiring a duplicate and rel=canonical when both versions must stay reachable for visitors.
Can noindex stand in for a canonical tag?
Not within one site, according to Google. A noindex blocks the page from Search completely, while rel=canonical lets Google consolidate the duplicate into the preferred URL. Google names rel=canonical annotations as the preferred solution and also advises against robots.txt or the URL removal tool for this job.
Why is robots.txt the wrong tool for duplicate URLs?
Because a blocked URL can still be indexed without its content, and Google cannot crawl it to read its canonical tag. Google’s canonicalization guidance says not to use robots.txt for canonical purposes, and its robots.txt introduction adds that the file is not a mechanism for keeping a page out of Google.
Can a canonical point to another domain?
The standard allows it: RFC 6596 says a canonical target may sit on a different hostname or domain. Google is cautious, though, and does not recommend the canonical element for syndicated articles because partner pages often differ; it advises partners to block indexing of the syndicated copy instead.
How do I set a canonical for a PDF file?
Send an HTTP Link header with the PDF response, naming the preferred URL with rel=canonical. Google supports this header for web search results and for non HTML files such as PDF or Word documents. Use an absolute URL, and declare the canonical either in the header or in the HTML, not both.
Does putting a URL in the sitemap make it canonical?
It helps, but only weakly. Google says every page listed in a sitemap is suggested as a canonical and that it still decides which pages are duplicates based on their content. A sitemap that lists the same URLs as your canonical tags and internal links reinforces one clear choice.
Should later pages of a paginated list name page one as canonical?
No. Google’s pagination guidance says not to use the first page of a sequence as the canonical; give each page its own canonical URL, link the pages in order with ordinary anchor links and avoid fragments for page numbers. RFC 6596 makes the same point about component pages.
How should canonicals handle filter and sort parameters?
Google says the most effective controls for faceted navigation are blocking filter URLs in robots.txt or using fragments, when those views need not be indexed. Pointing a filtered URL’s canonical at the unfiltered listing may reduce crawling of filtered versions over time, though Google calls it less effective long term.
How can I see which canonical Google picked for a page?
Inspect the URL in Search Console’s URL Inspection tool and open the Page indexing section. It shows the User-declared canonical from your page and the Google-selected canonical. Google’s value comes from indexed data only, so a live test cannot predict it, and it can trail the index by a few hours.
What does the status Duplicate, Google chose different canonical than user mean?
It means your page declares itself canonical, but Google decided another URL in the cluster is a better canonical and indexed that one instead. Compare the page, your declared canonical and Google’s choice. If the pages are genuinely different, make the content differ more; if they are duplicates, align the signals.
Is Alternate page with proper canonical tag something to fix?
No. Search Console uses that status for an alternate version, such as an AMP page or a separate mobile URL, that correctly points to an indexed canonical, and its help page says there is nothing you need to do. Duplicates marked this way usually show canonicalization working.
What happens when a page prints two canonical tags?
The signal becomes unclear, especially when the two tags name different URLs, and Google advises against declaring different canonicals for one page through different methods. Duplicate tags usually come from a theme and an SEO plugin both printing one, so remove the extra source and keep exactly one.
Do canonical tags consolidate link signals?
Yes, when Google accepts them. Google says canonicalization consolidates signals for duplicate pages, such as links pointing at them, into the preferred URL once it becomes canonical. That only happens when the duplicate genuinely matches the target page, which is why the content has to support the tag.
How long before Google honors a changed canonical?
It depends on crawling, and Google gives no single figure for a tag change. Its troubleshooting guide says that after content fixes, pages may stay in a duplicate cluster for up to two weeks. Requesting indexing in URL Inspection can prompt a re-evaluation of key URLs, within the tool’s quotas.
Does the canonical checker on this page visit my URL?
No. Nothing is fetched. The checker works only on the address and the HTML you type or paste, inside your own browser. It cleans the URL, writes the link element and the HTTP header, compares duplicate variants and lists every canonical in pasted code along with its problems.
Can Progression fix canonical problems across a whole site?
Yes. Progression crawls the site, maps every duplicate cluster, sets one canonical per page in the CMS or server, aligns redirects, sitemaps and internal links, then tracks Search Console until Google’s selected canonicals match. Send the domain and your platform, and you receive a free proposal.

Search Console full of duplicate statuses?Send the domain and a screenshot of the Page indexing report. The free proposal maps every duplicate cluster and the canonical, redirect and sitemap changes Progression would make.

Get a free proposalTell us about a project you’d like help with.

Get a free marketing proposal

Tell us what you are trying to grow and we will come back with a plan, not a pitch deck. Same-day reply on weekdays.

Privacy Preferences
When you visit our website, it may store information through your browser from specific services, usually in form of cookies. Here you can change your privacy preferences. Please note that blocking some types of cookies may impact your experience on our website and the services we offer.
Contact Us