Path tracking method, device, electronic device and readable storage medium

By setting the application routing page in the mobile application and writing unique identifiers and reference parameters to the module, the problems of path tracking and maintenance difficulties and high maintenance costs are solved, and fast and accurate path tracking and reducing maintenance difficulties and costs are achieved.

CN114003792BActive Publication Date: 2025-03-07北京理房通支付科技有限公司
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202111075450.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-09-14
Publication Date
2025-03-07
Estimated Expiration
2041-09-14

AI Technical Summary

Technical Problem

In the prior art, path tracking and maintenance are difficult and maintenance costs are high, making it difficult to judge the importance of important nodes and modules.

Method used

By setting up the application routing page, connect the internal and external starting modules, intermediate modules and target nodes in series, and write unique identifiers and reference parameters to each module to achieve path tracing.

Benefits of technology

It realizes faster and more accurate path tracking, reduces maintenance difficulty and maintenance costs, and can effectively evaluate the importance of the target module to the target node.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114003792B_ABST
    Figure CN114003792B_ABST
Patent Text Reader

Abstract

The present invention provides a path tracing method, device, electronic device and readable storage medium. The method comprises: setting an application routing page, wherein the internal and external starting modules jump to the intermediate modules in at least part of the application via the application routing page, and then jump to the target node via the intermediate module; writing unique identifiers and reference parameters for the internal and external starting modules, the target node and the intermediate module, wherein the reference parameters include page reference sub-parameters and module reference sub-parameters, wherein the page reference sub-parameters are used to indicate the previous page of the internal and external starting modules, the intermediate modules or the target node, and the module reference sub-parameters are used to indicate the previous module of the internal and external starting modules, the intermediate modules or the target node; based on the unique identifier and reference parameters, indexing forward module by module from the target node until the internal and external starting modules are indexed, thereby realizing user operation path tracing. The present invention can perform path tracing more quickly and accurately, and can reduce the difficulty and cost of maintenance.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer technology, and in particular to a path tracing method, device, electronic device and readable storage medium. Background Art

[0002] In mobile applications, there are some very important operation nodes, such as purchase, payment, consultation, etc. Users may enter these important nodes from any module and any path. Figure 1 As shown, it is a schematic diagram of the user operation path in the prior art. The user can start from module 1 or 2 or 3, and finally reach the important node (ie, the target node) 1 or 2 via any module 4 or 5 or 6.

[0003] In practical applications, it is often necessary to maintain nodes and paths on the mobile end. For example, unimportant modules need to be taken offline. However, in the prior art, it is usually difficult or impossible to determine which link an important node (such as node 1) comes from, and it is impossible to determine whether a module (such as module 4) is important, which will undoubtedly increase the difficulty of maintenance and the maintenance cost. Summary of the invention

[0004] The present invention provides a path tracking method, device, electronic device and readable storage medium to solve the defects of the prior art path tracking such as difficult maintenance and high maintenance cost, and to achieve faster and more accurate path tracking and reduce the maintenance difficulty and maintenance cost.

[0005] The present invention provides a path tracking method, comprising:

[0006] Setting an application routing page, wherein the internal and external starting modules jump to at least part of the intermediate modules in the application via the application routing page, and then jump to the target node via the intermediate modules;

[0007] Writing unique identifiers and reference parameters for the internal and external starting modules, the target node, and the intermediate module, wherein the reference parameters include a page reference sub-parameter and a module reference sub-parameter, wherein the page reference sub-parameter is used to indicate the previous page of the internal and external starting module, the intermediate module, or the target node, and the module reference sub-parameter is used to indicate the previous module of the internal and external starting module, the intermediate module, or the target node;

[0008] Based on the unique identifier and the reference parameter, the path tracking for the target node is realized by indexing forward module by module starting from the target node until the internal and external starting modules are indexed.

[0009] According to a path tracing method according to an embodiment of the present invention, the step of writing unique identifiers and reference parameters for the internal and external start modules, the target nodes, and the intermediate modules includes:

[0010] By invading the page life cycle, the unique identifiers are respectively assigned to the internal and external starting modules, the target nodes and the intermediate modules in the life cycle process, and based on the unique identifiers, the reference parameters are automatically added to the pages and modules respectively involved in the internal and external starting modules, the intermediate modules and the target nodes through which the life cycle process passes.

[0011] According to a path tracing method of an embodiment of the present invention, the automatically adding the reference parameters to the pages and modules involved in the internal and external starting modules, the intermediate modules and the target nodes respectively passed through by the life cycle process includes:

[0012] Monitor the life cycle and obtain the start node and end node of the life cycle;

[0013] At the start node, the embedding process is invaded, the reference parameter is generated by analyzing the life cycle and the embedding point of the previous page or the embedding point of the previous module, and the current page embedding point or the current module embedding point is constructed, and the reference parameter is added to the current page embedding point or the current module embedding point, and the current page embedding point or the current module embedding point after adding the reference parameter is added to the embedding point set;

[0014] At the end node, the embedding point set of the current page is released.

[0015] According to a path tracing method of an embodiment of the present invention, the generating of the reference parameter by analyzing the life cycle and the previous page tracking point or the previous module tracking point includes:

[0016] Generate a record of page creation and page destruction during the life cycle, and when a click event on an element in the current page is obtained, generate a tracking point for the click event on the current page;

[0017] Based on the records of page creation and page destruction, read the unique identifier of the current page, and based on the unique identifier of the current page, obtain the previous page of the current page, and determine the page reference sub-parameter of the click event according to the unique identifier of the previous page;

