Provide 24/7 affordable customer service with AI-powered chat.
Connect to learn more

How to add visitor information to the chat console (Olark Classic)

**NOTE: This help article was written for our Olark Classic chat console. Some things may not apply, may have moved, or may look different. For up to date chat console documentation, click here.

This guide will walk through a few ways you can use the Olark API to get information about your site's visitors displayed in realtime to the chat console.

By default the chatbox will grab data from your visitors such as geolocation, ip address, and email, if you have the prechat survey enabled.

location of visitors in visitor list

However, you may want to add additional information about your visitors to help your agents provide better sales and support.

Update a visitor's name

If you have your visitor's name on your site you can update it to display in the chat console with the following call:


<script>
olark('api.visitor.updateFullName', {  
  fullName: 'John Doe'
});
</script>

Update a visitor's email

If you have your visitor's email you can update it to display in the chat console with the following call:


<script type="text/javascript">
olark('api.visitor.updateEmailAddress', {
  emailAddress: 'johndoe@olark.com'
});
</script>

Now the chat console will look something like this.

Updated name in visitor list

Highlight visitors who are on a certain page

Want to know which visitors are looking at your payment page? Just add a label to highlight those visitors:


<script type="text/javascript">
olark('api.chat.updateVisitorNickname', {
    snippet: "on payment page"
});
</script>


Now your agents can engage visitors who are on the pricing page by looking at the visitor list.

Updated email in visitor list

Update the status of a visitor

If you'd like to add some more details about this visitor you can update their status.


<script type="text/javascript">
olark('api.chat.updateVisitorStatus', {
    snippet: "arrived from Adwords Campaign"
});
</script>


This will now appear in the advanced information section of the chat console.

Information in advanced info
Please provide the domain name where your Olark live chat is installed.
Include the relevant transcript URL, if possible. You can send us the specific URL from your Transcripts page.
If you see specific error messages, banners, warnings, notices, etc., please let us know here.
Max file size 10MB.
Uploading...
fileuploaded.jpg
Upload failed. Max size for files is 10 MB.
Thank you! Your submission has been received and you'll hear from us shortly!
Oops! Something went wrong while submitting the form.