Identify User
Identify a user
Each time a page loads for a user you can identify, you'll want to call the FS.identify function to associate your own application-specific id with the active user.
Parameters
uid String required
A string containing your unique identifier for the current user.
userVars Map<String, ?> optional
A map object with key/value pairs that provides additional information about your user.
Re-identification
Fullstory doesn't let you change the identity of a user once they have been assigned a unique user
ID using FS.identify
. If you attempt to change the user id of an identified user, Fullstory will
recognize the new user ID and automatically split the session into a new session.
Limits
- Sustained calls are limited to 12 calls per minute, with a burst limit of 5 calls per second.
Additional Information
- Identifying users
- If you only want to pass in
userVars
you can use the FS.setUserVars function. - Can I change a user's identity using FS.identify?
- userVars name requirements
- userVars value requirements
- Java
- Kotlin
public static void FS.identify(String uid, Map<String, ?> userVars);
Example Invocation
Map<String, String> userVars = new HashMap<>();
userVars.put("displayName", "Ada Lovelace");
userVars.put("email", "ada@example.com");
FS.identify("462718483", userVars);
fun FS.identify(uid: String, userVars: Map<String, *>): Unit
Example Invocation
val userVars = mapOf(
"displayName" to "Ada Lovelace",
"email" to "ada@example.com"
)
FS.identify("462718483", userVars)