Methods reference
This reference documents the methods available in the Usermaven JavaScript SDK.
id
id: (userData: UserProps, doNotSendEvent?: boolean) => Promise
Sets a user and company data.
Param | Type | Description |
|---|---|---|
|
| If |
track
track: (typeName: string, payload?: EventPayload) => Promise
Sends a track event to the server.
Param | Type | Description |
|---|---|---|
|
| Event payload. |
group
group: (props: companyProps, doNotSendEvent?: boolean) => Promise
Send company attributes to the server.
Param | Type | Description |
|---|---|---|
|
| If |
reset
reset: (resetAnonId?: boolean) => Promise
Reset the user and company data.
Was this article helpful?