[0018] Based on the embedding point of the click event, the last module of the previous page is obtained, and according to the unique identifier of the last module, the module reference sub-parameter of the click event is determined.

[0019] According to an embodiment of the present invention, the path tracing method, based on the unique identifier and the reference parameter, starts from the target node and indexes forward module by module, comprises:

[0020] Starting from the target node, according to the unique identifier, the page reference sub-parameter and the module reference sub-parameter, the previous page and the previous module of the target node and the intermediate module are indexed forward step by step until the page reference sub-parameter and the module reference sub-parameter are empty, and all paths that can reach the target node are traced.

[0021] The path tracing method according to an embodiment of the present invention further includes:

[0022] Starting from the target node, indexing forward module by module based on the unique identifier and the reference parameter, obtaining all target paths reaching the target node via the target module;

[0023] A preset statistic of the target path is calculated, and the importance of the target module to the target node is evaluated based on the preset statistic.

[0024] According to a path tracing method according to an embodiment of the present invention, the internal and external starting modules include at least one of the following:

[0025] Application embedded H5, application embedded Flutter, application external browser, third-party application interface and application's own page.

[0026] The present invention also provides a path tracking device, comprising:

[0027] A routing module, used to set an application routing page, through which the internal and external starting modules jump to at least part of the intermediate modules in the application, and then jump to the target node through the intermediate modules;

[0028] A writing module, used for writing unique identifiers and reference parameters for the internal and external starting modules, the target node and the intermediate module, wherein the reference parameters include a page reference sub-parameter and a module reference sub-parameter, wherein the page reference sub-parameter is used to indicate the previous page of the internal and external starting module, the intermediate module or the target node, and the module reference sub-parameter is used to indicate the previous module of the internal and external starting module, the intermediate module or the target node;

[0029] A tracking module is used to index forward module by module starting from the target node based on the unique identifier and the reference parameter until the internal and external starting modules are indexed, so as to realize path tracking for the target node.

[0030] According to a path tracking device according to an embodiment of the present invention, the writing module is used to:

[0031] By invading the page life cycle, the unique identifiers are respectively assigned to the internal and external starting modules, the target nodes and the intermediate modules in the life cycle process, and based on the unique identifiers, the reference parameters are automatically added to the pages and modules respectively involved in the internal and external starting modules, the intermediate modules and the target nodes through which the life cycle process passes.

[0032] According to a path tracing device of an embodiment of the present invention, when the writing module is used to automatically add the reference parameters to the pages and modules involved in the internal and external starting modules, the intermediate modules and the target nodes respectively passed through by the life cycle process, it is used to:

[0033] Monitor the life cycle and obtain the start node and end node of the life cycle;

[0034] At the start node, the embedding process is invaded, the reference parameter is generated by analyzing the life cycle and the embedding point of the previous page or the embedding point of the previous module, and the current page embedding point or the current module embedding point is constructed, and the reference parameter is added to the current page embedding point or the current module embedding point, and the current page embedding point or the current module embedding point after adding the reference parameter is added to the embedding point set;

[0035] At the end node, the embedding point set of the current page is released.

[0036] According to a path tracing device of an embodiment of the present invention, when the writing module is used to generate the reference parameter by analyzing the life cycle and the previous page tracking point or the previous module tracking point, it is used to:

[0037] Generate a record of page creation and page destruction during the life cycle, and when a click event on an element in the current page is obtained, generate a tracking point for the click event on the current page;

[0038] Based on the records of page creation and page destruction, read the unique identifier of the current page, and based on the unique identifier of the current page, obtain the previous page of the current page, and determine the page reference sub-parameter of the click event according to the unique identifier of the previous page;

[0039] Based on the embedding point of the click event, the last module of the previous page is obtained, and according to the unique identifier of the last module, the module reference sub-parameter of the click event is determined.

[0040] According to a path tracing device of an embodiment of the present invention, when the tracing module is used to index forward module by module starting from the target node based on the unique identifier and the reference parameter, it is used to:

[0041] Starting from the target node, according to the unique identifier, the page reference sub-parameter and the module reference sub-parameter, the previous page and the previous module of the target node and the intermediate module are indexed forward step by step until the page reference sub-parameter and the module reference sub-parameter are empty, and all paths that can reach the target node are traced.

[0042] The path tracking device according to an embodiment of the present invention further includes an evaluation module, which is used to:

[0043] Starting from the target node, indexing forward module by module based on the unique identifier and the reference parameter, obtaining all target paths reaching the target node via the target module;

[0044] A preset statistic of the target path is calculated, and the importance of the target module to the target node is evaluated based on the preset statistic.

[0045] According to a path tracking device of an embodiment of the present invention, the internal and external starting modules include at least one of the following:

[0046] Application embedded H5, application embedded Flutter, application external browser, third-party application interface and application's own page.

[0047] The present invention also provides an electronic device, comprising a memory, a processor, and a program or instruction stored in the memory and executable on the processor, wherein when the processor executes the program or instruction, the steps of the path tracking method described in any one of the above are implemented.

[0048] The present invention also provides a non-transitory computer-readable storage medium having a program or instruction stored thereon, and when the program or instruction is executed by a computer, the steps of any of the path tracing methods described above are implemented.

[0049] The path tracking method, device, electronic device and readable storage medium provided by the present invention connect all modules outside the APP in series by setting the APP routing page, and connect the current module and the previous module in series by writing reference parameters, so that path tracking can be performed more quickly and accurately, and the maintenance difficulty and maintenance cost can be reduced. BRIEF DESCRIPTION OF THE DRAWINGS

