Buried point information acquisition method and device, electronic equipment and storage medium
By setting control properties for controls and tracing the superior control step by step, the complex problem of point-buried path acquisition in multi-system environments is solved, efficient and accurate point-buried data acquisition is achieved, and code writing and maintenance is simplified.
Patent Information
- Application Number
- CN202510166817.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-02-14
- Publication Date
- 2025-06-03
AI Technical Summary
In a multi-system environment, the loading logic differences of page controls lead to complex acquisition of buried point paths. Traditional methods are prone to path data loss or errors, which increases the difficulty of obtaining the accuracy and completeness of buried point data.
By setting control properties for each control, including control labels, control types and preset parent nodes, distinguishing between the first control category and the second control category, and trace the superior control step by step when the click event occurs to obtain the buried point path information.
It realizes the effective acquisition of buried point path information in different system environments, improves the accuracy and completeness of buried point data, simplifies the writing process of buried point code, and reduces the difficulty of maintenance.
Smart Images

Figure CN120086119A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer data processing, and more particularly, to a method, apparatus, electronic device, and storage medium for obtaining buried point information. Background Art
[0002] In a diversified system environment, the application of the buried point technology faces a significant challenge: the loading logics of page controls in different environments are different, and the loading order and timing of the controls are also different, which makes it complicated to obtain the buried point path. Traditional buried point methods often rely on fixed page elements and loading order. Therefore, in a multi-system environment, it is easy to lose or error in path data, increasing the difficulty of obtaining the accuracy and integrity of the buried point data. Summary of the Invention
[0003] The present invention aims to overcome at least one defect of the above-mentioned prior art, and provides a method, apparatus, electronic device, and storage medium for obtaining buried point information, which can effectively obtain the buried point path information in different system environments.
[0004] According to a first aspect of the present application, there is provided a method for obtaining buried point information, the obtaining method comprising:
[0005] Setting control attributes for each control, the control attributes at least including a control label, a control type, and a preset parent node; the control type is divided into a first control category and a second control category; the preset parent node is the upper-level control of the control;
[0006] Obtaining a click event, and using the control corresponding to the click event as a clicked control;
[0007] Starting from the clicked control, according to the corresponding preset parent node, gradually obtaining the corresponding upper-level control until the control type of the obtained upper-level control is the first control category;
[0008] Using the upper-level control with the control type of the second control category as a node control, and using the upper-level control with the control type of the first control category as a target control;
[0009] Concatenating the control labels of each node control and the control label of the clicked control in the node hierarchy order to obtain a node path;
[0010] Using the control label of the target control and the node path as the buried point information corresponding to the clicked control, and reporting the buried point information and the click event.
[0011] Optionally, after concatenating the node path in the node hierarchy order, it further includes:
[0012] Associate and store the control label of the click control with the control label and the node path of the target control corresponding to the click control.
[0013] Optionally, the obtaining method further includes:
[0014] When obtaining a click event, query the stored node path according to the control corresponding to the click event;
[0015] If there is a matching node path, use the control label of the target control associated with the node path and the node path as the buried point information of the control corresponding to the click event.
[0016] Optionally, the obtaining method further includes:
[0017] When generating / jumping / to-switching to a new control with the control category of the first control category according to the click event, use the click control corresponding to the click event as the trigger control of the new control, and store the trigger control.
[0018] Optionally, before reporting the buried point information and the click event, it further includes:
[0019] Determine whether there is a trigger control for the click control corresponding to the click event;
[0020] If there is a trigger control, obtain the buried point information of the trigger control;
[0021] When reporting the buried point information and the click event, report the buried point information of the corresponding trigger control.
[0022] Optionally, before reporting the buried point information and the click event, it further includes:
[0023] Verify the click event and the buried point information according to a preset event-control mapping table.
[0024] Optionally, the event-control mapping table includes a number of preset events, and the event parameters, standard control labels, and standard node paths of each preset event;
[0025] The verification of the click event and the buried point information according to the preset event-control mapping table specifically includes:
[0026] Obtain the corresponding preset event in the event-control mapping table according to the click event;
[0027] Compare the event parameters of the click event with the event parameters of the corresponding preset event, and respectively compare the control label and node path in the embedding information with the standard control label and standard node path of the corresponding preset event;
[0028] If the event parameter comparison result is consistent, and the control label and node path in the tracking point information are consistent with the comparison result of the standard control label and standard node path of the preset event, the click event and the corresponding tracking point information are reported;
[0029] Otherwise, an error log is generated and reported.
[0030] According to a second aspect of the present application, a device for acquiring buried point information is provided, the device comprising:
[0031] A control property setting module, used to set control properties for each control, wherein the control properties at least include a control label, a control type and a preset parent node; the control type is divided into a first control category and a second control category; the preset parent node is the parent control of the control;
[0032] A click event acquisition module, used to acquire a click event and use the control corresponding to the click event as a click control;
[0033] A parent node acquisition module, used to take the click control as a starting point and, according to the corresponding preset parent node, gradually acquire the corresponding upper-level control until the control type of the acquired upper-level control is a first control category;
[0034] A node setting module, used for taking the upper-level control whose control type is the second control category as a node control, and taking the upper-level control whose control type is the first control category as a target control;
[0035] A target path acquisition module, used for concatenating the control label of each of the node controls and the control label of the click control in a node hierarchy order to obtain a node path;
[0036] The tracking point reporting module is used to use the control label and the node path of the target control as the tracking point information corresponding to the click control, and report the tracking point information and the click event.
[0037] According to a third aspect of the present application, an electronic device is provided, including a memory and a processor, wherein the memory stores computer-readable instructions, and the processor executes the computer-readable instructions to implement a method for acquiring burial point information as described in the first aspect above.
[0038] According to a fourth aspect of the present application, there is provided a computer storage medium having a computer-readable program stored thereon, and when the computer-readable program is executed, it implements a method for obtaining buried point information described in the first aspect above.
[0039] According to any one of the above aspects, a method, apparatus, electronic device, and storage medium for obtaining buried point information provided by the present application set control attributes including a control label, a control type, and a preset parent node in each control in advance; wherein, the control type is divided into a first control category and a second control category. By distinguishing the first control category and the second control category and tracing the superior control level by level when a click event occurs, the target control actually operated by the user, that is, the control of the first control category, can be accurately located; at the same time, by using the preset parent node in the control attributes, it is possible to quickly query and trace the superior control when a click event occurs, effectively improving the efficiency of obtaining buried point information; in addition, by presetting the control attributes, the process of writing buried point code is simplified, and it can be implemented in various different system environments, enabling the present application to effectively obtain buried point information in different system environments.
[0040] In addition, a method, apparatus, electronic device, and storage medium for obtaining buried point information provided by the present application report the buried point information together with the click event, which helps to monitor user behavior in real time and provides real-time and accurate data support for product operation, data analysis, etc.; moreover, the setting of the control attributes makes the control structure of the present application have good scalability. When the control structure changes, only the control attributes need to be adjusted to adapt to new requirements, reducing the maintenance difficulty.
[0041] Further, a method, apparatus, electronic device, and storage medium for obtaining buried point information provided by the present application, when a control generates / jumps / switches to a new control, sets the control before generation / jump / switch as the trigger control of the new control and stores it, enabling the present application to accurately obtain the information of the source control in various control scenarios and realizing consistent buried point in complex applications. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following will briefly introduce the drawings required for description in the embodiments. Obviously, the following drawings are only some embodiments of the present application. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative efforts.
[0043] Figure 1 It is a schematic diagram of the application scenario of the acquisition method provided in this embodiment.
[0044] Figure 2The step flow of the acquisition method provided in this embodiment Figure 1 。
[0045] Figure 3 The step flow of the acquisition method provided in this embodiment Figure 2 。
[0046] Figure 4 The step flow of the acquisition method provided in this embodiment Figure 3 。
[0047] Figure 5 The step flow of the acquisition method provided in this embodiment Figure 4 。
[0048] Figure 6 The step flow chart of the buried point information verification provided in this embodiment.
[0049] Figure 7 The device structure diagram of the acquisition device provided in this embodiment.
[0050] Figure 8 The device structure diagram of the electronic device provided in this embodiment.
[0051] Appendix annotation: Server 100, terminal 200, control attribute setting module 11, click event acquisition module 12, parent node acquisition module 13, node setting module 14, target path acquisition module 15, buried point reporting module 16, memory 21, processor 22, bus 23, communication interface 24. Detailed implementation manners
[0052] The attached drawings of this application are only for illustrative purposes and cannot be construed as a limitation to this application. To better illustrate the following embodiments, some components in the drawings will be omitted, enlarged or reduced, which do not represent the dimensions of the actual product; for those skilled in the art, it is understandable that some well-known structures and their descriptions in the drawings may be omitted.
[0053] In order to enable those skilled in the art to better understand the solution of this application, the technical solutions in the embodiments of this application will be clearly and completely described below with reference to the attached drawings in the embodiments of this application. Obviously, the described embodiments are only a part of the embodiments of this application, rather than all the embodiments. Based on the embodiments in this application, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of this application.
[0054] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0055] Example 1
[0056] With the rapid development of mobile Internet, the analysis of user behavior data in various mobile applications has become crucial. Through effective tracking and analysis of user behavior, companies can gain a deeper understanding of user usage habits, thereby optimizing product design, improving user experience, and making more accurate business decisions. As an important technology for recording user behavior events, the behavior analysis tracking system has been widely used.
[0057] However, in a diversified system environment, the application of tracking technology faces a significant challenge: the loading logic of page controls in different environments is different, and the control loading order and timing are different, which makes it complicated to obtain the tracking path. Traditional tracking methods often rely on fixed page elements and loading order. Therefore, in a multi-system environment, path data is prone to loss or errors, which increases the difficulty of obtaining the accuracy and completeness of tracking data.
[0058] This embodiment provides a technical solution that can solve the above-mentioned problem. The specific implementation methods of this application are described in detail below in conjunction with the accompanying drawings.
[0059] For example, Figure 1 As shown, it is a schematic diagram of an application scenario of a method for obtaining tracking point information provided in an embodiment of the present application, wherein the application scenario at least includes a server 100 and a terminal 200 that can communicate with the server 100, wherein the server 100 has an image processing function and can also have a data transmission function for video streams and audio streams; the terminal 200 has a streaming media playback function and can also have an image processing function.
[0060] It is understandable that the server 100 can be an independent electronic device or a cluster of multiple electronic devices; the terminal 200 can be a smart phone terminal, a personal computer, a tablet computer, a car terminal, etc., but is not limited thereto.
[0061] In an implementable manner, the server 100 and the terminal 200 can respectively execute a method for obtaining buried point information provided by an embodiment of the present application. Alternatively, optionally, a part of the method for obtaining buried point information provided by an embodiment of the present application is executed in the server 100, and a part is executed in the terminal 200.
[0062] As Figure 2 shown, this embodiment provides a method for obtaining buried point information, and the obtaining method may include:
[0063] S1: Set control attributes for each control. The control attributes at least include a control label, a control type, and a preset parent node. The control type is divided into a first control category and a second control category. The preset parent node is the upper-level control of the control.
[0064] In a specific implementation manner, the control label, the control type, and the preset parent node can be respectively set in the code field of the corresponding control through corresponding code texts, such as a layout file, etc. In this way, the specific control attributes can be directly obtained through the corresponding control.
[0065] In another specific implementation manner, a global instance object can be set for the control attributes. The control label, the control type, and the preset parent node are defined in this object. Then, in the corresponding control, the instance object of the control attributes is set, and the control label, the control type, and the preset parent node in this instance object are assigned values to implement the setting of the control attributes of the control.
[0066] It can be understood that the setting of the control attributes can also be performed in other corresponding ways according to its corresponding system environment, which will not be elaborated further here.
[0067] The setting of the control attributes can simplify the code writing process compared with the traditional method of setting buried point codes. At the same time, as described above, the setting of the control attributes enables adaptation settings in various different system environments.
[0068] In the control attributes, the control label is used to uniquely identify the corresponding control. Specifically, the control label can be set as the name of the control, or as a numerical label, or a special symbol label, or any combination of a name, a numerical label, and a special symbol label. By setting the control label, the corresponding control can be quickly and accurately matched.
[0069] In this embodiment, the control types are divided into the first control category and the second control category. Specifically, the first control category mainly includes controls of the page type, such as windows, paging, etc., and the second control category mainly includes clickable controls, such as various buttons and view cards, etc. It can be understood that in this embodiment, the controls of the first control category are containers or components for organizing and displaying content, which usually contain various controls of the second control category.
[0070] In this embodiment, the preset parent node can be set to the control label of the upper-level control corresponding to the control, so that when the corresponding control is obtained, the information of its upper-level control can be directly obtained according to the preset parent node. In one example, if a view A contains a button A, the preset parent node of the button A is set to the control label of the view A. When the button A is clicked and the button A is obtained through the corresponding click event, the information of the view A as its upper-level control can be directly obtained.
[0071] S2: Obtain the click event, and use the control corresponding to the click event as the clicked control;
[0072] Specifically, when the user clicks or touches a control on a certain application on their terminal device, the terminal device will generate a click event corresponding to the control. By intercepting the click event, the event parameters of the click event can be obtained. The event parameters include the specific business parameters of the click event, such as user information, event time, and terminal device information, etc.
[0073] After obtaining the click event, use the control corresponding to the click event as the clicked control that generates the click event.
[0074] In some embodiments, the click event can be intercepted and obtained through the aspect-oriented programming method, such as Hook and AOP, etc., and can be specifically set according to the system environment of the user's terminal device.
[0075] S3: Starting from the clicked control, according to the corresponding preset parent node, gradually obtain the corresponding upper-level controls until the control type of the obtained upper-level control is the first control category;
[0076] As described above, the buried point information includes the user's behavior path. By using the buried point information to track the user's behavior operations, it is reflected in the user interface as the specific control path of the clicked control; and the control path indicates the hierarchical relationship of each control reaching the clicked control in the user interface.
[0077] In this embodiment, since the preset parent node is set in the control attributes of each of the controls in advance, after the clicked control is obtained, the preset parent node of the clicked control can be used to query the preset parent node of the corresponding upper-level control step by step upward by traversing the "control tree" of the application program. As described above, the controls of the first control category mainly include page-type controls, which are containers or components for organizing and presenting content, and are usually the top-level controls of a section of control paths. Therefore, when the control type of the obtained upper-level control is the first control category, the acquisition ends.
[0078] Specifically, in a specific implementation manner of this embodiment, the preset parent node of the clicked control is obtained, and the upper-level control of the clicked control is queried according to the preset parent node. If the control type of the queried upper-level control is the first control category, the query ends; if the control type of the queried upper-level control is the second control category, the upper-level control of it is further obtained according to the preset parent node of the upper-level control, and then the control type of the obtained upper-level control is judged, and so on, until the control type of the obtained upper-level control is the first control category.
[0079] S4: Use the upper-level control with the control type of the second control category as the node control, and use the upper-level control with the control type of the first control category as the target control;
[0080] S5: Concatenate the control labels of each of the node controls and the control label of the clicked control in the node hierarchy order to obtain a node path;
[0081] In this embodiment, after each of the node controls is obtained, the node path can be automatically spliced according to its specific hierarchy order. This splicing process ensures that the full path information of the clicked control is completely recorded, enabling the system to accurately locate the position of the clicked control and reducing the workload of developers for manually maintaining buried points.
[0082] S6: Use the control label of the target control and the node path as the buried point information corresponding to the clicked control, and report the buried point information and the click event.
[0083] Specifically, in this embodiment, after the node path is concatenated in the node hierarchy order, the control label of the clicked control is associated and stored with the control label of the target control corresponding to the clicked control and the node path. Among them, the associated storage can be stored through a database or through a cache.
[0084] Through associated storage, a comparison table of target controls and corresponding node paths can be formed. Correspondingly, in some embodiments, such as Figure 3 shown, the obtaining method may further include:
[0085] A1: When a click event is obtained, according to the control corresponding to the click event, query the stored node path;
[0086] A2: If there is a matching node path, then use the control label of the target control associated with the node path and the node path as the buried point information of the control corresponding to the click event.
[0087] Generally, in the case of no user interface update, the hierarchical structure of the controls will not change significantly. Therefore, after the node path is spliced, by pre-associating and storing the control label of the target control corresponding to the clicked control and the node path; then when a click event is obtained, determine the corresponding clicked control, and query and match the clicked control with the pre-stored node path. Among them, since the node path is spliced by the node controls in hierarchical order, the clicked control can be queried and matched with the lowest-level node control in each of the stored node paths. If there is a matching node path (control node), then use the matching node path and the control label of its associated target control as the corresponding buried point information.
[0088] By associating and storing the node path and the control label of the target node, it can effectively avoid repeatedly traversing the entire "control tree", thereby effectively improving the efficiency of obtaining buried point information.
[0089] It can be understood that when the user interface changes, that is, the hierarchical structure of the controls changes, then according to the change situation, the stored node path and the control label of the target node will be cleared to ensure that the node path information can be updated in real time when the control position or state changes, and ensure the accuracy of data collection.
[0090] It can be understood that after the click event is generated, a response to the click event will be correspondingly generated; in the user interface, it is mainly reflected as a control that generates / jumps / switches to a new page type. Among them, when a control that generates / jumps / switches to a new page type is generated, it is usually necessary to correspondingly call a certain algorithm to implement the tracking of the controls of the source page type, which will cause the online controls and the new controls to not be well associated, and at the same time increase the overhead of computing resources.
[0091] Therefore, in this embodiment, such as Figure 4 shown, the obtaining method may further include:
[0092] B1: When generating / jumping to / switching to a new control with the control category of the first control category according to the click event, use the click control corresponding to the click event as the trigger control for the new control, and store the trigger control.
[0093] By using the source click control as the trigger control for the new first control category control before generation / jump / switch and storing it, it is possible to effectively obtain the source click control without additional computational resource consumption.
[0094] Furthermore, based on the setting of the trigger node, before reporting the buried point information and the click event, as Figure 5 shown, it may further include:
[0095] C1: Determine whether there is a trigger control for the click control corresponding to the click event;
[0096] C2: If there is a trigger control, obtain the buried point information of the trigger control;
[0097] C3: When reporting the buried point information and the click event, report the buried point information of the corresponding trigger control.
[0098] Specifically, in this embodiment, when there is a trigger control and the trigger control is obtained, the node path stored can be queried according to the trigger control to directly obtain the buried point information of the trigger control, and thus the association of buried point information across pages can be effectively realized, which is more conducive to the analysis of user behavior.
[0099] Furthermore, in order to improve the accuracy of obtaining buried point information data, in this embodiment, before reporting the buried point information and the click event, it may further include:
[0100] Verify the click event and the buried point information according to a preset event-control mapping table.
[0101] In this embodiment, the event-control mapping table includes several preset events, as well as the event parameters, standard control labels, and standard node paths of each preset event;
[0102] Then, verifying the click event and the buried point information according to the preset event-control mapping table, as Figure 6 shown, may specifically include:
[0103] D1: Obtain the corresponding preset event in the event-control mapping table according to the click event;
[0104] D2: Compare the event parameters of the click event with the event parameters of the corresponding preset event, and separately compare the control label and node path in the buried point information with the standard control label and standard node path of the corresponding preset event;
[0105] In this embodiment, the comparison can be implemented by setting corresponding parameter verification rules. Specifically, for example, set a specific error value range, and compare the event parameters in the click event with the time parameters of the preset event to determine whether the parameter difference meets the error value range, or set a corresponding regular expression and use the regular expression to compare and verify various parameters in the click event;
[0106] D3: If the event parameter comparison results are consistent, and the comparison results of the control label and node path in the buried point information with the standard control label and standard node path of the preset event are consistent, then report the click event and the corresponding buried point information;
[0107] D4: Otherwise, generate an error log and report it.
[0108] It is understandable that if it is detected that there is a conflict between the reported event parameters and the background configuration, it means that there is an abnormality in the buried point information or the corresponding click event. Then, according to the specific situation of the conflict, perform assertion processing, which can specifically include crashing / breaking the application; in the DEBUG environment, through assertions, developers can be forced to pay attention to the buried point abnormality;
[0109] In this embodiment, by pre-setting control attributes including control labels, control types, and preset parent nodes in each control; where the control types are divided into the first control category and the second control category. By distinguishing the first control category and the second control category and tracing the superior control level by level when a click event occurs, the target control actually operated by the user, that is, the control of the first control category, can be accurately located; at the same time, using the preset parent node in the control attribute can achieve a quick query and trace of the superior control when a click event occurs, effectively improving the efficiency of obtaining buried point information and reducing the workload of manual maintenance by developers; in addition, by presetting control attributes, the process of writing buried point code is simplified, and it can be implemented in various different system environments, enabling this application to effectively obtain buried point information in different system environments.
[0110] Furthermore, in this embodiment, by reporting the tracking point information together with the click event, it is helpful to monitor user behavior in real time and provide real-time and accurate data support for product operation, data analysis, etc.; and, the setting of control properties makes the control structure of this application have good scalability. When the control structure changes, it only needs to adjust the control properties to adapt to the new requirements, reducing the difficulty of maintenance.
[0111] In addition, in this embodiment, when a control is generated / jumped / switched to a new control, the control before the generation / jump / switch is set as the trigger control of the new control and stored, so that the application can accurately obtain the information of the source control in various control scenarios, and achieve consistent tracking in complex applications.
[0112] Based on the same inventive concept, this embodiment also provides a device for acquiring buried point information, such as Figure 7 As shown, the acquisition device may specifically include:
[0113] A control attribute setting module 11 is used to set control attributes for each control, wherein the control attributes at least include a control label, a control type, and a preset parent node; the control type is divided into a first control category and a second control category; the preset parent node is the parent control of the control;
[0114] In this embodiment, the control property setting module 11 can be used to execute Figure 2 As shown in step S1, for the specific description of the control property setting module 11, reference may be made to the description of step S1.
[0115] A click event acquisition module 12, used to acquire a click event and use the control corresponding to the click event as a click control;
[0116] In this embodiment, the click event acquisition module 12 can be used to execute Figure 2 As shown in step S2, for the specific description of the click event acquisition module 12, reference may be made to the description of step S2.
[0117] A parent node acquisition module 13 is used to take the click control as a starting point and, according to the corresponding preset parent node, gradually acquire the corresponding upper-level control until the control type of the acquired upper-level control is a first control category;
[0118] In this embodiment, the parent node acquisition module 13 can be used to execute Figure 2 As shown in step S3, for the specific description of the parent node acquisition module 13, reference may be made to the description of step S3.
[0119] A node setting module 14 is configured to use the parent control with the control type of the second control category as the node control, and use the parent control with the control type of the first control category as the target control;
[0120] In this embodiment, the node setting module 14 can be used to execute Figure 2 the step S4 shown. For the specific description of the node setting module 14, reference can be made to the description of the step S4.
[0121] A target path obtaining module 15 is configured to splice the control labels of the respective node controls and the control label of the click control in the node hierarchy order to obtain a node path;
[0122] In this embodiment, the target path obtaining module 15 can be used to execute Figure 2 the step S5 shown. For the specific description of the target path obtaining module 15, reference can be made to the description of the step S5.
[0123] A buried point reporting module 16 is configured to use the control label of the target control and the node path as the buried point information corresponding to the click control, and report the buried point information and the click event;
[0124] In this embodiment, the buried point reporting module 16 can be used to execute Figure 2 the step S6 shown. For the specific description of the buried point reporting module 16, reference can be made to the description of the step S6.
[0125] This embodiment further provides an electronic device, Figure 8 which shows the structural diagram of the electronic device of this embodiment, including a memory 21 and a processor 22. The memory 21 stores computer-readable instructions, and the processor 22 executes the computer-readable instructions to implement the method for obtaining buried point information of this embodiment.
[0126] Preferably, the electronic device further includes a bus 23 and a communication interface 24, and the processor 22, the communication interface 24, and the memory 21 are connected through the bus 23.
[0127] Among them, the memory 21 may include a high-speed random access memory (RAM), and may also include a non-volatile memory, such as at least one disk memory. The communication connection between the system network element and at least one other network element is realized through at least one communication interface 24 (which can be wired or wireless), and the Internet, wide area network, local area network, metropolitan area network, etc. can be used. The bus 23 can be an ISA bus, a PCI bus, an EISA bus, etc. The bus 23 can be divided into an address bus, a data bus, a control bus, etc. (not fully drawn in the figure).
[0128] The processor 22 can be an integrated circuit chip with signal processing capabilities. In a specific implementation process, the steps in the embodiments of the above method can be completed by the integrated logic circuit in the hardware of the processor 22 or instructions in software form. The above-mentioned processor 22 can be a general-purpose processor, including a central processing unit (CPU for short), a network processor (NP for short), etc.; it can also be a digital signal processor (DSP for short), an application specific integrated circuit (ASIC for short), a field-programmable gate array (FPGA for short), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, and can implement or execute the various methods, steps and logic block diagrams disclosed in the embodiments of the present invention. The general-purpose processor can be a microprocessor or the processor 22 can also be any conventional processor 22, etc. The steps of the method disclosed in combination with the embodiments of the present invention can be directly embodied as being executed and completed by a hardware decoding processor, or executed and completed by a combination of hardware and software modules in the decoding processor. The software module can be located in a mature storage medium in the art such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory, or an electrically erasable programmable memory, a register, etc. This storage medium is located in the memory 21, and the processor 22 reads the information in the memory 21 and combines its hardware to complete the steps of the method in the foregoing embodiments.
[0129] The embodiment of the present invention also provides a computer-readable storage medium. The computer-readable storage medium stores computer-executable instructions. When the computer-executable instructions are called and executed by the processor 22, the computer-executable instructions cause the processor 22 to implement the above-mentioned method for obtaining buried point information. For specific implementation, reference can be made to the embodiments, which will not be elaborated here.
[0130] When the above-mentioned functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or a part of this technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in various embodiments of the present invention. The aforementioned storage medium includes: various media that can store program codes, such as USB flash drives, mobile hard disks, read-only memories (ROM, Read-Only Memory), random access memories (RAM, Random Access Memory), magnetic disks, or optical discs.
[0131] Obviously, the above-mentioned embodiments of the present invention are merely examples for clearly illustrating the technical solution of the present invention, rather than limitations on the specific implementation manners of the present invention. Any modifications, equivalent replacements, and improvements made within the spirit and principle of the claims of the present invention shall be included in the protection scope of the claims of the present invention.
Claims
1. A method for acquiring buried point information, characterized in that: The acquisition method comprises: Setting control properties for each control, wherein the control properties at least include a control label, a control type, and a preset parent node; the control type is divided into a first control category and a second control category; the preset parent node is the parent control of the control; Get a click event, and use the control corresponding to the click event as a click control; Taking the click control as a starting point, and according to the corresponding preset parent node, gradually acquiring the corresponding upper-level control, until the control type of the acquired upper-level control is a first control category; Using the parent control whose control type is the second control category as a node control, and using the parent control whose control type is the first control category as a target control; Concatenate the control label of each of the node controls and the control label of the click control in a node hierarchy order to obtain a node path; The control label and the node path of the target control are used as the burying point information corresponding to the click control, and the burying point information and the click event are reported.
2. A method for acquiring buried point information according to claim 1, characterized in that: After the node path is obtained by splicing in the order of node levels, the method further includes: The control tag of the click control is associated with the control tag and the node path of the target control corresponding to the click control and stored.
3. A method for acquiring buried point information according to claim 2, characterized in that: The acquisition method further includes: When a click event is obtained, the stored node path is queried according to the control corresponding to the click event; If there is a matching node path, the control label of the target control associated with the node path and the node path are used as the tracking point information of the control corresponding to the click event.
4. The method for acquiring buried point information according to claim 1, characterized in that: The acquisition method further includes: When a new control whose control category is the first control category is generated / jumped / switched according to the click event, the click control corresponding to the click event is used as a trigger control of the new control, and the trigger control is stored.
5. A method for acquiring buried point information according to any one of claims 1 to 4, characterized in that: Before reporting the embedding information and the click event, the method further includes: Determine whether there is a trigger control for the click control corresponding to the click event; If there is a trigger control, obtain the tracking point information of the trigger control; When the burying point information and the click event are reported, the corresponding burying point information of the triggering control is reported.
6. A method for acquiring buried point information according to any one of claims 1 to 4, characterized in that: Before reporting the embedding information and the click event, the method further includes: According to the preset event control mapping table, the click event and the embedding point information are verified.
7. A method for acquiring buried point information according to claim 6, characterized in that: The event control mapping table includes a number of preset events, and event parameters, standard control labels and standard node paths of each of the preset events; The step of verifying the click event and the embedding information according to the preset event control mapping table specifically includes: Acquire the corresponding preset event in the event control mapping table according to the click event; Compare the event parameters of the click event with the event parameters of the corresponding preset event, and respectively compare the control label and node path in the embedding information with the standard control label and standard node path of the corresponding preset event; If the event parameter comparison result is consistent, and the control label and node path in the tracking point information are consistent with the comparison result of the standard control label and standard node path of the preset event, the click event and the corresponding tracking point information are reported; Otherwise, an error log is generated and reported.
8. A device for acquiring buried point information, characterized in that: The acquisition device comprises: A control property setting module, used to set control properties for each control, wherein the control properties at least include a control label, a control type and a preset parent node; the control type is divided into a first control category and a second control category; the preset parent node is the parent control of the control; A click event acquisition module, used to acquire a click event and use the control corresponding to the click event as a click control; A parent node acquisition module, used to take the click control as a starting point and, according to the corresponding preset parent node, gradually acquire the corresponding upper-level control until the control type of the acquired upper-level control is a first control category; A node setting module, used for taking the upper-level control whose control type is the second control category as a node control, and taking the upper-level control whose control type is the first control category as a target control; A target path acquisition module, used for concatenating the control label of each of the node controls and the control label of the click control in a node hierarchy order to obtain a node path; The tracking point reporting module is used to use the control label and the node path of the target control as the tracking point information corresponding to the click control, and report the tracking point information and the click event.
9. An electronic device, comprising a memory and a processor, characterized in that: The memory stores computer-readable instructions, and the processor executes the computer-readable instructions to implement a method for acquiring buried point information as described in any one of claims 1-7.
10. A computer storage medium, characterized in that: A computer-readable program is stored thereon, and when the computer-readable program is executed, a method for obtaining buried point information as described in any one of claims 1-7 is implemented.