The internet runs on content. Whether it’s product descriptions on an ecommerce site, articles on a news website, or posts on social networks, content is what we create and consume whenever we’re online.

That content has value – it generates revenue and helps you rank in organic, GEO, and AI search results. But when the same content is available at more than one URL, search engines have to decide which version to show. You can guide that choice by telling them which version you prefer, known as the ’canonical’ version.

That’s what canonical tags are for. They flag duplicate or near-duplicate pages and point search engines to the original, giving the page you want to rank the best chance of appearing in search results.

In this guide, we explain what canonical tags are, show how they’re used, and cover when and why to use them as part of SEO, GEO, and AI visibility best practices.

What is a canonical tag?

A canonical tag is a small piece of HTML in the <head> section of a web page. It contains the URL of the preferred version of that page, telling search engines which URL is the main copy. Search engines can then consolidate ranking signals onto that URL, rather than splitting them across duplicates.

A canonical tag tells search engines one of two things:

  • This page is the preferred version (a self-referencing canonical, where the tag points to the page’s own URL)
  • Another page is the preferred version (a cross-URL canonical, where the tag points to the original)

Self-referencing canonicals stake your claim to a page. Cross-URL canonicals are useful when a page is a full or near duplicate of another and should pass its signals to it. Either way, canonical tags work best when your other signals, like internal links, sitemaps, and redirects, agree with them.

When you publish content, canonical tags give you a direct way to influence how it’s indexed and shown in search.

Example of a canonical tag

Canonical tags follow a standard format:

<link rel=”canonical” href=”https://www.example.com/canonical-page/” />

You might sometimes hear canonical tags being called meta tags. Strictly speaking, that’s not correct – they’re <link> elements, not <meta> elements. But they behave similarly: they sit in the <head> of the page, give search engines extra information about the content, and are read when the page is crawled.

It’s a simple line of code, but it can have a big impact on how your pages are indexed and how they perform.

When are canonicals needed and how can you check them?

Canonical tags matter most when the same or very similar content is available at more than one URL. This happens more often than you might think – through tracking parameters, filtered URLs, printer-friendly versions, or HTTP and HTTPS versions of the same page.

Google’s guidance on consolidating duplicate URLs describes rel=“canonical” as a strong signal for telling it which URL you prefer. Using it consistently helps consolidate ranking signals and reduces duplication issues.

Many modern CMS and ecommerce platforms add self-referencing canonical tags by default. But on older or heavily customised websites, it’s worth checking. Simply visit a page, view the source, and look for a canonical tag in the <head>. If you do find canonical tags, check that they point to the right URLs.

How search engines choose a canonical URL

Canonical tags are a strong signal, but they’re a hint, not a command. Search engines don’t always follow them.

Google uses a range of signals to decide which URL to index, including internal linking, redirects, sitemaps, backlinks, URL length, and overall site structure. If those signals contradict your canonical tag, it may choose a different URL as the canonical version.

That’s why canonicalisation shouldn’t be treated in isolation. It works best as part of a broader SEO strategy, with consistent internal linking, strong content, and a clear site architecture.

Best practice for implementing canonicals

Only use cross-URL canonical tags when a whole page has a direct equivalent elsewhere. They’re not designed for pages that simply share a small section of content with another page.

It’s also good practice to add a self-referencing canonical tag to every original page you publish, so there’s no doubt about which URL is the definitive version.

Whichever approach you use, apply it consistently across your site, and make sure your canonical tags match your internal links, sitemaps, and other indexing signals.

Canonical tags and hreflang

Canonical tags and hreflang tags are often used together, but they do different jobs, so it’s important to know which one you need.

A canonical tag identifies the preferred version of duplicate or similar content. Hreflang tells search engines about language or regional versions of a page.

In most cases, each international version of a page should have a self-referencing canonical, with hreflang connecting the versions together. If you canonicalise all your international pages to a single version, search engines may not show the right regional page to the right users, which can damage your search performance. 