[0050] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the following briefly introduces the drawings required for use in the embodiments of the present invention or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0051] Figure 1 A schematic diagram of a user operation path in the prior art;

[0052] Figure 2 A schematic diagram of a flow chart of a path tracing method provided by the present invention;

[0053] Figure 3 A schematic diagram of a path tracking method according to the present invention;

[0054] Figure 4 A schematic diagram of the structure of module elements in the path tracing method provided according to the present invention;

[0055] Figure 5 A schematic diagram of a process of automatically adding reference parameters in a path tracing method provided by the present invention;

[0056] Figure 6 A schematic diagram of a data structure formed by recording points in the path tracing method provided by the present invention;

[0057] Figure 7 A schematic diagram of the structure of a path tracking device provided by the present invention;

[0058] Figure 8 A schematic diagram of the physical structure of the electronic device provided by the present invention. DETAILED DESCRIPTION

[0059] 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 the drawings of the present invention. Obviously, the described embodiments are 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.

[0060] The present invention aims at the problems of difficult maintenance and high maintenance cost of path tracking in the prior art. By setting the application (APP) routing page, all modules outside the APP, the internal modules of the APP and the intermediate modules in the application that can jump to the target node are connected in series, and the current module is connected in series with the previous module by writing the reference (Refer) parameter, so that the path tracking can be performed more quickly and accurately, and the maintenance difficulty and maintenance cost can be reduced. The present invention will be described and introduced in detail through multiple embodiments in conjunction with the accompanying drawings.

[0061] Figure 2 A schematic diagram of the flow chart of the path tracing method provided by the present invention is shown in FIG. Figure 2 As shown, the method includes:

[0062] S201, setting an application routing page, the internal and external starting modules jump to at least part of the intermediate modules in the application via the application routing page, and jump to the target node via the intermediate modules.

[0063] It can be understood that in order to obtain the path from the user to the target node and thus maintain the modules that can be passed through to reach the target node according to the statistics of the path, the present invention connects in series all the starting modules that can jump to any target node in the application (including the internal starting modules and external starting modules of the application) with the intermediate modules in the application, thereby achieving comprehensive coverage of all modules passed through in the node connection path, thereby laying the foundation for comprehensive and accurate path tracking.

[0064] Specifically, Figure 3 As shown in FIG. 1 , it is a schematic diagram of the path tracking method according to the present invention. After the internal and external starting modules, by adding an APP routing page, all modules inside and outside the APP can be connected in series using the APP routing page. By setting the APP routing page, during the normal operation of the application, the user operation path data can start from the internal and external starting modules and enter at least some of the intermediate modules in the application through the APP routing page. These intermediate modules are as follows: Figure 3 APP module 1 to APP module n shown in . After the user operation path data passes through these intermediate modules, it finally flows to the target node 1, the target node 2, ..., the target node n-1 or the target node n, realizing the full module coverage inside and outside the application.

[0065] Among them, a module refers to a functional module set in an application to implement a certain operation function. In essence, it is a program instance that implements the corresponding function in the application. A complete application can be regarded as a collection of modules. A properly structured module can usually accept user processing actions and produce well-defined outputs, which may indicate a jump to another module.

[0066] The target node refers to one or more operation nodes or operation stages in the user's operation path of the application. These operation nodes are the nodes that the user is concerned about and are usually important, such as the user's purchase, payment or consultation operation nodes. The user may start from any module, go through any operation path, and finally jump to these important nodes. The functional modules in the application involved in the user operation included in the arbitrary operation path are the intermediate modules of the application.

[0067] Optionally, the internal and external starting modules include at least one of the following: H5 embedded in the application, Flutter embedded in the application, a browser external to the application, a third-party application interface, and the application's own page. The internal and external starting modules include an internal starting module and an external starting module. By adding an APP routing page, the present invention can realize jumping from external starting modules such as browsers, third-party application interfaces (such as Toutiao Baidu and other channels) and internal starting modules such as H5 pages and Flutter pages embedded in the APP and the APP's own pages to the intermediate modules inside the APP. In other words, by entering the target node from any module and any path, the full path from the starting node to the target node can be found.

[0068] The intermediate module refers to a module in the complete path through which data flows except for the internal and external starting modules and the target node, and includes a data inflow end and a data outflow end.

[0069] S202, write unique identifiers and reference parameters for the internal and external starting modules, the target node, and the intermediate module.

[0070] Among them, the reference parameters include a page reference sub-parameter and a module reference sub-parameter, the page reference sub-parameter is used to indicate the previous page of the internal or external starting module, the intermediate module or the target node, and the module reference sub-parameter is used to indicate the previous module of the internal or external starting module, the intermediate module or the target node.

[0071] It can be understood that the present invention can uniquely identify each internal and external starting module, intermediate module and target node in the path by assigning a unique identifier to the internal and external starting modules, intermediate modules and target nodes through which the data flow flows in the complete path. At the same time, the core parameter-reference parameter is written for each of the above-mentioned internal and external starting modules, intermediate modules and target nodes. Then, for each internal and external starting module, intermediate module and target node, it is only necessary to read its reference parameter during path tracing to determine its previous page and previous module. Since each internal and external starting module, intermediate module or target node is assigned a unique identifier, the accuracy and convenience of path tracing can be greatly improved. It can be understood that if the internal and external starting module does not have a previous page or a previous module, its reference parameter can be empty. Or if the intermediate module or target node does not have a previous page or a previous module, its reference parameter can also be empty.

