NAV Navbar
javascript

.setUserName()

var name = 'Arya Stark';
SnapEngage.setUserName(name);

Provide a visitor's name to SnapEngage. This will provide a Visitor’s name to an Agent who takes the chat.

Parameters

Parameter Type Description
name String A non-encoded name, for example, someone@example.com. You will need to use your local environment to deliver the name to this function, either through server-side scripting or JavaScript.