Duplicate content is common on business websites and online stores: the same product appears in several categories, tracking parameters create new URLs, and pages exist with and without “www” or a trailing slash. Canonical tags help search engines pick the right version to index and rank.

What Is a Canonical Tag?

A canonical tag is a line of HTML in the page head that points to the preferred URL:

<link rel="canonical" href="https://example.pk/blue-lawn-suit/" />

It tells Google, “If you find similar copies of this page, treat this URL as the main one.” Google treats it as a strong hint rather than a strict command, so other signals need to agree.

DIT Download Manager

When You Need Canonical Tags

  • URL parameters: ?utm_source=facebook, ?sort=price, ?ref=whatsapp.
  • Products in multiple categories: /men/kurta-123 and /eid-sale/kurta-123.
  • Print or AMP versions of pages.
  • Syndicated content: when your article is republished on another site, ask them to canonicalise to your original if possible.
  • Near-duplicate pages: for example, colour variants with almost identical descriptions.

Self-Referencing Canonicals

Best practice is for every indexable page to have a canonical pointing to itself. This protects against parameter versions being indexed. WordPress SEO plugins like Yoast and Rank Math, and Shopify, add these automatically.

Common Canonical Mistakes

  • Canonicalising everything to the homepage: a badly configured theme or plugin can do this, which can stop inner pages being indexed.
  • Paginated pages pointing to page 1: page 2 of a category has different products; it should usually self-canonicalise.
  • Canonical to a redirected or 404 URL: always point to a live, 200-status page.
  • Conflicting signals: a canonical pointing to URL A while the sitemap and internal links all use URL B.
  • Using both noindex and a canonical to another page: these send mixed messages; choose one approach.
  • HTTP vs HTTPS mismatches: canonicals should use your final HTTPS URL.
  • Multiple canonical tags: often caused by a theme and a plugin both adding one. Google may ignore both.

Canonical vs 301 Redirect vs Noindex

  • 301 redirect: use when the old URL should no longer exist for users (for example, an old page moved to a new URL).
  • Canonical: use when both URLs need to work for users, but only one should be indexed.
  • Noindex: use when a page shouldn’t appear in search at all, such as thank-you pages or internal search results.

How to Check Your Canonicals

  1. View source: search for “canonical” in the page source.
  2. Search Console URL Inspection: shows both your declared canonical and the “Google-selected canonical”. If they differ, investigate.
  3. Page indexing report: look for “Duplicate, Google chose different canonical than user” and “Alternate page with proper canonical tag”.
  4. Crawlers: Screaming Frog or Sitebulb can list canonicals across your site and flag issues.

Help Google Agree With You

Because canonicals are hints, support them with consistent signals:

  • Link internally to the canonical URL only.
  • Include only canonical URLs in your XML sitemap.
  • Redirect HTTP to HTTPS and non-www to www (or the reverse) site-wide.
  • Keep content on duplicates genuinely similar; if pages are very different, Google may ignore the canonical.

Final Thoughts

Canonical tags are a small piece of code with a big impact on how your site is indexed. A quick audit often reveals mistakes that quietly hold rankings back, especially on ecommerce sites.

Need a technical SEO check of canonicals, redirects and indexing? Digital Ranker Pakistan can audit your site and fix the issues.