# trackEvent ^6.8
埋点:跟踪事件
# 请求参数
Prop | Type | Default | Comment |
---|---|---|---|
eventParams | Object | N/A | 上报的数据 |
event | String | N/A | 事件名称 |
# 接口调用示例
const params = {
event: 'error1',
eventParams: {
param_1: 'xxxxx',
param_2: 123456
},
}
this.$bridge
.trackEvent(params)
.then(res => {
this.$alert(res)
})
.catch(err => {
this.$toast(err)
})
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# 返回参数
成功时返回
失败时返回