We look at this in more detail in our post on duplicate content across international versions of the same website.

Canonical tags for ecommerce and faceted navigation

Canonical tags are especially important for ecommerce SEO, where filtering and faceted navigation can create many variations of the same URL.

Without proper canonicalisation, these variations can cause duplication, waste crawl budget, and dilute ranking signals. As a rule, parameterised or filtered URLs should canonicalise to the main category or product page. The exception is a filtered page you’ve deliberately built to target specific search demand, such as a ’black leather boots’ page, which should canonicalise to itself. Either way, keep your canonical choices consistent with your crawl rules and internal links.

Auditing canonical tags

Auditing canonical tags is an essential part of technical SEO, particularly on larger or more complex websites. The aim is to find missing canonical tags, incorrect implementations, and conflicts with other signals, such as redirects or noindex directives. Tools like Screaming Frog make this easier, as you can use it to crawl your site automatically and check the Canonicals tab for any required fixes.

It’s also worth checking how Google interprets your canonicals. In Google Search Console’s URL Inspection tool, you can compare the canonical you declared with the one Google selected. We walk through common mismatches in our guide to canonical issues in Google Search Console.

Canonical tags and JavaScript websites

On websites built with modern JavaScript frameworks, canonical tags must be present in the final rendered HTML.

If search engines can’t see the canonical tag when they crawl or render the page, they may not process it correctly. On JavaScript-heavy sites, server-side rendering or pre-rendering is usually the safest way to make sure the tag is in the HTML, rather than relying on client-side code to add it. Our guide to server-side vs client-side rendering explains why.

Mistakes to avoid when implementing canonicals

Canonical tags aren’t complicated, but they’re easy to get wrong, especially when they’re combined with other ways of controlling how search engines crawl and index your site. Here are the most common mistakes.

  • Combining canonical tags and noindex: A canonical tag asks search engines to consolidate a duplicate into the preferred page. A noindex tag asks them to drop a page from search results altogether. Using both on the same page sends mixed signals, so avoid combining them.
  • Blocking non-canonical pages in robots.txt: If a page is blocked in robots.txt, search engines can’t crawl it, so they can’t see its canonical tag. Leave non-canonical pages crawlable if you want the canonical to work.
  • Canonicalising paginated content to page one: It’s common to see the second and subsequent pages of a series canonicalise back to the first. But these pages have different content, so each should have a self-referencing canonical instead – unless a single ’view all’ page contains everything.
  • Putting the tag in the wrong place: Canonical tags only work in the <head> of a page, not the <body>. Each page should also have only one canonical tag, pointing to one URL.

Canonical tags and AI search

In the AI search era, the fundamentals of canonical tags haven’t changed, but mixed signals are becoming more costly. AI search experiences such as Google’s AI Overviews usually draw on and cite one URL for each source, so it matters more than ever which version of your page they find.

A consistent preferred URL, backed up by internal links, sitemaps, and crawlable HTML makes it less likely that a parameterised or duplicate copy is the version these systems retrieve and credit.

That said, canonical tags won’t guarantee an AI citation or inclusion in any model’s training data. GEO and AI visibility is something to measure rather than assume, which is why we treat canonical hygiene as one part of AI search optimisation, alongside classic duplicate control.

Make canonical tags part of your search strategy

Canonical tags are simple to write. The complexity lies in knowing when and how to use them.

Get them right, though, and the impact is significant. By helping search engines understand which pages matter most, canonical tags help ensure your content is indexed, consolidated, and ranked as you intended.

As websites grow more complex and search continues to evolve, canonicalisation remains a fundamental part of any effective technical SEO strategy. Consistent preferred URLs, aligned internal links, and crawlable implementation are where we start when we help clients consolidate indexation and performance.

Get in touch today to find out how we can strengthen your site’s technical foundations and help it perform even better in search.