Home > doofinder > Client > stats
Client.stats() method
Perform a request to submit stats events to Doofinder.
Signature:
stats(eventName: string, params: Record<string, string>, method?: Method): Promise<Response>;
Parameters
| Parameter | Type | Description |
|---|---|---|
| eventName | string | Type of stats to send. |
| params | Record<string, string> | Parameters for the query string. |
| method | Method | HTTP method for the request.Default GET. |
Returns:
Promise<Response>
A promise to be fullfilled with the response or rejected with a ClientResponseError.