LiveChat Destination

Segment makes it easy to send your data to LiveChat (and lots of other destinations). Once you've tracked your data through our open source libraries we'll translate and route your data to LiveChat in the format they understand. Learn more about how to use LiveChat with Segment.

Getting Started

When you toggle on LiveChat in Segment, this is what happens:

  • Our CDN is updated within 5-10 minutes. Then our snippet will start asynchronously loading LiveChat’s javascript onto your page. This means you should remove LiveChat’s snippet from your page.
  • LiveChat’s chat box will appear on your page and you can start chatting with visitors.

LiveChat is only supported on the client-side.


Identify

When you call identify on analytics.js, we take all the traits you provide and set them as custom variables using LiveChat’s set_custom_variables function. We use the userId you provide to identify as a custom variable called User ID.

Record Live Chat Events

With this destination, you can automatically record track events for live chat conversations. If you select this option, we’ll collect the following events:

  • Live Chat Conversation Started
  • Live Chat Conversation Ended
  • Live Chat Message
  • Live Chat Message Received

These events will then flow out to your other tools, so you can do things like analyze if users who chat spend more money over time.

To learn more about the live chat events you can capture with this destination, head on over to our Live Chat spec docs.

Turn on LiveChat


Supported Sources and Connection Modes

WebMobileServer
📱 Device-based
☁️ Cloud-based

To learn more about about Connection Modes and what dictates which we support, see here.

Settings

Segment lets you change these destination settings via your Segment dashboard without having to touch any code.

Group

You can divide LiveChat agents into different groups such as “Billing” or “Support”

License

You can find your License key in your LiveChat Javascript snippet on the Settings > Installation page. Or, if you’re just signing up, it’s right in the setup guide!

Record live chat events.

Automatically send Live Chat message events, conversation starts and ends to other tools you have enabled.


If you have any questions or see anywhere we can improve our documentation, please let us know or kick off a conversation in the Segment Community!