A method and device for reporting buried points
Through react high-order components and JavaScript decoupling of buried point reporting logic and centralized configuration management, the existing buried point reporting problems are solved, and efficient and flexible buried point reporting and performance optimization are achieved.
Patent Information
- Application Number
- CN202010931334.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-09-07
- Publication Date
- 2025-01-14
- Estimated Expiration
- 2040-09-07
AI Technical Summary
The existing buried point reporting logic is scattered, maintenance is difficult, and strongly coupled with business logic, affecting performance and data quality, and cannot carry too much data, affecting the website loading speed.
Adopt the proxy features of react high-level components and the JavaScript decorator mode to decouple business logic and data reporting logic, observe exposure elements through IntersectionObserver, centrally configure and manage reporting keys and parameters, reduce business logic intrusion and improve performance.
Centralized management and decoupling of buried point reporting is realized, efficiency and flexibility are improved, maintenance difficulty and performance impact are reduced, and data quality and website loading speed are ensured.
Smart Images

Figure CN113742161B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, and in particular to a method and device for reporting buried points. Background Art
[0002] The common websites currently implemented include click tracking and exposure tracking, which are used to report data on page element clicks or exposures. Reporting usually requires parameters. Click tracking requires adding a unified identifier to the label of the reported click data, and then listening to the click of the element with this identifier to execute the relevant logic of click reporting; or adding the relevant logic of click reporting to the click response event that needs to report the click data. The exposure tracking requires adding an identifier to the element of the exposure reporting data, and observing the exposure timing of the element with the identifier through the page scrolling event. Once exposed, the relevant logic of exposure reporting is executed.
[0003] Tracking refers to collecting some information in a specific process in the application to track the status of application usage. Click reporting refers to collecting click events and reporting them to the reporting server. The reporting server analyzes website click hot spots based on the reported data to provide data support for product optimization. Exposure reporting refers to collecting exposure elements and reporting them to the reporting server. The reporting server analyzes website element exposure based on the reported data to provide data support for website section layout.
[0004] In the process of implementing the present invention, the inventors found that there are at least the following problems in the prior art:
[0005] The logic of tracking and execution reporting is scattered in various places in the system, which is not conducive to maintenance. When a tracking point fails to be correctly reported, it is difficult to troubleshoot. In addition, tracking and execution reporting are strongly coupled with business logic, invading business logic in large quantities. The quality of tracking and execution reporting varies, and it may affect the execution of business logic and cause online accidents. In addition, when reporting, click tracking points cannot carry too much data and cannot meet certain business scenarios. It will also increase the size of the website and affect the loading speed of the website. Summary of the invention
[0006] In view of this, an embodiment of the present invention provides a method and device for reporting buried points, which can solve the problems of low efficiency and poor flexibility of existing buried point reporting.
[0007] To achieve the above-mentioned purpose, according to one aspect of an embodiment of the present invention, a method for reporting a tracking point is provided, including capturing a target object and obtaining a proxy name of the target object; extracting a set of actual reporting names and reporting parameter names corresponding to the proxy name of the target object according to a reporting key mapping configuration; based on the set of reporting parameter names, obtaining a corresponding data item name according to a reporting parameter mapping configuration; then obtaining a corresponding numerical value of the data item name from a reporting data pool, and assembling it together with the corresponding reporting parameter name into a reporting parameter; calling an execution reporting method, passing in the actual reporting name and reporting parameters, and sending them to a reporting server.
[0008] Optionally include:
[0009] The target method is captured through the click event proxy method to obtain the click event proxy name; wherein the click event proxy name includes the name of the proxied component and the name of the proxied target method;
[0010] According to the reporting key mapping configuration, extract the actual click reporting name and reporting parameter name set corresponding to the click event proxy name;
[0011] Based on the reporting parameter name set, the corresponding data item name is obtained according to the reporting parameter mapping configuration; then the corresponding value of the data item name is obtained from the reporting data pool, and assembled together with the corresponding reporting parameter name into a reporting parameter;
[0012] Call the click reporting method, pass in the actual click reporting name and reporting parameters, and send them to the reporting server.
[0013] Optionally, before capturing the target method through the click event proxy method, include:
[0014] Use the javascript decorator mode to proxy the target method using the click event proxy method.
[0015] Optionally include:
[0016] Capture the target exposure element through the exposure element observer and obtain the exposure element proxy name; wherein the exposure element proxy name includes the name of the proxied component and the name of the proxied target exposure element;
[0017] According to the reporting key mapping configuration, extract the actual exposure reporting name and reporting parameter name set corresponding to the exposure element proxy name;
[0018] Based on the reporting parameter name set, the corresponding data item name is obtained according to the reporting parameter mapping configuration; then the corresponding value of the data item name is obtained from the reporting data pool, and assembled together with the corresponding reporting parameter name into a reporting parameter;
[0019] Call the exposure reporting method and pass in the actual exposure reporting name and reporting parameters to send to the reporting server.
[0020] Optionally, before capturing the target exposure element through the exposure element observer, include:
[0021] Obtain a target exposure element and add a proxy attribute; wherein the proxy attribute is defined as a combination of an identifier and an element name.
[0022] Optionally, before capturing the target object, include:
[0023] Acquire the reporting mapping data configuration from the configuration server; wherein the reporting mapping data configuration includes reporting key mapping configuration and reporting parameter mapping configuration.
[0024] In addition, the present invention also provides a buried point reporting device, including a data reporting component, which is used to capture the target object and obtain the target object proxy name; according to the reporting key mapping configuration, extract the actual reporting name and reporting parameter name set corresponding to the target object proxy name; based on the reporting parameter name set, obtain the corresponding data item name according to the reporting parameter mapping configuration; and then obtain the corresponding value of the data item name from the reporting data pool, and assemble it into a reporting parameter together with the corresponding reporting parameter name;
[0025] The execution reporting component is used to call the execution reporting method, pass in the actual reporting name and reporting parameters, and send them to the reporting server.
[0026] Optionally, it also includes:
[0027] The data reporting component is a react high-order component.
[0028] An embodiment of the above invention has the following advantages or beneficial effects: The purpose of the present invention is: The present invention utilizes the proxy characteristics of react high-order components, uses javascript decorators to make a small amount of business intrusion, decouples business logic and data reporting logic, so that business components do not need to care about the data reporting logic itself and reporting parameters, and focus more on the business itself. In addition, using IntersectionObserver as an exposure element observer eliminates the performance overhead caused by monitoring browser scrolling events, so that the website performs better in modern browsers. In addition, the present invention adopts centralized configuration management to report keys and reporting parameters, and realizes the technical effects of centralized maintenance, one-time maintenance, and long-term availability.
[0029] The further effects of the above-mentioned non-conventional optional manner will be described below in conjunction with the specific implementation manner. BRIEF DESCRIPTION OF THE DRAWINGS
[0030] The accompanying drawings are used to better understand the present invention and do not constitute an improper limitation of the present invention.
[0031] Figure 1 Schematic diagram of the main process of the method for reporting buried points according to an embodiment of the present invention;
[0032] Figure 2 is a schematic diagram of main modules of a buried point reporting device according to an embodiment of the present invention;
[0033] Figure 3 is a schematic diagram of a reporting key mapping configuration according to an embodiment of the present invention;
[0034] Figure 4 is a schematic diagram of a reporting parameter mapping configuration according to an embodiment of the present invention;
[0035] Figure 5 is an exemplary system architecture diagram to which embodiments of the present invention may be applied;
[0036] Figure 6 It is a schematic diagram of the structure of a computer system of a terminal device or a server suitable for implementing an embodiment of the present invention. DETAILED DESCRIPTION
[0037] The following is a description of exemplary embodiments of the present invention in conjunction with the accompanying drawings, including various details of the embodiments of the present invention to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications may be made to the embodiments described herein without departing from the scope and spirit of the present invention. Similarly, for clarity and conciseness, the description of well-known functions and structures is omitted in the following description.
[0038] Figure 1 FIG. 1 is a schematic diagram of the main process of a method for reporting a tracking point according to an embodiment of the present invention. Figure 1 As shown, the tracking point reporting method includes:
[0039] Step S101, capturing a target object and obtaining a proxy name of the target object.
[0040] In some embodiments, if the target is a click event report, the target method can be captured through the click event proxy method to obtain the click event proxy name, where the click event proxy name includes the proxy component name and the proxy target method name.
[0041] Preferably, the javascript decorator mode is adopted to proxy the target method using the click event proxy method. The javascript decorator is a part of javascript used to modify a class or method, which can act on a class or method to add additional functions to the class or method without destroying the original function.
[0042] If the target exposure element is reported, the target exposure element can be captured through the exposure element observer to obtain the exposure element proxy name. The exposure element proxy name includes the name of the proxied component and the name of the proxied target exposure element.
[0043] Preferably, before capturing the target exposure element through the exposure element observer, the target exposure element can be obtained and a proxy attribute can be added, wherein the proxy attribute is defined as a combination of an identifier and an element name.
[0044] Step S102: extracting the actual reporting name and reporting parameter name set corresponding to the target object proxy name according to the reporting key mapping configuration.
[0045] In some embodiments, if the target is a buried click event report, the actual click reporting name and reporting parameter name set corresponding to the click event agent name are extracted according to the reporting key mapping configuration.
[0046] It is worth noting that if the actual click reporting name and reporting parameter name set corresponding to the click event proxy name are not extracted according to the reporting key mapping configuration, it means that the reporting key mapping configuration is incorrect, and a warning log is printed, and the business target method is directly executed without executing subsequent processes.
[0047] If the target is a buried exposure element report, the actual exposure report name and the reporting parameter name set corresponding to the exposure element proxy name are extracted according to the reporting key mapping configuration.
[0048] It is worth noting that if the actual exposure reporting name and reporting parameter name set corresponding to the exposure element proxy name are not extracted according to the reporting key mapping configuration, it means that the reporting key mapping configuration is incorrect, a warning log is printed, and the subsequent process is no longer executed.
[0049] Step S103, based on the reporting parameter name set, obtain the corresponding data item name according to the reporting parameter mapping configuration; then obtain the corresponding value of the data item name from the reporting data pool, and assemble it into a reporting parameter together with the corresponding reporting parameter name.
[0050] In some embodiments, the reporting mapping data configuration may be obtained from a configuration server; wherein the reporting mapping data configuration includes a reporting key mapping configuration and a reporting parameter mapping configuration.
[0051] Step S104, calling the execution reporting method, passing in the actual reporting name and reporting parameters, and sending them to the reporting server.
[0052] In some embodiments, if the target is a click event report of a buried point, a click reporting method is called to pass in the actual click reporting name and reporting parameters to send to the reporting server.
[0053] If the target is to report the exposure element of the embedded point, call the execution exposure reporting method, pass in the actual exposure reporting name and reporting parameters, and send them to the reporting server.
[0054] Figure 2 is a schematic diagram of the main modules of the buried point reporting device according to an embodiment of the present invention, such as Figure 2 As shown, the tracking point reporting device includes a data reporting component and an execution reporting component. Among them, the data reporting component captures the target object and obtains the target object proxy name; according to the reporting key mapping configuration, the actual reporting name and reporting parameter name set corresponding to the target object proxy name are extracted; based on the reporting parameter name set, the corresponding data item name is obtained according to the reporting parameter mapping configuration; and then the corresponding value of the data item name is obtained from the reporting data pool, and assembled into a reporting parameter together with the corresponding reporting parameter name. The execution reporting component calls the execution reporting method, passes in the actual reporting name and reporting parameters, and sends them to the reporting server.
[0055] In some embodiments, the tracking point reporting device also includes a business component, and corresponding business components can be set according to different tracking point reporting business types, for example: a business component corresponding to execution click reporting, and a business component corresponding to execution exposure reporting.
[0056] Preferably, the business component includes business data and public data. Among them, business data is unique data set for different point-of-use reporting business types. Public data is required data shared by all point-of-use reporting businesses. Furthermore, in the business component, it is necessary to add proxy attributes to the elements of exposure reporting. The proxy attributes are defined as a combination of an identifier and an element name, for example, expReport_+element name.
[0057] Preferably, the present invention can set multiple data reporting components, and the data reporting components are react high-order components. The react high-order component exposes the data reporting component itself and the click event proxy method. The private function of the react high-order component is to expose the element observer, which holds the elements with the proxy name in the proxy business component, and is implemented using H5 apiIntersectionObser ver, where the elements whose proxy names start with a preset identifier (such as expReport_) are observed.
[0058] In addition, each data reporting component is provided with a reporting data pool, which includes data items of business data and public data. At the same time, the data reporting component can process both click event reporting (i.e., through the click event proxy method) and exposure reporting (i.e., through the exposure element observer).
[0059] Among them, react refers to a function that accepts a component as a parameter and returns a new component. The higher-order component is a function, not a component.
[0060] As some other embodiments, if the click point reporting service is executed, that is, the target element of the service component is clicked, the specific implementation process includes:
[0061] Before executing the business target method, the data reporting component captures the target method through the click event proxy method, and obtains the click event proxy name in the click event proxy method. Among them, the click event proxy name includes the name of the component being proxied and the name of the target method being proxied. Then, according to the reporting key mapping configuration, the actual click reporting name and the reporting parameter name set corresponding to the click event proxy name are extracted. Based on the reporting parameter name set, the corresponding data item name is obtained according to the reporting parameter mapping configuration. Then, the corresponding value of the data item name is obtained from the reporting data pool, and assembled into a reporting parameter together with the corresponding reporting parameter name. Call the execution click reporting method in the execution reporting component, pass in the actual click reporting name and reporting parameters, and send them to the reporting server. Finally, execute the business target method.
[0062] As some other embodiments, if the exposure tracking point reporting service is executed, that is, the target element of the service component appears in the viewport, the specific implementation process includes:
[0063] The data reporting component captures the target exposure element through the exposure element observer, and obtains the exposure element proxy name in the exposure element observer. The exposure element proxy name includes the name of the proxied component and the name of the proxied target exposure element. According to the reporting key mapping configuration, the actual exposure reporting name and the reporting parameter name set corresponding to the exposure element proxy name are extracted. Based on the reporting parameter name set, the corresponding data item name is obtained according to the reporting parameter mapping configuration; then the corresponding value of the data item name is obtained from the reporting data pool, and assembled into a reporting parameter together with the corresponding reporting parameter name. Finally, the execution exposure reporting method in the execution reporting component is called, and the actual exposure reporting name and reporting parameters are passed in to send to the reporting server.
[0064] As some further embodiments, before executing the tracking point reporting, it is necessary to initialize the tracking point reporting device, and the specific implementation process includes:
[0065] Each business component of the client obtains the required business data and public data from the business server, and the business component holds the corresponding business data and public data when initialized.
[0066] The client's reporting mapping data configuration can be obtained from the configuration server, including reporting key mapping configuration and reporting parameter mapping configuration. Among them, the reporting key mapping configuration maintains these two parts of data, such as Figure 3 As shown in the figure, the mapping relationship between the click event proxy name and the actual click report name and the report parameter name set, as well as the mapping relationship between the exposure element proxy name and the actual exposure report name and the report parameter name set. The report parameter mapping configuration maintains the mapping relationship between the report parameter name and the data item name obtained from the business server, such as Figure 4 As shown in the figure, the data item name includes the business data item name and the public data item name.
[0067] It should be noted that the burial point reporting method and the burial point reporting device described in the present invention have a corresponding relationship in terms of specific implementation contents, so the repeated contents will not be described again.
[0068] In summary, the present invention creatively proposes to use react high-order components and utilize click event agents to implement click reporting, while realizing exposure reporting in the agent component. Thus, the present invention can centrally manage the buried data, and there is only one entry for reporting, which can facilitate troubleshooting when the report fails. The buried data, execution reporting and business logic are decoupled, and only a small amount of intrusion into the business logic is required. Buried data and reporting will not affect the execution of business logic. At the same time, the buried data method of abandoning tags will no longer affect the size and loading speed of the website.
[0069] Figure 5An exemplary system architecture 500 is shown in which a method or device for reporting a buried point, a buried point reporting determination or a device for reporting a buried point can be applied according to an embodiment of the present invention.
[0070] like Figure 5 As shown, system architecture 500 may include terminal devices 501, 502, 503, a network 504 and a server 505. Network 504 is used to provide a medium for communication links between terminal devices 501, 502, 503 and server 505. Network 504 may include various connection types, such as wired, wireless communication links or optical fiber cables, etc.
[0071] Users can use terminal devices 501, 502, 503 to interact with server 505 through network 504 to receive or send messages, etc. Various communication client applications can be installed on terminal devices 501, 502, 503, such as shopping applications, web browser applications, search applications, instant messaging tools, email clients, social platform software, etc. (only as examples).
[0072] Terminal devices 501, 502, 503 can be various electronic devices that have a buried point reporting screen or a buried point reporting identification screen and support web browsing, including but not limited to smart phones, tablet computers, laptop computers, desktop computers, etc.
[0073] The server 505 may be a server that provides various services, such as a backend management server (only an example) that provides support for shopping websites browsed by users using the terminal devices 501, 502, and 503. The backend management server may analyze and process the received data such as product information query requests, and feed back the processing results (such as target push information, product information - only an example) to the terminal device.
[0074] It should be noted that the method for reporting a buried point or the method for distinguishing a buried point provided in the embodiments of the present invention is generally executed by the server 505 , and accordingly, the computing device is generally arranged in the server 505 .
[0075] It should be understood that Figure 5 The number of terminal devices, networks and servers in the embodiment is only for illustration. Any number of terminal devices, networks and servers may be provided according to implementation requirements.
[0076] Reference below Figure 6 , which shows a schematic diagram of the structure of a computer system 600 of a terminal device suitable for implementing an embodiment of the present invention. Figure 6 The terminal device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.
[0077] like Figure 6As shown, the computer system 600 includes a central processing unit (CPU) 601, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 602 or a program loaded from a storage part 608 into a random access memory (RAM) 603. In the RAM 603, various programs and data required for the operation of the computer system 600 are also stored. The CPU 601, the ROM 602, and the RAM 603 are connected to each other via a bus 604. An input / output (I / O) interface 605 is also connected to the bus 604.
[0078] The following components are connected to the I / O interface 605: an input section 806 including a keyboard, a mouse, etc.; an output section 607 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker; a storage section 608 including a hard disk, etc.; and a communication section 609 including a network interface card such as a LAN card, a modem, etc. The communication section 609 performs communication processing via a network such as the Internet. A drive 810 is also connected to the I / O interface 605 as needed. A removable medium 611, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 610 as needed, so that a computer program read therefrom is installed into the storage section 608 as needed.
[0079] In particular, according to the embodiments disclosed in the present invention, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present invention include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 609, and / or installed from the removable medium 611. When the computer program is executed by the central processing unit (CPU) 601, the above-mentioned functions defined in the system of the present invention are executed.
[0080] It should be noted that the computer-readable medium shown in the present invention may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present invention, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device. In the present invention, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. This propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than computer-readable storage media, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, optical cable, RF, etc., or any suitable combination of the above.
[0081] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present invention. In this regard, each box in the flow chart or block diagram can represent a module, a program segment, or a part of a code, and the above-mentioned module, program segment, or a part of a code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flow chart, and the combination of the boxes in the block diagram or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0082] The modules involved in the embodiments of the present invention may be implemented by software or hardware. The modules described may also be set in a processor, for example, it may be described as: a processor includes a data reporting component and an execution reporting component. The names of these modules do not, in some cases, constitute limitations on the modules themselves.
[0083] As another aspect, the present invention also provides a computer-readable medium, which may be included in the device described in the above embodiment; or it may exist independently without being assembled into the device. The above computer-readable medium carries one or more programs. When the above one or more programs are executed by a device, the device includes capturing the target object and obtaining the target object proxy name; extracting the actual reporting name and reporting parameter name set corresponding to the target object proxy name according to the reporting key mapping configuration; based on the reporting parameter name set, obtaining the corresponding data item name according to the reporting parameter mapping configuration; then obtaining the corresponding value of the data item name from the reporting data pool, and assembling it into a reporting parameter together with the corresponding reporting parameter name; calling the execution reporting method, passing in the actual reporting name and reporting parameter, and sending them to the reporting server.
[0084] The technical solution according to the embodiment of the present invention can solve the problems of low efficiency and poor flexibility of existing tracking point reporting.
[0085] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may occur depending on design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. A method for reporting a buried point, characterized in that: include: Capture the target object and obtain the target object proxy name; According to the reporting key mapping configuration, extract the actual reporting name and reporting parameter name set corresponding to the target object proxy name; Based on the reporting parameter name set, the corresponding data item name is obtained according to the reporting parameter mapping configuration, and the data item name includes a business data item name and a public data item name; then the corresponding value of the data item name is obtained from the reporting data pool, and assembled into a reporting parameter together with the corresponding reporting parameter name; Call the execution reporting method, pass in the actual reporting name and reporting parameters, and send them to the reporting server.
2. The method according to claim 1, characterized in that include: The target method is captured through the click event proxy method to obtain the click event proxy name; wherein the click event proxy name includes the name of the proxied component and the name of the proxied target method; According to the reporting key mapping configuration, extract the actual click reporting name and reporting parameter name set corresponding to the click event proxy name; Based on the reporting parameter name set, the corresponding data item name is obtained according to the reporting parameter mapping configuration; then the corresponding value of the data item name is obtained from the reporting data pool, and assembled together with the corresponding reporting parameter name into a reporting parameter; Call the click reporting method, pass in the actual click reporting name and reporting parameters, and send them to the reporting server.
3. The method according to claim 2, characterized in that Before capturing the target method through the click event proxy method, include: Use the javascript decorator mode to proxy the target method using the click event proxy method.
4. The method according to claim 1, characterized in that: include: Capture the target exposure element through the exposure element observer and obtain the exposure element proxy name; wherein the exposure element proxy name includes the name of the proxied component and the name of the proxied target exposure element; According to the reporting key mapping configuration, extract the actual exposure reporting name and reporting parameter name set corresponding to the exposure element proxy name; Based on the reporting parameter name set, the corresponding data item name is obtained according to the reporting parameter mapping configuration; then the corresponding value of the data item name is obtained from the reporting data pool, and assembled together with the corresponding reporting parameter name into a reporting parameter; Call the exposure reporting method and pass in the actual exposure reporting name and reporting parameters to send to the reporting server.
5. The method according to claim 4, characterized in that Before capturing the target exposure element through the exposure element observer, including: Obtain a target exposure element and add a proxy attribute; wherein the proxy attribute is defined as a combination of an identifier and an element name.
6. The method according to any one of claims 1 to 5, characterized in that: Before capturing the target object, include: Acquire the reporting mapping data configuration from the configuration server; wherein the reporting mapping data configuration includes reporting key mapping configuration and reporting parameter mapping configuration.
7. A buried point reporting device, characterized in that: include: Data reporting component, used to capture the target object and obtain the target object proxy name; According to the reporting key mapping configuration, extract the actual reporting name and reporting parameter name set corresponding to the target object proxy name; based on the reporting parameter name set, obtain the corresponding data item name according to the reporting parameter mapping configuration, the data item name includes the business data item name and the public data item name; then obtain the corresponding value of the data item name from the reporting data pool, and assemble it into a reporting parameter together with the corresponding reporting parameter name; The execution reporting component is used to call the execution reporting method, pass in the actual reporting name and reporting parameters, and send them to the reporting server.
8. The device according to claim 7, characterized in that Also includes: The data reporting component is a react high-order component.
9. An electronic device, characterized in that: include: one or more processors; a storage device for storing one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1 to 6.
10. A computer readable medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method according to any one of claims 1 to 6 is implemented.
Citation Information
Patent Citations
A third-party buried point identifier generation method and equipment based on data standardization
CN109597949A
Buried point reporting method and device, medium and electronic device
CN110489180A