Show Menu
主题×

事件序列化

处理规则不支持事件序列化。在移动SDK中,您必须在上下文数据参数中使用特殊语法直接在服务器调用中设置序列化事件。
cdata["&&events"] = "event1:12341234";

例如:
//create a context data dictionary 
var cdata = new Windows.Foundation.Collections.PropertySet(); 
 
// add events 
cdata["&&events"] = "event1:12341234"; 
 
var ADB = ADBMobile; 
// send the tracking call - use either a trackAction or TrackState call. 
// trackAction example: 
ADB.Analytics.trackAction("action", cdata); 
// trackState example: 
ADB.Analytics.trackState("State Name", cdata);