[0072] That is to say, Figure 4 As shown, it is a schematic diagram of the structure of the module elements in the path tracing method provided by the present invention. For each module in the user operation path, the present invention adds two core parameters, namely, a unique identifier (Code) and a reference parameter (Refer). The reference parameter further includes a reference page (ReferPage, used to point to the previous page) sub-parameter and a reference module (ReferClick, used to point to the previous module) sub-parameter.

[0073] Among them, a page refers to an information page set in an application, which is used to display the graphic settings, writing status or tables that need to be displayed in the application. At the same time, the page can also contain corresponding operation controls or hyperlinks for users to operate. Hypertext links are established between various information pages, and users operate them (such as click operations) to achieve jumps between different pages. Users can perform multiple operations continuously on one page or multiple pages. According to the user's operation sequence, a corresponding operation path is formed. Each operation of the user in the operation path will call the corresponding functional module of the application, which is the intermediate module. After multiple operations of the user, multiple intermediate modules of the application are called sequentially, and finally jump to the corresponding operation stage, such as payment, then this operation stage can be used as the target node.

[0074] S203, based on the unique identifier and the reference parameter, index forward module by module starting from the target node until the internal and external starting modules are indexed, thereby achieving path tracing for the target node.

[0075] It can be understood that the present invention, based on writing unique identifiers and reference parameters to each internal and external starting module, intermediate module and target node in the path, can determine the unique identifier of the previous page and the previous module according to the reference parameters of each internal and external starting module, intermediate module and target node, and further determine which intermediate module or internal or external starting module the previous module is based on the correspondence between the unique identifier and the module, thereby realizing path indexing.

[0076] Specifically, it is possible to start from the target node, read the reference parameter of the target node, determine the unique identifier of the previous page and the previous module related to the target node based on the reference parameter, and determine which module the previous intermediate module related to the target node is based on the correspondence between the unique identifier and the module. After that, read the reference parameter of the intermediate module again, and determine the unique identifier of the previous page and the previous module related to the intermediate module based on this, and determine the previous module of the module again based on the correspondence between the unique identifier and the module. In this way, a forward index of loop iteration is formed until the previous module points to the internal or external starting module, the index ends, and finally the complete path that the user passes through from the internal or external starting module to the target node is obtained.

[0077] The path tracing method provided by the present invention connects all modules outside the APP in series by setting the APP routing page, and connects the current module and the previous module in series by writing reference parameters, so that path tracing can be performed more quickly and accurately, and the maintenance difficulty and maintenance cost can be reduced.

[0078] Among them, according to the node tracking method provided in the above embodiments, a unique identifier and reference parameters are optionally written for the internal and external starting modules, the target node and the intermediate module, including: by invading the page life cycle, the unique identifier is assigned to the internal and external starting modules, the target node and the intermediate module during the life cycle process, and based on the unique identifier, the reference parameters are automatically added to the pages and modules respectively involved in the internal and external starting modules, the intermediate modules and the target node through which the life cycle process passes.

[0079] It can be understood that the present invention uses a method of invading the page life cycle to automatically generate reference parameters and embed points in each module within the page life cycle. The core parameter Refer does not need to be added manually, and the efficiency and accuracy are higher; then, by invading the embedding process, the reference parameters are automatically added to each page and module.

[0080] That is to say, the present invention analyzes the complete life cycle of the page according to the application design, and adds a unique identifier to each module during the life cycle and burying points to generate a buried point set. Then, when adding refer parameters to each module through which the user's actual operation path passes, the above-generated buried point set can be called when intruding the user's operation process, thereby determining each module through which the user's operation path actually passes, and determining the refer parameters of each module according to the buried point set and adding them to each module.

[0081] In the user's behavior path, each operation of the user is implemented and recorded by a corresponding module. The present invention uniquely identifies these modules by adding unique identifiers to these modules, and then indicates the previous module or page of the module by adding refer parameters to the modules. The refer parameter of the module is the unique identifier of the previous module.

[0082] Among them, according to the path tracing method provided in the above embodiments, the reference parameters are optionally automatically added to the pages and modules respectively involved in the internal and external starting modules, the intermediate modules and the target nodes through which the life cycle process passes, including: monitoring the life cycle to obtain the start node and the end node of the life cycle; at the start node, intruding into the point tracking process, generating the reference parameters by analyzing the life cycle and the previous page point tracking or the previous module point tracking, and constructing the current page point tracking or the current module point tracking, and at the same time adding the reference parameters to the current page point tracking or the current module point tracking, and adding the current page point tracking or the current module point tracking after adding the reference parameters to the point tracking set; at the end node, releasing the point tracking set of the current page.

[0083] It can be understood that, Figure 5 FIG. 1 is a flow chart of automatically adding reference parameters in the path tracing method provided by the present invention, which includes the following processing steps:

[0084] First, during the page life cycle of the application, the page life cycle is invaded, that is, the start node and end node of the life cycle are obtained through life cycle monitoring.

[0085] Secondly, at the start of the life cycle, reference parameters are generated by analyzing the life cycle and historical tracking points, and the page (Activity) creation (onCreate) tracking point is constructed and reference parameters are added to the tracking point. Then, the current tracking point is added to the tracking point collection. Then, at the end of the life cycle, the current page tracking point collection is released.

[0086] Finally, invade the tracking process (including manual tracking and automatic tracking) and add reference parameters for all click events and other operations in the user's actual operation path.

