trackEvent 埋点:跟踪事件

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

#返回参数

  • 成功时返回
  • 失败时返回
posted on 2024-12-18 09:22  AtlasLapetos  阅读(16)  评论(0)    收藏  举报