createEvent

Creates an Event associated with the currently tracked profile

Return

Returns Klaviyo for call chaining

Parameters

event

A map-like object representing the event attributes


fun createEvent(metric: EventMetric, value: Double? = null): Klaviyo

Creates an Event associated with the currently tracked profile

Convenience method for creating an event with a metric, optional value, and no other properties

Return

Returns Klaviyo for call chaining

Parameters

metric

EventMetric to create

value

Double? value to assign the event