FROM CACHE - en_header

Duplicate Canonical Tags

tomjjohnson98
New Member
1 0 0

Hi all!

I'm currently working on SEO product content and I'm looking to add canonical tags to 2 product pages to a 'master' product page.

Non-canonical pages:
https://bit.ly/37mc3B8
https://bit.ly/3jRAzPP

Canonical page:
https://bit.ly/3bev9Ky


I've added rel=canonical tags into the HTML of the two non-canonical pages pointing towards the lead page but when I scanned the page it says I have duplicate canonical tags.

Help would be much appreciated!

Thanks,
Tom

Replies 2 (2)
KieranR
Shopify Partner
315 25 105

It looks like you've placed an extra canonical tag inside the product description field. This is inside the <body> not the <head>. So it's in a non-standard location within the HTML and is a duplicate.

Unfortunately Shopify doesn't provide a mechanism for canonical overrides, so there are some workarounds. If you want to change canonicals you'd normally need to edit the theme code. Usually you'll find this in the themes.liquid file, however not all themes are structured the same. 

What I usually do is setup a metafield like seo.canonical and create logic in the themes.liquid file to check if that field exists for a product then replace the theme default canonical with the custom canonical. Ie use it for custom canonical overrides.

Also - just a note of caution if you get hands on with theme code it's pretty easy to learn, but also easy to break the site with a typo. Shopify has file rollbacks and lets you download a theme as a backup, not a bad idea if you're unfamiliar.

Full time Shopify SEO guy, based in NZ. Sometimes freelance outside the 9-5.
Propelguru
Trailblazer
313 7 46

A canonical tag is a technique by which search engines recognize that a specific URL represents the master copy of a page. Using the canonical tag one can prevent problems caused by identical or "duplicate" content appearing on multiple URLs in a website. Technically, the canonical tag tells search engines about which version of a URL you want to appear in search results while searching.

 

It’s Extremely tricky to find out duplicate content, but here are a few important things to consider when using the canonical tag:

  •  Canonical tags can be self-referential within a website. 
  •  They proactively canonicalize your home-page.
  •  Continuously spot-checking the dynamic canonical tags.
  •  Avoid mixed signals.
  •  Be careful while canonicalizing near-duplicates.
  •  Canonicalize the cross-domain duplicates.