[0087] Among them, according to the path tracing method provided by the above embodiments, optionally, the reference parameter is generated by analyzing the life cycle and the previous page tracking point or the previous module tracking point, including: generating a record of page creation and page destruction during the life cycle, and when a click event on an element in the current page is obtained, generating a tracking point for the click event on the current page; based on the records of page creation and page destruction, reading the unique identifier of the current page, and based on the unique identifier of the current page, obtaining the previous page of the current page, and determining the page reference sub-parameter of the click event based on the unique identifier of the previous page; based on the tracking point of the click event, obtaining the last module of the previous page, and determining the module reference sub-parameter of the click event based on the unique identifier of the last module.

[0088] It can be understood that the present invention generates reference parameters by analyzing the life cycle and historical tracking points. Specifically, it is necessary to first record the creation and destruction process of the page and the click tracking points.

[0089] That is to say, when the page is created (onCreate), the page is added; when the page is destroyed (onDestroy), the page is deleted; when the page element is clicked, a click event (Click) is generated on the page, thus forming a Figure 6 The data structure shown, Figure 6 A schematic diagram of the data structure formed by recording points in the path tracing method provided by the present invention.

[0090] Figure 6 From page 1 to the current page, several pages have been passed, and each page contains multiple click events, that is, it has passed through multiple intermediate modules, and Figure 6 Shows the connection relationship between each page and module.

[0091] After that, the current page is found directly through the unique identifier (PageCode) of the page, and the previous page of the current page is obtained to obtain the unique identifier of the previous page of the current event (current module) as the reference page (RefPage) sub-parameter of the current page. When obtaining the previous module of the current module, the previous page is found first, and then the last Click of the previous page is obtained, and finally the unique identifier of the previous module of the current event (current module) is obtained as the reference module (ReferClick) sub-parameter of the current module.

[0092] Among them, according to the path tracing method provided in the above embodiments, optionally, based on the unique identifier and the reference parameter, forward indexing module by module starting from the target node includes: starting from the target node, according to the unique identifier, the page reference sub-parameter and the module reference sub-parameter, forward indexing the previous page and the previous module of the target node and the intermediate module step by step until the page reference sub-parameter and the module reference sub-parameter are empty, and tracing all paths that can reach the target node.

[0093] It can be understood that, based on the fact that each module in the life cycle includes the previous page reference parameter (ReferPage) and the previous module reference parameter (ReferClick), the previous page reference parameter (ReferPage) and the previous module reference parameter (ReferClick) can be used to continuously search upward until ReferPage and ReferClick are empty, indicating that the starting module has been indexed. At this time, the path tracing is completed, and all paths to the target node and all nodes or modules passed by these paths can be obtained.

[0094] Among them, when using ReferPage and ReferClick for path tracing, first read the ReferPage and ReferClick of the target node, and based on the ReferPage and ReferClick, index the previous intermediate module of the target node in the path, and then continue to index forward according to the ReferPage and ReferClick of the intermediate module to determine the previous intermediate module of the intermediate module. In this way, the forward indexing is iteratively looped until the parameters of ReferPage and ReferClick of a module indexed are empty, indicating that there is no previous page or module for the module, that is, the module is the starting module, and then it can be determined that the path tracing is completed.

[0095] Furthermore, the path tracing method according to an embodiment of the present invention also includes: starting from the target node, indexing forward module by module based on the unique identifier and the reference parameter to obtain all target paths reaching the target node via the target module; calculating preset statistics of the target path, and evaluating the importance of the target module to the target node based on the preset statistics.

[0096] It can be understood that, Figure 3 As shown in the figure, assuming that node 1 is an important node, such as a payment button, it can be used as a target node. Different people will enter node 1 (payment button) from different paths, so N paths of data are generated to node 1 (payment button).

[0097] When calculating the importance of a target module (such as APP module 1) to a target node (such as node 1) in a path, we can specifically start from node 1 (payment button), index forward one by one based on the unique identifier and reference parameters of each module, and obtain the path to node 1 via the target module.

[0098] Then, all paths passing through the target module are calculated in a preset statistical manner to obtain a preset statistic, such as weighted sum of all paths passing through the target module to obtain the weighted sum of all paths reaching node 1 via the target module. Before weighting the paths, the statistical weight of each path can be set by a random assignment method, an expert assignment method, etc. For example, the weight of each path can be set to 1, and the result of weighting the paths passing through the target module is the total number of these paths.

[0099] Then, the importance of the target module to the target module can be determined by the value of the preset statistic. For example, the larger the final weighted value is, the more people enter node 1 (payment button) through this target module, and the more important this target module is to node 1.

[0100] The present invention weights the path passing through the target module while forward indexing based on the unique identification and reference parameters of each module in the path, and evaluates the importance of the target module accordingly, so that the system can be maintained faster and better, so that the system maintains better performance.

[0101] Based on the same inventive concept, the present invention provides a path tracking device according to the above embodiments, and the device is used to implement path tracking of the mobile terminal in the above embodiments. Therefore, the description and definition in the path tracking method of the above embodiments can be used for understanding each execution module in the present invention, and the details can be referred to the above method embodiments, which will not be repeated here.

[0102] According to one embodiment of the present invention, the structure of the path tracking device is as follows: Figure 7 , which is a schematic diagram of the structure of the path tracking device provided by the present invention, and the device can be used to implement the path tracking in the above-mentioned method embodiments, and the device includes: a routing module 701, a writing module 702 and a tracking module 703. Among them:

[0103] The routing module 701 is used to set the application routing page, and the internal and external starting modules jump to at least part of the intermediate modules in the application via the application routing page, and jump to the target node via the intermediate module; the writing module 702 is used to write unique identifiers and reference parameters for the internal and external starting modules, the target node and the intermediate modules, and the reference parameters include page reference sub-parameters and module reference sub-parameters. The page reference sub-parameters are used to indicate the previous page of the internal and external starting modules, the intermediate modules or the target node, and the module reference sub-parameters are used to indicate the previous module of the internal and external starting modules, the intermediate modules or the target node; the tracking module 703 is used to index forward module by module starting from the target node based on the unique identifier and the reference parameters until the internal and external starting modules are indexed, so as to realize path tracking for the target node.

