auto-monitor
根据路由跳转能够自动上报路由数据,根据 useragent 上报手机类型、浏览器类型、手机品牌,自动分析页面性能、最后数据上报时可自定义数据内容 自动化埋点
#install
npm install auto-monitor
or
pnpm install auto-monitor
or
yarn add auto-monitor
vue react 的应用
import { detectDevice, error, event, monitor, performance, route } from 'auto-monitor'
monitor({
url: 'http://localhost:4000'
})
.use('detectDevice', detectDevice())
.use('performance', performance())
.use('event', event()).use('route', route())
.use('error', error()).run((e) => {
console.log(e)
return e
})