SEO
Canonical Tag SEO Guide
Written by Noel
Published:
2 min read
Topics researched with AI assistance; reviewed and edited by Noel before publishing.

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.
Related reading
Free Astro launch checklist
Get the checklist covering SEO, performance, structured data, and deployment — plus occasional product updates and subscriber discounts.
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.