1. Home
  2. Docs
  3. Integrations
  4. LiveChat Inc. Integration

LiveChat Inc. Integration

WhatConverts allows you to track chat sessions and tickets generated using LiveChat. By following the steps below you will be able to track all leads in WhatConverts and see traffic source details of visitors within your LiveChat dashboard.

1Log into LiveChat Inc. Click the “Gear Icon” at the bottom left of the page. Select “Integrations” from the left side menu, click “Webhooks“.

LiveChat Inc Webhook Settings

2Click the yellow “Add A Webhook” button. To begin tracking a chat from the beginning, and Event: “Chat Starts” and Data Type: “Chat“, “Visitor” and “Pre_Chat_Survey“. Enter the Target URL:*****

    Note:***** represents your WhatConverts Tracking ID. You can find our Tracking ID in your WhatConverts dashboard under your profile “Settings” and “Tracking Code“. Your Tracking ID is a unique 5 digit number.

LiveChat Add Webhook

To track the ending events of the chat select Event: “Chat Ends“, Data Type: “Chat“, “Visitor” and “Pre_Chat_Survey” and Target URL:*****

Chat Ends LiveChat

To track offline messages, referred to as Tickets in LiveChat, select Event: ticket is created, Data Type: ticket and Target URL:*****

Ticket is Created

3Go to “Installation” and copy and paste your LiveChat code into a notepad to edit. Add the following into your code:

window.__lc.params = [
    { name: 'wc_source', value: oqhaqzwnbjgcpycneryg('wc_client') }

When combined, the LiveChat code will look like this below with the ****** being your LiveChat license number.

<script type="text/javascript">
window.__lc = window.__lc || {};
window.__lc.license = *******;
window.__lc.params = [
    { name: 'wc_source', value: oqhaqzwnbjgcpycneryg('wc_client') }
(function() {
    var lc = document.createElement('script'); lc.type = 'text/javascript'; lc.async = true;
    lc.src = ('https:' == document.location.protocol ? 'https://' : 'http://') + '';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(lc, s);

4Copy and paste the new LiveChat code on your page. Make sure the your WhatConverts tracking script is before the LiveChat Inc code on your page.