# webfunny_monitor **Repository Path**: ignore-anonymous/webfunny_monitor ## Basic Information - **Project Name**: webfunny_monitor - **Description**: 通过向html页面中插入一段简单的JS探针代码,实现无埋点监控前端页面的用户行为,包括但不限于 PV/UV、报错日志、请求日志、静态资源加载情况、用户点击行为以及截图信息等等,目的在于帮助前端开发提高解决线上问题的效率。页面DEMO: - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 1 - **Created**: 2020-03-11 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 阅读须知 1. webmonitor.js 为探针的源码 2. /resource/fetchCode.js 为fetch的源码 3. /resource/html2canvas0.js 为截图插件的源码 # 讲解须知 监控系统的探针代码 [点击前往线上Demo](https://www.webfunny.cn/) [点击前往博客讲解](https://www.cnblogs.com/warm-stranger/p/10209990.html) [如果实在嫌部署麻烦,Demo系统可以提供7天的监控量,我会长期维护,点击跳转](https://www.webfunny.cn/webfunny/createProject) # 探针部署方式: 1. 根目录下执行命令$: webpack 得到一个压缩js文件(探针) lib/monitor.fetch.html2.min.js, lib/monitor.fetch.min.js 2. 将探针代码插入到html页面head的最顶部 ... ... 3. 启动mysql数据库,如果使用远程数据库可以参考教程: [Mysql数据库的安装和使用](https://www.cnblogs.com/warm-stranger/p/10333348.html) 4. 启动node服务器,可以参考教程: [搭建前端监控系统(三)NodeJs服务器部署篇](https://www.cnblogs.com/warm-stranger/p/9556442.html) 源码:[NodeJs后台服务](https://github.com/a597873885/webfunny_servers) 5. 启动分析平台界面,可以参考教程(README.md): 源码:[React数据可视化](https://github.com/a597873885/webfunny_admin) 如果有问题,欢迎提问。 ## 系统简介 ### 前端错误统计 ![前端错误统计](https://github.com/a597873885/webfunny_monitor/blob/master/img/%E9%94%99%E8%AF%AF%E7%BB%9F%E8%AE%A1.png) ### 错误详情分析 ![错误详情分析](https://github.com/a597873885/webfunny_monitor/blob/master/img/%E9%94%99%E8%AF%AF%E8%AF%A6%E6%83%85.png) ### 用户行为检索 ![用户行为检索](https://github.com/a597873885/webfunny_monitor/blob/master/img/%E8%A1%8C%E4%B8%BA%E6%A3%80%E7%B4%A2.png)