Skip to content
Bdazzil Marketing

Blog SEO

Canonical Tags: What They Are & How to Use Them

Canonical tags tell Google which URL to index. Learn the syntax, when to self-reference, how cross-domain use works, and how to avoid the most common errors.

6 minute read

Canonical tags are a short line of HTML that tells search engines which URL is the main version of a page. When the same or very similar content can be reached at more than one address, the tag points to the one you want indexed and shown in results. It is one of the most useful tools in SEO, and one of the easiest to get wrong without anyone noticing.

This explainer covers what the tag is, how to write it, where it belongs, and the errors we see most often in audits. It forms part of our work in search engine optimization, and sits within the crawling and indexing side of technical SEO. If you are trying to resolve a sitewide duplication problem, the tag is one piece of a wider process that also involves redirects and parameter handling.

What canonical tags are

A canonical tag is a link element with the attribute rel=”canonical”, placed in the head section of a page. It names the preferred URL for that content. Search engines treat it as a strong hint when deciding which version to index and where to consolidate signals such as links.

  • It does not redirect visitors. People can still reach the alternate URL.
  • It does not remove a page from the index by command. It suggests which version should represent the group.
  • It is a hint, not a directive. Google weighs it with other signals and can choose differently.

The tag can also be sent as an HTTP header, which is useful for files such as PDFs that have no HTML head.

The correct syntax

The element itself is simple. In the head of the page, it reads as follows:

<link rel=”canonical” href=”full preferred URL including https and trailing slash”>

Small details decide whether it works.

RuleCorrectAvoid
URL formatAbsolute URL with protocol and domainRelative paths such as /page/
PlacementInside the head elementInside the body, where it is ignored
QuantityOne canonical per pageTwo tags from theme and plugin
Target statusA live, indexable page returning 200Redirected, 404 or noindex targets
ConsistencyMatches your protocol, host and slash ruleMixing www and non-www

Self-referencing canonical tags

A self-referencing canonical points to the page’s own URL. It looks redundant, but it is a sensible default on every indexable page.

  • It protects against tracking parameters. When someone shares a link with a campaign tag, the canonical still names the clean URL.
  • It removes guesswork about protocol, www and trailing slash variants that slip past redirects.
  • It defends against scrapers that copy your HTML wholesale, as the copied page may still point back to you.

Most SEO plugins for WordPress, including Yoast SEO, add self-referencing canonicals automatically. Check that the theme is not adding a second one.

Common use cases

Beyond self-reference, the tag is used whenever a variant must stay available to visitors but should not compete in search.

Parameters and filters

Sorted or filtered views of a category usually point their canonical to the unfiltered category, unless a specific filter has been built into a page worth ranking on its own.

Products in several categories

If a product appears under more than one path, choose one primary URL and point the others to it. Better still, configure the store so each product has a single URL regardless of the category it is reached from.

Cross-domain canonicals

When the same article is published on a partner site or a second domain you own, the copy can carry a canonical pointing to the original. Google treats cross-domain canonicals as a hint too, so it is worth confirming that the partner has actually added the tag.

Language versions

Arabic and English pages are not duplicates of each other. Each should carry a self-referencing canonical and link to the other with hreflang. Pointing the Arabic canonical at the English page asks Google to drop the Arabic page from results, which is a costly mistake for UAE businesses targeting both audiences.

Common canonical tag errors

These are the problems we find most often, usually introduced by a theme change, a plugin conflict or a migration.

ErrorSymptomFix
Every page canonicalized to the home pageInner pages disappear from resultsRestore self-referencing canonicals
Paginated pages pointing to page oneItems on later pages not discoveredLet each page reference itself
Canonical to a redirected URLGoogle ignores the hintPoint to the final destination
Canonical plus noindex on one pageConflicting signalsUse one or the other
Staging domain in canonicals after launchLive pages point to stagingUpdate site URL settings and recheck
Canonical added by JavaScript onlyInconsistent pickupOutput it in the server HTML

How to check canonical tags

  1. View the page source and search for rel=”canonical” to confirm there is exactly one, in the head, with an absolute URL.
  2. Use URL Inspection in Google Search Console to compare the user-declared canonical with the Google-selected canonical.
  3. Run a site crawl to list every page whose canonical points elsewhere, then review each group.
  4. Check the Page indexing report for “Duplicate, Google chose different canonical than user” and investigate those URLs first.
  5. Recheck after theme updates, plugin changes and migrations.

On WordPress sites, most canonical problems trace back to one setting: the site address in General Settings, the SEO plugin configuration, or a page builder that outputs its own head elements. Keep a short note of which component is responsible for the tag, so anyone who changes the theme or adds a plugin knows to confirm it still appears exactly once. A quick check on five or six key templates after every update catches nearly all regressions before Google does.

Frequently asked questions

Are canonical tags a ranking factor?

Not directly. The tag helps Google decide which version of a page to index and where to consolidate signals such as links. That consolidation can help the preferred page perform better, because its strength is no longer split across several URLs. The tag itself does not add ranking value to a page.

Should every page have a canonical tag?

Every indexable page benefits from a self-referencing canonical. It costs nothing, protects against parameter and protocol variants, and removes ambiguity. Pages that are variants of another page should point to that main version instead. Pages set to noindex do not need one.

What is the difference between a canonical tag and a 301 redirect?

A 301 redirect sends both visitors and search engines to a new URL, so the old address effectively disappears. A canonical leaves the page accessible to visitors and only suggests to search engines which version to index. Use a redirect when the duplicate has no purpose for visitors, and a canonical when it does.

Why does Google choose a different canonical than mine?

Google treats the tag as one signal among several. If internal links, the sitemap, redirects or hreflang point to another URL, or if the pages differ more than the tag suggests, Google may override your choice. Align those signals with your preferred URL and make sure the target is indexable and returns a 200 status.

Clear signals, cleaner indexing

Used correctly, this small element keeps your preferred URLs in search results and concentrates ranking signals where they belong. The essentials are simple: one absolute canonical per page, in the head, pointing to a live indexable URL, with self-reference as the default and language versions kept separate.

If you would like us to check how canonicals are set up across your site, we would be happy to review them with you.

Keep reading

SEO

How to Use AI & Automation in SEO Reporting

AI SEO reporting promises to remove the most tedious part of search marketing: pulling numbers from several tools every month, pasting them into slides and writing the same comment...

SEO

Common SEO Reporting Mistakes & How to Avoid Them

Most SEO reporting mistakes are not about bad data. They come from reporting the wrong things, in the wrong order, without enough context for the reader to understand what changed...

Free Growth Audit

Tell us about your project

A few details and we'll reply within one business hour, with a 30-minute call and a written plan to follow.

Sunday to Thursday, 9am to 6pm UAE time. Replies within one business hour.