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);