.setUserName()
(Last Updated On: November 9, 2016)
Overview

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

This method must be used in conjunction with the SnapEnage.setUserEmail() Javascript function to function properly.  Without setting an email for the visitor, setting the user name will not work.


Parameters


name
Type
String | (Required)
A non-encoded name — i.e. “John Smith”
Description
You will need to use your local environment to deliver the name to this function, either through server-side scripting or JavaScript.

Save