Pumpjack Dataworks Analytics SDK

Send user IDs

To send a user ID to Analytics SDK, call the setUser function and passing the userId as parameter on each page of your website. Using the following code snippet

Signature:
export declare function setUser(userId: string): void;

Parameters

ParameterTypeDescription
userIdstringThe unique id of the user in your system
Usage:
const userId = "[email protected]"
pjdwsdk.setUser(userId);