Events
Tracking events
// Simple event
BatchProfile.trackEvent(name: "ad_seen")
// Event with custom attributes
BatchProfile.trackEvent(name: "add_to_cart", attributes: BatchEventAttributes { data in
// Custom attribute
data.put("bags", forKey: "sub_category")
// Compatibility reserved key
data.put("activity", forKey: "$label")
})// Simple event
[BatchProfile trackEvent:@"ad_seen"];
// Event with custom attributes
BatchEventAttributes *attributes = [BatchEventAttributes new];
[attributes putString:@"sub_category" forKey:@"bags"]; // Custom attributes
[attributes putString:@"$label" forKey:@"activity"]; // Compatibility reserved key
[BatchProfile trackEventWithName:@"add_to_cart" attributes:attributes];Event attributes
Key
Description
Tracking user location
Background events
Last updated

