Skip to main content

Interface: TrackEventData

Defined in: types.ts:277

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:287
content_type?stringContent type of the current page (e.g. "article", "video").types.ts:285
context?stringArbitrary context string for grouping or filtering events.types.ts:295
conversion_pv_id?stringPageview ID to attribute a conversion to.types.ts:297
data?Record<string, unknown>Arbitrary additional key/value data.types.ts:301
object_id?stringIdentifier of the primary object the event relates to.types.ts:293
object_type?stringType of the primary object the event relates to.types.ts:291
page_title?stringPage title. Defaults to document.title.types.ts:283
publisher?stringPublisher or site identifier.types.ts:289
referer?stringReferring URL. Defaults to document.referrer.types.ts:281
url?stringPage URL. Defaults to window.location.href.types.ts:279
url_in_click?stringURL contained in a clicked element.types.ts:299