Back to Checklist

Shopify Canonical Tags Setup

🎯Impact:High
⚡Difficulty:Easy
⏱️Time:30-45 min

Canonical tags tell search engines which version of a page you want to rank when multiple URLs show the same or similar content. Without proper canonical implementation, your SEO authority gets split across duplicate URLs, confusing Google about which page deserves rankings and diluting your link equity.

This guide shows you how to implement canonical tags correctly in Shopify and consolidate your SEO power.

Why Canonical Tags Matter

Every duplicate URL on your store splits ranking signals. When the same product appears at /products/shirt and /collections/summer/products/shirt, canonical tags tell Google which one to prioritize. Without them, both URLs compete against each other instead of working together.

Canonical IssueSEO ImpactExample
Missing canonicalsAuthority dilutionSame page on 5 URLs splits power
Wrong canonical targetIndexing wrong versionCollection URL ranks instead of product
Self-referencing errorsGoogle ignores canonicalPoints to different variation of page
Conflicting signalsSearch engines confusedCanonical contradicts sitemap

Canonical tags work alongside noindex product variants, noindex pagination, and www redirect settings to ensure Google indexes your preferred URLs and ignores duplicates.

Critical Problem: Shopify automatically generates canonical tags, but they don't always point to the right URL—especially with collection-based product URLs or when Shopify https isn't configured properly.

How to Audit Your Canonical Tags

Using Screaming Frog SEO Spider

  1. Download and install Screaming Frog SEO Spider
  2. Enter your store URL and click Start
  3. Wait for the crawl to complete
  4. Click the Canonicals tab in the interface
  5. Review pages marked as:
    • Missing Canonical (pages with no canonical tag)
    • Non-Indexable Canonical (pointing to noindexed pages)
    • Canonicalized (pages pointing to a different URL)

Export this data to see the full scope of canonical issues across your store.

Manual Page Check

For quick spot checks:

  1. Visit any product or collection page
  2. Right-click and select View Page Source
  3. Search for "canonical" (Ctrl+F or Cmd+F)
  4. Find the line: <link rel="canonical" href="...">
  5. Verify the URL matches your preferred version

The canonical should point to the cleanest, most authoritative version of that page.

Pro Tip: Check your Shopify sitemap to see which URLs Shopify considers canonical. Your sitemap should only include canonical URLs, not duplicates.

How to Implement Canonical Tags

Step 1: Identify Your Preferred URLs

For each type of page, decide which URL format is canonical:

Products: /products/product-handle (not collection-based URLs) Collections: /collections/collection-handle (not filtered or paginated) Pages: /pages/page-handle (clean, simple URLs) Blog Posts: /blogs/news/post-handle (standard blog structure)

Also decide on domain-level preferences:

Step 2: Check Shopify's Default Implementation

Shopify includes canonical tags by default in most themes:

  1. Go to Online Store > Themes > Actions > Edit Code
  2. Open theme.liquid in the Layout folder
  3. Look in the <head> section for:
<link rel="canonical" href="{{ canonical_url }}">

This Liquid variable automatically generates the correct canonical for most pages. If it's missing, add it before the closing </head> tag.

Step 3: Handle Special Cases

Some pages need custom canonical logic:

Collection-based product URLs: Should canonicalize to /products/ version Paginated pages: Should point to page 1 (covered in noindex pagination) Product variants: Should point to main product URL (covered in noindex product variants) Search results: Should be noindexed rather than canonicalized

Step 4: Use SEO Apps for Automation

For stores needing advanced control:

  1. Install an SEO app like "SEO Manager" or "Plug in SEO"
  2. Navigate to the app's canonical settings
  3. Configure rules for different page types
  4. Set default canonical patterns
  5. Save and apply across your store

Quality apps handle edge cases automatically and update canonicals when you change URL structures.

Verify Your Implementation

After implementing canonical tags, verify they're working correctly:

Method 1: Search Console Inspection

  1. Log into Shopify Search Console
  2. Use the URL Inspection tool
  3. Enter any product or collection URL
  4. Check the Coverage section
  5. Look for "User-declared canonical" under page details

Google should recognize and respect your canonical tags.

Method 2: Screaming Frog Re-Crawl

  1. Run another Screaming Frog crawl after changes
  2. Check the Canonicals tab
  3. Verify all pages now have proper canonical tags
  4. Look for zero or minimal "Missing Canonical" warnings
  5. Confirm canonical targets match your preferred URLs

Method 3: Manual Spot Checks

Test canonical consistency across your store:

  • Visit 5-10 random product pages
  • Check collection pages
  • Verify blog post canonicals
  • Test pages accessed through different navigation paths

All variations of the same page should point to the same canonical URL.

Common Canonical Mistakes

Self-referencing when you shouldn't: Every page pointing to itself prevents consolidation from duplicate URLs. Duplicate URLs should point to the preferred version, not themselves.

Pointing to 404s: Canonical URLs must be live, accessible pages. Verify targets aren't broken links.

Mixing with noindex: Don't noindex a page and also set it as someone else's canonical target. Pick one strategy per page.

Ignoring parameters: Query parameters like ?variant= or ?page= need canonical handling to prevent duplicate indexing.

Coordinate with Other SEO Elements

Canonical tags work best as part of a comprehensive strategy:

Sitemap Alignment: Your Shopify sitemap should only list canonical URLs, never duplicates.

HTTPS Consistency: All canonical tags must use Shopify https URLs, never HTTP versions.

Domain Choice: Canonicals should respect your www redirect preference consistently across all pages.

Noindex Coordination: Pages set to noindex pagination or noindex product variants don't need canonicals pointing to them.

Monitor Long-Term Health

Set quarterly audits to maintain canonical integrity:

Run Screaming Frog: Check for new canonical issues after theme updates or app installations.

Review Search Console: Monitor Shopify Search Console for duplicate content warnings.

Track Rankings: Proper canonicals should improve rankings as authority consolidates on preferred URLs.

Check After Changes: Any URL structure changes, domain migrations, or major site updates require canonical verification.

Most stores see SEO improvements within 60-90 days after fixing canonical issues. Rankings strengthen as Google consolidates all authority signals on your preferred URLs instead of splitting them across duplicates.

Related Guides

Shopify store traffic stuck? You're not alone.

We help Shopify stores rank higher in Google, attract quality traffic, and turn visitors into customers.

🚀 Trusted by 500+ Shopify merchants