Track Zendesk Chat (Zopim) Chats
Zendesk Chat, formerly known as Zopim, is a live chat software that allows businesses to connect with customers in real-time. You can track these chat conversations in WhatConverts by adding a custom event script to your existing widget code. This setup ensures that a new lead is generated in your dashboard whenever a chat session ends.
Note: If you haven't added your WhatConverts tracking script to your website, add your tracking script. If you are using the WhatConverts WordPress Plugin, you will want to deactivate the plugin and place your WhatConverts Tracking Code above your Zendesk Chat integration code.
Set Up Zendesk Chat Tracking
The setup method depends on whether you are using the Zendesk Support Web Widget or the standalone Zopim Chat Widget.
Option 1: Zendesk Support Web Widget
Add the following script immediately after your Zendesk Support Web Widget code:
<script type="text/javascript">
zE('webWidget:on', 'chat:end', function() {
wc_chat_ypbib("Chat", "New Chat Session");
});
</script>
Option 2: Zopim Chat Widget
Add the following code directly after your Zopim code:
$zopim(function() {
$zopim.livechat.setOnChatEnd(function() {
wc_chat_ypbib("Chat", "New Chat Session");
});
});
Below is an example of the WhatConverts custom event code combined with standard Zopim code:
<script type="text/javascript">
window.$zopim || (function(d, s) {
var z = $zopim = function(c) {
z._.push(c)
},
$ = z.s =
d.createElement(s),
e = d.getElementsByTagName(s)[0];
z.set = function(o) {
z.set.
_.push(o)
};
z._ = [];
z.set._ = [];
$.async = !0;
$.setAttribute("charset", "utf-8");
$.src = "//v2.zopim.com/?2pnWzNiHXC39uaDVQwD6xDgXGV295YJ0";
z.t = +new Date;
$.
type = "text/javascript";
e.parentNode.insertBefore($, e)
})(document, "script");
$zopim(function() {
$zopim.livechat.setOnChatEnd(function() {
wc_chat_ypbib("Chat", "New Chat Session");
});
});
</script>
Related Topics
Get a FREE presentation of WhatConverts
One of our marketing experts will give you a full presentation of how WhatConverts can help you grow your business.
Schedule a Demo