#
CommonRoomInstrumentationClient
Don't create your own instance of CommonRoomInstrumentationClient, use the registerCommonRoomInstrumentation function instead.
A lightweight client providing access to Common Room instrumentation utilities.
#
Reference
const client = new CommonRoomInstrumentationClient(logger?);
#
Parameters
logger: ALoggerinstance.
#
Methods
identify(emailAddress): Identify a Common Room user session using an email address.
#
Usage
#
Identify a user
Once identified, any previous anonymous traces that share the same user id and session id will be linked to the email address. Additionally, any existing data associated with that email address will be attached to the current session.
import { useCommonRoomInstrumentationClient } from "@workleap/common-room/react";
const client = useCommonRoomInstrumentationClient();
client.identify("johndoe@contoso.com");
See also
React provider to share a CommonRoomInstrumentationProvider instance with the application code.
To connect user activity across platforms and provide insight into community engagement and behavior, Workleap has adopted Common Room, a marketers
A fake implementation of CommonRoomInstrumentationClient for use in non-standard contexts such as unit tests and Storybook.
initializeTelemetry
Initialize Common Room instrumentation.
Retrieve a CommonRoomInstrumentationClient instance.