Web site monitoring method, system and device, medium and program product

By collecting and analyzing the user behavior data, business data and performance indicators of the Web website, real-time monitoring and alarm functions are provided, and the problem of insufficient real-time tracking and analysis of the performance and user experience of Web websites in the existing technology is solved, achieving a more stable and optimized user experience.

CN120017552APending Publication Date: 2025-05-16CHINA TELECOM YIKANG TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411972831.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-30
Publication Date
2025-05-16

AI Technical Summary

Technical Problem

In the prior art, web website performance monitoring tools and systems lack real-time tracking and analysis of user behavior and business data, and cannot provide real-time feedback on the performance status and user experience issues of the Web website.

Method used

Provide a monitoring method and system for web websites, which can monitor the operating status of web websites in real time by collecting user access behavior data, business data, server hardware resource indicators and page loading performance indicators, output alarm prompt information, and visually display the monitoring information.

Benefits of technology

Real-time tracking and analysis of user behavior data and Web website business data is realized, comprehensively improving the stability of the Web website and optimizing the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120017552A_ABST
    Figure CN120017552A_ABST
Patent Text Reader

Abstract

The invention provides a Web website monitoring method, system and device, a medium and a program product, the monitoring method comprises the following steps: collecting monitoring information of a Web website, the monitoring information comprising at least one of behavior data of accessing the Web website by a user, business data of the Web website, a server hardware resource index of the Web website, and a page loading performance index of the Web website; outputting alarm prompt information in response to monitoring that the running state of the Web website is abnormal on the basis of the monitoring information; and carrying out visual display on the monitoring information. Through real-time monitoring of the monitoring information of the Web site, deep analysis of the monitoring information of the Web site, alarm prompting of the abnormal operation state of the Web site and visual display of the monitoring information, real-time tracking and analysis of the user behavior data and the business data of the Web site are realized, the stability of the Web site is comprehensively improved, and the user experience is improved. And the user experience is optimized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of data processing technology, and in particular to a monitoring method, system, device, medium and program product for a Web site. Background Art

[0002] With the continuous development and complexity of Web (network) technology, front-end applications have gradually changed from simple page displays to single-page applications (SPA) or progressive web applications (PWA) with rich functions and complex interactions. These applications need to process large amounts of data, complex business logic, and frequent user interactions, which also brings higher performance and stability requirements. Current Web applications not only need to process large amounts of dynamic data and complex business logic, but also need to meet the frequent interactions of high-concurrency users. Therefore, it is particularly important to ensure the stability of Web sites, optimize user experience, and monitor system performance in real time.

[0003] There are many monitoring tools and systems for Web site performance on the market, but they lack real-time tracking and analysis of user behavior and business data. They also lack linkage analysis with back-end performance data, and cannot provide real-time feedback on Web site performance status and user experience issues. Summary of the invention

[0004] The technical problem to be solved by the present disclosure is to overcome the defects of the prior art Web site performance monitoring tools and systems that lack real-time tracking and analysis of user behavior and business data, and cannot provide real-time feedback on the performance status of the Web site and user experience, and to provide a Web site monitoring method, system, device, medium and program product.

[0005] The present invention solves the above technical problems through the following technical solutions:

[0006] A first aspect of the present disclosure provides a method for monitoring a website, the method comprising:

[0007] Collecting monitoring information of the Web site, wherein the monitoring information includes at least one of behavior data of users accessing the Web site, business data of the Web site, server hardware resource indicators of the Web site, and page loading performance indicators of the Web site;

[0008] In response to the monitoring of the operation status of the Web site being abnormal based on the monitoring information, outputting an alarm prompt information;

[0009] The monitoring information is displayed visually.

[0010] Preferably, the monitoring method further comprises:

[0011] The monitoring information of the Web site is preprocessed to obtain preprocessed monitoring information.

[0012] Preferably, the monitoring method further comprises:

[0013] In response to a code error on a monitored website, a Promise exception is captured;

[0014] and / or,

[0015] The monitoring method further comprises:

[0016] In response to monitoring that data transmission abnormality occurs on the Web site, data transmission abnormality prompt information is output.

[0017] Preferably, the monitoring method further comprises:

[0018] Monitor the page loading performance indicators of the Web site to obtain the page loading time and loading speed;

[0019] and / or,

[0020] The monitoring method further comprises:

[0021] In response to monitoring that the server hardware resource index of the Web site is greater than a preset threshold, outputting abnormal information;

[0022] and / or,

[0023] The monitoring method further comprises:

[0024] Performing a stress test on the Web site to obtain a test result;

[0025] A test report is generated according to the test results.

[0026] Preferably, the monitoring method further comprises:

[0027] Get the response time of user interactions;

[0028] In response to the response time being greater than a preset time, it is determined that a page freeze occurs.

[0029] Preferably, the step of preprocessing the monitoring information of the Web site to obtain the preprocessed monitoring information includes:

[0030] Performing data cleaning on the monitoring information to obtain monitoring information after data cleaning;

[0031] Performing data formatting processing on the monitoring information after data cleaning to obtain data formatted monitoring information;

[0032] Performing data aggregation and conversion processing on the data-formatted monitoring information to obtain monitoring information after data aggregation and conversion;

[0033] Statistical analysis and algorithmic analysis are performed on the monitoring information after data aggregation and conversion to obtain analyzed monitoring information.

[0034] A second aspect of the present disclosure provides a monitoring system for a website, the monitoring system comprising:

[0035] A collection module, used to collect monitoring information of a Web site, wherein the monitoring information includes at least one of the behavior data of users accessing the Web site, the business data of the Web site, the server hardware resource index of the Web site, and the page loading performance index of the Web site;

[0036] A first monitoring module, configured to output an alarm prompt message in response to an abnormality in the operation status of the Web site monitored based on the monitoring information;

