Data reporting method and device, computer equipment and storage medium

By storing the second network data that does not match the response data to the processing queue as a target task, and performing the target task in the processing queue after the network request, the problem of incomplete data reporting in the prior art is solved, and data reporting carrying network request data is realized, and the accuracy of data analysis is improved.

CN119697025AActive Publication Date: 2025-03-25MASHANG CONSUMER FINANCE CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202411563012.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-04
Publication Date
2025-03-25
Estimated Expiration
2044-11-04

AI Technical Summary

Technical Problem

The existing data reporting method cannot carry network request data, resulting in incomplete network data reported, affecting the accuracy of subsequent data analysis.

Method used

By storing the second network data that does not match the response data as a target task and storing it in the processing queue, after listening to the network request, the target task in the processing queue is executed, the second response data of the second network data is matched from the network request data, and the network data is updated and reported according to the first response data and the second response data.

Benefits of technology

Ensure that the reported network data can carry network requested data, ensure the integrity of the data and improve the accuracy of subsequent data analysis.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119697025A_ABST
    Figure CN119697025A_ABST
Patent Text Reader

Abstract

The invention discloses a data reporting method and device, computer equipment and a storage medium, and the method comprises the steps: carrying out the analysis of an intercepted burying point event, and obtaining network data; determining first network data and second network data in the network data based on the first data table; generating a target task based on the second network data and storing the target task to a processing queue; executing a target task based on the monitored network request data to obtain second response data of the second network data; and updating the network data based on the first response data and the second response data, and reporting the updated network data. According to the method, the second network data which is not matched with the response data is used as the target task and is stored in the processing queue, and after the network request is monitored, the target task in the processing queue is executed according to the monitored network request data, so that the reported network data can carry the network request data, the integrity of the network data is ensured, and the user experience is improved. And the accuracy of data analysis is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of data processing technology, and in particular to a data reporting method, device, computer equipment and storage medium. Background Art

[0002] In the current data reporting process, the corresponding tracking events and tracking attributes are configured for different elements of the client page in the management background, and the tracking attributes contain the data to be reported. Furthermore, the completed server data is stored globally. Furthermore, when the data of the tracking event is reported, the data to be reported can be obtained from the global storage and reported. Summary of the invention

[0003] Embodiments of the present application provide a data reporting method, apparatus, computer equipment, and storage medium.

[0004] In a first aspect, an embodiment of the present application provides a data reporting method, including:

[0005] Analyze the intercepted tracking events to obtain the network data to be reported of the tracking events;

[0006] Determine first network data and second network data in the network data based on the first data table; the first network data matches the first response data in the first data table, and the second network data does not match the response data in the first data table;

[0007] Generate a target task based on the second network data and store it in a processing queue;

[0008] Execute the target task in the processing queue based on the monitored network request data to obtain second response data of the second network data;

[0009] The network data is updated based on the first response data and the second response data, and the updated network data is reported.

[0010] In a second aspect, an embodiment of the present application provides a data reporting device, including:

[0011] An analysis module is used to analyze the intercepted buried event and obtain the network data to be reported of the buried event;

[0012] a matching module, configured to determine first network data and second network data in the network data based on a first data table; the first network data matches the first response data in the first data table, and the second network data does not match the response data in the first data table;

[0013] A storage module, used for generating a target task based on the second network data and storing the target task in a processing queue;

[0014] an execution module, configured to execute the target task in the processing queue based on the monitored network request data, and obtain second response data of the second network data;

[0015] A data reporting module is used to update the network data based on the first response data and the second response data, and report the updated network data.

[0016] In a third aspect, an embodiment of the present application further provides a computer device, comprising a memory storing a plurality of computer programs; a processor loads the computer program from the memory to execute any one of the data reporting methods provided in the embodiments of the present application.

[0017] In a fourth aspect, an embodiment of the present application further provides a computer-readable storage medium, which stores a plurality of computer programs, and the computer programs are suitable for loading by a processor to execute any data reporting method provided in the embodiment of the present application.

[0018] In a fifth aspect, an embodiment of the present application also provides a computer program product, including a computer program or a computer program, which implements any data reporting method provided in the embodiment of the present application when the computer program or the computer program is executed by a processor.

[0019] By adopting the scheme of the application embodiment, the target task can be determined based on the second network data that is not matched with the response data and stored in the processing queue. After monitoring the network request, the target task in the processing queue is executed according to the monitored network request data, so that the second network data in the target task can be matched in the network request data, and the second response data of the second network data can be matched from the network request data, and then the network data can be updated and reported according to the first response data and the second response data. Therefore, in the process of data reporting, the reported network data can carry the network request data, which ensures the integrity of the reported network data and improves the accuracy of subsequent data analysis. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.

