SEEGEA

Canonical tag: syntax, use cases and frequent mistakes

The canonical tag is a <link rel="canonical"> tag placed in the <head> of a page. It designates the reference URL to Google when multiple URLs display the same or very similar content. In e-commerce, it is indispensable.

4 min readApril 17, 2026

The canonical tag (<link rel="canonical">) tells Google which URL is the authoritative version of a page. On e-commerce sites where the same product is accessible via multiple paths (collections, filters, variants), it is the primary tool against duplicate content.

Canonical tag implementation

<head>
  <link rel="canonical" href="https://example.com/products/trail-shoes" />
</head>

In Next.js (App Router):

export const metadata = {
  alternates: { canonical: 'https://example.com/products/trail-shoes' },
}

Shopify automatic canonical

Shopify automatically generates canonical tags pointing to /products/slug even when the product is accessed via /collections/x/products/slug. Verify your theme does not override this behavior.

Canonical for filter URLs

Filter parameters (?sort=price&color=red) create thousands of duplicate URLs. Each filtered URL should have a canonical pointing to the unfiltered category URL.

Cross-domain canonical

If you republish manufacturer content, add a canonical pointing to the manufacturer's original URL. This avoids duplicate penalty while keeping the page accessible on your site.
ScenarioCanonical toResult
Product via collection/products/slugPageRank concentrated on 1 URL
Filter URL ?color=red/collections/shoesCrawl budget saved
Variant with own URLMain product URLVariant not indexed separately
Paginated page /?page=3Page 1 or no canonicalAvoids indexing pagination
Never use a canonical tag pointing to a URL that is blocked by robots.txt or tagged noindex. Google cannot follow the canonical signal if the target itself is not crawlable.

Audit your canonical tags

30 min call · PDF report

Audit your canonical tags
Created in France (Annecy – Chantilly) · Email & Google Meet support

FAQ

The canonical URL is the reference URL you choose (e.g., /products/shoes). The canonical tag is the HTML element that declares this reference URL (<link rel="canonical" href="/products/shoes">). The tag implements the concept of the URL.

See Seegea in action

Book a 30-min live demo on Google Meet. No commitment.

Book a demo