Is using JavaScript to render translations safe for International SEO?
-
Hello World!
Background: I am evaluating a tool/service that a company wants to use for managing the translated versions of their international/multi-lingual websites: https://www.transifex.com/product/transifexlive/
Transifex is asking webmaster to "simply add a snippet of JavaScript" to their website(s); the approved translations are added by the business in the back-end; and the translated sites are made live with the click of a button (on/to the proper ccTLD, sub-domain, or sub-directory, which is specified).
CONCERN: Even though I know Google reads JavaScript for crawling and ranking,
I am concerned because I see the "English text" when I view the source-code on the "German site", and I wonder if this is really acceptable?QUESTION: Is a service like this (such as Transifex using JavaScript to render translations client-side) safe for indexing and ranking for my clients' international search engine visibility, especially via Google?
Thank you!
-
Hi Edward,
It's not recommended to rely on Google capacity "processing" scripts to show any key content on your site, in this case, additional language or country versions. If the information shown in the HTML code and the Google cache version of the pages is not the relevant one -and only one is shown the whole time for example- then it's not being correctly rendered. You can also verify this with the "Fetch as Googlebot" functionality from the Google Search Console.
If you want to make sure that each of your language/country versions are really accessible then the best is to make sure each piece of content is published as text in their own specific HTMLs whether in ccTLDs, subdirectories or subdomains for country versions or also, subdirectories or subdomains for language versions; making sure to use the relevant terms and topics for each language/country audiences (which might not necessarily be the literal translations among them, so a unique keyword research, content writing and optimization process by a native speaker is required)
Thanks!
-
No. Because HTML text will be same and altered with JS.
And bots using HTML text for indexing and ranking.
-
OKay, so if we properly use hreflang tags, and link sites each other, based on the hreflang tag protocol, then is this acceptable and safe to use JavaScript to render translations client-side, specifically for the Google search engine?
-
TL;DR - NO.
There are few ways for translation and they're described there:
https://support.google.com/webmasters/answer/182192?hl=enYou also must implement hreflang and link sites each other.
Browse Questions
Explore more categories
-
Moz Tools
Chat with the community about the Moz tools.
-
SEO Tactics
Discuss the SEO process with fellow marketers
-
Community
Discuss industry events, jobs, and news!
-
Digital Marketing
Chat about tactics outside of SEO
-
Research & Trends
Dive into research and trends in the search industry.
-
Support
Connect on product support and feature requests.
Related Questions
-
Using same URL for both "en" and "en-us" hreflang tags
Hi,I have a question. Is it okay if I use the same URL for both "en" and "en-us" hreflang tags? For example, for my en-us page: Is this okay with Google? What are your thoughts on this?
International SEO | | Avid_Demand0 -
International targeting search console, why did my rankings dropped?
hi reader, i changed the settings in console to USA, since then my rankings have dropped. my current data center or host is is Asia singapore, i am changing that USA this month question is, am i too late? or tageting should be done after changing ip address
International SEO | | maria-cooper90 -
International SEO
Okay, so I have read through the following link in respect to International SEO (https://mza.seotoolninja.com/learn/seo/international-seo), and I believe that the way forward it a ccTLD. My thought was to have .com, .co.uk and .eu. Currently my site is .com, but receives most of its traffic from UK sources. I'm concerned that when I switch over to ccTLDs, the .co.uk in particular, that my UK traffic could dry up. Switching from .com to .co.uk and then using the .com to target the US market makes sense, but I would like to know others opinions on the potential dangers of doing this. Also, are ccTLDs kept on the same hosting or would they require individual hosting? The link doesn't cover this question.
International SEO | | moon-boots1 -
Can a Global Website Rely on Browser Settings for Translation?
Our website serves a global market and over a year ago, we launched 8 language variations of the site and implemented hreflang tags. These language variation pages are proving difficult to maintain, and in Search Console they're triggering thousands of errors. I have double checked our implementation and it's not perfect, so I understand the errors. Here's the question though... the 8 language variations of the site are receiving less than 1% of our web traffic despite 40% of our web traffic coming from countries outside of North America every month. I want to know if we can eliminate the headache of these 8 language variations altogether, remove our attempt at hreflang, and simply rely on the browser settings of the user to dictate what language the website appears in for them? If not, is there a simpler solution than hreflang and attempting to maintain a very large website in 8 languages? Thank for your input! Niki
International SEO | | NikelleClark0 -
What are the SEO implications of having a website hosted in Singapore (as a subdomain of the global website) when the website is targeting the UK audience?
What are the SEO implications of having a website hosted in Singapore (as a subdomain of the global website) when the website is targeting the UK audience? Will it be hard to get it to rank? Will there be problems with search console?
International SEO | | ToniFarrington-Allthingsweb0 -
International Targeting for Australia Problem
Hello Moz Community! I'm reaching out since I recently launched a UK and Australia version of my website. Now, each page on the website has 4 versions: 1. www.example.com 2. www.example.com/au 3. www.example.com/uk 4. www.example.com/en <-- this is a by-product of the plugin we're using, CMS is WP each page has the following 4 targeting tags on it: I looked in Webmaster Tools and we're getting an error on what appears to be every Australia page. The error states, ""au"- unknown language code. URLs for your site that have an unknown language code 'au' and their alternate URLs." In Google's own example, they have the language for Australia set as en-au [https://support.google.com/webmasters/answer/189077?hl=en} Has anyone run into this issue before? We had the alternate tag set to "au" at first, but edited the plugin so the alternate tag now says "en-au", but this still hasn't remedied the problem. Any insights into resolving this error are greatly appreciated!
International SEO | | DigitalThirdCoast0 -
International Hub site: .uk vs domain vs subdomain
Financial company with 2 sites: 1- Mybrand.com for the US market.
International SEO | | FXDD
2- global.mybrand.com is the hub for international with selection for 10 languages: drop-down allows selecting between mybrand.jp, mybrand.fr, etc Now we have the opportunity to redesign the site from zero and I am exploring to get rid of the subdomain for the global site What would be your preference to use as the international hub? a) mybrand.co.uk: I have to use lawyers to get the URL from squatter b) mybrandGlobal.com : URL easy to get, and can be geo targeted using google webmaster tools. Cons: It might not rank as well as .co.uk in the UK, which is our biggest market c) global.mybrand.com-- pros: keep using it because it is aged and has some authority. Google might now see subdomains as part of TLD, thus making it a valid way to separate international from US .. Cons: SEO best practices advice to avoid subdomains because it might not pass full link value across domains. There is not really different content the subdomain, it is just the hub for international Thanks in advance for the help0 -
Internationalization and SEO
Hi Everyone, This is my first post in this new Q & A section!! This interface looks great!! Now onto the question.... We have www.example.com in English that has 50,000+ URLs. We are in the process of building a new site example.de targeting German users. The German site (www.example.de) will be a mirror of the English site at launch as we want to give a full experience to people visiting the .de domain. However, not all pages will be localized as we can't support that. We are planning on localizing the core sets of pages (~500) and leaving the rest in English. Post launch, we will have additional milestones to localize the remaining pages until the entire site is localized (converted to German). Is this the correct way to go? Will this cause duplicate content issue?
International SEO | | Amjath
Will adding "rel=canonical" tag on these pages solve the purpose? Thanks for the help!0