[0021] Figure 1 It is a schematic diagram of the application environment of the data reporting method provided in the embodiment of the present application;

[0022] Figure 2 It is a flowchart of the data reporting method provided in the embodiment of the present application;

[0023] Figure 3 It is a schematic diagram of a burial point data table provided in an embodiment of the present application;

[0024] Figure 4 is a schematic diagram of a first data table provided in an embodiment of the present application;

[0025] Figure 5 is a schematic diagram of a processing queue provided in an embodiment of the present application;

[0026] Figure 6 It is a schematic diagram of the process of processing queue consumption provided by an embodiment of the present application;

[0027] Figure 7 This is a schematic diagram of the overall solution flow of the data reporting method provided in the embodiment of the present application;

[0028] Figure 8 It is a structural diagram of a data reporting device provided in an embodiment of the present application;

[0029] Fig. 9 It is a schematic diagram of the internal structure of the computer device provided in the embodiment of the present application. DETAILED DESCRIPTION

[0030] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without making creative work are within the scope of protection of the present application. At the same time, in the description of the embodiments of the present application, the terms "first", "second", etc. are only used to distinguish the descriptions and cannot be understood as indicating or implying relative importance. Thus, the features defined as "first" and "second" may explicitly or implicitly include one or more features. In the description of the embodiments of the present application, the meaning of "multiple" is two or more, unless otherwise clearly and specifically defined.

[0031] In one embodiment of the present application, the data reporting method can be run on a local terminal device or a server. When the data reporting method is run on a server, the method can be implemented and executed based on a cloud interaction system, wherein the cloud interaction system includes a server and a client device.

[0032] In order to better understand a data reporting method, apparatus, computer device and storage medium provided in an embodiment of the present application, an application environment applicable to an embodiment of the present application is first described below.

[0033] See also Figure 1 , Figure 1 A schematic diagram of an application environment of a data reporting method provided in an embodiment of the present application is shown. As an implementation mode, the data reporting method provided in an embodiment of the present application can be applied to an electronic device, wherein the electronic device can be such as Figure 1 The server 110 shown in the figure can be connected to the terminal device 120 through a network. The network is used to provide a medium for a communication link between the server 110 and the terminal device 120. The network can include various connection types, such as a wired communication link, a wireless communication link, etc., which are not limited in the embodiments of the present application. Optionally, in other embodiments, the electronic device can also be a smart phone, a laptop computer, etc.

[0034] It should be understood that Figure 1 The server 110, network and terminal device 120 are merely illustrative. Depending on the implementation requirements, there may be any number of servers, networks and terminal devices. For example, the server 110 may be a physical server or a server cluster composed of multiple servers, and the terminal device 120 may be a mobile phone, a tablet, a desktop computer, a laptop computer, and the like. It is understood that the embodiments of the present application may also allow multiple terminal devices 120 to access the server 110 at the same time.

[0035] In some embodiments, the terminal device 120 can record the user's voice to obtain the user's audio data. Further, the terminal device 120 sends the user's audio data to the server 110 through the network. After the server 110 receives the user's audio data, the audio data can be processed by the data reporting method described in the embodiment of the present application.

[0036] The following is a detailed description in conjunction with the accompanying drawings. In this embodiment, the execution subject is a terminal device as an example. It should be noted that the description order of the following embodiments is not intended to limit the preferred order of the embodiments. Although the logical order is shown in the flowchart, in some cases, the steps shown or described may be performed in an order different from that shown in the accompanying drawings.

[0037] The data reporting method of this embodiment can be applied to the buried event scenario, which may include, for example, a page access path scenario, a click element scenario, etc. In the buried event scenario, the data collected by the buried event needs to be reported, but the current buried event data reporting cannot carry network request data.

[0038] In order to solve the above technical problems, the inventors proposed a method for reporting data based on a processing queue, specifically, taking the second network data that is not matched with the response data as the target task and storing it in the processing queue, after monitoring the network request, executing the target task in the processing queue according to the monitored network request data, so that the second network data in the target task can be matched in the network request data, and the second response data of the second network data can be matched from the network request data, and then the network data is updated and reported according to the first response data and the second response data, so that in the process of data reporting, the reported network data can carry the network request data, thereby ensuring the integrity of the reported network data and improving the accuracy of subsequent data analysis.

[0039] In some embodiments, the terminal device 120 can respond to user operations, collect tracking events, generate a trigger request for data reporting, and perform data reporting through the data reporting method of the embodiment of the present application.

[0040] In other embodiments, the terminal device 120 can respond to the user's operation, collect the buried event, generate a trigger request for data reporting, and then send the trigger request to the server 110 through the network. When the server 110 receives the trigger request, it can perform data reporting through the data reporting method of the embodiment of the present application.

