Skip to main content

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

PropertyTypeDescriptionDefined in
content_id?stringCMS identifier for the content on this page.types.ts:154
content_type?stringContent type of the current page (e.g. "article", "video").types.ts:152
context?stringArbitrary context string for grouping or filtering events.types.ts:162
conversion_pv_id?stringPageview ID to attribute a conversion to.types.ts:164
data?Record<string, unknown>Arbitrary additional key/value data.types.ts:168
object_id?stringIdentifier of the primary object the event relates to.types.ts:160
object_type?stringType of the primary object the event relates to.types.ts:158
page_title?stringPage title. Defaults to document.title.types.ts:150
publisher?stringPublisher or site identifier.types.ts:156
referer?stringReferring URL. Defaults to document.referrer.types.ts:148
url?stringPage URL. Defaults to window.location.href.types.ts:146
url_in_click?stringURL contained in a clicked element.types.ts:166