LiveChat Data Layer

Our custom listeners make it easy to generate data layers for tracking your LiveChat activity. Check out the samples below and get started for free!

LiveChat Data Layer Examples

Learn more about how ListenLayer generates powerful data layers from activity on your website, specifically from LiveChat activity.

Custom Data Layer Events

Generate automatic data layer events, like the ones shown here, when users interact with LiveChats on your website. For example, collect data and or trigger conversions (using GTM) any time a user begins a chat, sends a message, enters their email, or a chat agent responds.

This Listener allows you to accurately and efficiently define and track conversions based on your LiveChat tracking needs.


event: 'livechatStarted',

event: 'livechatMessagefromAgent',

event: 'livechatMessagefromUser',

event: 'livechatUserEnteredEmail,

Automatic Data Layer Values

ListenLayer pushes critical information from your LiveChat activity into the data layer automatically. For example, this code to the right shows an example of data pushed into the data layer every time a user sends a message using LiveChat. In addition, data is pushed when chats start, agents respond, and unknown users enter their email addresses.

All data layer values can be captured inside marketing platforms or as variables using Google Tag Manager. In addition, triggers can be used for conversion tracking, and you can even generate custom data layer values based on other activity and user characteristics.

  chatAutomaticValues: {
    messageFromUserText: 'test',
    messageFromUserCount: 2,
    liveChatLocation: {
      href: '',
      host: '',
      hostname: '',
      pathname: '/live-chat/',
      protocol: 'https:',
      originPathName: ''

Custom Data Layer Values

Using data from your chats, website, and user activity, ListenLayer allows you to write rules that generate powerful, custom data layer values. With this feature, data collection and marketing analytics become nearly limitless!

Some examples of popular custom data layer values for LiveChat:

  • Trigger conversions only when users send five or more messages
  • Filter out test chats based on “test” email addresses entered
  • Capture and categorize chats based on website pages and sections

Once you realize the power of customization with Listeners, you’ll never go back to old-school conversion tracking!

chatCustomValues: {
    conversionCategory: 'Chat',
    leadQuality: 'High',
    system: 'Drift Chat',
    websiteSection: 'solutions'

Rate Chat Quality Based on Length

ListenLayer captures chat message counts from both the agent and the user. Write custom rules to label chat activity and segment by quality inside Google Analytics, Facebook Ads, Google Ads, or other platforms. Build this tracking framework once and watch it scale!

chatAutomaticValues: {
    messageFromUserCount: 5,
chatCustomValues: {
    chatQuality: 'High',

Capture Form Field Values

ListenLayer automatically pushes important details from user activity into your data layer, making it available for

  1. Triggering notifications
  2. Saving backups
  3. Writing customization rules
  4. Monitoring overall CTA performance

Finally, marketers have direct visibility into the information they need from LiveChat – no coding required.