[0037] The display module is used to visually display the monitoring information.

[0038] Preferably, the monitoring system further comprises:

[0039] The preprocessing module is used to preprocess the monitoring information of the Web site to obtain the preprocessed monitoring information.

[0040] Preferably, the monitoring system further comprises:

[0041] The second monitoring module is used to detect Promise exceptions in response to monitoring that a code error occurs on the Web site;

[0042] and / or,

[0043] The monitoring system also includes:

[0044] The third monitoring module is used for outputting data transmission abnormality prompt information in response to monitoring that data transmission abnormality occurs on the Web website.

[0045] Preferably, the monitoring system further comprises:

[0046] The fourth monitoring module is used to monitor the page loading performance index of the Web site to obtain the page loading time and loading speed;

[0047] and / or,

[0048] The monitoring system also includes:

[0049] A fifth monitoring module, configured to output abnormal information in response to monitoring that the server hardware resource index of the Web site is greater than a preset threshold;

[0050] and / or,

[0051] The monitoring system also includes:

[0052] A testing module, used to perform a stress test on the Web site and obtain a test result;

[0053] A generating module is used to generate a test report according to the test results.

[0054] Preferably, the monitoring system further comprises:

[0055] An acquisition module is used to obtain the response time of user interaction;

[0056] The determination module is used to determine that the page is stuck in response to the response time being greater than a preset time.

[0057] Preferably, the preprocessing module comprises:

[0058] A data cleaning processing unit, used to perform data cleaning processing on the monitoring information to obtain monitoring information after data cleaning;

[0059] A data formatting processing unit, used for performing data formatting processing on the monitoring information after data cleaning to obtain data formatted monitoring information;

[0060] A data aggregation and conversion processing unit, used for performing data aggregation and conversion processing on the data formatted monitoring information to obtain the monitoring information after data aggregation and conversion;

[0061] The analysis unit is used to perform statistical analysis and algorithm analysis on the monitoring information after data aggregation and conversion to obtain analyzed monitoring information.

[0062] A third aspect of the present disclosure provides an electronic device, including a memory, a processor, and a computer program stored in the memory and used to run on the processor, and when the processor executes the computer program, the method for monitoring a website described in the first aspect is implemented.

[0063] A fourth aspect of the present disclosure provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the method for monitoring a website according to the first aspect is implemented.

[0064] A fifth aspect of the present disclosure provides a computer program product, including a computer program, which, when executed by a processor, implements the method for monitoring a website as described in the first aspect.

[0065] On the basis of being in accordance with the common sense in the art, the above-mentioned preferred conditions can be arbitrarily combined to obtain the preferred embodiments of the present disclosure.

[0066] The positive and progressive effects of this disclosure are:

[0067] The present invention realizes real-time tracking and analysis of user behavior data and business data of Web sites through real-time monitoring of Web site monitoring information, in-depth analysis of Web site monitoring information, alarm prompts for abnormal operation status of Web sites, and visual display of monitoring information, thereby comprehensively improving the stability of Web sites and optimizing user experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0068] Figure 1 A flowchart of a method for monitoring a website provided in Embodiment 1 of the present disclosure;

[0069] Figure 2 A schematic diagram of a module of a monitoring system for a website provided in Embodiment 2 of the present disclosure;

[0070] Figure 3 This is a schematic diagram of the structure of an electronic device for implementing a method for monitoring a website according to Embodiment 3 of the present disclosure. DETAILED DESCRIPTION

[0071] The present disclosure is further described below by way of examples, but the present disclosure is not limited to the scope of the examples.

[0072] Prefixes such as "first" and "second" are used in the embodiments of the present disclosure only to distinguish different description objects, and have no limiting effect on the position, order, priority, quantity or content of the described objects. The use of prefixes such as ordinal numbers to distinguish description objects in the embodiments of the present disclosure does not constitute a limitation on the described objects. For the statement of the described objects, please refer to the description in the context of the claims or embodiments, and no unnecessary limitation should be constituted due to the use of such prefixes. In addition, in the description of the present embodiment, unless otherwise specified, the meaning of "plurality" is two or more.

[0073] In the embodiments of the present disclosure, the collection, storage, use, processing, transmission, provision and disclosure of user personal information involved are in compliance with the provisions of relevant laws and regulations and do not violate public order and good morals.

[0074] Example 1

[0075] Figure 1 A flowchart of a method for monitoring a website provided in Embodiment 1 of the present disclosure is shown in FIG. Figure 1 As shown, the monitoring method includes:

[0076] S1. Collect monitoring information of a Web site, where the monitoring information includes at least one of user behavior data of accessing the Web site, business data of the Web site, server hardware resource indicators of the Web site, and page loading performance indicators of the Web site;

[0077] In this embodiment, in order to optimize the user experience, this embodiment embeds a user behavior tracking code in the front end of the Web site, and collects and analyzes the user's access behavior data (for example, the behavior data includes but is not limited to click-through rate, dwell time, bounce rate, etc.) through the user behavior tracking code. These behavior data help to identify user behavior patterns, thereby performing targeted optimization.

[0078] Collect key business data indicators of the website in real time (for example, business data includes but is not limited to user registration volume, order volume, sales volume, etc.), and provide support to business decision makers through data analysis. Through in-depth mining of business data, market rules and user potential behaviors are discovered, providing a more accurate basis for business decision making.

[0079] S2, in response to the monitoring information indicating that the operation status of the Web site is abnormal, outputting an alarm prompt information;

[0080] In this embodiment, through real-time monitoring and rapid alarm mechanism, problems in the operation of the Web site, including performance degradation, abnormal access, etc., can be discovered in time, and relevant personnel can be notified in time through email, text message, phone call, etc., so that measures can be taken quickly to solve the problem and avoid further losses.

