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.

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 snap-in 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