← Back to API
Update visitor name
olark('api.visitor.updateFullName', {
fullName: string
});
Arguments
- options.fullname
the name to remember
Notes
Keep track of a full name for this visitor, to link it with your CRM cases and display in the buddy list.
Update the visitor’s name
You can grab information from your registered users and send it to Olark.
<script>
olark('api.visitor.updateFullName', {
fullName: 'John Doe'
});
</script>
For example, if you were using PHP and pulled the visitor’s name from your own database, you might write:
<script>
olark('api.visitor.updateFullName', {
fullName: '<?php echo $user_name ?>'
});
</script>