[0041] Glossary:

[0042] Data collection is a term in the field of data collection. It is a commonly used data collection method for website analysis, mainly used to collect user behavior data for data analysis.

[0043] Visual tracking, also known as circle tracking, is a data tracking mechanism based on full tracking technology. Developers do not need to add any code to data tracking points. They only need to connect to the management backend and circle the elements on the page that need tracking to add interface tracking points that are effective at any time.

[0044] Data reporting usually refers to the communication between the client and the server. When a tracking point is triggered, a data request is sent to the remote server through the network, and the carried data is passed to the server.

[0045] Remote network data usually refers to the data (attributes + attribute values) obtained through the server interface request.

[0046] An interface refers to an API interface, such as the calling method provided by the server when the client interacts with the server through the HTTP protocol. The server implements specific functions through the API interface, and the caller does not need to understand its internal implementation details. The API interface can also be understood as a kind of encapsulation of a specific service, encapsulating the service and providing it to others for calling.

[0047] refer to Figure 2 , Figure 2 : is a flow chart of a data reporting method provided in an embodiment of the present application. The specific flow of the data reporting method may be as follows: Steps 10 to 50, wherein:

[0048] Step 10: Analyze the intercepted buried event to obtain the network data to be reported of the buried event.

[0049] It should be noted that when a user accesses a page or clicks an element in an operation page of a terminal device, the terminal device will respond to the user's operation and intercept buried events based on the operation.

[0050] Among them, the tracking event in the embodiment of the present application is also a data collection event.

[0051] Furthermore, the terminal device analyzes the intercepted buried event to obtain the network data to be reported of the buried event, as described in steps 101 to 103, wherein the network data is the data that the terminal device needs to send to the server, and the network data at this time only carries attribute information.

[0052] Further, the description of step 101 to step 103 is as follows:

[0053] Step 101, analyzing the buried event to obtain an event identifier;

[0054] Step 102, matching the event identifier in the buried point data table to obtain buried point data;

[0055] Step 103, analyzing the buried data to obtain the network data.

[0056] It should be noted that before executing data reporting, the terminal device needs to download the corresponding tracking data table from the server, where each item in the tracking data table contains at least three parameters, including the event identifier (Identity Document, ID) that triggers the report, the event name, and the report-carrying attribute configuration. Each item in the tracking data table can be understood as tracking data.

[0057] Optionally, after the terminal device intercepts the triggered tracking event, it analyzes the tracking event and obtains the event element of the tracking event. In the web field, the event element refers to the event displayed within the user's browser window. It can be the entire page, or a single image, a piece of text, a button, or an independent functional module. For example, for a page exposure event, the event element is the page itself; for a button click event, the event element is the button. The same is true for other terminal device scenarios, which will not be elaborated here.

[0058] Furthermore, the terminal device obtains the event identifier of the event element. Since the event identifier can uniquely identify a time, it can be matched in the buried point data table according to the event identifier, that is, it checks whether the event element has a matching relationship in the buried point data table according to the event identifier. If the corresponding relationship is matched, the terminal device obtains the buried point data of the buried point event.

[0059] Furthermore, the terminal device performs a configuration analysis of the attribute reported on the buried data, and checks whether the buried data stipulates that network data needs to be carried, that is, performs data analysis on the buried data to determine whether the buried data carries network data.

[0060] Furthermore, if it is determined that the buried point data does not carry network data, the terminal device directly reports the buried point data. If it is determined that the buried point data carries network data, the terminal device obtains the network data in the buried point data.

[0061] In one embodiment, referring to Figure 3 , Figure 3 Schematic diagram of the data table of buried points provided in the embodiment of the present application. Figure 3 It can be seen that the buried point data table includes multiple buried point data, such as buried point data 1, buried point data 2,..., buried point data n, each buried point data includes an event identifier, an event name and a reporting carrying attribute configuration, the reporting carrying attribute configuration includes multiple network data, the multiple network data include network data 1, network data 2,..., network data m, network data 1 includes requestKey1 and its corresponding responseKey1-1 and responseKey1-2, network data 2 includes requestKey2 and its corresponding responseKey2-1 and responseKey2-2, network data m includes requestKeym and its corresponding responseKeym-1 and responseKeym-2.

[0062] Step 20: Determine first network data and second network data in the network data based on the first data table.

[0063] It should be noted that the embodiment of the present application requires pre-configuration of the first data table, which can be understood as a global storage object for network data (networkCacheMap). Figure 4 , Figure 4 is a schematic diagram of the first data table provided in the embodiment of the present application. Figure 4 It can be seen that the first data table is an object Map, which includes at least two attributes, namely, the unique identifier of the API request, requestKey (request data), and the specific response data returned by the API request, responseKey (response data).

