本文へスキップ

Salesforce Commerce Cloud (B2C) 向け glot

エンタープライズ · ユニバーサルタグ

Salesforce Commerce Cloud (B2C) では、すべてのページに追加する 1 つのスクリプトタグで glot が動きます。訪問者のブラウザでページを翻訳し、言語メニューを追加します。

この手順は Salesforce Commerce Cloud (B2C) の公式ドキュメントで確認できませんでした。利用する前に Salesforce Commerce Cloud (B2C) のヘルプセンターで確認してください。

プラットフォーム側の手順は、Salesforce Commerce Cloud (B2C) の画面のメニュー名に合わせて英語で記載しています。

glot タグを追加する

  1. glot でプロジェクトを作成し、言語を追加します。
  2. glot Edge → サイト用タグを開き、サイトのアドレスを入力します。glot がサイトを翻訳してプレビューを表示します。タグを貼り付けたら、同じ画面でインストールを確認し、タグをオンにします。
  3. そのタブからタグをコピーします。プロジェクトと公開キー(data-key)はすでに入っています。下のタグはその形式の例です。
glot タグ
<script src="https://app.glotlang.com/widget/glot.js" data-project="your-project" data-key="pk_…" async></script>
  1. Ask your developer or agency; this is a code change, not a Business Manager setting.
  2. In a custom cartridge (never the base app_storefront_base cartridge), override the head template common/htmlHead.isml or register a script on the app.template.htmlHead hook in hooks.json.
  3. Add the glot tag so it renders inside <head> on every page.
  4. Make sure the custom cartridge is on the site's cartridge path, deploy the code version and activate it.
  5. For PWA Kit / composable storefronts, add the tag to the app's document head component instead.
サイト用タグのガイド

必要なプラン

Requires code access to the storefront cartridges (developer or partner). No self-serve plan option.

glot の各プランの内容は料金ページをご覧ください。glot Edge(翻訳済み URL)は Growth プランに含まれ、Pro では限定トライアルを利用できます。

検索エンジン向けの翻訳済み URL

JavaScript を実行せずに検索エンジンがインデックスできる翻訳ページにするには、2 つの DNS レコードで glot Edge をドメインのサブドメイン(es.example.com)に置きます。

DNS レコード(TXT トークンは glot Edge → セットアップに表示されます)
es.example.com.        CNAME  edge.glotlang.com.
_glot.es.example.com.  TXT    "<token shown in the dashboard>"

Add the CNAME and TXT at your DNS provider. Enterprise storefronts run on your own domain, often behind eCDN; make sure the es. subdomain is not routed to SFCC.

glot Edge の仕組み

よくある質問

glot は Salesforce Commerce Cloud (B2C) のパートナーですか?
いいえ。glot は独立しており、Salesforce Commerce Cloud (B2C) との提携や Salesforce Commerce Cloud (B2C) による推奨はありません。このガイドは Salesforce Commerce Cloud (B2C) の標準機能だけを使っています。
glot は Salesforce Commerce Cloud (B2C) のコンテンツを変更しますか?
いいえ。タグは訪問者のブラウザでページを翻訳するだけで、Salesforce Commerce Cloud (B2C) のコンテンツはそのままです。タグを外せば、サイトは元の言語に戻ります。
翻訳は検索エンジンにインデックスされますか?
タグだけではほとんどされません。ブラウザで翻訳するため、検索エンジンが主にインデックスするのは元の言語です。言語ごとの URL を持つ翻訳ページには、glot Edge か、言語ごとに URL を公開するプラットフォームが必要です。
Can a merchandiser add this in Business Manager?
Not as documented here; SFRA head changes are done in a custom cartridge by a developer.

Salesforce Commerce Cloud (B2C) のサイトを翻訳する

プロジェクトを作成して言語を選び、上の手順に従ってください。

Salesforce Commerce Cloud (B2C) は各所有者の商標です。glot は Salesforce Commerce Cloud (B2C) と提携していません。