.visitor.chat()
This event handler allows you to invoke a method when a visitor tries to initiate a chat.
PARAMETERS
visitid: Unique ID generated for the visitor.
data: Visitor information.
name: Name of the visitor.
email: Email address of the visitor.
question: Visitor's question on initiating a chat.
Syntax
Copied$zoho.salesiq.visitor.chat(function(visitid,data){});
"visitid" : "<Visitor id>","data" :
{
"name" : "<Visitor name>",
"email" : "<Visitor email>",
"question" : "<Visitor question>",
"visitid" : "<Visitor id>"
}
Example
Copied<script>
$zoho.salesiq.ready=function()
{
$zoho.salesiq.visitor.chat(function(visitid,data)
{
TrackinMyApplication(data.name,data.email,data.question,data.visitid);
});
}
</script>