[0081] Specifically, the alarm mechanism is responsible for promptly notifying relevant personnel or automatically triggering emergency response measures when a Web site has an abnormality, performance degradation, or other key indicators deviate from the normal range.

[0082] Each monitoring item can be customized and reserved with a reasonable default threshold. When these monitoring item indicators exceed or fall below the set threshold, a warning is triggered and sent to relevant personnel via email, SMS, phone, instant message, etc. At the same time, the alarm is graded according to its urgency and importance. It also provides warning recording and statistical analysis functions to help managers understand the alarm trend and processing effect.

[0083] S3. Visualize the monitoring information.

[0084] In this embodiment, in order to facilitate managers to quickly understand the operation status of the Web site, this embodiment provides intuitive and easy-to-understand data reports and charts. Through highly customized visualization pages, managers can view key information such as the server hardware resource usage, page performance indicators, user behavior analysis, and business operation data of the Web site in real time, so as to quickly make reasonable decisions.

[0085] Specifically, we use the front-end framework React or Vue in conjunction with the Echarts chart library to design highly customized visualization pages, including dashboards, charts, maps and other display forms, to display key information such as server hardware resource usage, page performance indicators, user behavior analysis and business operation data in real time, support custom views and multi-dimensional filtering conditions, allow managers to flexibly configure monitoring pages according to their needs, provide interactive data exploration functions, deeply track data, and further analyze data. It helps Web site managers quickly grasp the operating status of Web sites and make reasonable decisions quickly.

[0086] This embodiment realizes real-time tracking and analysis of user behavior data and business data of the Web site through real-time monitoring of the Web site's monitoring information, in-depth analysis of the Web site's monitoring information, alarm prompts for abnormal operation status of the Web site, and visual display of the monitoring information, thereby comprehensively improving the stability of the Web site and optimizing the user experience.

[0087] In an optional embodiment, the monitoring method further includes:

[0088] S11. Preprocess the monitoring information of the Web site to obtain preprocessed monitoring information.

[0089] In an optional embodiment, the monitoring method further includes:

[0090] In response to a code error on a monitored website, a Promise exception is captured;

[0091] In this embodiment, JavaScript runtime errors are captured using window.onerror (a global variable) to monitor resource loading exceptions, and window.addEventListener('error',...) is used to capture resource loading errors, such as images, script files, etc.

[0092] Use window.addEventListener('unhandledrejection',...) to catch promise exceptions.

[0093] In an optional embodiment, the monitoring method further includes:

[0094] In response to monitoring that data transmission abnormality occurs on the Web site, data transmission abnormality prompt information is output.

[0095] In this embodiment, interface monitoring is implemented by rewriting the open and send methods of xhr to listen to load, error, and abort events.

[0096] Monitor key indicators such as the interface's response time, error rate, request tree, and monitor abnormal patterns or unexpected requests in interface requests, such as sudden increases in traffic, abnormal interface API calls, etc., to detect potential security risks.

[0097] In an optional embodiment, the monitoring method further includes:

[0098] Monitor the page loading performance indicators of the Web site to obtain the page loading time and loading speed;

[0099] In this embodiment, key pages of a Web site are accessed periodically to simulate user behavior, and the loading speed and response time are recorded to analyze page performance data and identify performance bottlenecks.

[0100] Specifically, loading performance refers to the time it takes for a user to enter a page and see it actually become available.

[0101] The DNS resolution time is calculated through the domainLookupStart and dominLookupEnd properties in the preformance.timing (part of the Web performance API, used to obtain various timestamps during page loading) object. The white screen time is calculated through domInteractive and fetchStart.

[0102] Use window.preformance.getEntriesByType('paint') to get the time when the user first sees meaningful content on the page.

[0103] In an optional embodiment, the monitoring method further includes:

[0104] In response to monitoring that the server hardware resource index of the Web site is greater than a preset threshold, outputting abnormal information;

[0105] In this embodiment, the key hardware resource indicators of the server of the Web site, such as CPU usage, memory usage, disk I / O, network bandwidth, etc., are monitored in real time. Alarm thresholds are set, and when any resource indicator exceeds the preset threshold, a warning is issued.

[0106] It should be noted that the preset threshold is set according to actual conditions and is not specifically limited here.

[0107] In an optional embodiment, the monitoring method further includes:

[0108] Perform stress testing on the Web site and obtain the test results;

[0109] Generate a test report based on the test results.

[0110] In this embodiment, stress testing of the Web site is performed regularly to simulate user access in a high-concurrency scenario, evaluate the stability and carrying capacity of the Web site, monitor and analyze key indicators such as server resource usage, page response time and error rate during the stress test, evaluate the stability of the Web site, generate a detailed test report based on the test results, and provide data support for Web site optimization and expansion.

[0111] In an optional embodiment, the monitoring method further includes:

[0112] Get the response time of user interactions;

[0113] In response to the response time being greater than a preset time, it is determined that a page freeze occurs.

[0114] In this embodiment, when the response time of user interaction is greater than the preset time (for example, the preset time can be set to 100ms), the user will feel that the page is stuck. By using new PerformanceObserver to obtain entry.duration, it is determined whether it is greater than the preset time to determine whether there is a stuck.

[0115] In an optional embodiment, in order to ensure the accuracy and validity of the data and the depth of the analysis results, the data needs to be further processed, that is, step S11 includes:

[0116] S11-1, performing data cleaning processing on the monitoring information to obtain the monitoring information after data cleaning;

[0117] In this embodiment, the key fields (such as user ID, device ID, order number, etc.) in the reported data are compared to identify and classify, and duplicate data is deleted. According to the nature of the data and the purpose of the analysis, a suitable strategy is selected to handle missing values, such as estimation or default values. Abnormal values ​​and erroneous values ​​in the data are corrected by comparing with other data sources, judging or manually reviewing.

