1.0.1 • Published 10 months ago
single-tracker v1.0.1
tracker
这是一个埋点SDK的简单版本 使用方法如下
import Tracker from 'single-tracker'
const tracker = new Tracker({
requestUrl: 'xxxxxx'
})
options说明:
/**
* @id 唯一标识
* @requestUrl 接口地址
* @historyTracker history上报
* @hashTracker hash上报
* @domTracker 携带Tracker-key点击事件上报
* @sdkVersion 版本
* @extra 透传字段
* @jsError js和 promise 错误上报
*/