Help › Search engines and SEO

SEO and the script tag

BuiltLast updated

On this page

The script tag changes the text of a page in the visitor's browser after the page loads. It does not create any new address and it does not change your server's HTML.

  1. One address for every language. Google recommends separate addresses for language versions rather than cookies or browser settings. A script that swaps text on /pricing gives Google no /fr/pricing to list. See Google's guide.
  2. A crawler does not choose a language. Googlebot usually crawls from the United States and does not send a language preference.
  3. Script-made content is second class. Google renders JavaScript later, with its own browser. The loader runs on a language choice or an address signal. Crawlers therefore mostly see your original language. How other search engines and link-preview tools treat scripts is verify.
  4. Titles, descriptions, structured data, address slugs and sitemaps cannot be translated for crawlers that do not run scripts. Do not promise translated slugs or sitemaps with the script tag.
  5. hreflang needs separate addresses.
  6. No automatic redirects. The loader never redirects by language. Google advises against it.

When the script tag is the right tool#

When it is not enough#

If you need search traffic in other languages, use a path with real language addresses. WordPress with the plugin, Shopify, the framework kits, or your platform's own multilingual feature. Use the script tag only for the parts they do not cover.

The Google statements here were checked on 2026-10-28. Re-check every six months.