Dark mode
Methods reference

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

doNotSendEvent?

boolean

If true (false by default), a separate "id" event won't be sent to the server.

track

track: (typeName: string, payload?: EventPayload) => Promise

Sends a track event to the server.

Param

Type

Description

payload?

EventPayload

Event payload.

group

group: (props: companyProps, doNotSendEvent?: boolean) => Promise

Send company attributes to the server.

Param

Type

Description

doNotSendEvent?

boolean

If true (false by default), a separate "id" event won't be sent to the server.

reset

reset: (resetAnonId?: boolean) => Promise

Reset the user and company data.

Was this article helpful?