Service Cloud の拡張チャットで、ページ移動時に意図せず前のチャットセッションが引き継がれる問題の解決策を説明します。
組み込みサービスリリースのコードスニペット上で restrictSessionOnMessagingChannel を true に設定することで、ページ間でセッションが引き継がれる動作を制御できます。
拡張チャットが配置された Web ページ間で、既存のチャットセッションが引き継がれるのを防ぐには、組み込みサービスリリースのコードスニペットに設定を追加します。
手順:
1.拡張チャットを配置している Web ページのソースコードを開き、組み込みサービスリリースのコードスニペットを見つけます。
2.embeddedservice_bootstrap.settings が含まれる箇所に以下のパラメーターと値を追加します。
embeddedservice_bootstrap.settings.restrictSessionOnMessagingChannel = true;
この設定 ( restrictSessionOnMessagingChannel = true ) により、訪問者が該当パラメーターを true に設定したページ(新しいチャットセッションが開始されるべきページ)に移動した際に、既存のセッションが引き継がれる動作が制限されます。
この設定の詳細については、開発者ドキュメント Enhanced Web Chat Reference をご参照ください。
005227113

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.