Skip to content

JiangShuQ/BuriedPoint

Repository files navigation

tracker

这是一个埋点SDK This is a buried SDK

使用方法如下 The usage is as follows

import Tracker from 'buriedpoint'

new Tracker({
    requestUrl:"xxxxxx"
})

options 介绍 Options introduction

/**
 * @requestUrl 接口地址
 * @historyTracker history上报
 * @hashTracker hash上报
 * @domTracker 携带Tracker-key 点击事件上报
 * @sdkVersion 版本
 * @extra 透传字段
 * @jsError js和promise报错异常上报
 */
export interface DefaultOptions {
    uuid: string | undefined,
    requestUrl: string | undefined,
    historyTracker: boolean,
    hashTracker: boolean,
    domTracker: boolean,
    sdkVersion: string | number,
    extra: Record<string, any> | undefined,
    jsError: boolean
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published