Pages come under collection/product shows No self-referencing hreflang but the same page views under product page have no issue
aaaaaa.fr/ collections/bbbbbb/products/ccccccc - No self-referencing hreflang
aaaaaa.fr/ products/ccccccc - Have No Issue (Same product)
How to resolve?
Hello @Suryadprakash ,
We are Transcy - a powerful translator and currencies converter.
To resolve the issue, you can add self-referencing hreflang tags to your collection pages. This will indicate to search engines that the page is also available in the same language and region as the current page, and help prevent potential duplicate content issues. Here's how:
<link rel="alternate" hreflang="fr-FR" href="https://aaaaaa.fr/collections/bbbbbb/products/ccccccc" /> <link rel="alternate" hreflang="fr-FR" href="https://aaaaaa.fr/collections/bbbbbb" />
Hope these can help. Don't be hesitate to contact us if you have any further questions. Please hit the Like Button or mark this as Accepted Solution for us, it encourage us a lot.
Hi Transcy team.
Thanks for the reply! i had already developed this in my page, here what the issue is im using "shopify Translate and adopt app" this is where the problem is i cant access to the "hreflang" coding section. can u pls explain me where can i add the coding part? hence im using "shopify Translate and adopt app"
If you can't access the "hreflang" coding section, you may edit the code in your theme's code. Try to follow these steps:
<head> <!-- Other head elements --> <link rel="alternate" hreflang="x-default" href="https://example.com/" /> <link rel="alternate" hreflang="fr" href="https://example.com/fr/" /> <link rel="alternate" hreflang="en" href="https://example.com/en/" /> </head>
Or, you can try to access the "HTML" tab in the "Shopify Translate and Adapt" app and paste the code here.
Hope this will work. Don't be hesitate to contact us if you have any further questions.
Have a nice day.
Explore the 30-30-30 rule, a dynamic social media strategy for new businesses. Learn how t...By Trevor Sep 20, 2023
Discover how to leverage the often overlooked footer of your ecommerce site to gain custom...By Skye Sep 15, 2023