[0064] Optionally, the embodiment of the present application further configures a processing queue (reportQueue), wherein the processing queue reportQueue type is an array. Figure 5 , Figure 5 is a schematic diagram of a processing queue provided in an embodiment of the present application. Figure 5 It can be seen that each item in the array includes at least four attributes, including the reported execution function callblak, whose corresponding information is Function; the waiting timeout timeout, whose corresponding information is Number; the creation time creatAt, whose corresponding information is Number; the dependent remote network data DependencyRequestList, whose corresponding information is Array <networkcachemap>,The reporting execution function is used to execute the reporting task, and the waiting timeout and the dependent remote network data are used to confirm whether the preconditions for allowing reporting are met at each check.

[0065] Optionally, the embodiment of the present application sets a precondition for allowing reporting, wherein the precondition is that the network data required by the target task can obtain the response data responseKey in the first data table networkCacheMap according to its corresponding unique identifier requestKey. Or the target task waiting in the processing queue reportQueue times out.

[0066] Optionally, the terminal device determines whether the response data responseKey of each data in the network data can be obtained according to the matching of the unique identifier requestKey of each data in the network data in the first data table networkCacheMap.

[0067] Furthermore, if it is determined that each data in the network data matches corresponding response data in the first data table networkCacheMap, the terminal device updates the network data according to the response data of each data in the network data, and reports the updated network data.

[0068] Further, if it is determined that some data in the network data matches the corresponding response data in the first data table networkCacheMap, and some data does not match the corresponding response data in the first data table networkCacheMap, the terminal device obtains the first network data and the second network data in the network data, wherein the first network data matches the first response data in the first data table, and the second network data does not match the response data in the first data table.

[0069] Step 30: Generate a target task based on the second network data and store it in a processing queue.

[0070] Optionally, the terminal device generates a target task based on the request data of the second network data, and stores the target task in a processing queue. Therefore, a processing queue may include multiple target tasks. Specifically, the terminal device analyzes the second network data to obtain the second request data of the second network data, that is, the requestKey of the second network data.

[0071] Furthermore, the terminal device assembles the second request data and the second network data according to the data format of the processing queue to generate a target task corresponding to the second network data, that is, assembles the reporting execution function, the second network data and the second request data to obtain the target task of the second network data in the processing queue reportQueue.

[0072] Furthermore, the terminal device stores the target task in the processing queue reportQueue.

[0073] Therefore, the embodiment of the present application stores the second network data that is not matched to the response data pair in the processing queue, and waits for subsequent conditions to be met before reporting, thereby avoiding the loss of network data in the buried point data table.

[0074] Step 40: Execute the target task in the processing queue based on the monitored network request data to obtain second response data of the second network data.

[0075] It should be noted that the terminal device in the embodiment of the present application needs to monitor the network request initiated by the terminal device to the server in real time. The network request usually refers to the API interface. Most of the API interfaces are written by the back-end and the front-end developers make the request call. That is, the terminal device initiates an HTTP request to the server, and the back-end returns the remote resource or performs some action, such as obtaining the remote resource data of the server.

[0076] Optionally, each time a network request is completed, the terminal device obtains the network request data of the network request. Further, the terminal device executes the target task in the processing queue according to the network request data of the network request to obtain the second response data of the second network data, as described in steps 401 to 403.

[0077] Step 50: Update the network data based on the first response data and the second response data, and report the updated network data.

[0078] Optionally, the terminal device updates the network data according to the first response data and the second response data, that is, the first response data is used as the attribute value of the first network data to update the first network data, and the second response data is used as the attribute value of the second network data to update the second network data to obtain the updated network data. Further, the terminal device reports the updated network data.

[0079] The embodiment of the present application can take the second network data that is not matched to the response data as the target task and store it in the processing queue. After monitoring the network request, the target task in the processing queue is executed according to the monitored network request data, that is, the second response data of the second network data is obtained from the network request data, and then the network data is updated and reported according to the first response data and the second response data. Therefore, in the process of data reporting, the reported network data can carry the network request data.

[0080] Further, the description of step 401 to step 403 is as follows:

[0081] Step 401, based on the first request data in the network request data and the response data of the first request data, the first data table is updated to obtain a second data table;

[0082] Step 402, executing the target task, matching the second request data in the target task with the first request data in the second data table;

[0083] Step 403: If the second request data matches the corresponding first request data in the second data table, the response data corresponding to the matched first request data is determined as the second response data.

[0084] Optionally, the terminal device parses the network request data to obtain first request data in the network request data, and response data corresponding to the first request data.

[0085] Furthermore, the terminal device assembles the first request data and the response data corresponding to the first request data according to the data format of the first data table to obtain assembled data.

