track
Tracks one or more Events. Events are dispatched to all registered SDK modules.
Events are processed asynchronously and may be batched before being sent to the network. Use sendImmediate for time-sensitive events that should bypass normal queuing.
Null events in the vararg are silently ignored.
val event = CustomEvent("AddToCart", mapOf("item" to "shoes", "price" to 49.99))
SFMCSdk.track(event)Content copied to clipboard
Parameters
events
One or more Events to track. Null values are ignored.