.visitor.id()

This API would allocate a unique ID for each of the visitors hitting your website. This ID is solely mapped to the email address that the visitor specifies. That is, for every email address procured, a unique visitor id will be set, and all the data associated with that particular email address like name, contact number, and past conversations that the particular visitor had with the operators would be constantly maintained throughout.

Note:

Do remember that you will have to enable the 'View previous chat conversations' configuration for this API to work. Also, the character limit of the Visitor ID is restricted to 100 characters. 

You can enable it by navigating through Settings -> Brands -> Select your brand -> Configuration -> View old conversations.

Points to remember:

  • The ID that you set for your visitors using this API are unique.
  • You should use the same ID that you initially map a visitor with throughout the process.

Else, there are chances of the conversations that you have with visitors being misused.

Example: If you happen to set the visitor ID of a visitor Blake with Alice, Alice will be able to see all the conversations that Blake had with your operators.

 

 

Syntax

Copied$zoho.salesiq.visitor.id(" < VISITOR ID > ");

Example

Copied<script>

$zoho.salesiq.ready=function()

{


   $zoho.salesiq.visitor.id("67465746");
}


</script>