[0118] S11-2, performing data formatting processing on the monitoring information after data cleaning to obtain data formatted monitoring information;

[0119] In this embodiment, the formats of data such as date, time, and numbers are ensured to be unified to avoid confusion during the analysis process, and the original data format is converted into a format suitable for analysis, including data type conversion, data format specification, etc.

[0120] S11-3, performing data aggregation and conversion processing on the data-formatted monitoring information to obtain monitoring information after data aggregation and conversion;

[0121] In this embodiment, the data is classified and summarized through tools such as SQL query and pivot table, and data conversion techniques (such as normalization, standardization, discretization, etc.) are used to adjust the distribution and range of the data to make it more suitable for specific analysis tasks.

[0122] S11-4. Perform statistical analysis and algorithm analysis on the monitoring information after data aggregation and conversion to obtain analyzed monitoring information.

[0123] In this embodiment, statistical analysis is performed on the monitoring information after data aggregation and conversion. Specifically, the mean, median, mode, standard deviation and other indicators of the data are calculated through SQL queries to describe the central trend and degree of dispersion of the data. The overall characteristics are inferred based on the sample, such as using hypothesis testing, confidence interval and other methods to describe the overall characteristics and distribution patterns of the data.

[0124] Perform algorithmic analysis on the monitoring information after data aggregation and conversion. Specifically, through classification algorithms, the data is divided into different categories or groups, such as user behavior, fraud detection, etc.

[0125] Use regression algorithms to predict future trends and results of numerical data, such as user retention rate, sales, and other data.

[0126] Clustering algorithms are used to divide data into similar groups to facilitate deeper analysis, such as user segmentation, market segmentation, etc.

[0127] Use algorithms to mine patterns and trends in data to discover potential business rules and problems.

[0128] In the specific implementation process, this embodiment is a comprehensive monitoring system for the stability, user experience and related businesses of Web websites, which is widely applicable to Web websites in various scenarios (not limited to large e-commerce platforms, data platforms serving hospitals and other systems).

[0129] First, select a high-performance server as the core server of the monitoring system and install the necessary operating system, database, and middleware software. Deploy the monitoring system of this embodiment, configure the website server, database server, network equipment, etc., to ensure that real-time data can be sent to the monitoring system normally. Embed the user behavior tracking code in the front end of the Web site to collect user access behavior data. Integrate the modules to ensure that they can work together normally.

[0130] Through front-end tracking technology, users’ click behaviors, browsing processes, and duration of stay on the website are collected during their interaction with the website. And through front-end tracking technology, key business-related data such as user registration, data reporting, data submission, order volume, sales, etc. are collected.

[0131] Monitor the server hardware resources of the website in real time, set thresholds for key data indicators such as CPU usage and memory occupancy, visit key pages regularly, and record and analyze the loading speed and response time of the pages. Perform stress tests regularly to simulate user access in high-concurrency scenarios and evaluate the stability and carrying capacity of the website.

[0132] The user access behavior data (for example, click-through rate, dwell time, bounce rate, etc.) is collected and analyzed through the tracking code embedded in the front end, and the user behavior patterns are displayed in the form of heat maps, user path maps, etc.

[0133] Collect key business data indicators of Web sites in real time (for example, user registrations, number of appointments, number of hospitalizations, etc.) and display their trend changes in the form of line charts, bar charts, etc. Dig deep into business data, use data algorithms to analyze market rules and user potential behaviors, and provide support for business decision makers.

[0134] The platform stability data, user experience data, and business data analysis results are displayed through simpler and more intuitive graphics or icons. Custom functions are supported, allowing managers to choose to display key indicators and data according to their needs, providing real-time data updates and alarm mechanisms to ensure that managers can obtain important information and take corresponding measures in the first place.

[0135] After a period of operation, the stability of the website will be significantly improved, the user experience will be optimized, and business data analysis will provide companies with valuable market insights and business guidance, helping to specify more accurate strategies and business decisions.

[0136] It should be noted that for different market application scenarios, for example, for large e-commerce platforms, the stability and user experience of the Web site are directly related to the user's shopping experience and loyalty. The monitoring system provided in this embodiment can monitor various performance indicators of the Web site in real time to ensure that the Web site remains stable under high concurrent access, thereby improving user experience and sales.

[0137] Financial service platforms have extremely high requirements for security and stability. This embodiment can monitor the hardware resource usage, interface response time, error rate and other key indicators of the Web site server in real time, timely discover and handle potential security risks, and ensure the security and stability of financial transactions.

[0138] For the medical and health platform, the medical and health platform needs to process a large amount of patient data and sensitive information. This embodiment can ensure the data security and business continuity of the platform through real-time monitoring and in-depth analysis functions, while optimizing the user experience and improving patient satisfaction.

[0139] For government service websites, government service websites need to provide efficient and convenient online services to the public. This embodiment can monitor the stability and performance of the Web site in real time, ensure that the public can smoothly access and use various services, and improve the government's image and service quality.

