.visitor.name()

This API would dynamically set the names (first, last name and salutation) of the visitors (if known) from your website and push them to SalesIQ. The name will be displayed when operators engage with the visitor in the pane right beside the message section. If you had disabled the name field in the live chat's pre-chat form, then this API would set the names of the visitors in the pane beside your operator's chat window alone.

Syntax

Copied$zoho.salesiq.visitor.name({
  firstname: <firstname>,  
  lastname: <lastname>,  
  salutation: < Mr | Ms | Mrs | Prof | Dr | None >  
})

Example

Copied<script>
$zoho.salesiq.ready=function()
{
   $zoho.salesiq.visitor.name({
     firstname: "John",  
     lastname: "Smith",  
     salutation: "Mr"  
})
}
</script>