Website logo
⌘
K
Try it for freeRequest Sandbox
🚀GETTING STARTED
👋Welcome to Relicx 🎉
Quick Introduction
Sign-up
Join an existing Org
Create your first Test
Create a login task
Setup Session Replay
Sandbox Quick Start
📝TEST AUTHORING
🧪TEST SUITE
🧠APPLICATION DISCOVERY & VISUAL VALIDATION
🚅AUTOMATIC RELEASE VALIDATION
📽️USER SESSIONS
🎯TEST ENVIRONMENTS
🧩INTEGRATIONS
🔔NOTIFICATIONS
ℹ️ADDITIONAL RESOURCES
Changelog
Docs powered by Archbee
INTEGRATIONS
Session Replay SDK

identify()

3min

Method

JS
relicxSDK.identify(uid, vars?);


Call relicxSDK.identify() anytime during the session to associate application-specific user ID as well as other details with the session recording.

Parameters

Name

Description

uid

(Required) A string that uniquely identifies your application user.

vars

(Optional) An object containing key/value pairs that provide additional context about the current user. These follow the same specification as sessionVars()

Examples

JS
relicxSDK.identify(
    'foo.bar', // User ID
    {          // Vars
        email: "foo.bar@test.com",
        user_name: "Foo Bar",
        tenant: "Amazing Bazz Org"
    }
);


Multiple calls to the relicxSDK.identify() API are resolved by using the latest value for uid as well as each key in vars.

If you only want to pass vars, use the sessionVars() API.

Once the identify() API is instrumented, Relicx allows you to search your sessions using these variables. On the session listing page, you can search using any on the above keys.

Document image




Updated 04 Dec 2023
Did this page help you?
PREVIOUS
getSessionUrlCallback()
NEXT
Log()
Docs powered by Archbee
TABLE OF CONTENTS
Method
Parameters
Examples
Docs powered by Archbee