A method, device and equipment for generating monitoring data of a web page
By automatically acquiring and filtering the business information of the target page on the Web client, and generating monitoring data, it solves the problems of low monitoring efficiency and redundant data transmission in the existing technology, and achieves efficient monitoring data processing and reduction of server pressure.
Patent Information
- Application Number
- CN202010668950.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-07-13
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2040-07-13
AI Technical Summary
In the existing technology, the monitoring efficiency of the Web client is low, requiring manual coding of embedded data, resulting in redundant data transmission and increased server pressure, and the possibility of manual errors is high.
By obtaining the business information of the target page on the Web client, it automatically determines and filters hidden data, generates monitoring data, and reduces redundant data transmission and server processing pressure.
It improves the efficiency of Web page monitoring data generation, reduces the bandwidth loss between the client and the server and the server processing pressure, and avoids manual writing errors.
Smart Images

Figure CN111813629B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, and in particular to a method, device and equipment for generating monitoring data of a Web page. Background Art
[0002] Many web applications on the Internet do not exist independently and cannot work independently. Instead, they are intertwined to form a whole. This means that as long as any one of the web applications has a problem, other web applications may not work. Therefore, monitoring the running status of web applications is a crucial link. According to the operating environment, a web application can be divided into two parts: client and server. Among them, the server runs on the server, the operating environment is simple and easy to monitor, while the client is completely different. With the advent of the mobile era, users gradually migrate from personal computers to mobile devices such as mobile phones. Factors such as user terminal type and network status will affect the operation of web applications. Therefore, the client's operating status must be reported, and after summary, analysis and processing, the overall operation status of the application can be obtained. Each link is full of difficulties and challenges.
[0003] In order to collect the operation data of the client, the existing technology usually needs to perform point tracking processing at the key positions of the page. The page operation status can be obtained through the point tracking to realize the monitoring of the client. At present, the common method of reporting point tracking data is mostly manual point tracking, that is, the developer manually defines the statistical logic corresponding to the control, and writes the statistical logic into the code corresponding to the control. When the user uses the control, the user's behavior data can be collected through the point tracking code. However, the manual point tracking method requires writing additional point tracking code, which is time-consuming, labor-intensive and error-prone; when the application function is upgraded, it is necessary to redefine the point tracking logic and write the corresponding point tracking code. Once the point tracking logic is modified, the entire application version needs to be upgraded, which increases the workload of development and testing. That is, the current common method of reporting point tracking data is completely written by the program developer. The corresponding code, however, if the monitoring of each web client needs to be completely manually coded, will result in low efficiency in monitoring the client.
[0004] Therefore, how to improve the efficiency of monitoring the client is a technical difficulty that needs to be solved urgently. Summary of the invention
[0005] The present invention provides a method and device for generating monitoring data of a Web page, so as to improve the efficiency of generating monitoring data of a Web page, and reduce the bandwidth loss between a Web client and a back-end server and the data processing performance pressure of the back-end server.
[0006] In a first aspect, the present invention provides a method for generating monitoring data of a web page, the method being applied to a web client, the method comprising:
[0007] Get the business information of the target page;
[0008] If the business information of the target page meets the preset tracking condition, determine the tracking data corresponding to the target page;
[0009] According to the preset filtering conditions, the buried data corresponding to the target page is filtered to obtain the monitoring data corresponding to the target page.
[0010] In a second aspect, the present invention provides a device for generating monitoring data of a Web page, the device being applied to a Web client, the device comprising:
[0011] The acquisition module is used to obtain the business information of the target page;
[0012] A determination module, configured to determine the embedding data corresponding to the target page if the business information of the target page meets the preset embedding condition;
[0013] The filtering module is used to filter the buried data corresponding to the target page according to the preset filtering conditions to obtain the monitoring data corresponding to the target page.
[0014] In a third aspect, the present invention provides a readable medium, comprising execution instructions. When a processor of an electronic device executes the execution instructions, the electronic device executes any method described in the first aspect.
[0015] In a fourth aspect, the present invention provides an electronic device, comprising a processor and a memory storing execution instructions, wherein when the processor executes the execution instructions stored in the memory, the processor executes any method described in the first aspect.
[0016] It can be seen from the above technical solution that the method is applied to a Web client. Specifically, the web client can first obtain the business information of the target page; if the business information of the target page meets the preset tracking conditions, the web client can determine the tracking data corresponding to the target page, and can filter the tracking data corresponding to the target page according to the preset filtering conditions to obtain the monitoring data corresponding to the target page. That is to say, the present application can automatically collect the business information of the target page, and generate tracking data according to the business information that meets the preset tracking conditions, that is, regardless of whether the target page is pre-set with tracking, the present application can automatically determine the tracking data corresponding to the target page according to the preset tracking conditions, without the need for the program developer to write the corresponding code as in the prior art, and can also avoid the problem of program writing errors caused by manual program writing, thereby improving the efficiency of generating monitoring data for the Web page; in addition, since the web client can filter the tracking data corresponding to the target page according to the preset filtering conditions to obtain the monitoring data corresponding to the target page, in this way, since the web client has filtered the monitoring data corresponding to the target page in advance, some redundant monitoring data has been reduced. Therefore, not only can the amount of data that the web client needs to send to the back-end server be reduced, that is, the amount of data communicated between the web client and the back-end server is reduced, but also the back-end server does not need to filter the monitoring data corresponding to the target page, thereby reducing the bandwidth loss between the web client and the back-end server, and reducing the data processing performance pressure of the back-end server.
[0017] The further effects of the above-mentioned non-conventional optional manner will be described below in conjunction with the specific implementation manner. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] In order to more clearly illustrate the embodiments of the present invention or the existing technical solutions, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0019] Figure 1 A schematic diagram of a framework of an exemplary application scenario provided by an embodiment of the present invention;
[0020] Figure 2 A flowchart of a method for generating monitoring data of a Web page provided by an embodiment of the present invention;
[0021] Figure 3 A schematic diagram of a preset page embedding configuration provided by an embodiment of the present invention;
[0022] Figure 4 A schematic diagram of a configuration coverage provided by an embodiment of the present invention;
[0023] Figure 5 A schematic diagram of a filtering process provided by an embodiment of the present invention;
[0024] Figure 6 A schematic diagram of statistical monitoring data provided by an embodiment of the present invention;
[0025] Figure 7 A schematic diagram of chart information corresponding to statistical monitoring data provided by an embodiment of the present invention;
[0026] Figure 8 A schematic diagram of an exemplary system framework provided for an embodiment of the present invention;
[0027] Fig. 9 A schematic diagram of an object for point-burying processing provided by an embodiment of the present invention;
[0028] Fig.10 A schematic diagram of the structure of a device for generating monitoring data of a Web page provided by an embodiment of the present invention;
[0029] Fig.11 A schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0030] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with specific embodiments and corresponding drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0031] In the prior art, the current common method of reporting data on the buried point is to completely write the corresponding code by the program developer. However, if the monitoring of each web client needs to be completely manually coded, the monitoring efficiency of the client will be relatively low. In the current front-end project, after the web client obtains the monitoring data, it directly sends all the acquired monitoring data to the back-end server. The inventor found that the web client may be connected to different back-end servers. In this way, the monitoring data obtained by the buried point contains certain redundant information. In this case, if the amount of monitoring data obtained by the buried point is large and there is a lot of redundant information in the monitoring data, the large amount of communication data between the web client and the back-end server may cause considerable pressure on the data processing performance and bandwidth of the server.
[0032] In order to solve the problems existing in the above-mentioned prior art, the present invention provides a method for generating monitoring data of a Web page. The method is applied to a Web client. Specifically, the web client can first obtain the business information of the target page; if the business information of the target page meets the preset embedding conditions, the web client can determine the embedding data corresponding to the target page, and can filter the embedding data corresponding to the target page according to the preset filtering conditions to obtain the monitoring data corresponding to the target page. That is to say, the present application can automatically collect the business information of the target page, and generate tracking data according to the business information that meets the preset tracking conditions, that is, regardless of whether the target page is pre-set with tracking, the present application can automatically determine the tracking data corresponding to the target page according to the preset tracking conditions, without the need for the program developer to write the corresponding code as in the prior art, and can also avoid the problem of program writing errors caused by manual program writing, thereby improving the efficiency of generating monitoring data for the Web page; in addition, since the web client can filter the tracking data corresponding to the target page according to the preset filtering conditions to obtain the monitoring data corresponding to the target page, in this way, since the web client has filtered the monitoring data corresponding to the target page in advance, some redundant monitoring data has been reduced. Therefore, not only can the amount of data that the web client needs to send to the back-end server be reduced, that is, the amount of data communicated between the web client and the back-end server is reduced, but also the back-end server does not need to filter the monitoring data corresponding to the target page, thereby reducing the bandwidth loss between the web client and the back-end server, and reducing the data processing performance pressure of the back-end server.
[0033] For example, the embodiments of the present invention can be applied to Figure 1 The scene shown, Figure 1The system architecture diagram of the monitoring data generation system for a Web page is shown. In this scenario, a web client 10 may be included. It should be noted that the web client 10 may be set in a terminal, such as a laptop, a smart phone, a tablet computer, a desktop computer, or the like. When the Web client 10 receives a business operation (such as a user clicking an element in the target page, such as a button, a plug-in, etc.) or an instruction (such as a picture carousel instruction) for a target page, the Web client 10 may first obtain the business information of the target page corresponding to the business operation or instruction; then, the Web client 10 may determine whether the business information of the target page meets the preset embedding condition. If the business information of the target page meets the preset embedding condition, the Web client 10 may determine the embedding data corresponding to the target page; then, the Web client 10 may filter the embedding data corresponding to the target page according to the preset filtering condition to obtain the monitoring data corresponding to the target page. In this way, the web client 10 can automatically determine the tracking data corresponding to the target page according to the preset tracking conditions, without the need for the program developer to write the corresponding code as in the prior art, and can also avoid the problem of program writing errors caused by manual program writing, thereby improving the efficiency of generating monitoring data for the Web page; in addition, since the web client 10 has filtered the monitoring data corresponding to the target page in advance and reduced some redundant monitoring data, it can not only reduce the amount of data that the web client 10 needs to send to the back-end server, that is, reduce the amount of data communicated between the web client 10 and the back-end server, but also eliminate the need for the back-end server to filter the monitoring data corresponding to the target page, thereby reducing the bandwidth loss between the web client 10 and the back-end server, and reducing the data processing performance pressure of the back-end server.
[0034] It should be noted that the above application scenarios are only shown for the purpose of facilitating the understanding of the present application, and the implementation of the present application is not limited in this respect. On the contrary, the implementation of the present application can be applied to any applicable scenario.
[0035] Various non-limiting embodiments of the present invention are described in detail below in conjunction with the accompanying drawings.
[0036] See also Figure 2 , shows a method for generating monitoring data of a Web page in an embodiment of the present invention, the method is applied to a Web client, and the method may include the following steps:
[0037] S201: The Web client obtains the business information of the target page;
[0038] In this embodiment, the target page can be understood as a page that needs to be monitored in the web client. It should be noted that the target page can be one page or multiple pages. For example, assuming that the web client is a web browser, and the web browser opens five web pages, in one implementation, these five web pages can all be used as target pages, or one of the web pages can be used as the target page. It should be emphasized that when the target page is multiple pages, the multiple pages can correspond to the same project, which can be understood as a business project of the web client. For example, assuming that a business project of the web client is an "online banking transfer" project, the "online banking transfer" project can include multiple web pages, such as a user login page, a transfer information filling interface, and multiple web pages, and the multiple web pages can all be used as target pages.
[0039] The business message of the target page can be understood as the object that needs to be monitored in the target page; for example, in one implementation, the business information of the target page can include business elements and / or business events in the target page, as well as preset business information; it should be noted that the business element in the target page can be understood as an element in the target page, such as a component, a plug-in, a label, a class name, an ID, etc. in the target page, for example, it can be a button, it can be a carousel component, etc.; the business event in the target page can be understood as the content of the task performed in the target page, for example, a button is clicked, the image carousel in the carousel component is completed, the page stays, the user passes The entrance used to access the web page, the behavior triggered by the user in the corresponding page, the first screen loading time, white screen time, response time of http and other requests, overall download time of static resources, page rendering time, completion time of page interactive animation, etc. for different users, different models and different systems; the preset business information can be understood as the relevant parameters to be monitored corresponding to the business elements or business events, such as the occurrence time, number of occurrences, triggered user information and other parameters. It should be emphasized that the specific parameter types included in the preset business information can be pre-set by the system or set by the user according to actual needs. In this embodiment, the specific parameter types of the preset business information are not limited.
[0040] As an example, in this embodiment, when the web client detects that there is at least one business element in the target page or a business event is triggered, the web client can obtain the business information corresponding to the business element or the business event. For example, assuming that the web client is a web browser and the target page is a bank homepage, when the web browser detects that the "handle personal business" button in the bank homepage is clicked, the web browser can obtain business information, which includes the business event "'handle personal business' button is clicked", the occurrence time corresponding to the business event "15:00" and the number of occurrences corresponding to the business time "1 time".
[0041] S202: If the business information of the target page meets the preset tracking condition, the Web client determines the tracking data corresponding to the target page.
[0042] Among them, the preset burying point conditions are the conditions under which business information can be recorded as burying points; it should be noted that, since the information that needs to be recorded by the burying point is the information that needs to be monitored, the preset burying point conditions can also be understood as whether the business information is the information to be detected. It should be emphasized that, for the sake of convenience, the data recorded by the burying point can be referred to as burying point data. In one implementation, the burying point data may include business information. It should be noted that in this embodiment, the specific contents of the preset burying point conditions and the burying point data are not limited, and the preset burying point conditions and the specific contents of the burying point data can be set according to actual conditions.
[0043] In this embodiment, after the Web client obtains the business information, in order to determine whether the business information is information to be monitored, the Web client can determine whether the business information of the target page is information to be detected according to the pre-buried point conditions. If the business information of the target page meets the preset buried point conditions, it means that the business information of the target page is information to be detected, and the buried point corresponding to the business information can be used to record the buried point data corresponding to the business information, that is, determine the buried point data corresponding to the target page; on the contrary, if the business information of the target page does not meet the preset buried point conditions, it means that the business information of the target page is not information to be detected, and it is not necessary to record the buried point data corresponding to the business information, that is, it is not necessary to determine the buried point data corresponding to the target page. It should be noted that there may be no buried point set in advance in the target page, or there may be a buried point set in advance, but the configuration corresponding to the pre-set buried point (i.e., buried point condition) is different from the configuration of the actual demand (such as the user's personalized buried point condition). For the above two situations, this embodiment provides two implementation methods of S202, and the following will introduce these two implementation methods.
[0044] The first implementation method is the case where no tracking points are set in advance in the target page. The specific implementation method is:
[0045] When there is no preset configuration tracking point in the target page, before S202 or S201, the method further includes the following steps:
[0046] A preset page embedding point is configured for the target page, and the preset page embedding point includes a page element to be monitored and / or a page event to be monitored.
[0047] Accordingly, S202 may include the following steps:
[0048] If the business element corresponding to the target page is a page element to be monitored, and / or the business event corresponding to the target page is a page event to be monitored;
[0049] According to the business elements and / or business events corresponding to the target page, and preset business information, the buried data corresponding to the target page is determined.
[0050] In this implementation, without destroying the code structure of the original target page, by configuring a preset page embedding point in the target page, for example, configuring the preset page embedding point corresponding code at the data entry of the target page, so as to achieve the purpose of monitoring the target page in the least invasive way by configuring a pluggable preset page embedding point in the target page. It should be noted that the preset page embedding point is set for the target page, not for an element in the target page. It can be understood that, for example, Figure 3 As shown, the preset page embedding point is configured at the data entry of the target page, but is not set in any business element (i.e., function 1, function 2, and function 3) in the target page. In this way, all elements in the target page can be monitored through a preset page embedding point. When any business element is triggered, the embedding point data corresponding to the business element of the target page can be determined.
[0051] Among them, the preset page embedding point configuration has business elements and / or business events to be monitored, and the corresponding preset message format. It should be noted that the preset message format can be understood as the message format saved by the log. For example, the preset message format can be a class name (parameter 1, parameter 2, ...). It should also be emphasized that the business elements, business events, and preset message formats to be monitored can all be default configurations, or they can be determined according to the default configuration and the user's personalized configuration; when the business elements, business events, and preset message formats to be monitored are determined according to the default configuration and the user's personalized configuration, and the default configuration is different from the user's personalized configuration, the business elements, business events, and message formats in the user's personalized configuration can be used as the business elements, business events, and preset message formats to be monitored in the preset page embedding point configuration, that is, the priority of the user's personalized configuration is higher than the default configuration; Figure 4 For example, assuming that the business element to be monitored in the default configuration is button A, and the log record format is to record "XX function is triggered", and the business element to be monitored in the user's personalized configuration is button B, and the log record format is to record "XX year XX month XX day XX hour XX minute, a user triggered XX function", then the preset page burying point configuration determined according to the default configuration and the user's personalized configuration is: the business element to be monitored is button B, and the log record format is to record "XX year XX month XX day XX hour XX minute, a user triggered XX function. It can be seen that this embodiment provides a configurable and overlayable message formatting configuration method, which is convenient for docking and adaptation of different data processing systems, and improves the availability of the burying point system.
[0052] In this embodiment, since a preset page embedding point is configured for the target page, and the preset page embedding point is configured with business elements and / or business events to be monitored, as well as the corresponding preset message format. Therefore, after the Web client obtains the business information of the target page, it can first determine whether the business information of the target page meets the preset embedding point conditions, wherein the preset embedding point conditions are that the business element corresponding to the target page is a page element to be monitored, and / or the business event corresponding to the target page is a page event to be monitored. If the business element corresponding to the target page is a page element to be monitored, and / or the business event corresponding to the target page is a page event to be monitored, it means that the business information of the target page is information to be detected, then the embedding point corresponding to the business information can be used to record the embedding point data corresponding to the business information, that is, determine the embedding point data corresponding to the target page. Specifically, the web client can determine the buried data corresponding to the target page based on the business elements and / or business events corresponding to the target page, and the preset business information; for example, in one implementation, the web client can format the business elements and / or business events corresponding to the target page, and the preset business information according to the preset message format in the preset page buried configuration to obtain the buried data corresponding to the target page. That is to say, the web client can format the business elements and / or business events corresponding to the target page, and the preset business information according to the preset message format, and save them as the buried data corresponding to the target page. Storage; for example, assuming that the business information includes the business event "the 'handle personal business' button was clicked", the occurrence time corresponding to the business event "July 6, 2020 15:00", the user information "Li Ming" and the number of occurrences corresponding to the business time "1 time", and the preset message format is "xx year xx month xx day xx hour xx minute, a user triggered the XX function", then the web client can format the business event and the preset business information corresponding to the target page according to the preset message format to obtain the corresponding buried data of the target page "July 6, 2020 15:00, Li Ming clicked the 'handle personal business' button".
[0053] The second implementation method is for the case where a tracking point is pre-set in the target page, but the configuration corresponding to the pre-set tracking point (i.e., tracking point condition) is different from the actual required configuration (such as the user's personalized tracking point condition). The specific implementation method is as follows:
[0054] When a tracking point is preset in the target page, but the configuration corresponding to the preset tracking point (i.e., tracking point condition) is different from the configuration required actually (such as the personalized tracking point condition of the user), before S202 or S201, the method further includes the following steps:
[0055] A target configuration tracking point is configured for a preset configuration tracking point in the target page, and the target configuration tracking point includes a page element to be monitored and / or a page event to be monitored.
[0056] Accordingly, S202 may include the following steps:
[0057] If the business element corresponding to the target page is a page element to be monitored, and / or the business event corresponding to the target page is a page event to be monitored;
[0058] The target configuration burying point sends a burying point data record notification to the preset configuration burying point;
[0059] The preset configuration burying point responds to the burying point data record notification, and determines the burying point data corresponding to the target page according to the business elements and / or business events corresponding to the target page, and the preset business information.
[0060] In this method, when the target page is pre-set with a preset configuration embedding point, and the configuration of the preset configuration embedding point does not meet the actual needs, the target configuration embedding point can be configured for the preset configuration embedding point, wherein the target configuration embedding point can include the page elements to be monitored and / or the page events to be monitored of the actual needs, and the corresponding preset message format; it should be emphasized that the configuration of the target configuration embedding point can be a default configuration, or it can be determined according to the default configuration and the user's personalized configuration; the preset message format can be understood as the message format saved by the log, for example, the preset message format can be a class name (parameter 1, parameter 2, ...). It can be seen that this embodiment provides a configurable and overlayable message formatting configuration method, which is convenient for docking and adapting to different data processing systems, and improves the availability of the embedding system.
[0061] It should be noted that in one way of this embodiment, the target configuration embedding point can be a code / label embedding point (not displaying / displaying embedding point), so that the code corresponding to the target configuration embedding point can be configured into the preset configuration embedding point; in another implementation method, the target configuration embedding point can be a visual configuration embedding point, that is, this embodiment can provide a visual interface (such as the configuration interface provided by the AWEB7.0 visual development platform), and the user can select the embedding point configuration parameters in the interface, that is, the web client can receive the embedding point configuration data in the embedding point configuration page, and then, the web client can generate the embedding point configuration code corresponding to the embedding point configuration data according to the embedding point configuration data in the embedding point configuration page, and then, the client can inject the embedding point configuration code into the preset configuration embedding point in the target page, so that the embedding can be performed in a configured manner, that is, the embedding can be performed in the form of code injection compiled through the visual interface, thereby reducing the cost of users learning the embedding system and the difficulty of using the embedding.
[0062] In this embodiment, since the preset configuration burying point in the target page configures the target configuration burying point, and the target configuration burying point includes the page elements to be monitored and / or the page events to be monitored, as well as the corresponding preset message format. Therefore, after the Web client obtains the business information of the target page, it can first determine whether the business information of the target page meets the preset burying point conditions, wherein the preset burying point conditions are that the business element corresponding to the target page is the page element to be monitored, and / or the business event corresponding to the target page is the page event to be monitored. If the business element corresponding to the target page is the page element to be monitored, and / or the business event corresponding to the target page is the page event to be monitored, it means that the business information of the target page is the information to be detected; then the target configuration burying point can send a burying point data record notification to the preset configuration burying point.
[0063] When the preset configuration buried point receives the buried point data record notification, it can respond to the buried point data record notification and determine the buried point data corresponding to the target page according to the business elements and / or business events corresponding to the target page, as well as the preset business information. The preset configuration buried point can use the buried point corresponding to the business information to record the buried point data corresponding to the business information, that is, determine the buried point data corresponding to the target page. Specifically, the preset configuration buried point can determine the buried point data corresponding to the target page according to the business elements and / or business events corresponding to the target page, as well as the preset business information; for example, in one implementation, the preset configuration buried point can format the business elements and / or business events corresponding to the target page, as well as the preset business information, according to the preset message format in the target configuration buried point configuration, so as to obtain the buried point data corresponding to the target page. That is to say, the preset configuration buried point can format the business elements and / or business events corresponding to the target page, as well as the preset business information, according to the preset message format, and save them as the buried point data corresponding to the target page. Storage; for example, assuming that the business information includes the business event "the 'handle personal business' button was clicked", the occurrence time corresponding to the business event "July 6, 2020 15:00", the user information "Li Ming" and the number of occurrences corresponding to the business time "1 time", and the preset message format is "xx year xx month xx day xx hour xx minute, a user triggered the XX function", then the preset configuration tracking point can be based on the preset message format, The business event corresponding to the target page and the preset business information are formatted to obtain the tracking point data corresponding to the target page "July 6, 2020 15:00, Li Ming clicked the 'handle personal business' button".
[0064] It should also be noted that, in one implementation, Fig. 9As shown, the following functions or modules can be used as the objects of tracking processing: actions, behaviors, execution chains, basic configurations, style configurations, event configurations, etc. Next, let's take an example to illustrate how to set tracking. Example 1: Instantiate a tracking instance in the program entry file main.js and mount it to the window globally; Example 2: You can configure information without tracking in tracConfig, for example, you need to listen to the click event of an element with the class name "logo" and generate a record of "the icon on the left side of the top navigation bar"; Example 3: Actively trigger tracking in a module and explicitly call the interface with tracking. You can call the trigger interface under the tracking instance mounted under the window to notify the tracking system to execute a command called exectue on the execution chain commandStack, and pass the call stack stack to the tracking system for processing; Example 4: Configure the tracking log message format in tracConfig, for example, cache and record tracking information and events; Example 5: Configure the url for receiving data in the background and the length of the front-end cached data maxLen in tracConfig.
[0065] S203: The Web client filters the buried data corresponding to the target page according to a preset filtering condition to obtain monitoring data corresponding to the target page.
[0066] In this embodiment, in order to reduce the bandwidth loss between the web client and the back-end server, and reduce the data processing performance pressure of the back-end server, this embodiment is not the same as the traditional method, that is, the collected buried data is directly sent to the server, but before the web client sends the buried data to the server, the web client obtains the buried data corresponding to the target page, and the web client can first cache the buried data, and then filter the buried data corresponding to the target page according to the preset filtering conditions to obtain the filtered buried data, and use the filtered buried data as the monitoring data corresponding to the target page. It should be noted that the preset filtering conditions can be set according to actual needs. For example, the preset filtering conditions can be to filter out the buried data corresponding to repeated clicks, filter out the buried data within a specific time period, or retain only one buried data within a specific time period.
[0067] It should be noted that, in one implementation of this embodiment, the Web client can filter the buried data corresponding to the target page only according to the preset filtering conditions, and in another implementation, the Web client can also first filter the buried data corresponding to each target page according to the preset filtering conditions, and then perform project-level filtering on the buried data after filtering all target pages. These two filtering methods will be introduced below.
[0068] (1) A method in which the Web client filters the embedded point data corresponding to the target page according to the page-level filtering condition.
[0069] In this implementation, the filtering condition may include a page-level filtering condition, which may be understood as a condition for filtering the buried data only for each target page; it should be noted that the page-level filtering condition may be set according to actual needs, for example, the page-level filtering condition may be to filter out the buried data corresponding to repeated clicks, filter out the buried data within a specific time period, or retain only one buried data within a specific time period, etc. It should also be emphasized that the page-level filtering conditions corresponding to different target pages may be the same or different, which is not limited in this embodiment.
[0070] In this embodiment, the web client can first filter the buried data corresponding to the target page according to the page-level filtering condition to obtain the page-level monitoring data corresponding to the target page, and then use the page-level monitoring data corresponding to the target page as the monitoring data corresponding to the target page. Figure 5 To illustrate, assuming that for the target page 1, since the preset page tracking includes page-level filtering conditions, the tracking data corresponding to the target page 1 such as "'Function 1 triggered' (parameter 1, parameter 2, ...)", "'Function 2 triggered' (parameter 1, parameter 2, ...)" can be filtered according to the page-level filtering conditions to obtain the page-level monitoring data corresponding to the target page, and then the page-level monitoring data corresponding to the target page is used as the monitoring data corresponding to the target page.
[0071] (2) The Web client can first filter the tracking data corresponding to each target page, and then perform project-level filtering on the tracking data after filtering all target pages.
[0072] In this embodiment, the target page can be multiple target pages, and the multiple target pages also correspond to the same project. In this way, in order to ensure that the monitoring data corresponding to the filtered target page can meet both the requirements corresponding to the page level and the requirements corresponding to the project level, the filtering conditions may include page-level filtering conditions and project-level filtering conditions. The project-level filtering conditions can be understood as conditions for filtering the buried data corresponding to all target pages in a project. It should be noted that the project-level filtering conditions can be set according to actual needs. For example, the project-level filtering conditions can be to filter out the buried data corresponding to repeated clicks, filter out the buried data within a specific time period, or retain only one buried data within a specific time period. It should also be emphasized that the project-level filtering conditions corresponding to different projects can be the same or different, and this is not limited in the present embodiment.
[0073] In this embodiment, the web client can first filter the buried data corresponding to each target page according to the page-level filtering condition to obtain the page-level monitoring data corresponding to each target page; then, the web client can filter the page-level monitoring data corresponding to each target page according to the project-level filtering condition to obtain the project-level monitoring data, and cache the project-level monitoring data as the monitoring data corresponding to the multiple target pages. Next, combined with Figure 5 To illustrate, assuming that for target page 1, since the preset page tracking includes page-level filtering conditions, the tracking data corresponding to the target page 1, such as "'Function 1 triggered' (parameter 1, parameter 2, ...)", "'Function 2 triggered' (parameter 1, parameter 2, ...)", etc., can be filtered according to the page-level filtering conditions to obtain the page-level monitoring data corresponding to the target page; then, according to the project-level filtering conditions in the configuration of the project-level tracking set in the front-end project data entry of the single-page application, the page-level monitoring data corresponding to each target page can be filtered to obtain the project-level monitoring data, and the project level can be saved as the monitoring data corresponding to the multiple target pages.
[0074] It should be noted that the page-level filtering condition is a default page-level filtering condition or a combined page-level filtering condition; wherein the combined page-level filtering condition is determined based on the default page-level filtering condition and the user's personalized page-level filtering condition. When the combined page-level filtering condition is determined based on the default page-level filtering condition and the user's personalized page-level filtering condition, and the default page-level filtering condition and the user's personalized page-level filtering condition are different, the user's personalized page-level filtering condition can be used as the combined page-level filtering condition, that is, the user's personalized page-level filtering condition has a higher priority than the default page-level filtering condition; Figure 4 For example, assuming that the default page-level filtering condition in the default configuration is "None", and the personalized page-level filtering condition in the user's personalized configuration is "Filter out records of repeated clicks", then the merged page-level filtering condition determined by the default page-level filtering condition and the user's personalized page-level filtering condition is "Filter out records of repeated clicks".
[0075] Accordingly, the item-level filtering condition is a default item-level filtering condition or a combined item-level filtering condition; wherein the combined item-level filtering condition is determined based on the default item-level filtering condition and the user's personalized item-level filtering condition. When the combined item-level filtering condition is determined based on the default item-level filtering condition and the user's personalized item-level filtering condition, and the default item-level filtering condition and the user's personalized item-level filtering condition are different, the user's personalized item-level filtering condition can be used as the combined item-level filtering condition, that is, the user's personalized item-level filtering condition has a higher priority than the default item-level filtering condition; Figure 4 For example, assuming that the default item-level filtering condition in the default configuration is "None", and the personalized item-level filtering condition in the user's personalized configuration is "Filter out records of repeated clicks", then the merged item-level filtering condition determined by the default item-level filtering condition and the user's personalized item-level filtering condition is "Filter out records of repeated clicks".
[0076] It can be seen from the above technical solution that the method is applied to a Web client. Specifically, the web client can first obtain the business information of the target page; if the business information of the target page meets the preset tracking conditions, the web client can determine the tracking data corresponding to the target page, and can filter the tracking data corresponding to the target page according to the preset filtering conditions to obtain the monitoring data corresponding to the target page. That is to say, the present application can automatically collect the business information of the target page, and generate tracking data according to the business information that meets the preset tracking conditions, that is, regardless of whether the target page is pre-set with tracking, the present application can automatically determine the tracking data corresponding to the target page according to the preset tracking conditions, without the need for the program developer to write the corresponding code as in the prior art, and can also avoid the problem of program writing errors caused by manual program writing, thereby improving the efficiency of generating monitoring data for the Web page; in addition, since the web client can filter the tracking data corresponding to the target page according to the preset filtering conditions to obtain the monitoring data corresponding to the target page, in this way, since the web client has filtered the monitoring data corresponding to the target page in advance, some redundant monitoring data has been reduced. Therefore, not only can the amount of data that the web client needs to send to the back-end server be reduced, that is, the amount of data communicated between the web client and the back-end server is reduced, but also the back-end server does not need to filter the monitoring data corresponding to the target page, thereby reducing the bandwidth loss between the web client and the back-end server, and reducing the data processing performance pressure of the back-end server.
[0077] In one implementation of this embodiment, after the web client obtains the monitoring data corresponding to the target page, in order to facilitate the statistics of the monitoring data collected by each web client and indicate the direction of product optimization based on the monitoring data, the method may also include: the web client sends the monitoring data corresponding to the target page to the target server.
[0078] In this embodiment, the web client may be pre-set with the address of the target server, for example, the address of the target server may be pre-set in the configuration of a preset page embedding point, a target configuration embedding point, or a project-level embedding point. In this way, when the web client obtains the monitoring data corresponding to the target page, the monitoring data corresponding to the target page may be sent to the target server according to the address of the target server.
[0079] It should be noted that the target server address may be a default server address, or may be determined based on the default server address and the user's personalized server address. When the target server address is determined based on the default server address and the user's personalized server address, and the default server address and the user's personalized server address are different, the user's personalized server address may be used as the target server address, that is, the user's personalized server address has a higher priority than the default server address; Figure 4 For example, assuming that the default server address in the default configuration is "test.aweb.com" and the personalized server address of the user is "example.aweb.com", the address of the target server determined based on the default server address and the personalized server address of the user is "example.aweb.com".
[0080] It should be noted that, in one implementation, in order to further reduce the bandwidth loss between the web client and the backend server, and reduce the data processing performance pressure of the backend server, the web client can send monitoring data to the server in a timed and / or quantitative manner. Specifically, sending the monitoring data corresponding to the target page to the target server may include:
[0081] At a preset time, sending the monitoring data corresponding to the target page to the target server; and / or,
[0082] When the monitoring data corresponding to the target page meets a preset quantity, the monitoring data corresponding to the target page is sent to the target server.
[0083] In this embodiment, the web client does not directly send all the monitoring data to the target server as in the prior art, but first caches the monitoring data and determines whether it meets the maximum number of cache items (i.e., the preset number) defined in the pre-configuration (for example, the configuration of the preset page tracking point, the target configuration tracking point, or the project-level tracking point) or the defined scheduled task (pre-set time) to determine whether to send the monitoring data to the target server; that is, at the preset time, the monitoring data corresponding to the target page is sent to the target server, for example, when the preset time is 1 a.m. every day, all the cached monitoring data is sent to the target server at 1 a.m. every day; and / or, when the monitoring data corresponding to the target page meets the preset number, the monitoring data corresponding to the target page is sent to the target server, for example, assuming the preset number is 1,000 monitoring data, when the monitoring data cached by the web client reaches 1,000, these 1,000 monitoring data are sent to the target server. In this way, the web client can upload the monitoring data breakpoints to the target server by means of scheduled tasks and / or specified number of data items, thereby further reducing the bandwidth loss between the web client and the back-end server, and reducing the data processing performance pressure of the back-end server, that is, reducing the amount of data exchange between the front and back ends, reducing bandwidth loss, and uploading to the server in a scheduled and quantitative manner, reducing server pressure.
[0084] It should be noted that the trigger condition for the web client to send the monitoring data corresponding to the target page to the target server is determined based on the default trigger condition and the user's personalized trigger condition. When the default trigger condition and the user's personalized trigger condition are different, the default trigger condition and the user's personalized trigger condition can be used as the trigger condition for the web client to send the monitoring data corresponding to the target page to the target server, respectively, or both can be used as the trigger condition for the web client to send the monitoring data corresponding to the target page to the target server. Figure 4 For example, assuming that the trigger condition of the default setting in the default configuration is "the scheduled task is configured at 1 a.m. every day", and the trigger condition of the user's personalized setting is "the maximum number of cache entries is 1000", then both can be used as trigger conditions for the web client to send the monitoring data corresponding to the target page to the target server, that is, "the scheduled task is configured at 1 a.m. every day, or the maximum number of cache entries is 1000".
[0085] Furthermore, in order to more intuitively display the statistical results of the target server for each web client and indicate the direction of product optimization based on the monitoring data, in an implementation of this embodiment, the web client can obtain the statistical monitoring data returned by the target server and visualize the statistical monitoring data in a visual manner. Specifically, the method further includes:
[0086] Obtaining statistical monitoring data returned by the target server;
[0087] Generate chart information corresponding to the statistical monitoring data based on the statistical monitoring data.
[0088] The statistical monitoring data may be determined by the target server according to monitoring data corresponding to target pages corresponding to multiple web clients. It should be emphasized that the multiple web clients may be the same client.
[0089] In this embodiment, after receiving the monitoring data sent by multiple web clients, the target server can process and count the received monitoring data to obtain statistical monitoring data, and return the statistical monitoring data to each web client. After the web client obtains the statistical monitoring data returned by the target server, it can generate chart information corresponding to the statistical monitoring data according to the statistical monitoring data.
[0090] As an example, the statistical monitoring data may include statistical results of multiple types of monitoring data, and for the statistical results of each type of monitoring data, a corresponding visual display method may be preset, for example, Figure 6 As shown, the statistical monitoring data may include the statistical results of the page overview monitoring data, the statistical results of the technical component monitoring data, the statistical results of the business component monitoring data, the statistical results of the image library monitoring data, the statistical results of the pipeline editing monitoring data, and the statistical results of the dictionary editing monitoring data, wherein each statistical result is provided with a corresponding visual display method, such as a bar chart, a line chart, a pie chart, etc. Therefore, the web client can generate chart information corresponding to the statistical monitoring data according to the pre-set correspondence between the statistical results of each type of monitoring data and the visual display method, for example, Figure 7 The chart information is Figure 6 The chart information corresponding to the statistical monitoring data.
[0091] Next, a system structure diagram applicable to the above method embodiment will be introduced. Figure 8 As shown, the system includes a configuration module, a tracking module, and a cache module. The corresponding relationship between each step in the above method embodiment and each module is specifically described as follows:
[0092] The trace module is mainly used to instantiate the trace system and expose the interface to the outside world. Only when it is exposed to the outside world can other parts of the project access these interfaces. The interface functions implemented include:
[0093] The monitoring event initEvent without tracking point is mainly used to allow users to pass in event monitoring configuration and tell the tracking point system what to monitor. For example, tell the tracking point system to monitor the click event of a certain xxx button on the page, and when it is clicked, a record "xxx button was clicked once on x year x month x day" is generated.
[0094] There are explicit interfaces for embedding points, including:
[0095] -Add listener on: This function allows the user to explicitly notify the tracking system that a listener needs to be bound here. For example, you can call this method in the click event of the delete button to add a "user clicks the delete button" listener;
[0096] -Cancel monitoring off: This function allows users to explicitly notify the tracking system that a certain monitoring needs to be canceled and no longer needs to be monitored. For example, when the page is closed and destroyed, this method can be called to cancel the previously added "user clicks the delete button" monitoring;
[0097] -Simulation trigger: This function allows users to simulate triggering a certain listener somewhere in the business code. For example, there is a function to delete a menu through code in the page. But in fact, the user did not click the "Delete" button during use. Then if you need to generate a record of the "Delete" button being clicked, you can simulate the user clicking the button by calling this simulation trigger interface and generate a record.
[0098] Configuration module (config), in order to adapt to different types of front-end projects, such as: H5 projects of mobile mPaaS platform, PC management projects, monitoring large screen projects, IOT scenario projects, AOPS script platform projects... These projects require personalized monitoring of different page elements, different data filtering conditions and different log message formats, etc. We extract the parameters and methods that can be changed in the tracking system into the configuration module, so that users can override the corresponding methods or parameters according to the actual situation during use.
[0099] Taking an already developed PC management project as an example, you can use a non-tracking method with less code invasion to track points, which can reduce the changes to the original code structure. For example, configure which ID, tag, class name or element to monitor; configure which events to monitor, such as single click event, double click event, focus loss event, etc.
[0100] According to the log message format required by different backends, you can configure the store tracking message format, filtering and backend docking interface and method to adapt to various backend services.
[0101] The cache module (store) mainly implements the functions of data caching and breakpoint-resume uploading to the server. After passing through business tracking, data filtering and message formatting, it will enter the cache module. Similar to the definition of data filtering and message formatting in the configuration module, the cache module will also cache data or specify the number of breakpoints to upload to the server according to the configuration items such as the maximum cache number configuration, custom task configuration, and server address configuration provided in the configuration.
[0102] like Fig.10 As shown, a specific embodiment of the monitoring data generation device for a Web page of the present invention is shown. The device described in this embodiment is a physical device for executing the method described in the above embodiment. Its technical solution is essentially consistent with the above embodiment, and the corresponding description in the above embodiment is also applicable to this embodiment. The device described in this embodiment includes:
[0103] The acquisition module 101 is used to acquire the business information of the target page;
[0104] The determination module 102 is used to determine the embedding data corresponding to the target page if the business information of the target page meets the preset embedding condition;
[0105] The filtering module 103 is used to filter the buried data corresponding to the target page according to a preset filtering condition to obtain the monitoring data corresponding to the target page.
[0106] Optionally, there is no preset configuration embedding point in the target page. If the business information of the target page meets the preset embedding point condition, before determining the embedding point data corresponding to the target page, the device further includes a configuration module for:
[0107] Configuring a preset page embedding point for the target page, wherein the preset page embedding point includes a page element to be monitored and / or a page event to be monitored;
[0108] Accordingly, the business information of the target page includes business elements and / or business events in the target page, and preset business information; the determination module 102 is specifically used to:
[0109] If the business element corresponding to the target page is a page element to be monitored, and / or the business event corresponding to the target page is a page event to be monitored;
[0110] According to the business elements and / or business events corresponding to the target page, and preset business information, the buried data corresponding to the target page is determined.
[0111] Optionally, the target page includes a preset configuration tracking point. If the business information of the target page meets the preset tracking point condition, before determining the tracking point data corresponding to the target page, the configuration module is further used to:
[0112] Configure a target configuration tracking point for a preset configuration tracking point in the target page, wherein the target configuration tracking point includes a page element to be monitored and / or a page event to be monitored;
[0113] Accordingly, the business information of the target page includes business elements and / or business events in the target page, and preset business information; the determination module 102 is further used to:
[0114] If the business element corresponding to the target page is a page element to be monitored, and / or the business event corresponding to the target page is a page event to be monitored;
[0115] The target configuration burying point sends a burying point data record notification to the preset configuration burying point;
[0116] The preset configuration burying point responds to the burying point data record notification, and determines the burying point data corresponding to the target page according to the business elements and / or business events corresponding to the target page, and the preset business information.
[0117] Optionally, the target configuration tracking point is a visual configuration tracking point; and the configuration module is specifically used to:
[0118] Receive the tracking point configuration data in the tracking point configuration page;
[0119] Generate a burying point configuration code corresponding to the burying point configuration data according to the burying point configuration data in the burying point configuration page;
[0120] The preset configuration embedding point in the target page injects the embedding point configuration code.
[0121] Optionally, the determining module 102 is specifically configured to:
[0122] According to the preset message format, the business elements and / or business events corresponding to the target page and the preset business information are formatted to obtain the buried point data corresponding to the target page.
[0123] Optionally, the filtering condition includes a page-level filtering condition; the filtering module 103 is specifically used to:
[0124] According to the page-level filtering condition, the buried point data corresponding to the target page is filtered to obtain the page-level monitoring data corresponding to the target page, and the page-level monitoring data corresponding to the target page is used as the monitoring data corresponding to the target page.
[0125] Optionally, the target page is a plurality of target pages, and the filtering condition includes a page-level filtering condition and an item-level filtering condition; the filtering module 103 is specifically used to:
[0126] According to the page-level filtering conditions, the buried point data corresponding to each target page is filtered respectively to obtain the page-level monitoring data corresponding to each target page;
[0127] According to the item-level filtering condition, the page-level monitoring data items corresponding to each target page are filtered to obtain item-level monitoring data, and the item-level monitoring data are used as the monitoring data corresponding to the multiple target pages.
[0128] Optionally, the page-level filtering condition is a default page-level filtering condition or a combined page-level filtering condition; wherein the combined page-level filtering condition is determined based on the default page-level filtering condition and the user's personalized page-level filtering condition.
[0129] Optionally, the item-level filtering condition is a default item-level filtering condition or a combined item-level filtering condition; wherein the combined item-level filtering condition is determined based on the default item-level filtering condition and the user's personalized item-level filtering condition.
[0130] Optionally, the device further includes a sending module, configured to send monitoring data corresponding to the target page to a target server.
[0131] Optionally, the sending module is specifically used to:
[0132] At a preset time, sending the monitoring data corresponding to the target page to the target server; and / or,
[0133] When the monitoring data corresponding to the target page meets a preset quantity, the monitoring data corresponding to the target page is sent to the target server.
[0134] Optionally, the device further comprises a generating module, configured to:
[0135] Obtaining statistical monitoring data returned by the target server, wherein the statistical monitoring data is determined by the target server according to monitoring data corresponding to target pages corresponding to each of a plurality of web clients;
[0136] Generate chart information corresponding to the statistical monitoring data based on the statistical monitoring data.
[0137] Fig.11 : is a schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. At the hardware level, the electronic device includes a processor, and optionally also includes an internal bus, a network interface, and a memory. Among them, the memory may include a memory, such as a high-speed random access memory (Random-Access Memory, RAM), and may also include a non-volatile memory (non-volatile memory), such as at least one disk storage, etc. Of course, the electronic device may also include hardware required for other services.
[0138] The processor, network interface and memory can be interconnected through an internal bus, which can be an ISA (Industry Standard Architecture) bus, a PCI (Peripheral Component Interconnect) bus or an EISA (Extended Industry Standard Architecture) bus. The bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Fig.11 Only one bidirectional arrow is used in the diagram, but this does not mean that there is only one bus or only one type of bus.
[0139] The memory is used to store execution instructions. Specifically, the execution instructions are computer programs that can be executed. The memory may include internal memory and non-volatile memory, and provides execution instructions and data to the processor.
[0140] In a possible implementation, the processor reads the corresponding execution instruction from the non-volatile memory into the memory and then runs it, and can also obtain the corresponding execution instruction from other devices to form a monitoring data generation device for a Web page at a logical level. The processor executes the execution instruction stored in the memory to implement the monitoring data generation method for a Web page provided in any embodiment of the present invention through the execution of the execution instruction.
[0141] As described above, the present invention Figure 2The method performed by the monitoring data generating device of the web page provided in the illustrated embodiment can be applied to a processor or implemented by a processor. The processor may be an integrated circuit chip having the ability to process signals. In the implementation process, each step of the above method can be completed by an integrated logic circuit of hardware in the processor or an instruction in the form of software. The above processor may be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it may also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The disclosed methods, steps and logic block diagrams in the embodiments of the present invention may be implemented or executed. The general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.
[0142] The steps of the method disclosed in the embodiment of the present invention can be directly embodied as being executed by a hardware decoding processor, or can be executed by a combination of hardware and software modules in the decoding processor. The software module can be located in a mature storage medium in the art such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory, or an electrically erasable programmable memory, a register, etc. The storage medium is located in a memory, and the processor reads the information in the memory and completes the steps of the above method in combination with its hardware.
[0143] An embodiment of the present invention also proposes a readable storage medium, which stores execution instructions. When the stored execution instructions are executed by a processor of an electronic device, the electronic device can execute the method for generating monitoring data for a web page provided in any embodiment of the present invention, and is specifically used to execute the method described in the above-mentioned method for generating monitoring data for a web page.
[0144] The electronic device described in the above embodiments may be a computer.
[0145] Those skilled in the art will appreciate that the embodiments of the present invention may be provided as methods or computer program products. Therefore, the present invention may be implemented in the form of a complete hardware embodiment, a complete software embodiment, or a combination of software and hardware.
[0146] The various embodiments of the present invention are described in a progressive manner, and the same or similar parts between the various embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0147] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.
[0148] The above description is only an embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent substitution, improvement, etc. made within the spirit and principle of the present invention should be included in the scope of the claims of the present invention.
Claims
1. A method for generating monitoring data of a web page, characterized in that: The method is applied to a Web client, and the method comprises: Get the business information of the target page; If the business information of the target page meets the preset tracking condition, determine the tracking data corresponding to the target page; According to the preset filtering conditions, the buried point data corresponding to the target page is filtered to obtain the monitoring data corresponding to the target page; There is no preset configuration tracking point in the target page. If the business information of the target page meets the preset tracking point condition, before determining the tracking point data corresponding to the target page, the method also includes: Configuring a preset page embedding point for the target page, wherein the preset page embedding point includes a page element to be monitored and / or a page event to be monitored; Accordingly, the business information of the target page includes business elements and / or business events in the target page, and preset business information; if the business information of the target page meets the preset embedding condition, determining the embedding data corresponding to the target page includes: If the business element corresponding to the target page is a page element to be monitored, and / or the business event corresponding to the target page is a page event to be monitored; Determine the embedding data corresponding to the target page according to the business elements and / or business events corresponding to the target page and the preset business information; The target page includes a preset configuration tracking point. If the business information of the target page meets the preset tracking point condition, before determining the tracking point data corresponding to the target page, the method further includes: Configure a target configuration tracking point for a preset configuration tracking point in the target page, wherein the target configuration tracking point includes a page element to be monitored and / or a page event to be monitored; Accordingly, the business information of the target page includes business elements and / or business events in the target page, and preset business information; if the business information of the target page meets the preset embedding condition, determining the embedding data corresponding to the target page includes: If the business element corresponding to the target page is a page element to be monitored, and / or the business event corresponding to the target page is a page event to be monitored; The target configuration burying point sends a burying point data record notification to the preset configuration burying point; The preset configuration tracking point responds to the tracking point data record notification, and determines the tracking point data corresponding to the target page according to the business elements and / or business events corresponding to the target page and the preset business information; Determining the embedding data corresponding to the target page according to the business elements and / or business events corresponding to the target page and preset business information includes: According to a preset message format, the business elements and / or business events corresponding to the target page and the preset business information are formatted to obtain the embedding data corresponding to the target page; The filtering condition includes a page-level filtering condition; filtering the buried data corresponding to the target page according to the preset filtering condition to obtain the monitoring data corresponding to the target page includes: According to the page-level filtering condition, the buried point data corresponding to the target page is filtered to obtain the page-level monitoring data corresponding to the target page, and the page-level monitoring data corresponding to the target page is used as the monitoring data corresponding to the target page; The target page is a plurality of target pages, and the filtering condition includes a page-level filtering condition and a project-level filtering condition; the buried point data corresponding to the target page is filtered according to the preset filtering condition to obtain the monitoring data corresponding to the target page, including: According to the page-level filtering conditions, the buried point data corresponding to each target page is filtered respectively to obtain the page-level monitoring data corresponding to each target page; According to the item-level filtering condition, the page-level monitoring data items corresponding to each target page are filtered to obtain item-level monitoring data, and the item-level monitoring data are used as the monitoring data corresponding to the multiple target pages; The page-level filtering condition is a default page-level filtering condition or a combined page-level filtering condition; wherein the combined page-level filtering condition is determined based on the default page-level filtering condition and the user's personalized page-level filtering condition; The item-level filtering condition is a default item-level filtering condition or a combined item-level filtering condition; wherein the combined item-level filtering condition is determined based on the default item-level filtering condition and the user's personalized item-level filtering condition.
2. The method according to claim 1, characterized in that The target configuration tracking point is a visual configuration tracking point; the configuring the target configuration tracking point for the preset configuration tracking point in the target page includes: Receive the tracking point configuration data in the tracking point configuration page; Generate a burying point configuration code corresponding to the burying point configuration data according to the burying point configuration data in the burying point configuration page; The preset configuration embedding point in the target page injects the embedding point configuration code.
3. The method according to claim 1, characterized in that The method further includes: sending monitoring data corresponding to the target page to a target server.
4. The method according to claim 3, characterized in that The sending the monitoring data corresponding to the target page to the target server includes: At a preset time, sending the monitoring data corresponding to the target page to the target server; and / or, When the monitoring data corresponding to the target page meets a preset quantity, the monitoring data corresponding to the target page is sent to the target server.
5. The method according to claim 3, characterized in that: The method further comprises: Obtaining statistical monitoring data returned by the target server, wherein the statistical monitoring data is determined by the target server according to monitoring data corresponding to target pages corresponding to each of a plurality of web clients; Generate chart information corresponding to the statistical monitoring data based on the statistical monitoring data.
6. A device for generating monitoring data of a web page, characterized in that: The device is applied to a Web client, and the device includes: The acquisition module is used to obtain the business information of the target page; A determination module, configured to determine the embedding data corresponding to the target page if the business information of the target page meets the preset embedding condition; A filtering module, used to filter the buried data corresponding to the target page according to a preset filtering condition to obtain the monitoring data corresponding to the target page; There is no preset configuration embedding point in the target page. If the business information of the target page meets the preset embedding point condition, before determining the embedding point data corresponding to the target page, the determination module is further used to: Configuring a preset page embedding point for the target page, wherein the preset page embedding point includes a page element to be monitored and / or a page event to be monitored; Accordingly, the business information of the target page includes business elements and / or business events in the target page, and preset business information; if the business information of the target page meets the preset embedding condition, determining the embedding data corresponding to the target page includes: If the business element corresponding to the target page is a page element to be monitored, and / or the business event corresponding to the target page is a page event to be monitored; Determine the embedding data corresponding to the target page according to the business elements and / or business events corresponding to the target page and the preset business information; The target page includes a preset configuration tracking point. If the business information of the target page meets the preset tracking point condition, before determining the tracking point data corresponding to the target page, the determination module is further used to: Configure a target configuration tracking point for a preset configuration tracking point in the target page, wherein the target configuration tracking point includes a page element to be monitored and / or a page event to be monitored; Accordingly, the business information of the target page includes business elements and / or business events in the target page, and preset business information; if the business information of the target page meets the preset embedding condition, determining the embedding data corresponding to the target page includes: If the business element corresponding to the target page is a page element to be monitored, and / or the business event corresponding to the target page is a page event to be monitored; The target configuration burying point sends a burying point data record notification to the preset configuration burying point; The preset configuration tracking point responds to the tracking point data record notification, and determines the tracking point data corresponding to the target page according to the business elements and / or business events corresponding to the target page and the preset business information; Determining the embedding data corresponding to the target page according to the business elements and / or business events corresponding to the target page and preset business information includes: According to a preset message format, the business elements and / or business events corresponding to the target page and the preset business information are formatted to obtain the embedding data corresponding to the target page; The filtering condition includes a page-level filtering condition; filtering the buried data corresponding to the target page according to the preset filtering condition to obtain the monitoring data corresponding to the target page includes: According to the page-level filtering condition, the buried point data corresponding to the target page is filtered to obtain the page-level monitoring data corresponding to the target page, and the page-level monitoring data corresponding to the target page is used as the monitoring data corresponding to the target page; The target page is a plurality of target pages, and the filtering condition includes a page-level filtering condition and a project-level filtering condition; the buried point data corresponding to the target page is filtered according to the preset filtering condition to obtain the monitoring data corresponding to the target page, including: According to the page-level filtering conditions, the buried point data corresponding to each target page is filtered respectively to obtain the page-level monitoring data corresponding to each target page; According to the item-level filtering condition, the page-level monitoring data items corresponding to each target page are filtered to obtain item-level monitoring data, and the item-level monitoring data are used as the monitoring data corresponding to the multiple target pages; The page-level filtering condition is a default page-level filtering condition or a combined page-level filtering condition; wherein the combined page-level filtering condition is determined based on the default page-level filtering condition and the user's personalized page-level filtering condition; The item-level filtering condition is a default item-level filtering condition or a combined item-level filtering condition; wherein the combined item-level filtering condition is determined based on the default item-level filtering condition and the user's personalized item-level filtering condition.
7. A readable medium, characterized in that It includes execution instructions. When a processor of an electronic device executes the execution instructions, the electronic device executes the method as claimed in any one of claims 1 to 5.
8. An electronic device, characterized in that: The method comprises a processor and a memory storing execution instructions. When the processor executes the execution instructions stored in the memory, the processor executes the method according to any one of claims 1 to 5.
Citation Information
Patent Citations
Method and device for burying point into control of application, and readable storage medium
CN106844217A
Webpage application monitoring method, server and system
CN106933722A
Data displaying method and device
CN108334525A
