Skip to content

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

License

Notifications You must be signed in to change notification settings

wangenze267/monitor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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)

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published