[0086] Furthermore, the terminal device stores the assembled data into the first data table, that is, updates the first data table with the assembled data to obtain an updated second data table.

[0087] Furthermore, the terminal device executes the target task in the processing queue according to the updated second data table, and matches the second response data corresponding to the second network data. Specifically, the terminal device matches the first request data in the second data table according to the second request data, and determines whether there is first request data in the second data table that matches the second request data.

[0088] Furthermore, if it is determined that there is first request data matching the second request data in the second data table, that is, the second request data matches the corresponding response data in the second data table, the terminal device determines the response data corresponding to the matched first request data as the second response data corresponding to the second network data.

[0089] Reference Figure 6 , Figure 6 It is a schematic diagram of the process of processing queue consumption provided by the embodiment of the present application. Figure 6 It can be seen that the processing queue includes target task 1, target task 2, target task 3, ..., target task n. For target task 1, when executing target task 1, the second request data corresponding to target task 1 is obtained, and the second request data corresponding to target task 1 is matched in the second data table. If the second response data corresponding to target task 1 is matched in the second data table, the data corresponding to target task 1 is reported. The same can be said for target task 2, target task 3, ..., target task n, which will not be repeated here.

[0090] Furthermore, if it is determined that the second request data does not match the corresponding response data in the second data table, the terminal device continues to match the second request data in the second data table after the next network request data to obtain the second response data corresponding to the second network data.

[0091] The embodiment of the present application can take the second network data that is not matched with the response data as the target task and store it in the processing queue. After monitoring the network request, the target task in the processing queue is executed according to the monitored network request data, so that the second network data in the target task can be matched in the network request data, and the second response data of the second network data can be matched from the network request data, and then the network data is updated and reported according to the first response data and the second response data. Therefore, in the process of data reporting, the reported network data can carry the network request data, which ensures the integrity of the reported network data and improves the accuracy of subsequent data analysis.

[0092] Furthermore, after storing the target task in the processing queue, the following steps are also included:

[0093] Step 60, determining the duration and status information of the target task being stored in the processing queue;

[0094] Step 70: If the duration is greater than or equal to the duration threshold and the status information is in an unfinished state, the network data is updated based on the first response data to obtain third updated network data; wherein the unfinished state is used to characterize that the target task has not been processed, that is, there is no response data in the second data table that matches the second network data.

[0095] Step 80: reporting the third updated network data.

[0096] Optionally, the terminal device starts a timer, and polls and traverses each target task in the processing queue reportQueue at the time interval timeInterval to obtain the duration and status information of each target task.

[0097] Furthermore, the terminal device compares the duration with a preset duration threshold, wherein the duration threshold is set according to actual conditions, such as 5 seconds, 10 seconds, etc.

[0098] Furthermore, if it is determined that the duration is greater than or equal to the duration threshold and the status information is in an unfinished state, the terminal device updates the network data corresponding to each target task through the first response data corresponding to each target task. The unfinished state is used to characterize that the target task has not been processed, that is, there is no response data in the second data table that matches the second network data.

[0099] Furthermore, the terminal device reports the updated network data of each target task.

[0100] Optional, see Figure 6 , Figure 6 It is a schematic diagram of the process of processing queue consumption provided by the embodiment of the present application. Figure 6 It can be seen that the processing queue includes target task 1, target task 2, target task 3, ..., target task n. Target task 1 is obtained from the processing queue. Of course, any target task can also be obtained in the processing queue. Furthermore, if the duration of target task 1 is greater than the duration threshold, the network data corresponding to target task 1 is updated through the first response data corresponding to target task 1, and the updated network data of target task 1 is reported. The same is true for target task 2, target task 3, ..., target task n, which will not be repeated here.

[0101] The embodiment of the present application ensures that the buried event will be reported through the timer polling mechanism, thus avoiding the loss of network data.

[0102] Furthermore, after the updated network data is reported, the following steps are also included:

[0103] Step 90, executing each target task in the processing queue based on the monitored closing event;

[0104] Step 100: if each of the target tasks matches the third response data in the second data table, then based on the first response data and the third response data of each of the target tasks, the network data corresponding to each of the target tasks is updated, and the updated network data of each of the target tasks is reported;

[0105] Step 110: if each target task does not match the third response data in the second data table, then based on the first response data of each target task, the network data corresponding to each target task is updated, and the updated network data of each target task is reported.

[0106] Optionally, the terminal device monitors the closing event of the terminal device in real time, where the closing events of different terminal devices are different. For example, on the web side, the closing event refers to the closing of the page, and in the native App application, the closing event refers to the closing of the App. Other clients are similar. The closing event can be understood as a session cycle. On the web side, it usually refers to the life cycle from page opening to closing, and in the native App, it usually refers to the life cycle from App startup to closing.

