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
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:
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:
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:
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.
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.
In the template file, look for the section. This is where you will add the rel=canonical tag.
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.
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 %}
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?
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!
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.