Event Tracking
track
Event Name (key)
Example
import io.hackle.sdk.HackleClient
import io.hackle.sdk.common.Event
// Send the "purchase" event triggered by the user identified as "ae2182e0"
/* Example 1: Send event key only */
hackleClient.track("purchase", "ae2182e0")
/* Example 2: Send event key with a numeric value */
val event: Event = Hackle.event("purchase") {
value(13200) // Place the numeric value to collect alongside the event key in value
}
hackleClient.track(event, "ae2182e0")import io.hackle.sdk.HackleClient
import io.hackle.sdk.common.Event
// Send the "purchase" event triggered by the user identified as "ae2182e0"
/* Example: Send event key only */
hackleClient.track("purchase", "ae2182e0");Property
Category
Type
Constraints
Example
Last updated