[0140] The monitoring method of the comprehensive Web site provided in this embodiment has significant advantages such as comprehensive monitoring, real-time response, in-depth analysis, and visual display, and is widely used in multiple fields such as e-commerce platforms, financial service platforms, medical and health platforms, and government service websites. Through this implementation, enterprises can significantly improve the stability of Web sites, optimize user experience, and provide strong support for enterprise business decisions, thereby bringing significant market competitive advantages and economic benefits. Specifically, the monitoring method of the Web site provided in this embodiment covers the three core aspects of Web site stability, user experience, and business data, and realizes all-round monitoring of Web site operations. This comprehensive monitoring capability ensures that website managers can fully understand the operating status of the Web site, so as to make more accurate decisions. Further, through real-time monitoring and rapid alarm mechanisms, potential problems can be discovered and handled in a timely manner, avoiding the expansion of problems and causing greater losses. This real-time response capability is crucial to ensuring the high availability and user experience of the website. Multi-dimensional algorithms are used to deeply analyze massive data to dig out valuable information and insights. This deep analysis capability not only helps to optimize website performance, but also provides strong support for business decisions. This implementation also provides intuitive and easy-to-understand data reports and charts to help managers quickly understand the meaning and trends behind the data. This visual display method greatly improves the efficiency and accuracy of data interpretation. In addition, the monitoring system supports custom functions, allowing managers to choose to display key indicators and data according to their own needs. This highly customized capability makes the system more flexible and can better meet the monitoring needs in different scenarios. Furthermore, through steps such as data cleaning, formatting, aggregation and conversion, the accuracy and effectiveness of the data are ensured. At the same time, the use of statistical analysis, algorithm analysis and other methods to deeply mine the data improves the efficiency and depth of data analysis. In addition, through a complete alarm mechanism, relevant personnel can be notified in a timely manner when an abnormality occurs on a Web site, performance deteriorates, or other key indicators deviate from the normal range. This alarm mechanism helps to respond to problems quickly, reduce losses, significantly improve the stability of the Web site, optimize the user experience, and provide strong support for corporate business decisions.

[0141] Example 2

[0142] Corresponding to the aforementioned embodiment of a monitoring method for a website, the present disclosure also provides an embodiment of a monitoring system for a website.

[0143] Figure 2 A module diagram of a monitoring system for a website provided in Embodiment 2 of the present disclosure is shown in FIG. Figure 2 As shown, the monitoring system includes:

[0144] The collection module 21 is used to collect monitoring information of the Web site, and the monitoring information includes at least one of the behavior data of users visiting the Web site, the business data of the Web site, the server hardware resource index of the Web site, and the page loading performance index of the Web site;

[0145] In this embodiment, in order to optimize the user experience, this embodiment embeds a user behavior tracking code in the front end of the Web site, and collects and analyzes the user's access behavior data (for example, the behavior data includes but is not limited to click-through rate, dwell time, bounce rate, etc.) through the user behavior tracking code. These behavior data help to identify user behavior patterns, thereby performing targeted optimization.

[0146] Collect key business data indicators of the website in real time (for example, business data includes but is not limited to user registration volume, order volume, sales volume, etc.), and provide support to business decision makers through data analysis. Through in-depth mining of business data, market rules and user potential behaviors are discovered, providing a more accurate basis for business decision making.

[0147] The first monitoring module 22 is used to output alarm information in response to the abnormality of the operation status of the Web site monitored based on the monitoring information;

[0148] In this embodiment, through real-time monitoring and rapid alarm mechanism, problems in the operation of the Web site, including performance degradation, abnormal access, etc., can be discovered in time, and relevant personnel can be notified in time through email, text message, phone call, etc., so that measures can be taken quickly to solve the problem and avoid further losses.

[0149] Specifically, the alarm mechanism is responsible for promptly notifying relevant personnel or automatically triggering emergency response measures when a Web site has an abnormality, performance degradation, or other key indicators deviate from the normal range.

[0150] Each monitoring item can be customized and reserved with a reasonable default threshold. When these monitoring item indicators exceed or fall below the set threshold, a warning is triggered and sent to relevant personnel via email, SMS, phone, instant message, etc. At the same time, the alarm is graded according to its urgency and importance. It also provides warning recording and statistical analysis functions to help managers understand the alarm trend and processing effect.

[0151] The display module 23 is used to visualize the monitoring information.

[0152] In this embodiment, in order to facilitate managers to quickly understand the operation status of the Web site, this embodiment provides intuitive and easy-to-understand data reports and charts. Through highly customized visualization pages, managers can view key information such as the server hardware resource usage, page performance indicators, user behavior analysis, and business operation data of the Web site in real time, so as to quickly make reasonable decisions.

[0153] Specifically, we use the front-end framework React or Vue in conjunction with the Echarts chart library to design highly customized visualization pages, including dashboards, charts, maps and other display forms, to display key information such as server hardware resource usage, page performance indicators, user behavior analysis and business operation data in real time, support custom views and multi-dimensional filtering conditions, allow managers to flexibly configure monitoring pages according to their needs, provide interactive data exploration functions, deeply track data, and further analyze data. It helps Web site managers quickly grasp the operating status of Web sites and make reasonable decisions quickly.

[0154] This embodiment realizes real-time tracking and analysis of user behavior data and business data of the Web site through real-time monitoring of the Web site's monitoring information, in-depth analysis of the Web site's monitoring information, alarm prompts for abnormal operation status of the Web site, and visual display of the monitoring information, thereby comprehensively improving the stability of the Web site and optimizing the user experience.

[0155] In an optional embodiment, the monitoring system further includes:

[0156] The preprocessing module is used to preprocess the monitoring information of the Web site to obtain the preprocessed monitoring information.

[0157] In an optional embodiment, the monitoring system further includes:

[0158] The second monitoring module is used to detect Promise exceptions in response to monitoring that a code error occurs on the Web site;

[0159] In this embodiment, JavaScript runtime errors are captured using window.onerror (a global variable) to monitor resource loading exceptions, and window.addEventListener('error',...) is used to capture resource loading errors, such as images, script files, etc.

[0160] Use window.addEventListener('unhandledrejection',...) to catch promise exceptions.

[0161] In an optional embodiment, the monitoring system further includes:

[0162] The third monitoring module is used for outputting data transmission abnormality prompt information in response to monitoring that data transmission abnormality occurs on the Web website.

[0163] In this embodiment, the interface monitoring uses the open and send methods of rewriting xhr to listen to load, error, abort event.