[0104] Specifically, the routing module 701 adds an APP routing page after the internal and external starting modules, and uses routing to connect all modules inside and outside the APP in series. During the normal operation of the application, data can enter the intermediate module in the application from the internal and external starting modules through routing, and finally flow to the target node, achieving full module coverage inside and outside the application.

[0105] By connecting all the start pages that can access any target node of the application (APP) in the mobile terminal in series with the intermediate nodes in the application through the routing module 701, comprehensive coverage of the modules in the node connection path can be achieved, thus laying the foundation for comprehensive and accurate path tracking.

[0106] Afterwards, the writing module 702 assigns unique identifiers to the starting module, intermediate modules and target nodes through which the data flow flows in the complete path, so as to uniquely mark each module in the path. At the same time, the writing module 702 writes the core parameters - reference parameters for each of the above modules. For each module, it is only necessary to read its reference parameters during path tracing to determine its previous page and previous module. In other words, for each module in the path, the writing module 702 adds two core parameters, namely the unique identifier (Code) and the reference parameter. The reference parameter further includes ReferPage (pointing to the previous page) and ReferClick (pointing to the previous module) sub-parameters.

[0107] Finally, starting from the target node, the tracking module 703 reads the reference parameter of the target node, determines the unique identifier of the previous page and the previous module related to the target node according to the reference parameter, and determines which module the previous module related to the target node is specifically according to the corresponding relationship between the unique identifier and the module. Afterwards, the tracking module 703 reads the reference parameter of the module again, and determines the unique identifier of the previous page and the previous module related to the module accordingly, and determines the previous module of the module again according to the corresponding relationship between the unique identifier and the module. In this way, a forward index of a loop iteration is formed, until the previous module points to an internal or external starting module, the index ends, and finally reaches a complete path.

[0108] The path tracking device provided by the present invention connects all modules outside the APP in series by setting the APP routing page, and connects the current module and the previous module in series by writing reference parameters, so that path tracking can be performed more quickly and accurately, and the maintenance difficulty and maintenance cost can be reduced.

[0109] Optionally, the writing module is used to: intrude into the page life cycle, assign the unique identifier to the internal and external starting modules, the target node and the intermediate module in the life cycle process, and based on the unique identifier, automatically add the reference parameters to the pages and modules respectively involved in the internal and external starting modules, the intermediate modules and the target node through which the life cycle process passes.

[0110] Optionally, the writing module, when automatically adding the reference parameter to the pages and modules respectively involved in the internal and external starting modules, the intermediate modules and the target node through which the life cycle process passes, is used to:

[0111] Monitor the life cycle and obtain the start node and end node of the life cycle;

[0112] At the start node, the embedding process is invaded, the reference parameter is generated by analyzing the life cycle and the embedding point of the previous page or the embedding point of the previous module, and the embedding point of the current page or the embedding point of the current module is constructed, and the reference parameter is added to the embedding point of the current page or the embedding point of the current module, and the embedding point of the current page or the embedding point of the current module after the reference parameter is added is added to the embedding point set;

[0113] At the end node, the embedding point set of the current page is released.

[0114] Optionally, the writing module, when used to generate the reference parameter by analyzing the life cycle and the previous page embedding point or the previous module embedding point, is used to:

[0115] Generate a record of page creation and page destruction during the life cycle, and when a click event on an element in the current page is obtained, generate a tracking point for the click event on the current page;

[0116] Based on the records of page creation and page destruction, read the unique identifier of the current page, and based on the unique identifier of the current page, obtain the previous page of the current page, and determine the page reference sub-parameter of the click event according to the unique identifier of the previous page;

[0117] Based on the embedding point of the click event, the last module of the previous page is obtained, and according to the unique identifier of the last module, the module reference sub-parameter of the click event is determined.

[0118] Optionally, when the tracking module is used to index forward module by module starting from the target node based on the unique identifier and the reference parameter, it is used to: starting from the target node, according to the unique identifier, the page reference sub-parameter and the module reference sub-parameter, index forward the previous page and the previous module of the target node and the intermediate module step by step until the page reference sub-parameter and the module reference sub-parameter are empty, and track all paths that can reach the target node.

[0119] Furthermore, the path tracking device of the present invention further includes an evaluation module, which is used to:

[0120] Starting from the target node, indexing forward module by module based on the unique identifier and the reference parameter, obtaining all target paths reaching the target node via the target module;

[0121] A preset statistic of the target path is calculated, and the importance of the target module to the target node is evaluated based on the preset statistic.

[0122] Optionally, the internal and external starting modules include at least one of the following: application embedded H5, application embedded Flutter, application external browser, third-party application interface and application own page.

[0123] It is understandable that the present invention can implement the relevant program modules in the apparatus of the above embodiments through a hardware processor. Moreover, the path tracking apparatus of the present invention utilizes the above program modules to implement the path tracking process of the above method embodiments. When used to implement the path tracking in the above method embodiments, the beneficial effects produced by the apparatus of the present invention are the same as those of the corresponding above method embodiments, and the above method embodiments can be referred to, and will not be repeated here.

