<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@snowplow/node-tracker](./node-tracker.md) &gt; [EmitterConfigurationBase](./node-tracker.emitterconfigurationbase.md) &gt; [onRequestSuccess](./node-tracker.emitterconfigurationbase.onrequestsuccess.md)

## EmitterConfigurationBase.onRequestSuccess property

A callback function to be executed whenever a request is successfully sent to the collector. In practice this means any request which returns a 2xx status code will trigger this callback.

<b>Signature:</b>

```typescript
onRequestSuccess?: (data: EventBatch, response: Response) => void;
```
