qiao-data
v5.0.3
Published
clarity data report
Downloads
11
Readme
qiao-data
基于clarity的数据埋点简单封装,详见:AIGC 创业 100 问:选择数据埋点工具
install
npm i qiao-data
usage
// commonjs
const { reportPV } = require('qiao-data');
// es6
import { reportPV } from 'qiao-data';
api
reportPV
上报页面 pv
reportPV();
reportUV
上报页面 uv
- domain
- 类型:string
- 备注:域名,例如
.electron-icns.com
reportUV(domain);
reportEvent
上报自定义事件
- event
- 类型:string
- 备注:自定义事件,例如
web.click.url
reportEvent(event);