Canonical tag
Definition
A canonical tag is a short line of code, written as rel=”canonical”, that tells search engines which URL is the preferred version of a page when similar or identical content exists at more than one address.
Websites create duplicates more often than owners realize. The same product might appear at several URLs because of filters, sorting options, tracking parameters or category paths. A page might load with and without a trailing slash, or on both the www and non-www versions of a domain.
Without guidance, search engines have to guess which version to show in results, and they may split ranking signals between the copies. The canonical tag points them to the version you want indexed and asks them to consolidate signals there.
It is a strong hint rather than a strict command. If the rest of your site contradicts it, for example internal links and the sitemap all point to a different version, search engines may choose their own canonical. Consistency across the whole site is what makes the tag reliable.
Canonical tag: why it matters
Duplicate URLs dilute your rankings and can cause the wrong page to show up in search. A correct canonical setup keeps your strongest page in front of searchers and stops crawlers wasting time on copies. It matters most for online stores and sites built on platforms that generate URLs automatically.
Example
Picture a hypothetical Ottawa outdoor gear shop selling a winter jacket that appears under “Men’s coats”, “Sale” and “New arrivals”, each with a different URL. A canonical tag on every version pointing to one clean product URL tells search engines that this single page is the one to rank.
How to check your canonical tag setup
Open a page, view the source and search for rel=”canonical”. You should find one tag pointing to the full, clean URL of the version you want indexed. Most indexable pages should point to themselves, which is called a self-referencing canonical. WordPress SEO plugins such as Rank Math add these automatically, and Shopify themes generally include them by default, but it is still worth confirming.
Google Search Console gives a clearer picture. The URL Inspection tool shows both the user-declared canonical, which is what your tag says, and the Google-selected canonical, which is what Google decided. If they differ, Google is not following your hint. The Pages report also lists URLs under statuses such as “Duplicate, Google chose different canonical than user”.
When Google picks a different version, check whether your internal links, sitemap and redirects all point to the same URL as the canonical tag. Fixing those mixed signals is usually what brings them back into line.
Canonical tag mistakes to avoid
A common mistake is pointing many different pages to the homepage or to one category page. Canonicals are meant for duplicates or near duplicates, not for pages with different content. Another is pointing the canonical at a URL that redirects, returns an error or is marked noindex. Each of those sends conflicting instructions.
Paginated pages, such as page 2 and page 3 of a blog archive, should generally point to themselves rather than all pointing to page 1. Otherwise, the products or posts listed on later pages can be harder for search engines to find. Also make sure each page has only one canonical tag; themes and plugins sometimes both add one.
For bilingual sites, the English and French versions of a page are not duplicates. Each should carry its own canonical tag pointing to itself, with hreflang tags linking the two language versions. Pointing the French page’s canonical to the English page can keep the French version out of search results, which matters for reaching French-speaking customers in Ottawa, Gatineau and the rest of Canada. After any change to canonical settings, recheck a few key pages with URL Inspection a few weeks later.
Related service: Search Engine Optimization.
Related terms
Complimentary consultation
Prefer to talk it through?
Book a 30-minute call. We’ll explain what matters for your business — and skip what doesn’t.