[0124] As another aspect of the present invention, this embodiment provides an electronic device according to the above embodiments, and the electronic device includes a memory, a processor, and a program or instruction stored in the memory and executable on the processor. When the processor executes the program or instruction, the steps of the path tracking method described in the above embodiments are implemented.

[0125] Furthermore, the electronic device of the present invention may also include a communication interface and a bus. Figure 8 , which is a schematic diagram of the physical structure of the electronic device provided by the present invention, includes: at least one memory 801, at least one processor 802, a communication interface 803 and a bus 804.

[0126] Among them, the memory 801, the processor 802 and the communication interface 803 complete mutual communication through the bus 804, and the communication interface 803 is used for information transmission between the electronic device and the mobile terminal device; the memory 801 stores programs or instructions that can be run on the processor 802. When the processor 802 executes the program or instruction, the steps of the path tracking method described in the above embodiments are implemented.

[0127] It can be understood that the electronic device at least includes a memory 801, a processor 802, a communication interface 803 and a bus 804, and the memory 801, the processor 802 and the communication interface 803 form a communication connection with each other through the bus 804, and can complete mutual communication, such as the processor 802 reading the program instructions of the path tracking method from the memory 801. In addition, the communication interface 803 can also realize the communication connection between the electronic device and the mobile terminal device, and can complete the information transmission between them, such as realizing the reading of the application data of the mobile terminal device through the communication interface 803.

[0128] When the electronic device is running, the processor 802 calls the program instructions in the memory 801 to execute the methods provided by the above-mentioned method embodiments, for example, including: setting an application routing page, the internal and external starting modules jump to at least part of the intermediate modules in the application via the application routing page, and jump to the target node via the intermediate module; writing a unique identifier and reference parameters for the internal and external starting modules, the target node and the intermediate module, the reference parameters include a page reference sub-parameter and a module reference sub-parameter, the page reference sub-parameter is used to indicate the previous page of the internal and external starting module, the intermediate module or the target node, and the module reference sub-parameter is used to indicate the previous module of the internal and external starting module, the intermediate module or the target node; based on the unique identifier and the reference parameter, indexing forward module by module starting from the target node until indexing to the internal and external starting module, to achieve path tracking for the target node, etc.

[0129] The program instructions in the above-mentioned memory 801 can be implemented in the form of software functional units and can be stored in a computer-readable storage medium when sold or used as an independent product. Alternatively, all or part of the steps of implementing the above-mentioned method embodiments can be completed by hardware related to program instructions, and the above-mentioned program can be stored in a computer-readable storage medium. When the program is executed, the steps of the above-mentioned method embodiments are executed; and the above-mentioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory, ROM), random access memory (RandomAccess Memory, RAM), disk or optical disk and other media that can store program codes.

[0130] The present invention also provides a non-transitory computer-readable storage medium according to the above-mentioned embodiments, on which a program or instruction is stored. When the program or instruction is executed by a computer, the steps of the path tracing method described in the above-mentioned embodiments are implemented, for example, including: setting an application routing page, and the internal and external starting modules jump to at least part of the intermediate modules in the application via the application routing page, and jump to the target node via the intermediate module; writing a unique identifier and reference parameters for the internal and external starting modules, the target node and the intermediate module, the reference parameters including a page reference sub-parameter and a module reference sub-parameter, the reference parameters are used to indicate the previous page of the internal and external starting modules, the intermediate modules or the target node, and the module reference sub-parameter is used to indicate the previous module of the internal and external starting modules, the intermediate modules or the target node; based on the unique identifier and the reference parameters, indexing forward module by module starting from the target node until the internal and external starting modules are indexed, thereby implementing path tracing for the target node, etc.

[0131] As another aspect of the present invention, this embodiment further provides a computer program product according to the above embodiments, wherein the computer program product includes a computer program stored on a non-transitory computer-readable storage medium, wherein the computer program includes program instructions. When the program instructions are executed by a computer, the computer can execute the path tracing method provided by the above method embodiments, wherein the method, for example, includes: setting an application routing page, wherein the internal and external starting modules jump to at least part of the intermediate modules in the application via the application routing page, and jump to the target node via the intermediate module; writing a unique identifier and reference parameters for the internal and external starting modules, the target node, and the intermediate module, wherein the reference parameters include a page reference sub-parameter and a module reference sub-parameter, wherein the page reference sub-parameter is used to indicate the previous page and previous module of the internal and external starting modules, the intermediate modules, or the target node; based on the unique identifier, the module reference sub-parameter is used to indicate the reference parameters of the internal and external starting modules, the intermediate modules, or the target node, and indexing forward module by module starting from the target node until the internal and external starting modules are indexed to achieve path tracing for the target node.

[0132] The electronic device, non-transitory computer-readable storage medium and computer program product provided by the present invention, by executing the steps of the path tracing method described in the above embodiments, connects all modules outside the APP in series by setting the APP routing page, and connects the current module and the previous module in series by writing reference parameters, can perform path tracking more quickly and accurately, and can reduce maintenance difficulty and maintenance costs.

[0133] It is understandable that the embodiments of the apparatus, electronic device, and storage medium described above are merely illustrative, and the units described as separate components may or may not be physically separated, and may be located in one place, or may be distributed on different network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment. Those of ordinary skill in the art may understand and implement it without creative effort.

[0134] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as a USB flash drive, a mobile hard disk, a ROM, a RAM, a magnetic disk or an optical disk, etc., including a number of instructions to enable a computer device (such as a personal computer, a server, or a network device, etc.) to execute the methods described in the above method embodiments or some parts of the method embodiments.

[0135] In addition, it should be understood by those skilled in the art that, in the application documents of the present invention, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article 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, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the presence of other identical elements in the process, method, article or device including the element.