[0107] After listening to the shutdown event, the terminal device executes each target task in the processing queue.

[0108] Furthermore, if each target task matches the third response data in the second data table, the terminal device updates the network data corresponding to each target task through the first response data and the third response data of each target task, and reports the updated network data of each target task. If each target task does not match the third response data in the second data table, the terminal device updates the network data corresponding to each target task through the first response data of each target task, and reports the updated network data of each target task.

[0109] The embodiment of the present application ensures that the buried events will be reported by closing the event monitoring mechanism, thereby avoiding the loss of network data.

[0110] Further, refer to Figure 7 , Figure 7 This is a schematic diagram of the overall solution flow of the data reporting method provided in the embodiment of the present application, and the specific analysis is as follows:

[0111] Step 1: Download the tracking data table from the server, specifically: initiate a request to the server, pull the tracking data table from the server, and globally store the pulled tracking data table.

[0112] Step 2: When the terminal device intercepts the trigger of the buried point event, check whether the trigger element of the buried point event has a matching relationship in the buried point data table. If a matching relationship is found, read the buried point data and check whether the buried point data requires network data to be carried. Specifically, when the buried point event is triggered, find the corresponding buried point data in the server buried point data table obtained in step 1 according to the unique identifier of the trigger element, and check whether the buried point data requires network data to be carried.

[0113] Step 3: If the buried data does not need to carry network data, the data is reported directly and the process ends.

[0114] Step 4: If the buried data needs to carry network data, the buried data is used to match whether all network data in the first data table (network data global storage object networkCacheMap) has met the conditions.

[0115] Step 5: If all conditions are met, the data of the buried event is directly reported and the process ends.

[0116] Step 6: If not, the reporting function, the second network data that does not meet the conditions in the network data and its corresponding request data are stored in the processing queue as target tasks, that is, assembled according to the data format of the processing queue reportQueue and stored in the processing queue reportQueue.

[0117] Step 7: Intercept the network request sent by the terminal device, and execute the following two logics every time any network request ends: store the unique identifier of the network request, requestKey, and the specific result responseKey returned by the request into the global network data storage object networkCacheMap. Poll and check the target tasks in the processing queue reportQueue, execute the corresponding data report, and delete the corresponding target tasks from the processing queue.

[0118] Step 8: The terminal device starts the timer. The timer polls and checks the target tasks in the processing queue reportQueue at intervals, consumes the target tasks that have timed out, that is, executes the corresponding data reporting, and deletes the corresponding target tasks from the processing queue.

[0119] Step 9: When the terminal device shutdown event is monitored, all target tasks in the reportQueue queue are consumed immediately, that is, the corresponding data reporting is executed.

[0120] Therefore, the second network data that is not matched to the response data can be taken as the target task and stored in the processing queue. After monitoring the network request data, the target task in the processing queue is executed, and the second response data of the second network data is obtained from the network request data. Then, the network data is updated and reported according to the first response data and the second response data. Therefore, in the process of data reporting, the reported network data can carry the network request data.

[0121] It should be understood that, although each step in the flowcharts involved in the above embodiments is displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above embodiments may include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.

[0122] Based on the same inventive concept, the embodiment of the present application also provides a data reporting device for implementing the above data reporting method. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations of the one or more data reporting devices and the embodiments of the data reporting device provided below can refer to the above limitations on the data reporting method and the data reporting method, and the specific limitations will not be repeated here.

[0123] This embodiment also provides a data reporting device, which can be integrated into a terminal device. Figure 8 As shown, the data reporting device may include:

[0124] The analysis module 801 is used to analyze the intercepted buried event and obtain the network data to be reported of the buried event;

[0125] A matching module 802 is used to determine first network data and second network data in the network data based on a first data table; the first network data matches the first response data in the first data table, and the second network data does not match the response data in the first data table;

[0126] A storage module 803 is used to generate a target task based on the second network data and store it in a processing queue;

[0127] An execution module 804 is used to execute the target task in the processing queue based on the monitored network request data to obtain second response data of the second network data;

[0128] The data reporting module 805 is used to update the network data based on the first response data and the second response data, and report the updated network data.

[0129] The above-mentioned data reporting device can take the second network data that is not matched with the response data as the target task and store it in the processing queue. After monitoring the network request data, it executes the target task in the processing queue, obtains the second response data of the second network data from the network request data, and then updates and reports the network data according to the first response data and the second response data. Therefore, in the process of data reporting, the reported network data can carry the network request data.

[0130] In some embodiments, the data reporting module 805 is further used to:

[0131] Based on the first request data in the network request data and the response data of the first request data, updating the first data table;

