Target filter
Search Kotlin docs
  • Platforms
  • Tealium Prism Kotlin
core/com.tealium.prism.core.api/Tealium/track

track

abstract fun track(name: String, data: DataObject): SingleResult<TrackResult>

Tracks an event with the specified name, and data. The event type will be DispatchType.Event

Return

: A Single onto which you can subscribe to receive the completion with the eventual error or the TrackResult for this track request.

Parameters

name

The name of the event to track.

data

Additional data to include with the event (optional).


abstract fun track(name: String, type: DispatchType, data: DataObject): SingleResult<TrackResult>

Tracks an event with the specified name, type, and data.

Return

A Single onto which you can subscribe to receive the completion with the eventual error or the TrackResult for this track request.

Parameters

name

The name of the event to track.

type

The type of dispatch to use (default is .event).

data

Additional data to include with the event (optional).

Generated by Dokka
(c) Tealium 2026