track

fun track(event: String, properties: Map<String, Any> = mapOf()): MetricsResponse

Tracks an event for analytics purposes.

Return

A MetricsResponse indicating the result of the operation.

Parameters

event

The name of the event to track.

properties

A map containing event-specific properties.