Free auditStart free
GuideShopify · Canonical URLs

Shopify canonical tags

Check Shopify’s automatic canonical output, keep theme metadata intact, and diagnose product paths that vary by collection or tracking.

3 min
read
4
sources
Oct 24, 2026
updated
Scaplet Editorial Team
author
In one line

Shopify adds canonical tags automatically, and Shopify themes can render the global Liquid canonical_url object in the document head. Inspect the live tag before editing theme code. Keep one canonical signal for each page, use the preferred product or market URL consistently in links and sitemaps, and check Google’s selected canonical in Search Console when a duplicate URL is reported.

30-second check

Where does your site stand?

Four quick questions, then a straight answer.

1/4Have you checked your own site for this?
Summarize this page withChatGPTClaudePerplexityGoogleAI Mode
01How it works

Inspect Shopify’s default before changing code

Shopify’s SEO overview says canonical tags are generated automatically. In a Shopify theme, the canonical_url Liquid object can be used in the head, commonly in layout/theme.liquid. Before adding an app or custom tag, view source on a product, collection, and collection-context product URL and see what the live theme already emits.
Theme canonical output
<link rel="canonical" href="{{ canonical_url }}">
  1. 01

    Check the public page source

    Search for rel="canonical" on each representative URL. Confirm there is one tag and it points to the expected absolute URL.

  2. 02

    Compare URL forms

    Check a product reached directly and through a collection, then a URL with tracking parameters. Note whether they render the same product and which URL the tag selects.

  3. 03

    Check market versions separately

    For Shopify Markets, inspect each localized URL. Shopify says each market version has a self-referencing canonical URL and hreflang tags that connect all versions together, so a translated or regional page keeps its own canonical. Do not collapse market pages without checking the market and language setup.

03How it works

Keep Google’s canonical signals aligned

  • Use the same preferred URL in rel="canonical", internal links, redirects, and sitemap entries. Google warns against sending different canonical URLs through different methods.
  • A canonical is a signal, not a command. Google can select another URL if your pages, redirects, or site links suggest a different choice.
  • Do not use robots.txt for canonicalization. Google says it may still index URLs that are disallowed in robots.txt without their content.
  • Do not use noindex to choose a canonical within one site. Google says noindex "will completely block the page from Search."
  • For a true product migration, redirect old paths rather than leaving the old URL as a duplicate forever.

Related tasks: Shopify XML sitemap, Shopify hreflang, and Shopify redirects.

  1. 01

    Inspect the selected canonical

    In Search Console URL Inspection, compare the user-declared canonical and Google-selected canonical for the reported URL.

  2. 02

    Change one source of conflict

    If they differ, audit theme output, app output, sitemap URLs, and internal links. Correct the inconsistent signal rather than adding another tag.

  3. 03

    Recheck after recrawl

    Verify the live HTML after the theme publishes, then allow Google to recrawl and re-evaluate the duplicate cluster.

Sources · 4

Every fact, linked and dated.

Official docs first. The date is when we last opened each page.
  • shopify.com
  • shopify.dev
  • google.com
  1. 01SEO overview | Shopify Help Centerhelp.shopify.com · checked 2026-10-24
  2. 02Add SEO metadata to your theme | Shopify.devshopify.dev · checked 2026-10-24
  3. 03How to specify a canonical with rel=canonical and other methods | Google Search Centraldevelopers.google.com · checked 2026-10-24
  4. 04International SEO for markets | Shopify Help Centerhelp.shopify.com · checked 2026-10-24
Questions

Asked a lot.

3 questions people ask next, answered from the sources on this page.

01Does Shopify create canonical tags automatically?

Yes. Shopify’s SEO overview says canonical tags are automatically added, and themes can emit the global Liquid canonical_url object in the page head.

02Where do I add a canonical tag in a Shopify theme?

Shopify’s theme documentation shows canonical metadata in the <head> of layout/theme.liquid using {{ canonical_url }}. Inspect the current theme before adding code.

03Why does Shopify use a different canonical for a market page?

Shopify Markets can assign distinct URLs to localized versions. Inspect the market’s language, URL, canonical, and hreflang relationship before changing the tag.

Free · 2 minutes

Tools point. Agencies advise. This one ships.

Run the free audit, then approve the fixes. Every change can be undone.

Free, no card60 secondsNobody will call you
  • 46 fixes shipped without a ticket Brightpipe
  • 0→7 ChatGPT citations in six weeks Paylane