All things Shopify and commerce
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=descripti...
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:
<link rel="canonical" href="https://jane-anderson-store.myshopify.com/products/the-art-of-exceptionality" />
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:
You can add the following robots meta tag to the head section of the HTML code for the page or product:
<meta name="robots" content="noindex, follow" />
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:
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 <head> section. This is where you will add the rel=canonical tag.
Add the following code to the <head> section:
<link rel="canonical" href="https://jane-anderson-store.myshopify.com/products/the-art-of-exceptionality" />
I hope this helps! Let me know if you have any questions or need further assistance.
I have the same issue, but with 50.5k affected pages. Do I need to do this to every single page?
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 <head> section
{% if template contains 'collection' and current_tags %}
<meta name="robots" content="noindex" />
<link rel="canonical" href="{{ shop.url }}{{ collection.url }}" />
{% else %}
<link rel="canonical" href="{{ canonical_url }}" />
{% endif %}
Thank you! Do you know about how long it would take for me to see the results in my search console?
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 <a href="{{ product.url | within: collection }}" class="grid-product__link"> 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.
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.
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.
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!
How did you fix it?
how?
Hello, I have added the code before my head tag, but I see 198K is still affected. 😞
I screen recorded my screen. Do you know why this is still been happening?
hello, I hope you are fine,
please send me your website link.
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 <head> 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 <head> element of each page:
For Page A :
<link rel="canonical" href="https://www.example.com/page-a">
For Page B :
<link rel="canonical" href="https://www.example.com/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 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.
Hi.
Does this need adding to each page individually, or can one piece of code be global throughout the site?
If you could explain where to drop the code, that would be ace 🙂
I find the liquid templates easily. But where are the HTML coded pages for pages, products, or categories?
Hello,
I am currently facing this issue. I am wondering if anyone was able to find a solution for those who cannot find the files in their templates. I am currently using Dawn 12.0 theme and i have over 1k pages not indexed. Can someone please help?
So, adding this to the head section of my product page, where is that? The very top? place 1?
Hello, the bigger question I have related to an excessive amount of Canonical Tag Errors is, what is causing them??? I have a bunch of garbage/code behind a products link starting with a "?". Since support cannot answer this I'll ask here. What or how are these created and how do I stop it? My canonical errors are growing by the day and I cannot go and add something to a head of every single page. I also don't feel I should have to pay to resolve an issue that I feel is created by Shopify in the first place... Can someone shed some light as to where these two examples are being created? Please remember, each is behind my products link.
https://www.mysinfulcloset.com/products/playboy-vampire-costume?variant=39657004925033¤cy=USD
I currently have over 6.3k canonical tag errors, last month it was 5.4k
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.
please make a short video or screen shorts of affected URLs and also give me your website URL to check your robot's Txt file and pages. or contact me.
Hi Rajaah, I have emailed you as I am facing similar issues too. Do let me know if you can assist! Thank you!
Just to confirm. You'd like all affected URL's? In my case that would be over 200 actual product pages and over 6,000 canonical page errors.
I have fixed this globally, without needing to go through each product seperately.
You need to go to snippets, then go through each 'product' folder and search for product.url
Where you find {{ product.url | within: collection }} change it so it reads
{{ product.url }} then save it.
Each theme is different, but my theme had it appear 3 times. once in the product-grid-item folder and again in the product-template folder
Easy fix, once you know where to look.
I am having a similar issue, however, I believe mine is slightly different, I believe that the duplication is coming from the variations.
I am not seeing the {{ product.url | within: collection }} within any snippets folder. And the only Product.url there was is within the Product.variations folder.
Further more, I believe that the Alternate pages being picked up, are some how duplicating, because, this shop is a specialty shop and does not have many products or options, and I am sure there are 650 pages w/ proper canonical tag with our product list is North of 100. I have canonicalized every product page, and Collection page, SiteMaps have been added, and yet, I am still experiencing a growth in alternate pages with proper canonical tags. Can someone HELP!?
did you find a solution to your issue?
I received this response from support! First off, shopify created the issue. They at first blamed Google and said the links were created by Google. Now they are telling me I have to pay for a support partner to resolve it as it is "complex". Uh, not happening!!! I'll be taking this further with them and will reply their responses. Here is the reply I was sent by a rep.
I hope this message finds you well. As promised, I have an update to share with you based on the information I received regarding the recent inquiries about SEO and Google Search Console for your Shopify site.
The feedback I received from our Technical Team indicates that the matter at hand falls under the realm of SEO and Google Search Console, an area that is beyond the scope of our current team. It appears that the parameters added to the URL, such as pr_prod_strat, pr_rec_id, pr_rec_pid, pr_ref_pid, and pr_seq, are associated with passing parameters for product recommendations, likely due to the integration of a "you may also like" block on your site.
Further insights gleaned from discussions on the Shopify Community platform here suggest that the functionality you are aiming for is quite advanced. In light of this, we recommend considering collaboration with a Partner from the Shopify Partner Directory specializing in marketing and sales, particularly in SEO and Paid Search services. You can explore potential partners at Shopify Partner Directory.
Should you require additional guidance or assistance in navigating these more intricate SEO-related matters, partnering with a Shopify expert from the directory may prove beneficial in achieving your objectives effectively. Otherwise, if you need additional assistance, please do not hesitate to reach out to us through our channels. Shopify support is available via Live Chat & Email, we are always willing to help you out.
Shopify and our financial partners regularly review and update verification requiremen...
By Jacqui Mar 14, 2025Unlock the potential of marketing on your business growth with Shopify Academy's late...
By Shopify Mar 12, 2025Learn how to increase conversion rates in every stage of the customer journey by enroll...
By Shopify Mar 5, 2025