Skip to product menu
Skip to main content

.visitor.rating()

This event handler allows you to invoke a method right after the visitors rate the support session.

PARAMETERS

visitid: Unique ID generated for the visitor.

data: Agent rating information.

agent: The email address of an agent who attends the chat.

rating: Rating given by the visitor to the agent who attended the chat.

Syntax

Copied$zoho.salesiq.visitor.rating(function(visitid,data){});
"visitid" : "<Visitor id>","data" : 
{
 "agent" : "<Agent email address>",
 "rating" : "<Agent rating>",
 "visitid" : "<Visitor id>"
}

Example

Copied<script>

$zoho.salesiq.ready=function()

{


   $zoho.salesiq.visitor.rating(function(visitid,data)
   {


      TrackinMyApplication(data.agent,data.rating,data.visitid);
   });


}

</script>