Show Menu
主题×

事件序列化

处理规则不支持事件序列化。在 Mobile SDK 中,您必须在上下文数据参数中使用专门的语法,以直接在服务器调用中设置序列化事件。
[contextData setObject:@"eventN:serial number" forKey:@"&&events"];

例如:
//create a context data dictionary 
NSMutableDictionary *contextData = [NSMutableDictionary dictionary]; 
 
// add events 
[contextData setObject:@"event1:12341234" forKey:@"&&events"]; 
 
// send the tracking call - use either a trackAction or TrackState call. 
// trackAction example: 
[ADBMobile trackAction:@"action" data:contextData]; 
// trackState example: 
[ADBMobile trackState:@"State Name" data:contextData];