[0132] The target task in the processing queue is executed based on the updated second data table, and the second response data corresponding to the second network data is matched.

[0133] In some embodiments, the data reporting module 805 is further used to:

[0134] Traversing the processing tasks in the processing queue to obtain the second request data corresponding to the target task;

[0135] Matching the second request data with the first request data in the second data table based on the second request data;

[0136] If the second request data matches the corresponding first request data in the second data table, the response data corresponding to the matched first request data is determined as the second response data corresponding to the second network data.

[0137] In some embodiments, the analysis module 801 is further configured to:

[0138] Analyze the buried event to obtain an event identifier;

[0139] Based on the event identifier, the event data is matched in the event data table to obtain the event data;

[0140] The buried point data is analyzed to obtain the network data.

[0141] In some embodiments, the data reporting device is further used to:

[0142] Traversing each target task in the processing queue to obtain the duration of each target task;

[0143] If the duration is greater than or equal to the duration threshold, updating the network data corresponding to each of the target tasks based on the first response data corresponding to each of the target tasks;

[0144] The updated network data of each target task is reported.

[0145] In some embodiments, the data reporting device is further used to:

[0146] Execute each target task in the processing queue based on the monitored closing event;

[0147] If each of the target tasks matches the third response data in the second data table, then based on the first response data and the third response data of each of the target tasks, the network data corresponding to each of the target tasks is updated, and the updated network data of each of the target tasks is reported;

[0148] If each target task does not match the third response data in the second data table, the network data corresponding to each target task is updated based on the first response data of each target task, and the updated network data of each target task is reported.

[0149] Based on the same inventive concept, the embodiment of the present application further provides a computer device, which may be a server or a terminal device, and includes a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the steps of the above data reporting method when executing the computer program. Thereby, various functions are realized, for example:

[0150] Analyze the intercepted tracking events to obtain the network data to be reported of the tracking events;

[0151] Determine first network data and second network data in the network data based on the first data table; the first network data matches the first response data in the first data table, and the second network data does not match the response data in the first data table;

[0152] Generate a target task based on the second network data and store it in a processing queue;

[0153] Execute the target task in the processing queue based on the monitored network request data to obtain second response data of the second network data;

[0154] The network data is updated based on the first response data and the second response data, and the updated network data is reported.

[0155] Beneficial effect: The second network data that is not matched to the response data can be taken as the target task and stored in the processing queue. After monitoring the network request, the target task in the processing queue is executed according to the monitored network request data, that is, the second response data of the second network data is obtained from the network request data, and then the network data is updated and reported according to the first response data and the second response data. Therefore, in the process of data reporting, the reported network data can carry the network request data.

[0156] The specific implementation of each of the above operations can be found in the previous embodiments, which will not be described in detail here.

[0157] In one embodiment, the computer device is a terminal device, for example, its internal structure diagram can be as follows: Fig. 9 As shown. The computer device includes a processor, a memory, an input / output interface, a communication interface, a display unit and an input device. Among them, the processor, the memory and the input / output interface are connected through a system bus, and the communication interface, the display unit and the input device are connected to the system bus through the input / output interface. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be implemented through WIFI, a mobile cellular network, NFC (near field communication) or other technologies. When the computer program is executed by the processor, a data reporting method is implemented. The display unit of the computer device is used to form a visually visible image, and can be a display screen, a projection device or a virtual reality imaging device. The display screen can be a liquid crystal display screen or an electronic ink display screen. The input device of the computer device can be a touch layer covered on the display screen, or a button, trackball or touchpad set on the computer device casing, or an external keyboard, touchpad or mouse, etc.

[0158] Those skilled in the art will understand that Fig. 9 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0159] Based on the same inventive concept, an embodiment of the present application also provides a computer-readable storage medium, which may include: a read-only memory (ROM), a random access memory (RAM), a disk or an optical disk, etc.

[0160] Since the computer program stored in the computer-readable storage medium can execute any data reporting method provided in the embodiments of the present application, the beneficial effects that can be achieved by any data reporting method provided in the embodiments of the present application can be achieved. Please refer to the previous embodiments for details and will not be repeated here.

[0161] Based on the same inventive concept, the embodiment of the present application further provides a computer program product or a computer program, which includes a computer program stored in a computer-readable storage medium. The processor of the computer device reads the computer program from the computer-readable storage medium, and the processor executes the computer program, so that the computer device executes the methods provided in various optional implementations in the above embodiments.

[0162] It should be noted that the object data (including but not limited to user device information, user personal information, etc.) and conversation data involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data need to comply with relevant laws, regulations and standards of relevant countries and regions. A person of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment method can be completed by computer programs and computer program-related hardware, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods.