[0136] In the specification of the present invention, a large number of specific details are described. However, it should be understood that embodiments of the present invention can be practiced without these specific details. In some examples, known methods, structures and techniques are not shown in detail so as not to obscure the understanding of this specification. Similarly, it should be understood that in order to simplify the disclosure of the present invention and help understand one or more of the various inventive aspects, in the above description of exemplary embodiments of the present invention, various features of the present invention are sometimes grouped together into a single embodiment, figure or description thereof.

[0137] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A path tracing method, characterized in that: include: Setting an application routing page, wherein the internal and external starting modules jump to at least part of the intermediate modules in the application via the application routing page, and then jump to the target node via the intermediate modules; Writing unique identifiers and reference parameters for the internal and external starting modules, the target node, and the intermediate module, wherein the reference parameters include a page reference sub-parameter and a module reference sub-parameter, wherein the page reference sub-parameter is used to indicate the previous page of the internal and external starting module, the intermediate module, or the target node, and the module reference sub-parameter is used to indicate the previous module of the internal and external starting module, the intermediate module, or the target node; Based on the unique identifier and the reference parameter, the path tracking for the target node is realized by indexing forward module by module starting from the target node until the internal and external starting modules are indexed.

2. The path tracing method according to claim 1, characterized in that: The step of writing unique identifiers and reference parameters for the internal and external starting modules, the target node, and the intermediate module includes: By invading the page life cycle, the unique identifiers are respectively assigned to the internal and external starting modules, the target nodes and the intermediate modules in the life cycle process, and based on the unique identifiers, the reference parameters are automatically added to the pages and modules respectively involved in the internal and external starting modules, the intermediate modules and the target nodes through which the life cycle process passes.

3. The path tracking method according to claim 2, characterized in that: The automatically adding the reference parameters to the pages and modules involved in the internal and external starting modules, the intermediate modules and the target nodes respectively through which the life cycle process passes includes: Monitor the life cycle and obtain the start node and end node of the life cycle; At the start node, the embedding process is invaded, the reference parameter is generated by analyzing the life cycle and the embedding point of the previous page or the embedding point of the previous module, and the current page embedding point or the current module embedding point is constructed, and the reference parameter is added to the current page embedding point or the current module embedding point, and the current page embedding point or the current module embedding point after adding the reference parameter is added to the embedding point set; At the end node, the embedding point set of the current page is released.

4. The path tracing method according to claim 3, characterized in that: The generating of the reference parameter by analyzing the life cycle and the previous page embedding point or the previous module embedding point includes: Generate a record of page creation and page destruction during the life cycle, and when a click event on an element in the current page is obtained, generate a tracking point for the click event on the current page; Based on the records of page creation and page destruction, read the unique identifier of the current page, and based on the unique identifier of the current page, obtain the previous page of the current page, and determine the page reference sub-parameter of the click event according to the unique identifier of the previous page; Based on the embedding point of the click event, the last module of the previous page is obtained, and according to the unique identifier of the last module, the module reference sub-parameter of the click event is determined.

5. The path tracing method according to claim 4, characterized in that: The step of indexing forward module by module starting from the target node based on the unique identifier and the reference parameter includes: Starting from the target node, according to the unique identifier, the page reference sub-parameter and the module reference sub-parameter, the previous page and the previous module of the target node and the intermediate module are indexed forward step by step until the page reference sub-parameter and the module reference sub-parameter are empty, and all paths that can reach the target node are traced.

6. The path tracing method according to any one of claims 1 to 5, characterized in that: Also includes: Starting from the target node, indexing forward module by module based on the unique identifier and the reference parameter, obtaining all target paths reaching the target node via the target module; Calculate the preset statistics of the target path, and evaluate the importance of the target module to the target node based on the preset statistics; wherein the preset statistics are calculated for all paths passing through the target module in a preset statistical manner, and the preset statistical manner includes performing a weighted summation on all paths passing through the target module to obtain a weighted sum of all paths reaching the target via the target module.

7. The path tracing method according to any one of claims 1 to 5, characterized in that: The internal and external starting modules include at least one of the following: Application embedded H5, application embedded Flutter, application external browser, third-party application interface and application's own page.

8. A path tracking device, characterized in that: include: A routing module, used to set an application routing page, through which the internal and external starting modules jump to at least part of the intermediate modules in the application, and then jump to the target node through the intermediate modules; A writing module, used for writing unique identifiers and reference parameters for the internal and external starting modules, the target node and the intermediate module, wherein the reference parameters include a page reference sub-parameter and a module reference sub-parameter, wherein the page reference sub-parameter is used to indicate the previous page of the internal and external starting module, the intermediate module or the target node, and the module reference sub-parameter is used to indicate the previous module of the internal and external starting module, the intermediate module or the target node; A tracking module is used to index forward module by module starting from the target node based on the unique identifier and the reference parameter until the internal and external starting modules are indexed, so as to realize path tracking for the target node.

9. An electronic device comprising a memory, a processor, and a program or instruction stored in the memory and executable on the processor, characterized in that: When the processor executes the program or instruction, the steps of the path tracing method according to any one of claims 1 to 7 are implemented.

10. A non-transitory computer-readable storage medium having a program or instruction stored thereon, characterized in that: When the program or instruction is executed by a computer, the steps of the path tracing method according to any one of claims 1 to 7 are implemented.

Citation Information

Patent Citations

  • Product data pushing method, apparatus, computer device and storage medium

    CN109300012A

  • Event burying point collecting and reporting method and device

    CN110874307A