Giter Club home page Giter Club logo

monitor's Introduction

前端监控

一、功能

  • Monitor页面监控

    • 功能:记录目标页面的用户行为、PV、资源加载、截图、HTTP请求、页面加载、自定义行为等,提交到Api
    • 技术栈:Webpack、js封装等
  • Api服务

    • 功能:Api提供接口,包括上传,分析,用户,项目等
    • 技术栈:dotnet core webapi、docker、dapper等
  • UI管理后台

    • 功能:查看监控日志,用户管理、项目管理等
    • 技术栈:vue全家桶、axios、webpack、element-ui等

二、页面监控部署

引入文件html2canvas.jsmonitor.fetch.min.js,公共文件添加对它们的引用,支持自定义事件和截图
说明:
monitor.fetch.min.js:记录前端行为
html2canvas.js:截图功能,如果没用到截图,可以不用添加

  • 应用
    1. Scripts文件夹下建一个monitor目录,下面放2个文件html2canvas.jsmonitor.fetch.min.js

    2. 公共js开头处添加:
      document.write("<script language=javascript src='../../../Scripts/monitor/html2canvas.js'></script>");
      document.write("<script language=javascript src='../../../Scripts/monitor/monitor.fetch.min.js'></script>");

    3. 主页绑定项目ID和用户名:
      localStorage.setItem('CUSTOMER_WEB_MONITOR_ID', '3E114108-57F6-4A10-AD19-941602ED2335');
      localStorage.setItem('CUSTOMER_WEB_USER_ID', '用户ID');

三、效果图

用户行为

详情

PV

详情

页面请求

详情

HTTP请求

详情

js错误

详情

未加载资源

详情

截图

详情

自定义行为

详情

项目

用户

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.