js-buried
v1.2.8
Published
埋点工具
Maintainers
Readme
js-buried
一个js埋点程序,用于设置PV和UV埋点,支持自定义埋点类型和埋点名称
Tips
PV: 进入项目中的页面(每次切换页面添加)
UV: 进入某个项目(进入项目时添加)
默认服务器请求地址:
云桌面环境:http://128.192.182.181:8000
其他环境:https://touch.ccb.com
如何使用
Install
- NPM:
npm install js-buried
Import the module
import buried from 'js-buried';Set a PV
buried.setPV({
space : 'standard or self'
});Set a UV
buried.setUV({
space : 'standard or self'
});custom buried
buried.setBuried({
space : 'standard or self',
eventID : 'number',
eventName : 'string',
eventType : 'string'
});