auto-monitor
TypeScript icon, indicating that this package has built-in type declarations

1.1.2 • Public • Published

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
  })

Package Sidebar

Install

npm i auto-monitor

Weekly Downloads

1

Version

1.1.2

License

MIT

Unpacked Size

74.8 kB

Total Files

64

Last publish

Collaborators

  • wulinsheng123