SEO error Alternate page with proper canonical tag

I have Alternate page with proper canonical tag error for shopify website in search console. It has errors for following links:
https://jane-anderson-store.myshopify.com/#!/CONNECT-How- to-Leverage-Your-LinkedIn-Profile-for-Business-Growth- and-Lead-Generation-in-Less-Than-7-Minutes-Per- Day/p/56155623/category=10387926

How to make changes so search engine does not crawl these duplicate links with product details such as shown below:
https://jane-anderson-store.myshopify.com/products/the-art-of-exceptionality?pr_prod_strat=description&pr_rec_id=1fdca66ff&pr_rec_pid=7165775085759&pr_ref_pid=6680154898623&pr_seq=uniform

It looks like you are experiencing an issue with duplicate content on your Shopify website. This can happen when the same content is accessible via multiple URLs, which can lead to confusion for search engines and can negatively impact your website’s search engine rankings.

To fix this issue, you can use the rel=canonical tag to indicate to search engines which URL should be considered the primary version of the content. This tag can be added to the head section of the HTML code for each page or product on your website.

For example, if you want to indicate that the following URL is the primary version of the content:

https://jane-anderson-store.myshopify.com/products/the-art-of-exceptionality

You can add the following rel=canonical tag to the head section of the HTML code for the page or product:

​

This will tell search engines that the specified URL is the primary version of the content, and that other URLs with the same content should be ignored.

You can also use the robots meta tag to tell search engines not to crawl certain pages or products on your website. For example, to prevent search engines from crawling the duplicate URL you mentioned:

https://jane-anderson-store.myshopify.com/#!/CONNECT-How-to-Leverage-Your-LinkedIn-Profile-for-Business-Growth-and-Lead-Generation-in-Less-Than-7-Minutes-Per-Day/p/56155623/category=10387926

You can add the following robots meta tag to the head section of the HTML code for the page or product:

This will tell search engines not to index the page or product and to follow any links on the page, but not to crawl the content.

I hope this helps! If you have any further questions or need more assistance, please don’t hesitate to ask.

Is there any plugin available to add the canonical url for each?

There are apps that help you with an SEO manager :

https://apps.shopify.com/seo-expert-pro

https://apps.shopify.com/seo-meta-manager

https://apps.shopify.com/seo-king

I recommend that you read the descriptions and reviews of these apps to get a better understanding of how they work and how they might be able to help you with your specific needs. You may also want to consider other options that are available, as there are many SEO apps available for Shopify that offer similar features.

Also if you want to it by yourself without apps. Here are the steps you can follow to add the rel=canonical tag to your Shopify pages:

  1. Determine the URL of the canonical version of the page you want to add the tag to. This should be the URL of the page that you want search engines to index.

  2. Open the template file for the page you want to add the tag to. You can find the template files for your theme in the “Templates” section of the Shopify theme editor.

  3. In the template file, look for the section. This is where you will add the rel=canonical tag.

  4. Add the following code to the section:


  • Save your changes and publish the theme. The rel=canonical tag will now be added to the page’s section, and search engines will use it to determine which version of the page to index.

I hope this helps! Let me know if you have any questions or need further assistance.

My client’s page 256 “Alternate page with proper canonical tag” issue appeared, I don’t understand how to solve the problem. Please help a little. The client’s site is on Shopify.

You should add the rel=“canonical” link element to each page that has the issue separately. This means that if you have multiple pages with the issue, you will need to add the rel=“canonical” link element to the element of each page.

For example, if you have two pages with the issue, “Page A” and “Page B”, you would add the following code to the element of each page:

For Page A :

For Page B :

This will specify the preferred version of each page and tell Google which page is the primary page and which pages are duplicates.

Kindly share your store URL please

I have the same issue, but with 50.5k affected pages. Do I need to do this to every single page?

@SocialAutoPost

Hey @curiousjoe , you can update the theme.liquid file to include the canonical tag on every page. Make sure you back up the theme.liquid code first but then you can add the following into the section

{% if template contains 'collection' and current_tags %}
  
  
{% else %}
    
{% endif %}

Thank you! Do you know about how long it would take for me to see the results in my search console?

I am also facing this issue but my all pages have proper canonical tags. Please tell me how to fix I have to attach the screenshot please reply to me.

My dear friend, if you don’t mind , can you please make a short video in this topic or you can explain it more .

Thanks

Thanks for the reply but I have fixed this issue,

Thanks!

Could you please explain the complete process.

Thankyou

for this, we have to go with the theme>edit code>snnipest>product grid item liquid>then find and simply remove (| within: collection). This problem arrived because we added one canonical to one product page but there is also another URL becomes when we enter in product page through the collection page for example my product page is https://skintrium.com/products/f-f-face-lighten-rejuvenating-fluid and this page also has URL https://skintrium.com/collections/serums/products/f-f-face-lighten-rejuvenating-fluid both URLs target toward same page but google indexed only canonical page which is the first page and other shows as alternative page issue.

Otherwise it doesn’t impact your SEO.

1 Like

i’m struggling to find a solution to this. i’m unable to find product-grid-item.liguid in prestige theme. is there any other solution to this problem?

in the prestige theme find product-grid-item.liquid in the “section” folder if you don’t see then check in the “template” folder.

How did you fix it?

Hello, I have the same issues about alternate page with proper canonical tag. I have read your reply and I think your solution will work for me. But I can’t find product.url | within: collection in Dawn Theme. Could you suggest and help me. Many Thanks!

Hello, i am unable to find the file you’re referring to in my shapes 1.3.0 theme, if you could kindly help me out, i’d appreciate it.

We have the same problem, but for over 24,000 pages. I’m not even sure how our Shopify store has that many pages, and the proposed solution obviously won’t work because we can’t manually add the rel=canonical tag to 24,000 different pages.

1 Like