Home > doofinder > StatsClient > registerEvent

StatsClient.registerEvent() method

Pass-through to register any custom event.

Signature:

registerEvent(eventName: string, params: Record<string, any>, method?: Method): Promise<Response>;

Parameters

Parameter Type Description
eventName string The event name to register.
params Record<string, any> The params object associated to the event call.
method Method HTTP method for the request.Default GET. It should have at least a session_id and a hashid.

Returns:

Promise<Response>

A promise to be fullfilled with the response or rejected with a ClientResponseError.