wangenze267 / monitor

🔦 一个用来监控网站数据的前端工具包(website-monitoring)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

website-monitoring

npm star license npm-stats

🔦 A front-end monitoring tool for a website

一个用来监控网站数据的前端工具包

npm install website-monitoring

仅供学习使用/参考


待完成的饼 🍕

🪄 监控页面性能 - 已完成

🪄 监控页面静态资源加载情况 - 已完成

🪄 监控请求情况(Ajax发送情况)- 已完成

🪄 页面的错误捕获 - 已完成

🪄 监控用户行为

使用

import Monitor from 'website-monitoring'

// 监控页面性能
Monitor.perf.init((data) => {
  console.log(data)
})

// 监控页面静态资源加载情况
Monitor.resource.init((data) => {
  console.log(data)
})

// 监控Ajax请求情况
Monitor.xhr.init((data) => {
  console.log(data)
})

// 监控页面报错情况
Monitor.errorCatch.init((data) => {
  console.log(data)
})

About

🔦 一个用来监控网站数据的前端工具包(website-monitoring)

License:MIT License


Languages

Language:JavaScript 100.0%