No self-referencing hreflang - in collection->product page

No self-referencing hreflang - in collection->product page

Suryadprakash
Visitor
2 0 1

Pages come under collection/product shows No self-referencing hreflang but the same page views under product page have no issue

Ex:

aaaaaa.fr/ collections/bbbbbb/products/ccccccc - No self-referencing hreflang

aaaaaa.fr/  products/ccccccc - Have No Issue (Same product)

How to resolve?

 

Replies 4 (4)

Transcy
Shopify Partner
285 19 86

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.

 

Regards,

Transcy team.

Transcy - The #1 Translation and Currency Converter
- Was my answer helpful? Please hit Like or Mark it as solution!
- Get in touch with us: App Store | Blog
Suryadprakash
Visitor
2 0 1

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"

Transcy
Shopify Partner
285 19 86

Hello again,

 

If you can't access the "hreflang" coding section, you may edit the code in your theme's code. Try to follow these steps:

  • Go to Online store -> Themes -> Action -> Edit code 
  • Navigate to the template file for the page you want to edit
  • Locate the <head> section of the template file, and add the hreflang tags within it
<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>
  • Save and test

 

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.

Transcy team.

Transcy - The #1 Translation and Currency Converter
- Was my answer helpful? Please hit Like or Mark it as solution!
- Get in touch with us: App Store | Blog
Zuzana29
Shopify Partner
5 0 0

Hi Transcy team,

 

I understand your solution when it comes to a particular page but I have this problem too and it is happening for all my products in all my collections.

 

Is there a way how to generally solve this problem? 

 

Thank you!