Newer Version Available

This content describes an older version of this product. View Latest

Set a Domain

This parameter is included as a code comment in your generated code snippet for versions 2.0 and up. When you set the domain, visitors can navigate subdomains during a chat session without losing their chat. Make sure that each page where you want to allow chats contains the code snippet.

The legacy chat product is in maintenance-only mode, and we won't continue to build new features. You can continue to use it, but we no longer recommend that you implement new chat channels. Instead, you can modernize your customer communication with Messaging for In-App and Web. Messaging offers many of the chat features that you love plus asynchronous conversations that can be picked back up at any time.

Important

embedded_svc.settings.storageDomain = "..."

To specify the domain for your deployment, set the parameter to whatever top-level domain you use for chats.

  • The storageDomain parameter is available only for version 2.0 and later code snippets, and it’s required if you want your chat window to persist across subdomains. If you don’t set this parameter, chats use the domain of the container page.
  • Follow the format mywebsite.com for your domain. Don’t include a protocol (http://mywebsite.com or https://mywebsite.com) or a trailing slash (mywebsite.com/).

Important