[0164] Monitor key indicators such as the interface's response time, error rate, request tree, and monitor abnormal patterns or unexpected requests in interface requests, such as sudden increases in traffic, abnormal interface API calls, etc., to detect potential security risks.

[0165] In an optional embodiment, the monitoring system further includes:

[0166] The fourth monitoring module is used to monitor the page loading performance index of the Web site to obtain the page loading time and loading speed;

[0167] In this embodiment, key pages of a Web site are accessed periodically to simulate user behavior, and the loading speed and response time are recorded to analyze page performance data and identify performance bottlenecks.

[0168] Specifically, loading performance refers to the time it takes for a user to enter a page and see it actually become available.

[0169] The DNS resolution time is calculated through the domainLookupStart and dominLookupEnd properties in the preformance.timing object (part of the Web performance API, used to obtain various timestamps during page loading). The white screen time is calculated through domInteractive and fetchStart.

[0170] Use window.preformance.getEntriesByType('paint') to get the time when the user first sees meaningful content on the page.

[0171] In an optional embodiment, the monitoring system further includes:

[0172] A fifth monitoring module, configured to output abnormal information in response to monitoring that the server hardware resource index of the Web site is greater than a preset threshold;

[0173] In this embodiment, the key hardware resource indicators of the Web site server, such as CPU usage, memory usage, disk I / O, network bandwidth, etc., are monitored in real time. Alarm thresholds are set, and a warning is issued when any resource indicator exceeds the preset threshold.

[0174] It should be noted that the preset threshold is set according to actual conditions and is not specifically limited here.

[0175] In an optional embodiment, the monitoring system further includes:

[0176] The test module is used to perform stress testing on the Web site and obtain the test results;

[0177] The generation module is used to generate a test report based on the test results.

[0178] In this embodiment, stress testing of the Web site is performed regularly to simulate user access in a high-concurrency scenario, evaluate the stability and carrying capacity of the Web site, monitor and analyze key indicators such as server resource usage, page response time and error rate during the stress test, evaluate the stability of the Web site, generate a detailed test report based on the test results, and provide data support for Web site optimization and expansion.

[0179] In an optional embodiment, the monitoring system further includes:

[0180] An acquisition module is used to obtain the response time of user interaction;

[0181] The determination module is used to determine that a page freeze occurs in response to a response time being greater than a preset time.

[0182] In this embodiment, when the response time of user interaction is greater than the preset time (for example, the preset time can be set to 100ms), the user will feel that the page is stuck. By using new PerformanceObserver to obtain entry.duration, it is determined whether it is greater than the preset time to determine whether there is a stuck.

[0183] In an optional embodiment, in order to ensure the accuracy, validity and depth of the analysis results of the data, the data needs to be further processed, and the preprocessing module includes:

[0184] A data cleaning processing unit, used to perform data cleaning on the monitoring information to obtain the monitoring information after data cleaning;

[0185] In this embodiment, the key fields (such as user ID, device ID, order number, etc.) in the reported data are compared to identify and classify, and duplicate data is deleted. According to the nature of the data and the purpose of the analysis, a suitable strategy is selected to handle missing values, such as estimation or default values. Abnormal values ​​and erroneous values ​​in the data are corrected by comparing with other data sources, judging or manually reviewing.

[0186] A data formatting processing unit, used for performing data formatting processing on the monitoring information after data cleaning to obtain data formatted monitoring information;

[0187] In this embodiment, the formats of data such as date, time, and numbers are ensured to be unified to avoid confusion during the analysis process, and the original data format is converted into a format suitable for analysis, including data type conversion, data format specification, etc.

[0188] A data aggregation and conversion processing unit, used for performing data aggregation and conversion processing on the data-formatted monitoring information to obtain the monitoring information after data aggregation and conversion;

[0189] In this embodiment, the data is classified and summarized through tools such as SQL query and pivot table, and data conversion techniques (such as normalization, standardization, discretization, etc.) are used to adjust the distribution and range of the data to make it more suitable for specific analysis tasks.

[0190] The analysis unit is used to perform statistical analysis and algorithm analysis on the monitoring information after data aggregation and conversion to obtain the analyzed monitoring information.

[0191] In this embodiment, statistical analysis is performed on the monitoring information after data aggregation and conversion. Specifically, the mean, median, mode, standard deviation and other indicators of the data are calculated through SQL queries to describe the central trend and degree of dispersion of the data. The overall characteristics are inferred based on the sample, such as using hypothesis testing, confidence interval and other methods to describe the overall characteristics and distribution patterns of the data.

[0192] Perform algorithmic analysis on the monitoring information after data aggregation and conversion. Specifically, through classification algorithms, the data is divided into different categories or groups, such as user behavior, fraud detection, etc.

[0193] Use regression algorithms to predict future trends and results of numerical data, such as user retention rate, sales, and other data.

[0194] Clustering algorithms are used to divide data into similar groups to facilitate deeper analysis, such as user segmentation, market segmentation, etc.

[0195] Use algorithms to mine patterns and trends in data to discover potential business rules and problems.

[0196] In the specific implementation process, this embodiment is a comprehensive monitoring system for the stability, user experience and related businesses of Web websites, which is widely applicable to Web websites in various scenarios (not limited to large e-commerce platforms, data platforms serving hospitals and other systems).

[0197] First, select a high-performance server as the core server of the monitoring system and install the necessary operating system, database, and middleware software. Deploy the monitoring system of this embodiment, configure the website server, database server, network equipment, etc., to ensure that real-time data can be sent to the monitoring system normally. Embed the user behavior tracking code in the front end of the Web site to collect user access behavior data. Integrate the modules to ensure that they can work together normally.

