URL translated "/en" referenced by default on Google

Hello,

I’m writing to you because I’m having a very specific problem with a site. Since we installed a translation application, the first link referenced in SEO when we type in our brand name on Google is the translated link:
https://www.home-beddings-and-curtains.com/en

Whereas the original link is https://www.home-beddings-and-curtains.com/ (without the “/en” suffix) at the end.

Do you know where it could be coming from for Google to interpret this? Could it have something to do with the application or something else?

Thanks in advance,

Hi @MaxCosta ,

It appears that the absence of hreflang tags and the presence of self-canonical tags on both language versions is contributing to the issue you’re experiencing with Google indexing.

To address this:

  1. Hreflang Tags: Implement hreflang tags on your pages to indicate the language and regional targeting. Ensure that each language version has the appropriate hreflang tag pointing to the corresponding version. For the English version (“/en”), the hreflang tag should point to the original version without the “/en” suffix.

  2. Canonical Tags: Adjust the canonical tags on your pages. The canonical tag should indicate the preferred version of the page. For the original version without the “/en” suffix, the canonical tag should point to itself, and for the English version (“/en”), the canonical tag should point to the original version without the “/en” suffix.

HTML with Hreflang Tags:
For the original version (without “/en”):


  
  
  
  
  

  

For the English version (“/en”):


  
  
  
  
  

  

Make sure to update these tags consistently across your website and monitor the changes using tools like Google Search Console. This should help Google understand the relationship between the original and translated versions, improving the indexing and search results for your brand.

If you have any further questions or encounter challenges during this process, feel free to reach out.

Best regards,

Makka

1 Like

Thank you so much for your reply!
Do you know where I should integrate this code in Shopify?

The code snippets you put for me, I use them for language Href tags, but for canonical tags, I have to do something else?

Thank you very much in advance,
MC

@theycallmemakka Hi! Would it be possible to add to what you’ve said, as I’m not sure I’ve included your code in the right place?
Thanks in advance

Hi @MaxCosta ,

The code i previously attached is just an example code. You will have to make the code dynamic so that it works on all the pages.

Yes, I understand, I have to replace the links with the correct corresponding URLs.
That said, I wonder where I should embed these code snippets? In theme.liquid

This code should be added inside head tag . This is usually present on theme.liquid

@theycallmemakka Okk thank you so much! Just a last question,

The code snippets you put for me, I use them for language Href tags, but for canonical tags, I have to do something else?

Thank you very much in advance,
MC

For canonical tag, you can add canonical tag to the master page for all the language. For example, for both page https://www.home-beddings-and-curtains.com/en and https://www.home-beddings-and-curtains.com/, you can use below canonical tag


Note: if you add the canonical tag, only the master page will be indexed on the google.

Thank you so much!

But do you think it makes sense to create a canonical tag for the original version? Wouldn’t that have an impact on SEO?

Its ok to add a canonical tag for the original version. This will be concidered as a self canonical which is perfectly fine.

Ref: https://www.botify.com/blog/the-top-10-questions-about-canonical-tags-answered#:~:text=A%20self%2Dreferencing%20canonical%20tag%2C%20as%20it%20sounds%2C%20is,com%20(the%20same%20URL.