Interface: TrackEventData
Defined in: types.ts:144
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
[
key:string]:unknown
Properties
| Property | Type | Description | Defined in |
|---|---|---|---|
content_id? | string | CMS identifier for the content on this page. | types.ts:154 |
content_type? | string | Content type of the current page (e.g. "article", "video"). | types.ts:152 |
context? | string | Arbitrary context string for grouping or filtering events. | types.ts:162 |
conversion_pv_id? | string | Pageview ID to attribute a conversion to. | types.ts:164 |
data? | Record<string, unknown> | Arbitrary additional key/value data. | types.ts:168 |
object_id? | string | Identifier of the primary object the event relates to. | types.ts:160 |
object_type? | string | Type of the primary object the event relates to. | types.ts:158 |
page_title? | string | Page title. Defaults to document.title. | types.ts:150 |
publisher? | string | Publisher or site identifier. | types.ts:156 |
referer? | string | Referring URL. Defaults to document.referrer. | types.ts:148 |
url? | string | Page URL. Defaults to window.location.href. | types.ts:146 |
url_in_click? | string | URL contained in a clicked element. | types.ts:166 |