customEvent

fun customEvent(eventName: String, screenName: String, attributes: Map<String, Any>? = null, traits: TrackingTraits? = null)

Reports a custom event.

Parameters

eventName

The name of the event.

screenName

The name of the screen the event happened on.

attributes

Optional custom attributes to send with the event.

traits

Optional identity traits to send with this event only.