Events
Tracking events
// Simple event
Batch.Profile.trackEvent("ad_seen")
// Event with custom attributes
Batch.Profile.trackEvent("add_to_cart", BatchEventAttributes().apply {
// Custom attributes
put("sub_category", "bags")
// Compatibility reserved key
put("\$label", "activity")
})// Simple event
Batch.Profile.trackEvent("ad_seen");
// Event with custom attributes
BatchEventAttributes attributes = BatchEventAttributes()
.put("sub_category", "bags") // Custom attributes
.put("$label", "activity"); // Compatibility reserved key
Batch.Profile.trackEvent("add_to_cart", attributes);Event attributes
Key
Description
Tracking user location
Background events
Last updated

