Mobility : ๋ชจ๋น๋ฆฌํฐ
๋ชจ๋น๋ฆฌํฐ ์ฑ์์ ์ธก์ ์ ๊ถ์ฅํ๋ ์ธ์ฑ ์ด๋ฒคํธ API์ ์ ์ฉ ์์๋ฅผ ์๋ดํฉ๋๋ค.
โ๏ธ์์ฑ ์ค Key ์ด๋ฆ์ ๊ฐ์ด๋์ ๋์์๋ Key ์ด๋ฆ์ ๊ทธ๋๋ก ์ฌ์ฉ ํด ์ฃผ์ธ์. (์์๋ก ๋ณ๊ฒฝ์ ๋์๋ณด๋์์ ๋ฐ์ดํฐ ํ์ธ์ด ์ด๋ ต์ต๋๋ค. > car_name, car_type ๋ฑ)
์ฐจ๋ ๋ฑ๋ก
์ฐจ๋์ด ๋ฑ๋ก๋ ์์ ์ ์๋ ์ฝ๋๋ฅผ ์ถ๊ฐํฉ๋๋ค.
์ ํ ์์ฑ
Key
Value ์์
Type
์ค๋ช
car_name
๋ ์ด
string
์ฐจ๋ ๋ช ์นญ
car_type
์ํ
string
์ฐจ๋ ์ ํ
car_subtype_a
ํ์ดํจ์ค
string
์ฐจ๋ ๊ธฐํ ์์ฑ
Map<String, Object> eventMap = new HashMap<>();
eventMap.put("event", "w_add_car_info");
eventMap.put("car_name", "๋ ์ด");
eventMap.put("car_type", "์ํ");
eventMap.put("car_subtype_a", "ํ์ดํจ์ค");
DOT.logEvent(eventMap);val eventMap = mutableMapOf<String,Any>()
eventMap["event"] = "w_add_car_info"
eventMap["car_name"] = "๋ ์ด"
eventMap["car_type"] = "์ํ"
eventMap["car_subtype_a"] = "ํ์ดํจ์ค"
DOT.logEvent(eventMap)let event = NSMutableDictionary()
event["event"] = "w_add_car_info"
event["car_name"] = "๋ ์ด"
event["car_type"] = "์ํ"
event["car_subtype_a"] = "ํ์ดํจ์ค"
DOT.logEvent(event)NSMutableDictionary *event = [[NSMutableDictionary alloc] init];
[event setValue:@"w_add_car_info" forKey:@"event"];
[event setValue:@"๋ ์ด" forKey:@"car_name"];
[event setValue:@"์ํ" forKey:@"car_type"];
[event setValue:@"ํ์ดํจ์ค" forKey:@"car_subtype_a"];
[DOT logEvent:event]; var event = new Object();
event["event"] = "w_add_car_info";
event["car_name"] = "๋ ์ด";
event["car_type"] = "์ํ";
event["car_subtype_a"] = "ํ์ดํจ์ค";
DOT.logEvent(event); var event = new Object();
event["event"] = "w_add_car_info";
event["car_name"] = "๋ ์ด";
event["car_type"] = "์ํ";
event["car_subtype_a"] = "ํ์ดํจ์ค";
WDOT.logEvent(event);// .dart ์์ ํธ์ถ ํ ๋
Map event = {};
event["event"] = "w_add_car_info";
event["car_name"] = "๋ ์ด";
event["car_type"] = "์ํ";
event["car_subtype_a"] = "ํ์ดํจ์ค";
DOT.logEvent(event);
// webview ์์ ํธ์ถ ํ ๋
window.flutter_inappwebview.callHandler("DotFlutterDataBridge",JSON.stringify({
method : "logEvent",
data: {
event : "w_add_car_info",
car_name : "๋ ์ด",
car_type : "์ํ",
car_subtype_a : "ํ์ดํจ์ค"
}
}));// .js ์์ ํธ์ถ ํ ๋
NativeModules.DotReactBridge.logEvent(JSON.stringify({
event : "w_add_car_info",
car_name : "๋ ์ด",
car_type : "์ํ",
car_subtype_a : "ํ์ดํจ์ค"
}));
// webview ์์ ํธ์ถ ํ ๋
window.ReactNativeWebView.postMessage(JSON.stringify({
method:"logEvent",
data : {
event : "w_add_car_info",
car_name : "๋ ์ด",
car_type : "์ํ",
car_subtype_a : "ํ์ดํจ์ค"
}
})); Dictionary<string, object> eventDic = new Dictionary<string, object>();
eventDic.Add("event", "w_add_car_info");
eventDic.Add("car_name", "๋ ์ด");
eventDic.Add("car_type", "์ํ");
eventDic.Add("car_subtype_a", "ํ์ดํจ์ค");
DOT.logEvent(eventDic);๋ถ๋งํฌ ๋ฑ๋ก
ํน์ ์์น๊ฐ ๋ถ๋งํฌ๋ก ๋ฑ๋ก๋ ์์ ์ ์๋ ์ฝ๋๋ฅผ ์ถ๊ฐํฉ๋๋ค.
์ ํ ์์ฑ
Key
Value ์์
Type
์ค๋ช
bookmark_type
์ง
string
๋ถ๋งํฌ ๋ช ์นญ ๋๋ ์ ํ
city
์์ธ์
string
๋ฑ๋ก๋ ์์น์ ๋์ ์ ๋ณด
Map<String, Object> eventMap = new HashMap<>();
eventMap.put("event", "w_bookmarked");
eventMap.put("bookmark_type", "์ง");
eventMap.put("city", "์์ธ์");
DOT.logEvent(eventMap);val eventMap = mutableMapOf<String,Any>()
eventMap["event"] = "w_bookmarked"
eventMap["bookmark_type"] = "์ง"
eventMap["city"] = "์์ธ์"
DOT.logEvent(eventMap)let event = NSMutableDictionary()
event["event"] = "w_bookmarked"
event["bookmark_type"] = "์ง"
event["city"] = "์์ธ์"
DOT.logEvent(event)NSMutableDictionary *event = [[NSMutableDictionary alloc] init];
[event setValue:@"w_bookmarked" forKey:@"event"];
[event setValue:@"์ง" forKey:@"bookmark_type"];
[event setValue:@"์์ธ์" forKey:@"city"];
[DOT logEvent:event]; var event = new Object();
event["event"] = "w_bookmarked";
event["bookmark_type"] = "์ง";
event["city"] = "์์ธ์";
DOT.logEvent(event); var event = new Object();
event["event"] = "w_bookmarked";
event["bookmark_type"] = "์ง";
event["city"] = "์์ธ์";
WDOT.logEvent(event);// .dart ์์ ํธ์ถ ํ ๋
Map event = {};
event["event"] = "w_bookmarked";
event["bookmark_type"] = "์ง";
event["city"] = "์์ธ์";
DOT.logEvent(event);
// webview ์์ ํธ์ถ ํ ๋
window.flutter_inappwebview.callHandler("DotFlutterDataBridge",JSON.stringify({
method : "logEvent",
data: {
event : "w_bookmarked",
bookmark_type : "์ง",
city : "์์ธ์"
}
}));// .js ์์ ํธ์ถ ํ ๋
NativeModules.DotReactBridge.logEvent(JSON.stringify({
event : "w_bookmarked",
bookmark_type : "์ง",
city : "์์ธ์"
}));
// webview ์์ ํธ์ถ ํ ๋
window.ReactNativeWebView.postMessage(JSON.stringify({
method:"logEvent",
data : {
event : "w_bookmarked",
bookmark_type : "์ง",
city : "์์ธ์"
}
})); Dictionary<string, object> eventDic = new Dictionary<string, object>();
eventDic.Add("event", "w_bookmarked");
eventDic.Add("bookmark_type", "์ง");
eventDic.Add("city", "์์ธ์");
DOT.logEvent(eventDic);๊ฒฐ์ ์๋จ ๋ฑ๋ก
๊ฒฐ์ ์๋จ์ด ๋ฑ๋ก ์๋ฃ๋ ์์ ์ ์๋ ์ฝ๋๋ฅผ ์ถ๊ฐํฉ๋๋ค.
์ ํ ์์ฑ
Key
Value ์์
Type
์ค๋ช
payment_name
ํ๋์นด๋
string
๊ฒฐ์ ์๋จ ๋ช ์นญ
payment_type
์ ์ฉ์นด๋
string
๊ฒฐ์ ์๋จ ์ ํ
Map<String, Object> eventMap = new HashMap<>();
eventMap.put("event", "w_add_payment_info");
eventMap.put("payment_name", "ํ๋์นด๋");
eventMap.put("payment_type", "์ ์ฉ์นด๋");
DOT.logEvent(eventMap);val eventMap = mutableMapOf<String,Any>()
eventMap["event"] = "w_add_payment_info"
eventMap["payment_name"] = "ํ๋์นด๋"
eventMap["payment_type"] = "์ ์ฉ์นด๋"
DOT.logEvent(eventMap)let event = NSMutableDictionary()
event["event"] = "w_add_payment_info"
event["payment_name"] = "ํ๋์นด๋"
event["payment_type"] = "์ ์ฉ์นด๋"
DOT.logEvent(event)NSMutableDictionary *event = [[NSMutableDictionary alloc] init];
[event setValue:@"w_add_payment_info" forKey:@"event"];
[event setValue:@"ํ๋์นด๋" forKey:@"payment_name"];
[event setValue:@"์ ์ฉ์นด๋" forKey:@"payment_type"];
[DOT logEvent:event]; var event = new Object();
event["event"] = "w_add_payment_info";
event["payment_name"] = "ํ๋์นด๋";
event["payment_type"] = "์ ์ฉ์นด๋";
DOT.logEvent(event); var event = new Object();
event["event"] = "w_add_payment_info";
event["payment_name"] = "ํ๋์นด๋";
event["payment_type"] = "์ ์ฉ์นด๋";
WDOT.logEvent(event);// .dart ์์ ํธ์ถ ํ ๋
Map event = {};
event["event"] = "w_add_payment_info";
event["payment_name"] = "ํ๋์นด๋";
event["payment_type"] = "์ ์ฉ์นด๋";
DOT.logEvent(event);
// webview ์์ ํธ์ถ ํ ๋
window.flutter_inappwebview.callHandler("DotFlutterDataBridge",JSON.stringify({
method : "logEvent",
data: {
event : "w_add_payment_info",
payment_name : "ํ๋์นด๋",
payment_type : "์ ์ฉ์นด๋"
}
}));// .js ์์ ํธ์ถ ํ ๋
NativeModules.DotReactBridge.logEvent(JSON.stringify({
event : "w_add_payment_info",
payment_name : "ํ๋์นด๋",
payment_type : "์ ์ฉ์นด๋"
}));
// webview ์์ ํธ์ถ ํ ๋
window.ReactNativeWebView.postMessage(JSON.stringify({
method:"logEvent",
data : {
event : "w_add_payment_info",
payment_name : "ํ๋์นด๋",
payment_type : "์ ์ฉ์นด๋"
}
})); Dictionary<string, object> eventDic = new Dictionary<string, object>();
eventDic.Add("event", "w_add_payment_info");
eventDic.Add("payment_name", "ํ๋์นด๋");
eventDic.Add("payment_type", "์ ์ฉ์นด๋");
DOT.logEvent(eventDic);๋ชฉ์ ์ง ๊ฒ์
๋ชฉ์ ์ง ๊ฒ์์ด ์๋ฃ๋ ์์ ์ ์๋ ์ฝ๋๋ฅผ ์ถ๊ฐํฉ๋๋ค.
์ ํ ์์ฑ
Key
Value ์์
Type
์ค๋ช
destination_a
์ ๋ฆ์ญ
string
์ถ๋ฐ ์ง์ญ
destination_b
์ฌ๋ฆผํฝ๊ณต์
string
๋์ฐฉ ์ง์ญ
g20
2
float
๊ฒ์ ๊ฒฐ๊ณผ๋ก ์ถ๋ ฅ๋ ์์ดํ ๊ฐ์
์ถ๋ฐ์ง์ ๋ชฉ์ ์ง๋ฅผ ํจ๊ป ๊ฒ์ํ๋ ๊ฒฝ์ฐ
Map<String, Object> eventMap = new HashMap<>();
eventMap.put("event", "w_search_destination");
eventMap.put("destination_a", "์ ๋ฆ์ญ");
eventMap.put("destination_b", "์ฌ๋ฆผํฝ๊ณต์");
eventMap.put("g20", 2);
DOT.logEvent(eventMap);val eventMap = mutableMapOf<String,Any>()
eventMap["event"] = "w_search_destination"
eventMap["destination_a"] = "์ ๋ฆ์ญ"
eventMap["destination_b"] = "์ฌ๋ฆผํฝ๊ณต์"
eventMap["g20"] = 2
DOT.logEvent(eventMap)let event = NSMutableDictionary()
event["event"] = "w_search_destination"
event["destination_a"] = "์ ๋ฆ์ญ"
event["destination_b"] = "์ฌ๋ฆผํฝ๊ณต์"
event["g20"] = 2
DOT.logEvent(event)NSMutableDictionary *event = [[NSMutableDictionary alloc] init];
[event setValue:@"w_search_destination" forKey:@"event"];
[event setValue:@"์ ๋ฆ์ญ" forKey:@"destination_a"];
[event setValue:@"์ฌ๋ฆผํฝ๊ณต์" forKey:@"destination_b"];
[event setValue:[NSNumber numberWithInt:2] forKey:@"g20"];
[DOT logEvent:event]; var event = new Object();
event["event"] = "w_search_destination";
event["destination_a"] = "์ ๋ฆ์ญ";
event["destination_b"] = "์ฌ๋ฆผํฝ๊ณต์";
event["g20"] = 2;
DOT.logEvent(event); var event = new Object();
event["event"] = "w_search_destination";
event["destination_a"] = "์ ๋ฆ์ญ";
event["destination_b"] = "์ฌ๋ฆผํฝ๊ณต์";
event["g20"] = 2;
WDOT.logEvent(event);// .dart ์์ ํธ์ถ ํ ๋
Map event = {};
event["event"] = "w_search_destination";
event["destination_a"] = "์ ๋ฆ์ญ";
event["destination_b"] = "์ฌ๋ฆผํฝ๊ณต์";
event["g20"] = 2;
DOT.logEvent(event);
// webview ์์ ํธ์ถ ํ ๋
window.flutter_inappwebview.callHandler("DotFlutterDataBridge",JSON.stringify({
method : "logEvent",
data: {
event : "w_search_destination",
destination_a : "์ ๋ฆ์ญ",
destination_b : "์ฌ๋ฆผํฝ๊ณต์",
g20 : 2
}
}));// .js ์์ ํธ์ถ ํ ๋
NativeModules.DotReactBridge.logEvent(JSON.stringify({
event : "w_search_destination",
destination_a : "์ ๋ฆ์ญ",
destination_b : "์ฌ๋ฆผํฝ๊ณต์",
g20 : 2
}));
// webview ์์ ํธ์ถ ํ ๋
window.ReactNativeWebView.postMessage(JSON.stringify({
method:"logEvent",
data : {
event : "w_search_destination",
destination_a : "์ ๋ฆ์ญ",
destination_b : "์ฌ๋ฆผํฝ๊ณต์",
g20 : 2
}
})); Dictionary<string, object> eventDic = new Dictionary<string, object>();
eventDic.Add("event", "w_search_destination");
eventDic.Add("destination_a", "์ ๋ฆ์ญ");
eventDic.Add("destination_b", "์ฌ๋ฆผํฝ๊ณต์");
eventDic.Add("g20", 2);
DOT.logEvent(eventDic);๋ชฉ์ ์ง๋ง ๊ฒ์ํ๋ ๊ฒฝ์ฐ
Map<String, Object> eventMap = new HashMap<>();
eventMap.put("event", "w_search_destination");
eventMap.put("destination_b", "์ฌ๋ฆผํฝ๊ณต์");
eventMap.put("g20", 2);
DOT.logEvent(eventMap);val eventMap = mutableMapOf<String,Any>()
eventMap["event"] = "w_search_destination"
eventMap["destination_b"] = "์ฌ๋ฆผํฝ๊ณต์"
eventMap["g20"] = 2
DOT.logEvent(eventMap)let event = NSMutableDictionary()
event["event"] = "w_search_destination"
event["destination_b"] = "์ฌ๋ฆผํฝ๊ณต์"
event["g20"] = 2
DOT.logEvent(event)NSMutableDictionary *event = [[NSMutableDictionary alloc] init];
[event setValue:@"w_search_destination" forKey:@"event"];
[event setValue:@"์ฌ๋ฆผํฝ๊ณต์" forKey:@"destination_b"];
[event setValue:[NSNumber numberWithInt:2] forKey:@"g20"];
[DOT logEvent:event]; var event = new Object();
event["event"] = "w_search_destination";
event["destination_b"] = "์ฌ๋ฆผํฝ๊ณต์";
event["g20"] = 2;
DOT.logEvent(event); var event = new Object();
event["event"] = "w_search_destination";
event["destination_b"] = "์ฌ๋ฆผํฝ๊ณต์";
event["g20"] = 2;
WDOT.logEvent(event);// .dart ์์ ํธ์ถ ํ ๋
Map event = {};
event["event"] = "w_search_destination";
event["destination_b"] = "์ฌ๋ฆผํฝ๊ณต์";
event["g20"] = 2;
DOT.logEvent(event);
// webview ์์ ํธ์ถ ํ ๋
window.flutter_inappwebview.callHandler("DotFlutterDataBridge",JSON.stringify({
method : "logEvent",
data: {
event : "w_search_destination",
destination_b : "์ฌ๋ฆผํฝ๊ณต์",
g20 : 2
}
}));// .js ์์ ํธ์ถ ํ ๋
NativeModules.DotReactBridge.logEvent(JSON.stringify({
event : "w_search_destination",
destination_b : "์ฌ๋ฆผํฝ๊ณต์",
g20 : 2
}));
// webview ์์ ํธ์ถ ํ ๋
window.ReactNativeWebView.postMessage(JSON.stringify({
method:"logEvent",
data : {
event : "w_search_destination",
destination_b : "์ฌ๋ฆผํฝ๊ณต์",
g20 : 2
}
})); Dictionary<string, object> eventDic = new Dictionary<string, object>();
eventDic.Add("event", "w_search_destination");
eventDic.Add("destination_b", "์ฌ๋ฆผํฝ๊ณต์");
eventDic.Add("g20", 2);
DOT.logEvent(eventDic);์ฐจ๋ ํธ์ถ
์ฐจ๋ ํธ์ถ์ด ์๋ฃ๋ ์์ ์ ์๋ ์ฝ๋๋ฅผ ์ถ๊ฐํฉ๋๋ค.
์ ํ ์์ฑ
Key
Value ์์
Type
์ค๋ช
destination_a
์ ๋ฆ์ญ
string
์ฐจ๋์ด ์ถ๋ฐํ๋ ์ง์ญ๋ช
destination_b
์ฌ๋ฆผํฝ๊ณต์
string
์ฐจ๋์ด ๋์ฐฉํ ์ง์ญ๋ช
distance
5.8
float
๋ชฉ์ ์ง๊น์ง์ ๊ฑฐ๋ฆฌ
city
์์ธ
string
์ฐจ๋์ ํธ์ถํ๋ ์์น๊ฐ ์ํ ๋์
price
31500
double
์ดํ์๊ธ
currency
KRW
string
ํตํ์ฝ๋
product_id
C30403
string
์์ฒญํ ์ํ์ฝ๋
product_name
๋ฒ ์ด์ง
string
์์ฒญํ ์ํ๋ช ์นญ
Map<String, Object> eventMap = new HashMap<>();
eventMap.put("event", "w_request_ride");
eventMap.put("destination_a", "์ ๋ฆ์ญ");
eventMap.put("destination_b", "์ฌ๋ฆผํฝ๊ณต์");
eventMap.put("distance", 5.8);
eventMap.put("city", "์์ธ");
eventMap.put("price", 31500);
eventMap.put("currency", "KRW");
Map<String, Object> productMap = new HashMap<>();
productMap.put("product_id", "C30403");
productMap.put("product_name", "๋ฒ ์ด์ง");
eventMap.put("product", productMap);
DOT.logEvent(eventMap);val eventMap = mutableMapOf<String,Any>()
eventMap["event"] = "w_request_ride"
eventMap["destination_a"] = "์ ๋ฆ์ญ"
eventMap["destination_b"] = "์ฌ๋ฆผํฝ๊ณต์"
eventMap["distance"] = 5.8
eventMap["city"] = "์์ธ"
eventMap["price"] = 31500
eventMap["currency"] = "KRW"
val productMap = mutableMapOf<String,Any>()
productMap["product_id"] = "C30403"
productMap["product_name"] = "๋ฒ ์ด์ง"
eventMap["product"] = productMap
DOT.logEvent(eventMap)let event = NSMutableDictionary()
event["event"] = "w_request_ride"
event["destination_a"] = "์ ๋ฆ์ญ"
event["destination_b"] = "์ฌ๋ฆผํฝ๊ณต์"
event["distance"] = 5.8
event["city"] = "์์ธ"
event["price"] = 31500
event["currency"] = "KRW"
var product : [String: Any] = [:]
product["product_id"] = "C30403"
product["product_name"] = "๋ฒ ์ด์ง"
event["product"] = product
DOT.logEvent(event)NSMutableDictionary *event = [[NSMutableDictionary alloc] init];
[event setValue:@"w_request_ride" forKey:@"event"];
[event setValue:@"์ ๋ฆ์ญ" forKey:@"destination_a"];
[event setValue:@"์ฌ๋ฆผํฝ๊ณต์" forKey:@"destination_b"];
[event setValue:[NSNumber numberWithInt:5.8] forKey:@"distance"];
[event setValue:@"์์ธ" forKey:@"city"];
[event setValue:[NSNumber numberWithInt:31500] forKey:@"price"];
[event setValue:@"KRW" forKey:@"currency"];
NSMutableDictionary *product = [[NSMutableDictionary alloc] init];
[product setValue:@"C30403" forKey:@"product_id"];
[product setValue:@"๋ฒ ์ด์ง" forKey:@"product_name"];
[event setValue:@product forKey:@"product"]
[DOT logEvent:event]; var event = new Object();
event["event"] = "w_request_ride";
event["destination_a"] = "์ ๋ฆ์ญ";
event["destination_b"] = "์ฌ๋ฆผํฝ๊ณต์";
event["distance"] = 5.8;
event["city"] = "์์ธ";
event["price"] = 31500;
event["currency"] = "KRW";
var product = new Object();
product["product_id"] = "C30403";
product["product_name"] = "๋ฒ ์ด์ง";
event["product"] = product;
DOT.logEvent(event); var event = new Object();
event["event"] = "w_request_ride";
event["destination_a"] = "์ ๋ฆ์ญ";
event["destination_b"] = "์ฌ๋ฆผํฝ๊ณต์";
event["distance"] = 5.8;
event["city"] = "์์ธ";
event["price"] = 31500;
event["currency"] = "KRW";
var product = new Object();
product["product_id"] = "C30403";
product["product_name"] = "๋ฒ ์ด์ง";
event["product"] = product;
WDOT.logEvent(event);// .dart ์์ ํธ์ถ ํ ๋
Map event = {};
event["event"] = "w_request_ride";
event["destination_a"] = "์ ๋ฆ์ญ";
event["destination_b"] = "์ฌ๋ฆผํฝ๊ณต์";
event["distance"] = 5.8;
event["city"] = "์์ธ";
event["price"] = 31500;
event["currency"] = "KRW";
Map product = {};
product["product_id"] = "C30403";
product["product_name"] = "๋ฒ ์ด์ง";
event["product"] = product;
DOT.logEvent(event);
// webview ์์ ํธ์ถ ํ ๋
var event = new Object();
event["event"] = "w_request_ride";
event["destination_a"] = "์ ๋ฆ์ญ";
event["destination_b"] = "์ฌ๋ฆผํฝ๊ณต์";
event["distance"] = 5.8;
event["city"] = "์์ธ";
event["price"] = 31500;
event["currency"] = "KRW";
var product = new Object();
product["product_id"] = "C30403";
product["product_name"] = "๋ฒ ์ด์ง";
event["product"] = product ;
window.flutter_inappwebview.callHandler("DotFlutterDataBridge",JSON.stringify({
method : "logEvent",
data: event
}));// .js ์์ ํธ์ถ ํ ๋
NativeModules.DotReactBridge.logEvent(JSON.stringify({
event : "w_request_ride",
destination_a : "์ ๋ฆ์ญ",
destination_b : "์ฌ๋ฆผํฝ๊ณต์",
distance : 5.8,
city : "์์ธ",
price : 31500,
currency : "KRW",
product : {
product_id : "C30403",
product_name : "๋ฒ ์ด์ง"
}
}));
// webview ์์ ํธ์ถ ํ ๋
window.ReactNativeWebView.postMessage(JSON.stringify({
method:"logEvent",
data : {
event : "w_request_ride",
destination_a : "์ ๋ฆ์ญ",
destination_b : "์ฌ๋ฆผํฝ๊ณต์",
distance : 5.8,
city : "์์ธ",
price : 31500,
currency : "KRW",
product : {
product_id : "C30403",
product_name : "๋ฒ ์ด์ง"
}
}
})); Dictionary<string, object> eventDic = new Dictionary<string, object>();
eventDic.Add("event", "w_request_ride");
eventDic.Add("destination_a", "์ ๋ฆ์ญ");
eventDic.Add("destination_b", "์ฌ๋ฆผํฝ๊ณต์");
eventDic.Add("distance", 5.8);
eventDic.Add("city", "์์ธ");
eventDic.Add("price", 31500);
eventDic.Add("currency", "KRW");
Dictionary<string, object> product = new Dictionary<string, object>();
product.Add("product_id", "C30403");
product.Add("product_name", "๋ฒ ์ด์ง");
List<Dictionary<string, object>> productList = new List<Dictionary<string, object>>();
productList.Add(product);
eventDic.Add("product", productList);
DOT.logEvent(eventDic);์ฐจ๋ ํธ์ถ ์น์ธ
ํธ์ถ์ด ์น์ธ๋์ด ๋ฐฐ์ฐจ๊ฐ ์๋ฃ๋ ์์ ์ ์๋ ์ฝ๋๋ฅผ ์ถ๊ฐํฉ๋๋ค.
์ ํ ์์ฑ
Key
Value ์์
Type
์ค๋ช
destination_a
์ ๋ฆ์ญ
string
์ฐจ๋์ด ์ถ๋ฐํ๋ ์ง์ญ๋ช
destination_b
์ฌ๋ฆผํฝ๊ณต์
string
์ฐจ๋์ด ๋์ฐฉํ ์ง์ญ๋ช
distance
5.8
float
๋ชฉ์ ์ง๊น์ง์ ๊ฑฐ๋ฆฌ
city
์์ธ
string
์ฐจ๋์ ํธ์ถํ ์์น๊ฐ ์ํ ๋์
car_id
V39849
string
๋ฐฐ์ฐจ๋ ์ฐจ๋ ID
car_type
sedan
string
๋ฐฐ์ฐจ๋ ์ฐจ๋ ์ ํ
driver_id
DR3020
string
๋ฐฐ์ฐจ๋ ์ด์ ์ ID
price
31500
string
์ดํ์๊ธ
currency
KRW
string
ํตํ์ฝ๋
product_id
C30403
string
๋ฐฐ์ฐจ๋ ์ํ์ฝ๋
product_name
๋ฒ ์ด์ง
string
๋ฐฐ์ฐจ๋ ์ํ๋ช ์นญ
Map<String, Object> eventMap = new HashMap<>();
eventMap.put("event", "w_ride_approved");
eventMap.put("destination_a", "์ ๋ฆ์ญ");
eventMap.put("destination_b", "์ฌ๋ฆผํฝ๊ณต์");
eventMap.put("distance", 5.8);
eventMap.put("city", "์์ธ");
eventMap.put("car_id", "V39849");
eventMap.put("car_type", "sedan");
eventMap.put("driver_id", "DR3020");
eventMap.put("price", 31500);
eventMap.put("currency", "KRW");
Map<String, Object> productMap = new HashMap<>();
productMap.put("product_id", "C30403");
productMap.put("product_name", "๋ฒ ์ด์ง");
eventMap.put("product", productMap);
DOT.logEvent(eventMap);val eventMap = mutableMapOf<String,Any>()
eventMap["event"] = "w_ride_approved"
eventMap["destination_a"] = "์ ๋ฆ์ญ"
eventMap["destination_b"] = "์ฌ๋ฆผํฝ๊ณต์"
eventMap["distance"] = 5.8
eventMap["city"] = "์์ธ"
eventMap["car_id"] = "V39849"
eventMap["car_type"] = "sedan"
eventMap["driver_id"] = "DR3020"
eventMap["price"] = 31500
eventMap["currency"] = "KRW"
val productMap = mutableMapOf<String,Any>()
productMap["product_id"] = "C30403"
productMap["product_name"] = "๋ฒ ์ด์ง"
eventMap["product"] = productMap
DOT.logEvent(eventMap)let event = NSMutableDictionary()
event["event"] = "w_ride_approved"
event["destination_a"] = "์ ๋ฆ์ญ"
event["destination_b"] = "์ฌ๋ฆผํฝ๊ณต์"
event["distance"] = 5.8
event["city"] = "์์ธ"
event["car_id"] = "V39849"
event["car_type"] = "sedan"
event["driver_id"] = "DR3020"
event["price"] = 31500
event["currency"] = "KRW"
var product : [String: Any] = [:]
product["product_id"] = "C30403"
product["product_name"] = "๋ฒ ์ด์ง"
event["product"] = product
DOT.logEvent(event)NSMutableDictionary *event = [[NSMutableDictionary alloc] init];
[event setValue:@"w_ride_approved" forKey:@"event"];
[event setValue:@"์ ๋ฆ์ญ" forKey:@"destination_a"];
[event setValue:@"์ฌ๋ฆผํฝ๊ณต์" forKey:@"destination_b"];
[event setValue:[NSNumber numberWithInt:5.8] forKey:@"distance"];
[event setValue:@"์์ธ" forKey:@"city"];
[event setValue:@"V39849" forKey:@"car_id"];
[event setValue:@"sedan" forKey:@"car_type"];
[event setValue:@"DR3020" forKey:@"driver_id"];
[event setValue:[NSNumber numberWithInt:31500] forKey:@"price"];
[event setValue:@"KRW" forKey:@"currency"];
NSMutableDictionary *product = [[NSMutableDictionary alloc] init];
[product setValue:@"C30403" forKey:@"product_id"];
[product setValue:@"๋ฒ ์ด์ง" forKey:@"product_name"];
[event setValue:@product forKey:@"product"]
[DOT logEvent:event]; var event = new Object();
event["event"] = "w_ride_approved";
event["destination_a"] = "์ ๋ฆ์ญ";
event["destination_b"] = "์ฌ๋ฆผํฝ๊ณต์";
event["distance"] = 5.8;
event["city"] = "์์ธ";
event["car_id"] = "V39849";
event["car_type"] = "sedan";
event["driver_id"] = "DR3020";
event["price"] = 31500;
event["currency"] = "KRW";
var product = new Object();
product["product_id"] = "C30403";
product["product_name"] = "๋ฒ ์ด์ง";
event["product"] = product;
DOT.logEvent(event); var event = new Object();
event["event"] = "w_ride_approved";
event["destination_a"] = "์ ๋ฆ์ญ";
event["destination_b"] = "์ฌ๋ฆผํฝ๊ณต์";
event["distance"] = 5.8;
event["city"] = "์์ธ";
event["car_id"] = "V39849";
event["car_type"] = "sedan";
event["driver_id"] = "DR3020";
event["price"] = 31500;
event["currency"] = "KRW";
var product = new Object();
product["product_id"] = "C30403";
product["product_name"] = "๋ฒ ์ด์ง";
event["product"] = product;
WDOT.logEvent(event);// .dart ์์ ํธ์ถ ํ ๋
Map event = {};
event["event"] = "w_ride_approved";
event["destination_a"] = "์ ๋ฆ์ญ";
event["destination_b"] = "์ฌ๋ฆผํฝ๊ณต์";
event["distance"] = 5.8;
event["city"] = "์์ธ";
event["car_id"] = "V39849";
event["car_type"] = "sedan";
event["driver_id"] = "DR3020";
event["price"] = 31500;
event["currency"] = "KRW";
Map product = {};
product["product_id"] = "C30403";
product["product_name"] = "๋ฒ ์ด์ง";
event["product"] = product;
DOT.logEvent(event);
// webview ์์ ํธ์ถ ํ ๋
var event = new Object();
event["event"] = "w_ride_approved";
event["destination_a"] = "์ ๋ฆ์ญ";
event["destination_b"] = "์ฌ๋ฆผํฝ๊ณต์";
event["distance"] = 5.8;
event["city"] = "์์ธ";
event["car_id"] = "V39849";
event["car_type"] = "sedan";
event["driver_id"] = "DR3020";
event["price"] = 31500;
event["currency"] = "KRW";
var product = new Object();
product["product_id"] = "C30403";
product["product_name"] = "๋ฒ ์ด์ง";
event["product"] = product ;
window.flutter_inappwebview.callHandler("DotFlutterDataBridge",JSON.stringify({
method : "logEvent",
data: event
}));// .js ์์ ํธ์ถ ํ ๋
NativeModules.DotReactBridge.logEvent(JSON.stringify({
event : "w_ride_approved",
destination_a : "์ ๋ฆ์ญ",
destination_b : "์ฌ๋ฆผํฝ๊ณต์",
distance : 5.8,
city : "์์ธ",
car_id : "V39849",
car_type : "sedan",
driver_id : "DR3020",
price : 31500,
currency : "KRW",
product : {
product_id : "C30403",
product_name : "๋ฒ ์ด์ง"
}
}));
// webview ์์ ํธ์ถ ํ ๋
window.ReactNativeWebView.postMessage(JSON.stringify({
method:"logEvent",
data : {
event : "w_ride_approved",
destination_a : "์ ๋ฆ์ญ",
destination_b : "์ฌ๋ฆผํฝ๊ณต์",
distance : 5.8,
city : "์์ธ",
car_id : "V39849",
car_type : "sedan",
driver_id : "DR3020",
price : 31500,
currency : "KRW",
product : {
product_id : "C30403",
product_name : "๋ฒ ์ด์ง"
}
}
})); Dictionary<string, object> eventDic = new Dictionary<string, object>();
eventDic.Add("event", "w_ride_approved");
eventDic.Add("destination_a", "์ ๋ฆ์ญ");
eventDic.Add("destination_b", "์ฌ๋ฆผํฝ๊ณต์");
eventDic.Add("distance", 5.8);
eventDic.Add("city", "์์ธ");
eventDic.Add("car_id", "V39849");
eventDic.Add("car_type", "sedan");
eventDic.Add("driver_id", "DR3020");
eventDic.Add("price", 31500);
eventDic.Add("currency", "KRW");
Dictionary<string, object> product = new Dictionary<string, object>();
product.Add("product_id", "C30403");
product.Add("product_name", "๋ฒ ์ด์ง");
List<Dictionary<string, object>> productList = new List<Dictionary<string, object>>();
productList.Add(product);
eventDic.Add("product", productList);
DOT.logEvent(eventDic);์ฐจ๋ ํธ์ถ ์ทจ์
ํธ์ถ์ด ์ทจ์๋ ์์ ์ ์๋ ์ฝ๋๋ฅผ ์ถ๊ฐํฉ๋๋ค.
์ ํ ์์ฑ
Key
Value ์์
Type
์ค๋ช
destination_a
์ ๋ฆ์ญ
string
์ฐจ๋์ด ์ถ๋ฐํ๋ ์ง์ญ๋ช
destination_b
์ฌ๋ฆผํฝ๊ณต์
string
์ฐจ๋์ด ๋์ฐฉํ ์ง์ญ๋ช
distance
5.8
float
๋ชฉ์ ์ง๊น์ง์ ๊ฑฐ๋ฆฌ
city
์์ธ
string
์ฐจ๋์ ํธ์ถํ ์์น๊ฐ ์ํ ๋์
car_id
V39849
string
๋ฐฐ์ฐจ๋ ์ฐจ๋ ID
car_type
sedan
string
๋ฐฐ์ฐจ๋ ์ฐจ๋ ์ ํ
driver_id
DR3020
string
๋ฐฐ์ฐจ๋ ์ด์ ์ ID
price
31500
string
์ดํ์๊ธ
currency
KRW
string
ํตํ์ฝ๋
product_id
C30403
string
๋ฐฐ์ฐจ๋ ์ํ์ฝ๋
product_name
๋ฒ ์ด์ง
string
๋ฐฐ์ฐจ๋ ์ํ๋ช ์นญ
Map<String, Object> eventMap = new HashMap<>();
eventMap.put("event", "w_ride_cancelled");
eventMap.put("destination_a", "์ ๋ฆ์ญ");
eventMap.put("destination_b", "์ฌ๋ฆผํฝ๊ณต์");
eventMap.put("distance", 5.8);
eventMap.put("city", "์์ธ");
eventMap.put("car_id", "V39849");
eventMap.put("car_type", "sedan");
eventMap.put("driver_id", "DR3020");
eventMap.put("price", 31500);
eventMap.put("currency", "KRW");
Map<String, Object> productMap = new HashMap<>();
productMap.put("product_id", "C30403");
productMap.put("product_name", "๋ฒ ์ด์ง");
eventMap.put("product", productMap);
DOT.logEvent(eventMap);val eventMap = mutableMapOf<String,Any>()
eventMap["event"] = "w_ride_cancelled"
eventMap["destination_a"] = "์ ๋ฆ์ญ"
eventMap["destination_b"] = "์ฌ๋ฆผํฝ๊ณต์"
eventMap["distance"] = 5.8
eventMap["city"] = "์์ธ"
eventMap["car_id"] = "V39849"
eventMap["car_type"] = "sedan"
eventMap["driver_id"] = "DR3020"
eventMap["price"] = 31500
eventMap["currency"] = "KRW"
val productMap = mutableMapOf<String,Any>()
productMap["product_id"] = "C30403"
productMap["product_name"] = "๋ฒ ์ด์ง"
eventMap["product"] = productMap
DOT.logEvent(eventMap)let event = NSMutableDictionary()
event["event"] = "w_ride_cancelled"
event["destination_a"] = "์ ๋ฆ์ญ"
event["destination_b"] = "์ฌ๋ฆผํฝ๊ณต์"
event["distance"] = 5.8
event["city"] = "์์ธ"
event["car_id"] = "V39849"
event["car_type"] = "sedan"
event["driver_id"] = "DR3020"
event["price"] = 31500
event["currency"] = "KRW"
var product : [String: Any] = [:]
product["product_id"] = "C30403"
product["product_name"] = "๋ฒ ์ด์ง"
event["product"] = product
DOT.logEvent(event)NSMutableDictionary *event = [[NSMutableDictionary alloc] init];
[event setValue:@"w_ride_cancelled" forKey:@"event"];
[event setValue:@"์ ๋ฆ์ญ" forKey:@"destination_a"];
[event setValue:@"์ฌ๋ฆผํฝ๊ณต์" forKey:@"destination_b"];
[event setValue:[NSNumber numberWithInt:5.8] forKey:@"distance"];
[event setValue:@"์์ธ" forKey:@"city"];
[event setValue:@"V39849" forKey:@"car_id"];
[event setValue:@"sedan" forKey:@"car_type"];
[event setValue:@"DR3020" forKey:@"driver_id"];
[event setValue:[NSNumber numberWithInt:31500] forKey:@"price"];
[event setValue:@"KRW" forKey:@"currency"];
NSMutableDictionary *product = [[NSMutableDictionary alloc] init];
[product setValue:@"C30403" forKey:@"product_id"];
[product setValue:@"๋ฒ ์ด์ง" forKey:@"product_name"];
[event setValue:@product forKey:@"product"]
[DOT logEvent:event]; var event = new Object();
event["event"] = "w_ride_cancelled";
event["destination_a"] = "์ ๋ฆ์ญ";
event["destination_b"] = "์ฌ๋ฆผํฝ๊ณต์";
event["distance"] = 5.8;
event["city"] = "์์ธ";
event["car_id"] = "V39849";
event["car_type"] = "sedan";
event["driver_id"] = "DR3020";
event["price"] = 31500;
event["currency"] = "KRW";
var product = new Object();
product["product_id"] = "C30403";
product["product_name"] = "๋ฒ ์ด์ง";
event["product"] = product;
DOT.logEvent(event); var event = new Object();
event["event"] = "w_ride_cancelled";
event["destination_a"] = "์ ๋ฆ์ญ";
event["destination_b"] = "์ฌ๋ฆผํฝ๊ณต์";
event["distance"] = 5.8;
event["city"] = "์์ธ";
event["car_id"] = "V39849";
event["car_type"] = "sedan";
event["driver_id"] = "DR3020";
event["price"] = 31500;
event["currency"] = "KRW";
var product = new Object();
product["product_id"] = "C30403";
product["product_name"] = "๋ฒ ์ด์ง";
event["product"] = product;
WDOT.logEvent(event);// .dart ์์ ํธ์ถ ํ ๋
Map event = {};
event["event"] = "w_ride_cancelled";
event["destination_a"] = "์ ๋ฆ์ญ";
event["destination_b"] = "์ฌ๋ฆผํฝ๊ณต์";
event["distance"] = 5.8;
event["city"] = "์์ธ";
event["car_id"] = "V39849";
event["car_type"] = "sedan";
event["driver_id"] = "DR3020";
event["price"] = 31500;
event["currency"] = "KRW";
Map product = {};
product["product_id"] = "C30403";
product["product_name"] = "๋ฒ ์ด์ง";
event["product"] = product;
DOT.logEvent(event);
// webview ์์ ํธ์ถ ํ ๋
var event = new Object();
event["event"] = "w_ride_cancelled";
event["destination_a"] = "์ ๋ฆ์ญ";
event["destination_b"] = "์ฌ๋ฆผํฝ๊ณต์";
event["distance"] = 5.8;
event["city"] = "์์ธ";
event["car_id"] = "V39849";
event["car_type"] = "sedan";
event["driver_id"] = "DR3020";
event["price"] = 31500;
event["currency"] = "KRW";
var product = new Object();
product["product_id"] = "C30403";
product["product_name"] = "๋ฒ ์ด์ง";
event["product"] = product ;
window.flutter_inappwebview.callHandler("DotFlutterDataBridge",JSON.stringify({
method : "logEvent",
data: event
}));// .js ์์ ํธ์ถ ํ ๋
NativeModules.DotReactBridge.logEvent(JSON.stringify({
event : "w_ride_cancelled",
destination_a : "์ ๋ฆ์ญ",
destination_b : "์ฌ๋ฆผํฝ๊ณต์",
distance : 5.8,
city : "์์ธ",
car_id : "V39849",
car_type : "sedan",
driver_id : "DR3020",
price : 31500,
currency : "KRW",
product : {
product_id : "C30403",
product_name : "๋ฒ ์ด์ง"
}
}));
// webview ์์ ํธ์ถ ํ ๋
window.ReactNativeWebView.postMessage(JSON.stringify({
method:"logEvent",
data : {
event : "w_ride_cancelled",
destination_a : "์ ๋ฆ์ญ",
destination_b : "์ฌ๋ฆผํฝ๊ณต์",
distance : 5.8,
city : "์์ธ",
car_id : "V39849",
car_type : "sedan",
driver_id : "DR3020",
price : 31500,
currency : "KRW",
product : {
product_id : "C30403",
product_name : "๋ฒ ์ด์ง"
}
}
})); Dictionary<string, object> eventDic = new Dictionary<string, object>();
eventDic.Add("event", "w_ride_cancelled");
eventDic.Add("destination_a", "์ ๋ฆ์ญ");
eventDic.Add("destination_b", "์ฌ๋ฆผํฝ๊ณต์");
eventDic.Add("distance", 5.8);
eventDic.Add("city", "์์ธ");
eventDic.Add("car_id", "V39849");
eventDic.Add("car_type", "sedan");
eventDic.Add("driver_id", "DR3020");
eventDic.Add("price", 31500);
eventDic.Add("currency", "KRW");
Dictionary<string, object> product = new Dictionary<string, object>();
product.Add("product_id", "C30403");
product.Add("product_name", "๋ฒ ์ด์ง");
List<Dictionary<string, object>> productList = new List<Dictionary<string, object>>();
productList.Add(product);
eventDic.Add("product", productList);
DOT.logEvent(eventDic);์ดํ ์ข
๋ฃ
์ฐจ๋์ด ๋ชฉ์ ์ง๊น์ง ์ดํ์ ๋ง์น๊ณ ๋น์ฉ์ด ๊ฒฐ์ ๋ ์์ ์ ์๋ ์ฝ๋๋ฅผ ์ถ๊ฐํฉ๋๋ค.
์ ํ ์์ฑ
Key
Value ์์
Type
์ค๋ช
transaction_id
CL39932003
string
์ฃผ๋ฌธ๋ฒํธ
destination_a
์ ๋ฆ์ญ
string
์ฐจ๋์ด ์ถ๋ฐํ ์ง์ญ๋ช
destination_b
์ฌ๋ฆผํฝ๊ณต์
string
์ฐจ๋์ด ๋์ฐฉํ ์ง์ญ๋ช
distance
5.8
float
๋ชฉ์ ์ง๊น์ง์ ๊ฑฐ๋ฆฌ
city
์์ธ
string
์ฐจ๋์ ํธ์ถํ ์์น๊ฐ ์ํ ๋์
car_id
V39849
string
๋ฐฐ์ฐจ๋ ์ฐจ๋ ID
car_type
sedan
string
๋ฐฐ์ฐจ๋ ์ฐจ๋ ์ ํ
driver_id
DR3020
string
๋ฐฐ์ฐจ๋ ์ด์ ์ ID
price
31500
string
์ดํ์๊ธ
currency
KRW
string
ํตํ์ฝ๋
riding_time
21
float
์ดํ ์์๋ถํฐ ์ดํ ์๋ฃ๊น์ง์ ์๊ฐ์ ๋ถ๋จ์๋ก ์ ๋ ฅ
product_id
C30403
string
๋ฐฐ์ฐจ๋ ์ํ์ฝ๋
product_name
๋ฒ ์ด์ง
string
๋ฐฐ์ฐจ๋ ์ํ๋ช ์นญ
quantity
1
string
ํธ์ถํ ์ฐจ๋ ๋์
revenue
31500
double
์ ์ ๊ฐ ๊ฒฐ์ ํ ๊ธ์ก
Map<String, Object> purchaseMap = new HashMap<>();
purchaseMap.put("transaction_id", "CL39932003");
purchaseMap.put("destination_a", "์ ๋ฆ์ญ");
purchaseMap.put("destination_b", "์ฌ๋ฆผํฝ๊ณต์");
purchaseMap.put("distance", 5.8);
purchaseMap.put("city", "์์ธ");
purchaseMap.put("car_id", "V39849");
purchaseMap.put("car_type", "sedan");
purchaseMap.put("driver_id", "DR3020");
purchaseMap.put("price", 31500);
purchaseMap.put("currency", "KRW");
purchaseMap.put("riding_time", 21);
Map<String, Object> productMap = new HashMap<>();
productMap.put("product_id", "C30403");
productMap.put("product_name", "๋ฒ ์ด์ง");
productMap.put("quantity", 1);
productMap.put("revenue", 31500);
purchaseMap.put("product", productMap);
DOT.logPurchase(purchaseMap);val purchaseMap = mutableMapOf<String,Any>()
purchaseMap["transaction_id"] = "CL39932003"
purchaseMap["destination_a"] = "์ ๋ฆ์ญ"
purchaseMap["destination_b"] = "์ฌ๋ฆผํฝ๊ณต์"
purchaseMap["distance"] = 5.8
purchaseMap["city"] = "์์ธ"
purchaseMap["car_id"] = "V39849"
purchaseMap["car_type"] = "sedan"
purchaseMap["driver_id"] = "DR3020"
purchaseMap["price"] = 31500
purchaseMap["currency"] = "KRW"
purchaseMap["riding_time"] = 21
val productMap = mutableMapOf<String,Any>()
productMap["product_id"] = "C30403"
productMap["product_name"] = "๋ฒ ์ด์ง"
productMap["quantity"] = 1
productMap["revenue"] = 31500
purchaseMap["product"] = productMap
DOT.logPurchase(purchaseMap)let purchase = NSMutableDictionary()
purchase["transaction_id"] = "CL39932003"
purchase["destination_a"] = "์ ๋ฆ์ญ"
purchase["destination_b"] = "์ฌ๋ฆผํฝ๊ณต์"
purchase["distance"] = 5.8
purchase["city"] = "์์ธ"
purchase["car_id"] = "V39849"
purchase["car_type"] = "sedan"
purchase["driver_id"] = "DR3020"
purchase["price"] = 31500
purchase["currency"] = "KRW"
purchase["riding_time"] = 21
var product : [String: Any] = [:]
product["product_id"] = "C30403"
product["product_name"] = "๋ฒ ์ด์ง"
product["quantity"] = 1
product["revenue"] = 31500
purchase["product"] = product
DOT.logPurchase(purchase)NSMutableDictionary *purchase = [[NSMutableDictionary alloc] init];
[purchase setValue:@"CL39932003" forKey:@"transaction_id"];
[purchase setValue:@"์ ๋ฆ์ญ" forKey:@"destination_a"];
[purchase setValue:@"์ฌ๋ฆผํฝ๊ณต์" forKey:@"destination_b"];
[purchase setValue:[NSNumber numberWithInt:5.8] forKey:@"distance"];
[purchase setValue:@"์์ธ" forKey:@"city"];
[purchase setValue:@"V39849" forKey:@"car_id"];
[purchase setValue:@"sedan" forKey:@"car_type"];
[purchase setValue:@"DR3020" forKey:@"driver_id"];
[purchase setValue:[NSNumber numberWithInt:31500] forKey:@"price"];
[purchase setValue:@"KRW" forKey:@"currency"];
[purchase setValue:[NSNumber numberWithInt:21] forKey:@"riding_time"];
NSMutableDictionary *product = [[NSMutableDictionary alloc] init];
[product setValue:@"C30403" forKey:@"product_id"];
[product setValue:@"๋ฒ ์ด์ง" forKey:@"product_name"];
[product setValue:[NSNumber numberWithInt:1] forKey:@"quantity"];
[product setValue:[NSNumber numberWithInt:31500] forKey:@"revenue"];
[purchase setValue:@product forKey:@"product"]
[DOT logPurchase:purchase]; var purchase = new Object();
purchase["transaction_id"] = "CL39932003";
purchase["destination_a"] = "์ ๋ฆ์ญ";
purchase["destination_b"] = "์ฌ๋ฆผํฝ๊ณต์";
purchase["distance"] = 5.8;
purchase["city"] = "์์ธ";
purchase["car_id"] = "V39849";
purchase["car_type"] = "sedan";
purchase["driver_id"] = "DR3020";
purchase["price"] = 31500;
purchase["currency"] = "KRW";
purchase["riding_time"] = 21;
var product = new Object();
product["product_id"] = "C30403";
product["product_name"] = "๋ฒ ์ด์ง";
product["quantity"] = 1;
product["revenue"] = 31500;
purchase["product"] = product;
DOT.logPurchase(purchase); var purchase = new Object();
purchase["transaction_id"] = "CL39932003";
purchase["destination_a"] = "์ ๋ฆ์ญ";
purchase["destination_b"] = "์ฌ๋ฆผํฝ๊ณต์";
purchase["distance"] = 5.8;
purchase["city"] = "์์ธ";
purchase["car_id"] = "V39849";
purchase["car_type"] = "sedan";
purchase["driver_id"] = "DR3020";
purchase["price"] = 31500;
purchase["currency"] = "KRW";
purchase["riding_time"] = 21;
var product = new Object();
product["product_id"] = "C30403";
product["product_name"] = "๋ฒ ์ด์ง";
product["quantity"] = 1;
product["revenue"] = 31500;
purchase["product"] = product;
WDOT.logPurchase(purchase);// .dart ์์ ํธ์ถ ํ ๋
Map purchase = {};
purchase["transaction_id"] = "CL39932003";
purchase["destination_a"] = "์ ๋ฆ์ญ";
purchase["destination_b"] = "์ฌ๋ฆผํฝ๊ณต์";
purchase["distance"] = 5.8;
purchase["city"] = "์์ธ";
purchase["car_id"] = "V39849";
purchase["car_type"] = "sedan";
purchase["driver_id"] = "DR3020";
purchase["price"] = 31500;
purchase["currency"] = "KRW";
purchase["riding_time"] = 21;
Map product = {};
product["product_id"] = "C30403";
product["product_name"] = "๋ฒ ์ด์ง";
product["quantity"] = 1;
product["revenue"] = 31500;
purchase["product"] = product;
DOT.logPurchase(purchase);
// webview ์์ ํธ์ถ ํ ๋
var purchase = new Object();
purchase["transaction_id"] = "CL39932003";
purchase["destination_a"] = "์ ๋ฆ์ญ";
purchase["destination_b"] = "์ฌ๋ฆผํฝ๊ณต์";
purchase["distance"] = 5.8;
purchase["city"] = "์์ธ";
purchase["car_id"] = "V39849";
purchase["car_type"] = "sedan";
purchase["driver_id"] = "DR3020";
purchase["price"] = 31500;
purchase["currency"] = "KRW";
purchase["riding_time"] = 21;
var product = new Object();
product["product_id"] = "C30403";
product["product_name"] = "๋ฒ ์ด์ง";
product["quantity"] = 1;
product["revenue"] = 31500;
purchase["product"] = product;
window.flutter_inappwebview.callHandler("DotFlutterDataBridge",JSON.stringify({
method : "logPurchase",
data: purchase
}));// .js ์์ ํธ์ถ ํ ๋
NativeModules.DotReactBridge.logPurchase(JSON.stringify({
transaction_id : "CL39932003",
destination_a : "์ ๋ฆ์ญ",
destination_b : "์ฌ๋ฆผํฝ๊ณต์",
distance : 5.8,
city : "์์ธ",
car_id : "V39849",
car_type : "sedan",
driver_id : "DR3020",
price : 31500,
currency : "KRW",
riding_time : 21,
product : {
product_id : "C30403",
product_name : "๋ฒ ์ด์ง",
quantity : 1,
revenue : 31500,
}
}));
// webview ์์ ํธ์ถ ํ ๋
window.ReactNativeWebView.postMessage(JSON.stringify({
method:"logPurchase",
data : {
transaction_id : "CL39932003",
destination_a : "์ ๋ฆ์ญ",
destination_b : "์ฌ๋ฆผํฝ๊ณต์",
distance : 5.8,
city : "์์ธ",
car_id : "V39849",
car_type : "sedan",
driver_id : "DR3020",
price : 31500,
currency : "KRW",
riding_time : 21,
product : {
product_id : "C30403",
product_name : "๋ฒ ์ด์ง",
quantity : 1,
revenue : 31500,
}
}
})); Dictionary<string, object> purchase = new Dictionary<string, object>();
purchase.Add("transaction_id", "CL39932003");
purchase.Add("destination_a", "์ ๋ฆ์ญ");
purchase.Add("destination_b", "์ฌ๋ฆผํฝ๊ณต์");
purchase.Add("distance", 5.8);
purchase.Add("city", "์์ธ");
purchase.Add("car_id", "V39849");
purchase.Add("car_type", "sedan");
purchase.Add("driver_id", "DR3020");
purchase.Add("price", 31500);
purchase.Add("currency", "KRW");
purchase.Add("riding_time", 21);
Dictionary<string, object> product = new Dictionary<string, object>();
product.Add("product_id", "C30403");
product.Add("product_name", "๋ฒ ์ด์ง");
product.Add("quantity", 1);
product.Add("revenue", 31500);
List<Dictionary<string, object>> productList = new List<Dictionary<string, object>>();
productList.Add(product);
purchase.Add("product", productList);
DOT.logPurchase(purchase);๋ค๋น๊ฒ์ด์
์์
๋ชฉ์ ์ง์ ์ฝ์ค๊ฐ ์ค์ ๋์ด ์ฃผํ์๋ด๊ฐ ์์๋ ์์ ์ ์๋ ์ฝ๋๋ฅผ ์ถ๊ฐํฉ๋๋ค.
์ ํ ์์ฑ
Key
Value ์์
Type
์ค๋ช
destination_a
์ ๋ฆ์ญ
string
์ฐจ๋์ด ์ถ๋ฐํ๋ ์ง์ญ๋ช
destination_b
์ฌ๋ฆผํฝ๊ณต์
string
์ฐจ๋์ด ๋์ฐฉํ ์ง์ญ๋ช
distance
5.8
float
๋ชฉ์ ์ง๊น์ง์ ๊ฑฐ๋ฆฌ๋ฅผ km ๋จ์๋ก ์ ๋ ฅ
est_arrival_time
20
float
์์๋๋ ์ฃผํ์๊ฐ์ ๋ถ๋จ์๋ก ์ ๋ ฅ
Map<String, Object> eventMap = new HashMap<>();
eventMap.put("event", "w_navigate");
eventMap.put("destination_a", "์ ๋ฆ์ญ");
eventMap.put("destination_b", "์ฌ๋ฆผํฝ๊ณต์");
eventMap.put("distance", 5.8);
eventMap.put("est_arrival_time", 20);
DOT.logEvent(eventMap);val eventMap = mutableMapOf<String,Any>()
eventMap["event"] = "w_navigate"
eventMap["destination_a"] = "์ ๋ฆ์ญ"
eventMap["destination_b"] = "์ฌ๋ฆผํฝ๊ณต์"
eventMap["distance"] = 5.8
eventMap["est_arrival_time"] = 20
DOT.logEvent(eventMap)let event = NSMutableDictionary()
event["event"] = "w_navigate"
event["destination_a"] = "์ ๋ฆ์ญ"
event["destination_b"] = "์ฌ๋ฆผํฝ๊ณต์"
event["distance"] = 5.8
event["est_arrival_time"] = 20
DOT.logEvent(event)NSMutableDictionary *event = [[NSMutableDictionary alloc] init];
[event setValue:@"w_navigate" forKey:@"event"];
[event setValue:@"์ ๋ฆ์ญ" forKey:@"destination_a"];
[event setValue:@"์ฌ๋ฆผํฝ๊ณต์" forKey:@"destination_b"];
[event setValue:[NSNumber numberWithInt:5.8] forKey:@"distance"];
[event setValue:[NSNumber numberWithInt:20] forKey:@"est_arrival_time"];
[DOT logEvent:event]; var event = new Object();
event["event"] = "w_navigate";
event["destination_a"] = "์ ๋ฆ์ญ";
event["destination_b"] = "์ฌ๋ฆผํฝ๊ณต์";
event["distance"] = 5.8;
event["est_arrival_time"] = 20;
DOT.logEvent(event); var event = new Object();
event["event"] = "w_navigate";
event["destination_a"] = "์ ๋ฆ์ญ";
event["destination_b"] = "์ฌ๋ฆผํฝ๊ณต์";
event["distance"] = 5.8;
event["est_arrival_time"] = 20;
WDOT.logEvent(event);// .dart ์์ ํธ์ถ ํ ๋
Map event = {};
event["event"] = "w_navigate";
event["destination_a"] = "์ ๋ฆ์ญ";
event["destination_b"] = "์ฌ๋ฆผํฝ๊ณต์";
event["distance"] = 5.8;
event["est_arrival_time"] = 20;
DOT.logEvent(event);
// webview ์์ ํธ์ถ ํ ๋
window.flutter_inappwebview.callHandler("DotFlutterDataBridge",JSON.stringify({
method : "logEvent",
data: {
event : "w_navigate",
destination_a : "์ ๋ฆ์ญ",
destination_b : "์ฌ๋ฆผํฝ๊ณต์",
distance : 5.8,
est_arrival_time : 20
}
}));// .js ์์ ํธ์ถ ํ ๋
NativeModules.DotReactBridge.logEvent(JSON.stringify({
event : "w_navigate",
destination_a : "์ ๋ฆ์ญ",
destination_b : "์ฌ๋ฆผํฝ๊ณต์",
distance : 5.8,
est_arrival_time : 20
}));
// webview ์์ ํธ์ถ ํ ๋
window.ReactNativeWebView.postMessage(JSON.stringify({
method:"logEvent",
data : {
event : "w_navigate",
destination_a : "์ ๋ฆ์ญ",
destination_b : "์ฌ๋ฆผํฝ๊ณต์",
distance : 5.8,
est_arrival_time : 20
}
})); Dictionary<string, object> eventDic = new Dictionary<string, object>();
eventDic.Add("event", "w_navigate");
eventDic.Add("destination_a", "์ ๋ฆ์ญ");
eventDic.Add("destination_b", "์ฌ๋ฆผํฝ๊ณต์");
eventDic.Add("distance", 5.8);
eventDic.Add("est_arrival_time", 20);
DOT.logEvent(eventDic);๋ค๋น๊ฒ์ด์
์ข
๋ฃ
๋ชฉ์ ์ง์ ๋์ฐฉํ์ฌ ์ฃผํ์๋ด๊ฐ ์ข ๋ฃ๋ ์์ ์ ์๋ ์ฝ๋๋ฅผ ์ถ๊ฐํฉ๋๋ค.
์ ํ ์์ฑ
Key
Value ์์
Type
์ค๋ช
destination_a
์ ๋ฆ์ญ
string
์ฐจ๋์ด ์ถ๋ฐํ๋ ์ง์ญ๋ช
destination_b
์ฌ๋ฆผํฝ๊ณต์
string
์ฐจ๋์ด ๋์ฐฉํ ์ง์ญ๋ช
distance
5.8
float
์ค์ ์ฃผํ๊ฑฐ๋ฆฌ๋ฅผ km ๋จ์๋ก ์ ๋ ฅ
riding_time
21
float
์ค์ ์ฃผํ์๊ฐ์ ๋ถ๋จ์๋ก ์ ๋ ฅ
Map<String, Object> eventMap = new HashMap<>();
eventMap.put("event", "w_end_navigation");
eventMap.put("destination_a", "์ ๋ฆ์ญ");
eventMap.put("destination_b", "์ฌ๋ฆผํฝ๊ณต์");
eventMap.put("distance", 5.8);
eventMap.put("riding_time", 21);
DOT.logEvent(eventMap);val eventMap = mutableMapOf<String,Any>()
eventMap["event"] = "w_end_navigation"
eventMap["destination_a"] = "์ ๋ฆ์ญ"
eventMap["destination_b"] = "์ฌ๋ฆผํฝ๊ณต์"
eventMap["distance"] = 5.8
eventMap["est_arrival_time"] = 21
DOT.logEvent(eventMap)let event = NSMutableDictionary()
event["event"] = "w_end_navigation"
event["destination_a"] = "์ ๋ฆ์ญ"
event["destination_b"] = "์ฌ๋ฆผํฝ๊ณต์"
event["distance"] = 5.8
event["riding_time"] = 21
DOT.logEvent(event)NSMutableDictionary *event = [[NSMutableDictionary alloc] init];
[event setValue:@"w_end_navigation" forKey:@"event"];
[event setValue:@"์ ๋ฆ์ญ" forKey:@"destination_a"];
[event setValue:@"์ฌ๋ฆผํฝ๊ณต์" forKey:@"destination_b"];
[event setValue:[NSNumber numberWithInt:5.8] forKey:@"distance"];
[event setValue:[NSNumber numberWithInt:21] forKey:@"riding_time"];
[DOT logEvent:event]; var event = new Object();
event["event"] = "w_end_navigation";
event["destination_a"] = "์ ๋ฆ์ญ";
event["destination_b"] = "์ฌ๋ฆผํฝ๊ณต์";
event["distance"] = 5.8;
event["riding_time"] = 21;
DOT.logEvent(event); var event = new Object();
event["event"] = "w_end_navigation";
event["destination_a"] = "์ ๋ฆ์ญ";
event["destination_b"] = "์ฌ๋ฆผํฝ๊ณต์";
event["distance"] = 5.8;
event["riding_time"] = 21;
WDOT.logEvent(event);// .dart ์์ ํธ์ถ ํ ๋
Map event = {};
event["event"] = "w_end_navigation";
event["destination_a"] = "์ ๋ฆ์ญ";
event["destination_b"] = "์ฌ๋ฆผํฝ๊ณต์";
event["distance"] = 5.8;
event["riding_time"] = 21;
DOT.logEvent(event);
// webview ์์ ํธ์ถ ํ ๋
window.flutter_inappwebview.callHandler("DotFlutterDataBridge",JSON.stringify({
method : "logEvent",
data: {
event : "w_end_navigation",
destination_a : "์ ๋ฆ์ญ",
destination_b : "์ฌ๋ฆผํฝ๊ณต์",
distance : 5.8,
riding_time : 21
}
}));// .js ์์ ํธ์ถ ํ ๋
NativeModules.DotReactBridge.logEvent(JSON.stringify({
event : "w_end_navigation",
destination_a : "์ ๋ฆ์ญ",
destination_b : "์ฌ๋ฆผํฝ๊ณต์",
distance : 5.8,
riding_time : 21
}));
// webview ์์ ํธ์ถ ํ ๋
window.ReactNativeWebView.postMessage(JSON.stringify({
method:"logEvent",
data : {
event : "w_end_navigation",
destination_a : "์ ๋ฆ์ญ",
destination_b : "์ฌ๋ฆผํฝ๊ณต์",
distance : 5.8,
riding_time : 21
}
})); Dictionary<string, object> eventDic = new Dictionary<string, object>();
eventDic.Add("event", "w_end_navigation");
eventDic.Add("destination_a", "์ ๋ฆ์ญ");
eventDic.Add("destination_b", "์ฌ๋ฆผํฝ๊ณต์");
eventDic.Add("distance", 5.8);
eventDic.Add("riding_time", 21);
DOT.logEvent(eventDic);Last updated
Was this helpful?