Kinfotech Digital Solutions LLP
Technical SEO

What Is a Canonical Tag in SEO and How Does It Affect Rankings?

15 September 2026 7 min read
what is a canonical tag in SEO guide how it works

A canonical tag in SEO is a line of HTML code placed in the head section of a web page that tells Google which URL is the preferred, authoritative version of a page’s content. When Google crawls a page and finds a canonical tag, it treats the declared canonical URL as the one to index and rank — consolidating all ranking signals from any duplicate or near-duplicate versions onto that single preferred URL. Get canonical tags right and your ranking signals consolidate cleanly. Get canonical tags wrong and your own pages end up competing against each other, splitting link equity and confusing Google about which version to rank.

Understanding what a canonical tag is in SEO and how to implement it correctly is essential technical knowledge for any website with more than a few hundred pages — and critical for eCommerce stores, content-heavy websites, and any site that generates URL variants through filtering, pagination, or parameter strings.

Why Canonical Tags Exist: The Duplicate Content Problem

Every website, at some level, has duplicate content — not intentionally, but as a natural consequence of how URLs are generated by content management systems, eCommerce platforms, and analytics tracking parameters. The same product page accessible at both /products/running-shoe and /collections/mens-shoes/products/running-shoe. The same article available at both http:// and https:// addresses. The same category page loaded with and without a trailing slash. A product filter that appends ?colour=red&size=M to the URL. These URL variants all serve the same or near-identical content, creating a duplicate content situation Google has to resolve.

Without a canonical tag, Google has to decide for itself which version to index and rank — and it does not always choose the URL you want. More importantly, any external links pointing to different URL variants of the same page split their link equity between those variants rather than consolidating it on a single strong URL. Canonical tags solve both problems by explicitly declaring the preferred version.

What a Canonical Tag Looks Like in HTML

A canonical tag is a link element in the HTML head section. It looks like this: <link rel=”canonical” href=”https://www.yoursite.com/preferred-url/” />. The rel=”canonical” attribute identifies this as a canonical declaration. The href attribute contains the full preferred URL — the canonical URL — that Google should index and rank for this content. When Google processes this tag, it treats the declared canonical URL as the master version regardless of which URL was actually crawled to find the page.

Pages can be self-referencing canonicals — the canonical tag on the page points to the same URL as the page itself. This is best practice for any page you want indexed, as it explicitly declares that this URL is the canonical version and eliminates any ambiguity if the page happens to be accessible at minor URL variants. And pages can declare a different URL as canonical — telling Google “the content on this URL should be indexed and ranked at this other URL, not here.”

Where Canonical Tags Matter Most in SEO

eCommerce Product and Category URL Variants

eCommerce sites generate duplicate URL variants as a natural product of faceted navigation and collection-based URL structures. A product accessible through a category path generates both /products/product-name and /collections/category/products/product-name. Filter parameters generate /category?colour=red, /category?colour=red&size=M, and dozens more combinations. Sorting parameters generate /category?sort=price-asc alongside the base category URL. Without canonical tags pointing all these variants to the preferred base URL, Google crawls all of them — wasting crawl budget on low-value pages and potentially indexing the wrong URL as the primary version.

Shopify’s canonical tag handling for the product URL duplication between /products/ and /collections/*/products/ is automatic — Shopify adds a canonical pointing to the /products/ version. But filtered and sorted collection page URLs, parameter-based variant URLs, and pagination URLs often require additional canonical implementation through the theme or a schema app.

HTTPS, WWW, and Trailing Slash Variants

A domain accessible at http://example.com, https://example.com, http://www.example.com, and https://www.example.com has four potential homepage variants. Without consistent 301 redirects and canonical tags pointing all variants to one preferred version, Google may treat these as separate entities and split the link equity and ranking signals between them. All four variants should redirect to and canonical to one definitive version — typically https://www.example.com or https://example.com depending on your chosen canonical format.

Syndicated and Republished Content

When content published on your website is syndicated or republished on another site — with your permission — the republishing site should implement a canonical tag pointing back to your original URL. This canonical tag declaration tells Google that your site is the authoritative source and should receive the ranking credit for the content. Without this canonical on the republished version, the syndicated copy on a higher-authority domain may outrank your original despite the content originating on your site.

Common Canonical Tag Mistakes That Hurt SEO

Canonical Tags Pointing to Redirecting URLs

If a canonical tag points to a URL that itself redirects to another URL, Google follows the redirect chain to find the actual canonical. While Google generally handles this, a canonical pointing directly to the final destination URL is cleaner and ensures the signal reaches Google without ambiguity or chain-following overhead.

Conflicting Canonical and Sitemap Signals

If a page’s canonical tag points to URL A but your XML sitemap includes URL B for the same content, Google receives contradictory signals. The sitemap says “index this URL” while the canonical says “index that other URL instead.” Canonical tags and sitemaps must be consistent — only URLs that are their own canonical should appear in your XML sitemap. Including non-canonical URLs in the sitemap is a canonical tag SEO mistake that creates confusion in crawl signal processing.

Using Canonical as a Substitute for Noindex

Some sites use canonical tags to try to prevent pages from being indexed by canonicalising them away to a different URL. This is not what canonical tags are designed to do and it is unreliable — Google treats canonical as a hint, not a directive, and can override it. To prevent a page from appearing in search results, the correct tool is a noindex meta tag. Relying on canonical tags to suppress pages often results in those pages being indexed anyway.

Missing Self-Referencing Canonicals

Pages that have no canonical tag leave Google to determine their canonical status independently — which it does, but not always in alignment with your preferences. All pages you want indexed should have a canonical tag, even if it simply self-references. This explicit declaration eliminates all ambiguity about which URL Google should treat as the preferred version for that page’s content.

How to Check Your Canonical Tag Implementation

A technical SEO audit specifically checks canonical tag implementation as part of its duplicate content and crawlability assessment. Common canonical tag SEO audit findings include pages with no canonical tag, canonical tags pointing to redirecting or non-existent URLs, canonical tags that conflict with sitemap entries, and pages where the declared canonical URL has substantially different content from the page carrying the tag — which is not correct canonical tag usage.

For quick self-auditing, Google Search Console’s URL Inspection tool shows both the “user-declared canonical” from your tag and the “Google-selected canonical” that Google has actually chosen to index. A discrepancy between these two — where Google has overridden your declared canonical — indicates that Google disagrees with your canonical declaration and has chosen a different URL as the master version. This is a signal worth investigating to understand why Google is not honouring your canonical and what change to URL structure or content is needed to resolve the discrepancy.

Share this article:

Kinfotech Team

Written by the Kinfotech team

Related Articles

Want Results Like the Ones We Write About?

We do not just write about SEO and digital marketing — we deliver it for businesses across India and 20+ countries. Get a free audit and see what is possible.