> For the complete documentation index, see [llms.txt](https://docs.facephi.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.facephi.com/docs.facephi-en/sdks/sdk-web/componentes/sdk-provider/eventos/emitdata.md).

# emitData

## Details

Emits the session and operation identifiers together with the extraData in a single event.

**Event:** `emitData`

**Type:** `FacephiSdkProviderCustomEvent<ExportData>` | `CustomEvent<ExportData>`

### Syntax

```typescript
provider.addEventListener('emitData', onEmitData);
```

### Received object

```json
detail: {
  operationId: string,
  sessionId: string,
  extraData: string
}
```

## Description

Groups the main Tracking data generated when the operation starts.

### Considerations

`extraData` It is only emitted if Tracking is enabled in the License.

***

## Example

```jsx
<facephi-sdk-provider
    apikey={process.env.FACEPHI_SDK_APIKEY}
    onEmitData={onEmitData}
/>
```
