This is a preview of unreleased docs from main. View the published docs
Skip to main content

Interface: TrackEventData

Defined in: types.ts:274

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:284
content_type?stringContent type of the current page (e.g. "article", "video").types.ts:282
context?stringArbitrary context string for grouping or filtering events.types.ts:292
conversion_pv_id?stringPageview ID to attribute a conversion to.types.ts:294
data?Record<string, unknown>Arbitrary additional key/value data.types.ts:298
object_id?stringIdentifier of the primary object the event relates to.types.ts:290
object_type?stringType of the primary object the event relates to.types.ts:288
page_title?stringPage title. Defaults to document.title.types.ts:280
publisher?stringPublisher or site identifier.types.ts:286
referer?stringReferring URL. Defaults to document.referrer.types.ts:278
url?stringPage URL. Defaults to window.location.href.types.ts:276
url_in_click?stringURL contained in a clicked element.types.ts:296