[0198] Through front-end tracking technology, users’ click behaviors, browsing processes, and duration of stay on the website are collected during their interaction with the website. And through front-end tracking technology, key business-related data such as user registration, data reporting, data submission, order volume, sales, etc. are collected.

[0199] Monitor the server hardware resources of the website in real time, set thresholds for key data indicators such as CPU usage and memory occupancy, visit key pages regularly, and record and analyze the loading speed and response time of the pages. Perform stress tests regularly to simulate user access in high-concurrency scenarios and evaluate the stability and carrying capacity of the website.

[0200] The tracking code embedded in the front end collects and analyzes user access behavior data (for example, click-through rate, dwell time, bounce rate, etc.) and displays user behavior patterns in the form of heat maps, user path maps, etc.

[0201] Collect key business data indicators of Web sites in real time (for example, user registrations, number of appointments, number of hospitalizations, etc.) and display their trend changes in the form of line charts, bar charts, etc. Dig deep into business data, use data algorithms to analyze market rules and user potential behaviors, and provide support for business decision makers.

[0202] The platform stability data, user experience data, and business data analysis results are displayed through simpler and more intuitive graphics or icons. Custom functions are supported, allowing managers to choose to display key indicators and data according to their needs, providing real-time data updates and alarm mechanisms to ensure that managers can obtain important information and take corresponding measures in the first place.

[0203] After a period of operation, the stability of the website will be significantly improved, the user experience will be optimized, and business data analysis will provide companies with valuable market insights and business guidance, helping to specify more accurate strategies and business decisions.

[0204] It should be noted that for different market application scenarios, for example, for large e-commerce platforms, the stability and user experience of the Web site are directly related to the user's shopping experience and loyalty. The monitoring system provided in this embodiment can monitor various performance indicators of the Web site in real time to ensure that the Web site remains stable under high concurrent access, thereby improving user experience and sales.

[0205] Financial service platforms have extremely high requirements for security and stability. This embodiment can monitor the hardware resource usage, interface response time, error rate and other key indicators of the Web site server in real time, timely discover and handle potential security risks, and ensure the security and stability of financial transactions.

[0206] For the medical and health platform, the medical and health platform needs to process a large amount of patient data and sensitive information. This embodiment can ensure the data security and business continuity of the platform through real-time monitoring and in-depth analysis functions, while optimizing the user experience and improving patient satisfaction.

[0207] For government service websites, government service websites need to provide efficient and convenient online services to the public. This embodiment can monitor the stability and performance of the Web site in real time, ensure that the public can smoothly access and use various services, and improve the government's image and service quality.

[0208] The monitoring method of the comprehensive Web site provided in this embodiment has significant advantages such as comprehensive monitoring, real-time response, in-depth analysis, and visual display, and is widely used in multiple fields such as e-commerce platforms, financial service platforms, medical and health platforms, and government service websites. Through this implementation, enterprises can significantly improve the stability of Web sites, optimize user experience, and provide strong support for enterprise business decisions, thereby bringing significant market competitive advantages and economic benefits. Specifically, the monitoring method of the Web site provided in this embodiment covers the three core aspects of Web site stability, user experience, and business data, and realizes all-round monitoring of Web site operations. This comprehensive monitoring capability ensures that website managers can fully understand the operating status of the Web site, so as to make more accurate decisions. Further, through real-time monitoring and rapid alarm mechanisms, potential problems can be discovered and handled in a timely manner, avoiding the expansion of problems and causing greater losses. This real-time response capability is crucial to ensuring the high availability and user experience of the website. Multi-dimensional algorithms are used to deeply analyze massive data to dig out valuable information and insights. This deep analysis capability not only helps to optimize website performance, but also provides strong support for business decisions. This implementation also provides intuitive and easy-to-understand data reports and charts to help managers quickly understand the meaning and trends behind the data. This visual display method greatly improves the efficiency and accuracy of data interpretation. In addition, the monitoring system supports custom functions, allowing managers to choose to display key indicators and data according to their own needs. This highly customized capability makes the system more flexible and can better meet the monitoring needs in different scenarios. Furthermore, through steps such as data cleaning, formatting, aggregation and conversion, the accuracy and effectiveness of the data are ensured. At the same time, the use of statistical analysis, algorithm analysis and other methods to deeply mine the data improves the efficiency and depth of data analysis. In addition, through a complete alarm mechanism, relevant personnel can be notified in a timely manner when an abnormality occurs on a Web site, performance deteriorates, or other key indicators deviate from the normal range. This alarm mechanism helps to respond to problems quickly, reduce losses, significantly improve the stability of the Web site, optimize the user experience, and provide strong support for corporate business decisions.

[0209] As for the system embodiment, since it basically corresponds to the method embodiment, the relevant parts can refer to the partial description of the method embodiment. The system embodiment described above is only illustrative, wherein the units described as separate components may or may not be physically separated, and the components as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the disclosed solution.

[0210] Example 3

[0211] Figure 3 This is a structural diagram of an electronic device shown in Embodiment 3 of the present disclosure, wherein the electronic device includes a memory, a processor, and a computer program stored in the memory and used to run on the processor, and when the processor executes the computer program, the method for monitoring a website described in any of the above embodiments is implemented. Figure 3 The electronic device 90 shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.

[0212] like Figure 3 As shown, the electronic device 90 may be in the form of a general-purpose computing device, for example, it may be a server device. The components of the electronic device 90 may include, but are not limited to: at least one processor 91, at least one memory 92, and a bus 93 connecting different system components (including the memory 92 and the processor 91).

[0213] The bus 93 includes a data bus, an address bus, and a control bus.

[0214] The memory 92 may include a volatile memory, such as a random access memory (RAM) 921 and / or a cache memory 922 , and may further include a read-only memory (ROM) 923 .

