Data point burying method and device for page, equipment, medium and product
By pre-geting and storing data before the page is loaded and triggering events in the page life cycle, the problem of missing key information in the existing point buried technology is solved, the accuracy and completeness of data analysis is improved, and the page node information is ensured. Accuracy and consistency improve user experience and development efficiency.
Patent Information
- Application Number
- CN202411171890.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-26
- Publication Date
- 2024-11-29
AI Technical Summary
The existing buried point technology lacks key information when the page is loaded, opened, hidden and closed, affecting the accuracy and completeness of data analysis, resulting in inaccuracy in user behavior prediction and product optimization decisions.
After the processing of the pre-page of the page to be buried is completed, the page data is sent and stored to the local storage. When the pre-page is closed and the page to be buried is opened, the page data is obtained from the local storage to load the buried point, and the page life cycle is completed. trigger related events to ensure accurate and complete reporting of data.
By pre-acquisitioning page information and using local storage technology, dynamic setting and cross-page delivery of page names are realized, ensuring the consistency and accuracy of the buried point information of page loading, opening, hiding and closing nodes, and improving the reliability of data analysis Sex and user experience reduce network requests, speed up page loading, and improve development efficiency.
Smart Images

Figure CN119046096A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of data embedding, and in particular to a data embedding method, device, equipment, medium and product for pages. Background Art
[0002] The meaning of data collection is to assemble a series of data and then report it to the server. The server analyzes the user's behavior through these data collection, cleaning and other processing. Data collection is to bury marks in applications or websites to collect various behavioral data of users during use, such as clicks, slides, searches, etc. These data can be used to analyze user behavior, optimize product functions, improve user experience, and increase conversion rates. They are then used to further optimize products or provide data support for operations. They are an important means of data-driven product optimization and growth. Data collection is a data collection method used to track and record user behavior on websites or applications. The purpose of data collection is to understand user behavior patterns, preferences, and needs by collecting user interaction data, thereby optimizing product design, improving user experience, and guiding decision making.
[0003] The existing tracking technology has the following problems:
[0004] 1. If you perform page tracking after opening the page, the page loading tracking point is actually the same page name as the page opening tracking point.
[0005] 2. If you are tracking when opening a page, since you cannot know the specific content of the current page, in order to ensure the consistency of the page life cycle, the general solution is to add the page name after the link to facilitate the subsequent acquisition of information in other life cycles. However, the page name of this solution is hard-coded and cannot be strongly related to the current page content.
[0006] The lack of information on page loading, opening, hiding, and closing nodes will affect the accuracy and completeness of data analysis, thereby affecting subsequent user behavior predictions and product optimization decisions.
[0007] It can be seen that whether it is possible to provide an improved interactive technology for pages based on the deficiencies in the prior art has become a technical problem that needs to be solved urgently by those skilled in the art. Summary of the invention
[0008] Problems to be solved by the invention
[0009] The purpose of the present invention is to overcome the defects of the prior art and provide an improved data embedding method, device, equipment and medium for pages. The improved data embedding method, device, equipment and medium for pages provided by the present invention solve the technical problem of missing embedding information in traditional embedding technology and improve the accuracy and completeness of data analysis.
[0010] Methods for solving problems
[0011] A first aspect of the present invention relates to a data embedding method for a page, comprising the following steps:
[0012] A data sending step, after the processing of the preceding page of the page to be embedded is completed, sending the page data of the page to be embedded in response to the completion of the processing;
[0013] Data storage step: after receiving the page data of the page to be embedded, the front page stores the page data in the local storage;
[0014] In the step of loading the tracking point, the previous page is closed and the page to be tracked is opened. When the page to be tracked is loaded, the page data of the page to be tracked is obtained from the local storage to load the tracking point;
[0015] In the periodic tracking step, as the page to be tracked is loaded and rendered, the lifecycle tracking events of the page to be tracked are triggered.
[0016] Preferably, both the embedding page and the preceding page are H5 pages.
[0017] Preferably, the local storage is localStorage or sessionStorage.
[0018] Preferably, the page data includes a page name.
[0019] Preferably, the page to be embedded is also rendered based on the page data.
[0020] Preferably, the life cycle includes: opening, hiding, and closing.
[0021] A second aspect of the present invention relates to a data embedding device for a page, comprising:
[0022] A data sending module, used for sending page data of the page to be embedded in response to completion of processing of the preceding page of the page to be embedded, after the processing of the preceding page of the page to be embedded is completed;
[0023] A data storage module, used for the front page to store the page data of the page to be embedded in the local storage after receiving the page data of the page to be embedded;
[0024] The loading tracking module is used to close the previous page and open the page to be tracked. When the page to be tracked is loaded, the page data of the page to be tracked is obtained from the local storage to load the tracking;
[0025] The periodic tracking module is used to trigger the life cycle tracking events of the page to be tracked as the page to be tracked is loaded and rendered.
[0026] The third aspect of the present invention relates to a computer device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, and when the processor executes the computer program, the steps of the data embedding method of the first aspect are implemented.
[0027] The fourth aspect of the present invention relates to a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the data embedding method of the first aspect.
[0028] The fifth aspect of the present invention relates to a computer program product, including a computer program, which implements the steps of the data embedding method of the first aspect when the computer program is executed by a processor.
[0029] Effects of the Invention
[0030] The improved data point burying method provided by the present invention solves the technical problem of missing point burying information in the traditional point burying technology and improves the accuracy and completeness of data analysis. BRIEF DESCRIPTION OF THE DRAWINGS
[0031] Figure 1 This is a flowchart of the data embedding method according to the first embodiment of the present invention.
[0032] Figure 2 This is a structural diagram of a computer device according to a third embodiment of the present invention.
[0033] Figure 3 This is a flow chart of Example 1 of the present invention. DETAILED DESCRIPTION
[0034] Below, the data embedding method involved in the present invention is first described in detail.
[0035] Figure 1 FIG. 1 is a flow chart of a data embedding method according to a first embodiment of the present invention. Figure 1As shown, the specific process of the data embedding method is, firstly, a data sending step (step S100) is performed, after the processing of the preceding page of the page to be embedded is completed, the page data of the page to be embedded is sent in response to the completion of the processing. Then a data storage step (step S101) is performed, after the preceding page receives the page data of the page to be embedded, the preceding page stores the page data in the local storage. Then a loading embedding step (step S102) is performed, the preceding page is closed and the page to be embedded is opened, when the page to be embedded is loaded, the page data of the page to be embedded is obtained from the local storage, and the loading embedding is performed. Finally, a periodic embedding step (step S103) is performed, and as the page to be embedded is loaded and rendered, the life cycle embedding event of the page to be embedded is triggered.
[0036] Step S100 is explained. Specifically, the front page is opened, and a series of business operations are performed. After these operations are completed, the front page communicates with the server through the interface to inform the server that the business operations of the front page have been completed. After receiving the request for the front page, the server will perform corresponding processing and include the page data required by the page to be embedded in the response. Preferably, the page data includes information such as the page name, the unique identifier of the page, the content to be displayed on the page, the business meaning represented by the page, but is not limited to this, and may also include other data. Preferably, the front page and the page to be embedded are both H5 pages, but are not limited to this, and may also be other pages.
[0037] Step S101 is explained. Specifically, the page data is received by the front page and stored in the local storage. The local storage is preferably localStorage or sessionStorage. Specifically, the life cycle of localStorage is permanent, and the data in localStorage will not disappear after closing the page or browser. The life cycle of sessionStorage is only valid in the current session.
[0038] Step S102 is explained. Specifically, after the user completes the operation of the previous page, the user closes the previous page, and then opens the page to be buried. When the page to be buried is loaded, the data in the local storage is checked, and the page name and other information are obtained to open and load the page. For example, a piece of data containing the current page name, page unique identifier, business identifier, and page behavior (loaded) is assembled and reported to the server as the buried information. Through such behavior, the user's operation behavior and the source and destination of the data can be connected in series.
[0039] Step S103 is explained. Specifically, the page to be buried obtains data from local storage, and uses these data to render the page. As the page to be buried is loaded and rendered, the corresponding data of the page's life cycle buried point and the page behavior (open, load, display, hide, destroy) are accurate when reported to the server as buried point information. This information is obtained from local storage to ensure the accuracy of the data. Preferably, the rendering of the page to be buried is also based on the page data. Preferably, the life cycle includes: open, hide, and close.
[0040] It can be seen that the data point-burying method according to the first embodiment of the present invention solves the technical problem of the lack of point-burying information in the traditional point-burying technology, and improves the accuracy and completeness of data analysis. Specifically, before opening the page, the current page information is already known, so that the accurate page name can be obtained, and the page name can be dynamically set, so that the page names of the node loaded by the page and other nodes are consistent and accurate. By pre-acquiring page information and using local storage technology, the dynamic setting and cross-page transmission of page names are realized, solving the problem of inaccurate page names in traditional point-burying technology. It ensures the consistency and accuracy of the point-burying information of key nodes such as page loading, opening, hiding and closing, thereby improving the reliability of data analysis, optimizing user experience, and providing solid data support for product decisions. At the same time, the solution reduces network requests, speeds up page loading, improves development efficiency, and has good flexibility and scalability, supporting page interactions in complex business scenarios.
[0041] The following is a detailed introduction to the data embedding method of the first implementation method through an example.
[0042] Embodiment 1:
[0043] like Figure 3 As shown in the figure, the page to be embedded is page B, and the previous page is page A. Both page A and page B are H5 pages. Page A is opened and a series of business operations are performed. After these operations are completed, page A communicates with the server through the interface to inform the server that the business operation of page A has been completed. After receiving the request of page A, the server will perform corresponding processing and include the page data required by page B in the response. The page data is received by page A and stored in the local storage, which is localStorage. After completing the operation of page A, the user closes page A, and then opens page B. When page B is loaded, it checks the data in the local storage and obtains the page name to embed the page load. Page B obtains data from the local storage and uses this data to render the page. As page B is loaded and rendered, the page life cycle embedding event is triggered and carries accurate business information. The life cycle includes: opening, hiding, and closing.
[0044] The second embodiment of the present invention is a data embedding device for pages, including: a data sending module, which is used to send the page data of the page to be embedded in response to the completion of the processing of the preceding page of the page to be embedded; a data storage module, which is used for the preceding page to store the page data of the page to be embedded in the local storage after receiving the page data of the page to be embedded; a loading embedding module, which is used to close the preceding page and open the page to be embedded, and when the page to be embedded is loaded, obtain the page data of the page to be embedded from the local storage to load the embedding; a periodic embedding module, which is used to trigger the life cycle embedding event of the page to be embedded as the page to be embedded is loaded and rendered. The interactive device corresponds to the data embedding method of the first embodiment, so the various deformation methods in the first embodiment are also applicable to the second embodiment, which will not be repeated here.
[0045] As described above, the data burying device according to the second embodiment of the present invention solves the technical problem of missing burying information in the traditional burying technology and improves the accuracy and completeness of data analysis.
[0046] A third embodiment of the present invention provides a computer device, the internal structure diagram of which can be shown as follows: Figure 2 As shown. The computer device includes a processor, a memory, a network interface and a database connected via a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and computer program in the non-volatile storage medium. The network interface of the computer device is used to connect to an external device to exchange data with the external device. When the computer program is executed by the processor, it implements the data burial method involved in the first embodiment of the present invention.
[0047] Those skilled in the art will understand that Figure 2 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0048] The fourth embodiment of the present invention provides a computer-readable storage medium having a computer program stored thereon, and when a processor executes the computer program, the data embedding method involved in the first embodiment of the present invention is implemented.
[0049] The fifth embodiment of the present invention provides a computer program product, including a computer program, and when a processor executes the computer program, the data embedding method involved in the first embodiment of the present invention is implemented.
[0050] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
[0051] Industrial Applicability
[0052] The data embedding method, device, computer equipment, storage medium and computer program product involved in the present invention solve the technical problems of low efficiency, easy errors and high resource consumption of traditional manual text messages, reduce operating costs and improve customer experience.
[0053] While the present invention has been shown and described with reference to certain preferred embodiments thereof, it will be understood by those skilled in the art that various changes in form and details may be made therein without departing from the spirit and scope of the invention.
Claims
1. A data embedding method for a page, characterized in that: The following steps are involved: A data sending step, after the processing of the preceding page of the page to be embedded is completed, sending the page data of the page to be embedded in response to the completion of the processing; Data storage step: after receiving the page data of the page to be embedded, the front page stores the page data in the local storage; In the step of loading the tracking point, the previous page is closed and the page to be tracked is opened. When the page to be tracked is loaded, the page data of the page to be tracked is obtained from the local storage to load the tracking point; In the periodic tracking step, as the page to be tracked is loaded and rendered, the lifecycle tracking events of the page to be tracked are triggered.
2. The data embedding method according to claim 1, characterized in that: The embedding page and the front page are both H5 pages.
3. The data embedding method according to claim 2, characterized in that: Local storage is localStorage or sessionStorage.
4. The data embedding method according to claim 1, characterized in that: The page data includes the page name.
5. The data embedding method according to claim 1, characterized in that: The page to be embedded is also rendered based on the page data.
6. The data embedding method according to claim 1, characterized in that: The life cycle includes: open, hide, and close.
7. A data embedding device for a page, characterized in that: include: A data sending module, used for sending page data of the page to be embedded in response to completion of processing of the preceding page of the page to be embedded; A data storage module, used for the front page to store the page data of the page to be embedded in the local storage after receiving the page data of the page to be embedded; The loading tracking module is used to close the previous page and open the page to be tracked. When the page to be tracked is loaded, the page data of the page to be tracked is obtained from the local storage to load the tracking; The periodic tracking module is used to trigger the life cycle tracking events of the page to be tracked as the page to be tracked is loaded and rendered.
8. A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the data embedding method described in any one of claims 1 to 6 are implemented.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the data embedding method described in any one of claims 1 to 6 are implemented.
10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the data embedding method described in any one of claims 1 to 6 are implemented.
