Skip to content
noel.marketing

SEO

Canonical Tag SEO Guide

Noel

Written by Noel
Published:
2 min read

Topics researched with AI assistance; reviewed and edited by Noel before publishing.

Developer inspecting a canonical link tag in page source
Image created with AI.

Explore this topic

More SEO guides, glossary entries, and practical workflows live on the topic hub.

A canonical tag is the HTML hint that says which URL should represent a page in search. The tag looks like <link rel="canonical" href="https://example.com/products/linen-shirt/">. Use it when the same content can be reached from more than one address.

Key takeaways

  • One preferred URL per piece of content. Link to that URL in nav, breadcrumbs, and articles — internal linking.
  • Shopify product copies through collections are a common case — duplicate product URLs.
  • Filters and internal search usually should not become extra indexed URLs — search results SEO and faceted navigation.
  • Languages get their own canonicals plus hreflang.
  • Changed URLs still need 301s. Framer moves use Framer 301 redirects. Astro and this site use a redirects file, not a canonical as a substitute.

When to use it

Self-reference. The product page canonical points at itself, including the correct host and trailing slash your site uses everywhere else.

Parameters. A URL with ?variant= or a campaign query can canonical back to the clean product URL when the page content is the same. Email campaigns should still use UTM parameters on the links you send; the canonical keeps the index clean.

Near-duplicates. Two collection paths that render one product should agree on the primary product URL. Internal links in ecommerce SEO should use that same URL so the hint and the links match.

When not to use it

Do not canonical every blog post to the homepage. Do not point a translated page at another language. Do not canonical a page you want indexed to a URL that returns a redirect or a 404. For private pages, robots rules and noindex are clearer than a canonical to an unrelated URL.

Shopify technical SEO and Astro technical SEO cover the rest of the index setup. Markets and locales sit in the Markets localization hub.

Free Astro launch checklist

Get the checklist covering SEO, performance, structured data, and deployment — plus occasional product updates and subscriber discounts.

We’ll send a confirmation email. Please confirm to finish signup. If it doesn’t arrive within a few minutes, check your spam or junk folder.

Explore this topic

More SEO guides, glossary entries, and practical workflows live on the topic hub.

Frequently asked questions

What does a canonical tag do?

It suggests the preferred URL for a page when duplicates or near-duplicates exist. Search engines may still choose another URL if internal links disagree.

Should every page canonical to itself?

Yes, when that URL is the one you want indexed. A self-referencing canonical is the default, not a special case.

Can a canonical replace a redirect?

No. A 301 is for URLs that should not exist. A canonical is for URLs that may still be reachable, such as a tracking parameter or a filter view.

What about languages?

Each language has its own canonical. Hreflang connects the translations. Do not canonical a German page to English.

Shopify product duplicates?

Collection-prefixed product URLs should canonical to the primary product URL you link in navigation.

Where do I check it?

View source for link rel=canonical, then confirm Search Console shows that URL as the user-declared canonical.

Continue reading

  1. 1Core Web Vitals SEO Hub

    Map Core Web Vitals queries to the metrics guide, Astro CLS and Lighthouse checklists, and image SEO — not a second metrics tutorial.

  2. 2Ecommerce SEO Guide

    Ecommerce SEO is a page map: which URL owns which query, and which internal links pass a shopper to the next step.

  3. 3On-Page SEO Checklist

    A practical on-page SEO checklist for theme shops and Shopify stores — one primary query per URL, then the fields that actually show up in search.

  4. 4Structured Data JSON-LD SEO Hub

    Connect JSON-LD tutorials to Shopify product schema, Astro FAQ schema, and catalog pages.

  5. 5Keyword Research for Ecommerce SEO Hub

    Turn keyword research impressions into a site map — links to our ecommerce research guide and Shopify/Astro landing guides.