drgame-cc 1.0.30 → 1.0.32
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -85,14 +85,14 @@ export default class GameAnalytics {
|
|
|
85
85
|
Reporter.init({
|
|
86
86
|
report_url: REPORT_URL,
|
|
87
87
|
app_item: config.app_item || this.getAppItem(platform),
|
|
88
|
-
content_type: config.content_type || "
|
|
88
|
+
content_type: config.content_type || "游戏",
|
|
89
89
|
content_id: config.content_id || "rexueqiangshou",
|
|
90
90
|
content_title: config.content_title || "热血枪手",
|
|
91
91
|
});
|
|
92
92
|
this.initialized = true;
|
|
93
93
|
if (config.user_id !== undefined) this.setUserId(config.user_id);
|
|
94
94
|
var httpReq = new XMLHttpRequest();
|
|
95
|
-
httpReq.open("
|
|
95
|
+
httpReq.open("POST", 'https://sup.daoran.tv/bi-api/api/config/get');
|
|
96
96
|
httpReq.setRequestHeader("Content-Type", "application/json");
|
|
97
97
|
httpReq.setRequestHeader("Accept", "application/json");
|
|
98
98
|
httpReq.send();
|
|
@@ -170,9 +170,9 @@ Reporter.resetDeviceId(); // 重置设备ID
|
|
|
170
170
|
| `content_type` | 内容类型(默认"游戏") | init 时设置 |
|
|
171
171
|
| `content_id` | 游戏 ID | init 时设置 |
|
|
172
172
|
| `content_title` | 游戏名 | init 时设置 |
|
|
173
|
-
| `element_position` | 元素位置(埋点范围表对应的元素位置列) |
|
|
173
|
+
| `element_position` | 元素位置(埋点范围表对应的元素位置列) | 必填 |
|
|
174
174
|
| `action_type` | 行为类型:曝光/点击 | 默认"曝光" |
|
|
175
|
-
| `event_name` | 具体事件名(通过元素位置和行为生成事件名字) |
|
|
175
|
+
| `event_name` | 具体事件名(通过元素位置和行为生成事件名字) | 选填 |
|
|
176
176
|
| `ad_request_id` | 广告请求 ID | 广告事件必填 |
|
|
177
177
|
| `event_time` | 客户端事件时间(yyyy-MM-dd HH:mm:ss) | 自动生成 |
|
|
178
178
|
|