Methods reference
id
id: (userData: UserProps, doNotSendEvent?: boolean) => Promise
Sets a user and company data.
Param | Type | Description |
---|---|---|
userData |
| user and company data |
doNotSendEvent? |
| if true (false by default), separate "id" event won't be sent to server |
track
track: (typeName: string, payload?: EventPayload) => Promise
Sends a track event to server.
Param | Type | Description |
---|---|---|
typeName |
| event name |
payload? |
| event payloadx |
group
group: (props: companyProps, doNotSendEvent?: boolean) => Promise
Send company attributes to server.
Param | Type | Description |
---|---|---|
props |
| Company event payload. The required fields are |
doNotSendEvent? |
| if true (false by default), separate "id" event won't be sent to server |
reset
reset: (resetAnonId?: boolean) => Promise
Reset the user and company data
Param | Type | Description |
---|---|---|
resetAnonId? |
| Flush the anonymous id along with user and company data. |