How to Do Canonical Tags for Content
A canonical tag tells search engines which URL is the preferred version when the same content can be reached at more than one address.
What a canonical tag tells search engines
A canonical tag is a line in the head section of a web page that names one preferred address for a piece of content. Search engines use it when they find several URLs showing essentially the same text, so they know which address to index and which ones to treat as copies. The tag does not hide the other URLs from visitors, and it does not stop them from being crawled. It is a signal about preference, not a command.
The problem it solves is more common than most writers expect. One article can be reachable at a URL with tracking text after a question mark, a print-friendly address, an http version, and a version with and without a trailing slash. Each of these can become a separate entry in a search index unless the site makes the preferred version clear. Canonical tags are one of the main ways to do that, alongside redirects and consistent internal links.
Decide whether a page needs one
- 1Look for duplicate addresses
Load the page and note any variant addresses that show the same article, such as 'example.com/guide?utm_source=newsletter' next to 'example.com/guide'.
- 2Check that the copies are essentially the same
Two versions that differ only in navigation or tracking text usually qualify. A page with a genuinely different angle, even on the same topic, does not, and it should have its own canonical pointing to itself.
- 3Choose the address you want ranked
This is usually the clean, public, HTTPS address that your navigation and sitemap already use. Consistency across those places matters as much as the tag.
- 4Point the copies at that address
Each variant should carry a canonical naming the chosen URL, and the chosen URL should name itself. A self-referencing tag is a sensible default because it guards against variants you have not spotted yet.
Common duplicate patterns and the usual target
| Situation | Example variants | Usual canonical target |
|---|---|---|
| Tracking parameters | '/guide?ref=social' and '/guide?utm_medium=email' | '/guide' |
| Protocol and host | 'http://example.com/guide' and 'https://www.example.com/guide' | The HTTPS version you serve to visitors |
| Trailing slash | '/guide' and '/guide/' | Whichever form your site uses everywhere |
| Print layout | '/guide/print' | '/guide' |
| Sorted listing | '/blog?sort=newest' | '/blog' |
| Syndicated copy on another site | 'partner.example.org/reprint-of-guide' | Your original article URL, if the partner agrees to add the tag |
Writing the tag correctly
The tag belongs inside the head section of the HTML, and each page should have one canonical. Its href should be an absolute URL that includes the protocol and domain, such as 'https://www.example.com/guide/'. A relative path like '/guide/' depends on how the page was loaded and is easier to get wrong across templates. Use the same protocol, host and trailing-slash style that you use everywhere else on the site, so the tag and the internal links tell one consistent story.
Fixes for common errors
- Two canonical tags on one page pointing to different URLs. Keep one. Conflicting tags can leave search engines to disregard both.
- A canonical pointing to a URL that redirects elsewhere. Point it at the final destination instead of the redirect.
- A canonical on every article pointing to the blog homepage. Each article should name its own address, because the homepage is not a copy of it.
- A canonical on a page that also carries a noindex instruction. The two signals conflict. Decide whether the page should be indexed and align both.
- A canonical pointing to a URL that returns an error or is blocked from crawling. Replace it with a live, crawlable address.
Search engines weigh the tag alongside redirects, internal links, sitemaps and how similar the pages are. A tag alone rarely settles which URL gets indexed. If a canonical seems to be ignored, check whether other signals on the site point to a different version, and fix those first.
Audit a section of your site
- 1Export canonical values
Crawl a sample of pages with a crawler you trust and record the canonical value for each one, along with the page's own address.
- 2Flag the problem patterns
Mark pages with no canonical, more than one canonical, relative paths, or canonicals pointing to redirects or error pages.
- 3Compare with internal links
Check whether your navigation links to the same address the canonical names. A mismatch means either the tag or the internal links need changing.
- 4Confirm the target has its own content
A canonical target should be a substantive page, not an empty tag page or a near-blank stub.
- 5Recheck after template changes
A single template update can add or remove tags across many pages, so repeat the crawl after any change to headers or page layouts.
If you publish your article on another site, ask the publisher to add a canonical pointing to your original. If they decline, a visible link back to the original is the next best option, and you should accept that the copy may be the version that appears in search.
Keep a record of your choices
Write down the preferred URL for each article, along with the variants you have found and the reason for each decision. This record makes future audits faster and stops a new team member from changing a canonical without knowing why it was set. Before you canonicalize two pages, confirm they really are near-duplicates. Text Compare on AI Humanizer Lab can show exactly where two drafts differ, which is a practical way to check whether a canonical is justified.
Try it on your own text
Paste anything and watch the word count, character count, sentence and paragraph stats, reading time, and keyword density update in real time. No button needed — it just counts.
ParaphraserRebuild any passage sentence by sentence while your meaning, facts, and tone stay exactly where you left them. Two depths, from a light refresh to a full restructure.
Make your writing sound human
Humanize AI-generated text in one click with AI Humanizer Lab.
Try for free