You can use the API to identify certain groups of customers. For example, if you have customers subscribed to different membership plans, you might want to add tags so agents can see which plan visitors use.
$zopim.livechat.setName('Logged in name');
The example uses the following methods:
- $zopim.livechat.setName('Logged in name') - Replaces the visitor's name. Replace 'Logged in name' with your own name variable.
- $zopim.livechat.addTags('Subscription_Plan') - Adds a tag to the visitor. Modify 'Subscription\Plan'_ to a string describing the service they use.
When a customer logs in to your website, have the methods identify your variables, then use the
addTags() method API to tag customers accordingly.