createEvent
Creates an Event associated with the currently tracked profile
While it is preferable to initialize before interacting with the Klaviyo SDK, due to timing issues on some platforms, events are stored in an in-memory buffer prior to initialization, and will be replayed once you initialize with your public API key.
Return
Returns Klaviyo for call chaining
Parameters
event
A map-like object representing the event attributes
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