[0215] The memory 92 may also include a program tool 925 (or utility) having a set (at least one) of program modules 924, such program modules 924 including but not limited to: an operating system, one or more application programs, other program modules and program data, each of which or some combination may include an implementation of a network environment.

[0216] The processor 91 executes various functional applications and data processing by running the computer programs stored in the memory 92, such as the monitoring method of a website provided in any of the above embodiments.

[0217] The electronic device 90 may also communicate with one or more external devices 94 (e.g., keyboards, pointing devices, etc.). Such communication may be performed via an input / output (I / O) interface 95. Furthermore, the electronic device 90 may also communicate with one or more networks (e.g., local area networks (LANs), wide area networks (WANs), etc.) via a network adapter 96. (WAN) and / or public networks, such as the Internet). Figure 3 As shown, the network adapter 96 is connected via The bus 93 communicates with other modules of the electronic device 90. It should be understood that, although not shown in the figure, other hardware and / or software modules can be used in conjunction with the electronic device 90, including but not limited to: microcode, device drivers, redundant processors, external disk drive arrays, RAID (disk array) systems, tape drives, and data backup storage systems, etc.

[0218] It should be noted that although several units / modules or sub-units / modules of the electronic device are mentioned in the above detailed description, this division is merely exemplary and not mandatory. In fact, according to the embodiments of the present disclosure, the features and functions of two or more units / modules described above can be embodied in one unit / module. Conversely, the features and functions of one unit / module described above can be further divided into multiple units / modules to be embodied.

[0219] Example 4

[0220] Embodiment 4 of the present disclosure further provides a computer-readable storage medium on which a computer program is stored. When the program is executed by a processor, the method for monitoring a website provided by any of the above embodiments is implemented.

[0221] The readable storage medium may include but is not limited to: a portable disk, a hard disk, a random access memory, a read-only memory, an erasable programmable read-only memory, an optical storage device, a magnetic storage device or any suitable combination of the above.

[0222] Example 5

[0223] Embodiment 5 of the present disclosure further provides a computer program product, including a computer program, which, when executed by a processor, implements any of the above-mentioned methods for monitoring a website.

[0224] Among them, the program code for executing the computer program product of the present disclosure can be written in any combination of one or more programming languages, and the program code can be executed completely on the user device, partially on the user device, as an independent software package, partially on the user device and partially on a remote device, or completely on the remote device.

[0225] Among them, the program code for executing the computer program product of the present disclosure can be written in any combination of one or more programming languages, and the program code can be executed completely on the user device, partially on the user device, as an independent software package, partially on the user device and partially on a remote device, or completely on the remote device.

[0226] Although the specific embodiments of the present disclosure are described above, those skilled in the art should understand that this is only an example, and the protection scope of the present disclosure is defined by the appended claims. Those skilled in the art may make various changes or modifications to these embodiments without departing from the principles and essence of the present disclosure, but these changes and modifications all fall within the protection scope of the present disclosure.

Claims

1. A method for monitoring a website, characterized in that: The monitoring method comprises: Collecting monitoring information of the Web site, wherein the monitoring information includes at least one of behavior data of users accessing the Web site, business data of the Web site, server hardware resource indicators of the Web site, and page loading performance indicators of the Web site; In response to the monitoring of the operation status of the Web site being abnormal based on the monitoring information, outputting an alarm prompt information; The monitoring information is displayed visually.

2. The method for monitoring a website according to claim 1, wherein: The monitoring method further comprises: The monitoring information of the Web site is preprocessed to obtain preprocessed monitoring information.

3. The method for monitoring a website according to claim 1, wherein: The monitoring method further comprises: In response to a code error on a monitored website, a Promise exception is captured; and / or, The monitoring method further comprises: In response to monitoring that data transmission abnormality occurs on the Web site, data transmission abnormality prompt information is output.

4. The method for monitoring a website according to claim 1, wherein: The monitoring method further comprises: Monitor the page loading performance indicators of the Web site to obtain the page loading time and loading speed; and / or, The monitoring method further comprises: In response to monitoring that the server hardware resource index of the Web site is greater than a preset threshold, outputting abnormal information; and / or, The monitoring method further comprises: Performing a stress test on the Web site to obtain a test result; A test report is generated according to the test results.

5. The method for monitoring a website according to claim 1, wherein: The monitoring method further comprises: Get the response time of user interactions; In response to the response time being greater than a preset time, it is determined that a page freeze occurs.

6. The method for monitoring a website according to claim 2, wherein: The step of preprocessing the monitoring information of the Web site to obtain the preprocessed monitoring information includes: Performing data cleaning on the monitoring information to obtain monitoring information after data cleaning; Performing data formatting processing on the monitoring information after data cleaning to obtain data formatted monitoring information; Performing data aggregation and conversion processing on the data-formatted monitoring information to obtain monitoring information after data aggregation and conversion; Statistical analysis and algorithmic analysis are performed on the monitoring information after data aggregation and conversion to obtain analyzed monitoring information.

7. A monitoring system for a website, characterized in that: The monitoring system comprises: A collection module, used to collect monitoring information of a Web site, wherein the monitoring information includes at least one of the behavior data of users accessing the Web site, the business data of the Web site, the server hardware resource index of the Web site, and the page loading performance index of the Web site; A first monitoring module, configured to output an alarm prompt message in response to an abnormality in the operation status of the Web site monitored based on the monitoring information; The display module is used to visually display the monitoring information.

8. An electronic device comprising a memory, a processor, and a computer program stored in the memory and used to run on the processor, characterized in that: When the processor executes the computer program, the method for monitoring a website according to any one of claims 1 to 6 is implemented.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method for monitoring a website according to any one of claims 1 to 6 is implemented.

10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the method for monitoring a website according to any one of claims 1 to 6 is implemented.