[0163] Any reference to the memory, database or other media used in the embodiments provided in the present application may include at least one of non-volatile and volatile memory. Non-volatile memory may include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (Re RAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory may include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM may be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM), etc.

[0164] The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. The non-relational database may include a distributed database based on blockchain, etc., but is not limited thereto. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but is not limited thereto.

[0165] In the above data reporting device, computer-readable storage medium, computer equipment, and computer program product embodiments, the description of each embodiment has its own emphasis. For parts not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments. Those skilled in the art can clearly understand that for the convenience and simplicity of description, the specific working process and beneficial effects of the above-described data reporting device, computer-readable storage medium, computer program product, computer equipment, and corresponding units can refer to the description of the data reporting method in the above embodiment, and will not be repeated here.

[0166] The technical features of the above embodiments may be arbitrarily combined. To make the description concise, not all possible combinations of each technical feature in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0167] The above is a detailed introduction to a data reporting method, device, computer equipment, computer-readable storage medium and computer program product provided in an embodiment of the present application. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea; at the same time, for technical personnel in this field, according to the idea of ​​the present application, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.< / networkcachemap>

Claims

1. A data reporting method, characterized in that: The method comprises: Analyze the intercepted tracking events to obtain the network data to be reported of the tracking events; Determine first network data and second network data in the network data based on the first data table; the first network data matches the first response data in the first data table, and the second network data does not match the response data in the first data table; Generate a target task based on the second network data and store it in a processing queue; Execute the target task in the processing queue based on the monitored network request data to obtain second response data of the second network data; The network data is updated based on the first response data and the second response data, and the updated network data is reported.

2. The data reporting method according to claim 1, characterized in that: The executing the target task in the processing queue based on the monitored network request data to obtain second response data of the second network data includes: Based on the first request data in the network request data and the response data of the first request data, the first data table is updated to obtain a second data table; Execute the target task in the processing queue, and match the second request data in the target task with the first request data in the second data table; If the second request data matches the corresponding first request data in the second data table, the response data corresponding to the matched first request data is determined as the second response data.

3. The data reporting method according to claim 1, characterized in that: The step of analyzing the intercepted buried event to obtain the network data to be reported of the buried event includes: Analyze the buried event to obtain an event identifier; Based on the event identifier, the event data is matched in the event data table to obtain the event data; The network data in the buried data is determined as the network data to be reported for the buried event.

4. The data reporting method according to any one of claims 1 to 3, characterized in that: The data reporting method further includes: Determine the duration and status information of storing the target task in the processing queue; If the duration is greater than or equal to the duration threshold, and the status information is in an unfinished state, updating the network data based on the first response data to obtain third network data; The third network data is reported.

5. The data reporting method according to any one of claims 1 to 3, characterized in that: The data reporting method further includes: Based on the monitored closing event, executing the target task; If the second request data in the target task matches the corresponding third response data in the second data table, the network data is updated based on the first response data and the third response data to obtain fourth network data; The fourth network data is reported.

6. The data reporting method according to claim 5, characterized in that: The data reporting method further includes: If the second request data in the target task does not match the corresponding third response data in the second data table, updating the network data based on the first response data to obtain fifth network data; The fifth network data is reported.

7. A data reporting device, characterized in that: The device comprises: An analysis module is used to analyze the intercepted buried event and obtain the network data to be reported of the buried event; a matching module, configured to determine first network data and second network data in the network data based on a first data table; the first network data matches the first response data in the first data table, and the second network data does not match the response data in the first data table; A storage module, used for generating a target task based on the second network data and storing the target task in a processing queue; an execution module, configured to execute the target task in the processing queue based on the monitored network request data, and obtain second response data of the second network data; A data reporting module is used to update the network data based on the first response data and the second response data, and report the updated network data.

8. A computer device, characterized in that: The device comprises a processor and a memory, wherein the memory stores a plurality of computer programs; the processor loads the computer program from the memory to execute the data reporting method according to any one of claims 1 to 6.

9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a plurality of computer programs, and the computer programs are suitable for being loaded by a processor to execute the data reporting method according to any one of claims 1 to 6.

10. A computer software, characterized in that The computer software includes a computer program, and the computer program is executed by a processor to implement the data reporting method according to any one of claims 1 to 6.

Citation Information

Patent Citations

  • Data processing method, device and system, readable medium and electronic equipment

    CN111506475A

  • Burial point synchronous change method and device, equipment and storage medium

    CN115576961A

  • Buried point verification method, buried point verification device, readable storage medium and electronic equipment

    CN115658452A

  • Burial point data reporting method and device, electronic equipment and computer readable medium

    CN117632643A

  • Method, apparatus, and system for monitoring website

    US20150170070A1