Dealing with duplicate content issues on Shopify can be frustrating, especially when you’re not ready to hire a technical SEO expert. Fortunately, there’s a quick and easy way to fix this without any complex steps. In just 5 minutes, you can solve the duplicate canonical problem and improve your site’s SEO.
Here’s how you can do it:
- Login to Shopify Backend: Start by logging into your Shopify store.
- Go to Code Editor: Navigate to your Online Store, then click on the Code Editor and select your
theme.liquid
file. - Add the Code: In the
head
section of your theme, paste the following two lines of code (which you can find in the description below). - Save and Check: After adding the code, click Save. Then, check your live website to confirm the canonical URL is properly displayed on your product pages.
- Validate in Search Console: Finally, go to Google Search Console, click “Validate,” and give it a few days for Google to fix the issue.
To Fix Duplicates Without User-Selected Canonical use below Code for Shopify
<link rel="canonical" href="{{ canonical_url }}">
<link rel="canonical" href="{{ collection.url | absolute_url }}">
That’s it! You’ve successfully solved the duplicate canonical problem in no time.
0 Comments