Event Tracking
track
Parameter
Type
Description
Example
hackleApp.track(eventKey: "purchase")[hackleApp trackWithEventKey:@"purchase"];Property
Category
Type
Constraints
Example
let event = Hackle.event(
key: "purchase",
properties: [
"pay_method": "CARD",
"discount_amount": 800,
"is_discount": true
])
// 빌더 패턴
let event2 = Event.builder("purchase")
.property("pay_method": "credit")
.build()
hackleApp.track(event: event)
hackleApp.track(event: event2)HackleEvent *event = [Hackle eventWithKey:@"purchase"
value:3200.0
properties:@{
@"pay_method": @"CARD",
@"discount_amount": @800,
@"is_discount": @true
}];
[hackleApp trackWithEvent:event];Last updated