# Interface: TrackEventData

Defined in: [types.ts:183](https://github.com/alleyinteractive/allegro/blob/6aebbf1d5d34ded3d128c093d7d30abd96d938be/packages/allegro-platform/resources/js/sdk/types.ts#L183)

Optional metadata to attach to a tracked event.

Standard fields are collected automatically from the page, but you can override or extend them here.

## Indexable[​](#indexable "Direct link to Indexable")

> \[`key`: `string`]: `unknown`

## Properties[​](#properties "Direct link to Properties")

| Property                | Type                          | Description                                                     | Defined in                                                                                                                                                         |
| ----------------------- | ----------------------------- | --------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| []()`content_id?`       | `string`                      | CMS identifier for the content on this page.                    | [types.ts:193](https://github.com/alleyinteractive/allegro/blob/6aebbf1d5d34ded3d128c093d7d30abd96d938be/packages/allegro-platform/resources/js/sdk/types.ts#L193) |
| []()`content_type?`     | `string`                      | Content type of the current page (e.g. `"article"`, `"video"`). | [types.ts:191](https://github.com/alleyinteractive/allegro/blob/6aebbf1d5d34ded3d128c093d7d30abd96d938be/packages/allegro-platform/resources/js/sdk/types.ts#L191) |
| []()`context?`          | `string`                      | Arbitrary context string for grouping or filtering events.      | [types.ts:201](https://github.com/alleyinteractive/allegro/blob/6aebbf1d5d34ded3d128c093d7d30abd96d938be/packages/allegro-platform/resources/js/sdk/types.ts#L201) |
| []()`conversion_pv_id?` | `string`                      | Pageview ID to attribute a conversion to.                       | [types.ts:203](https://github.com/alleyinteractive/allegro/blob/6aebbf1d5d34ded3d128c093d7d30abd96d938be/packages/allegro-platform/resources/js/sdk/types.ts#L203) |
| []()`data?`             | `Record`<`string`, `unknown`> | Arbitrary additional key/value data.                            | [types.ts:207](https://github.com/alleyinteractive/allegro/blob/6aebbf1d5d34ded3d128c093d7d30abd96d938be/packages/allegro-platform/resources/js/sdk/types.ts#L207) |
| []()`object_id?`        | `string`                      | Identifier of the primary object the event relates to.          | [types.ts:199](https://github.com/alleyinteractive/allegro/blob/6aebbf1d5d34ded3d128c093d7d30abd96d938be/packages/allegro-platform/resources/js/sdk/types.ts#L199) |
| []()`object_type?`      | `string`                      | Type of the primary object the event relates to.                | [types.ts:197](https://github.com/alleyinteractive/allegro/blob/6aebbf1d5d34ded3d128c093d7d30abd96d938be/packages/allegro-platform/resources/js/sdk/types.ts#L197) |
| []()`page_title?`       | `string`                      | Page title. Defaults to `document.title`.                       | [types.ts:189](https://github.com/alleyinteractive/allegro/blob/6aebbf1d5d34ded3d128c093d7d30abd96d938be/packages/allegro-platform/resources/js/sdk/types.ts#L189) |
| []()`publisher?`        | `string`                      | Publisher or site identifier.                                   | [types.ts:195](https://github.com/alleyinteractive/allegro/blob/6aebbf1d5d34ded3d128c093d7d30abd96d938be/packages/allegro-platform/resources/js/sdk/types.ts#L195) |
| []()`referer?`          | `string`                      | Referring URL. Defaults to `document.referrer`.                 | [types.ts:187](https://github.com/alleyinteractive/allegro/blob/6aebbf1d5d34ded3d128c093d7d30abd96d938be/packages/allegro-platform/resources/js/sdk/types.ts#L187) |
| []()`url?`              | `string`                      | Page URL. Defaults to `window.location.href`.                   | [types.ts:185](https://github.com/alleyinteractive/allegro/blob/6aebbf1d5d34ded3d128c093d7d30abd96d938be/packages/allegro-platform/resources/js/sdk/types.ts#L185) |
| []()`url_in_click?`     | `string`                      | URL contained in a clicked element.                             | [types.ts:205](https://github.com/alleyinteractive/allegro/blob/6aebbf1d5d34ded3d128c093d7d30abd96d938be/packages/allegro-platform/resources/js/sdk/types.ts#L205) |
