A page analysis method and device
By establishing an access mapping table to record the relationship between access identifiers, timestamps, and page addresses, the problem of repeated timestamp uploads by terminals is solved, enabling more efficient data analysis and page optimization.
Patent Information
- Application Number
- CN202210995651.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-08-18
- Publication Date
- 2026-01-30
- Estimated Expiration
- 2042-08-18
AI Technical Summary
Existing technologies suffer from duplicate uploads when obtaining timestamps of page access operations via terminals, resulting in low efficiency in data analysis and page optimization.
By establishing an access mapping table, the mapping relationship between access identifier, timestamp, object identifier and page address is recorded. All timestamps are obtained using the access identifier, and the time taken for the access request is calculated.
It improves data analysis and page optimization efficiency, reduces duplicate timestamp uploads, and enhances the accuracy and reliability of time-consuming calculations.
Smart Images

Figure CN117009697B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of artificial intelligence technology, and in particular to a page analysis method and apparatus. Background Technology
[0002] With the development of computer networks, people's demands for network loading speed are constantly increasing. In some scenarios, it is necessary to perform data analysis based on page access operations, and optimize page design or the business capabilities carried by the page based on the analysis results.
[0003] Currently, when analyzing access operations on a page using customized data calculation and analysis methods provided by the terminal, the timestamp corresponding to the target time is obtained from the terminal. Since different target timestamps correspond to the same timestamp, the terminal needs to upload a large number of duplicate timestamps, which reduces data analysis efficiency and page optimization efficiency. Summary of the Invention
[0004] This application provides a page analysis method and related apparatus, which calculates the time consumption of the access request corresponding to the access identifier based on all timestamps corresponding to the access identifier, thereby improving data analysis efficiency and page optimization efficiency.
[0005] One aspect of this application provides a page analysis method, including:
[0006] Obtain the page analysis request, which carries the page address of the target page;
[0007] Based on the page analysis request, determine at least one timestamp corresponding to each access identifier from the access mapping table, wherein the access mapping table includes the mapping relationship between the access identifier, at least one timestamp, object identifier and page address;
[0008] Calculate the time consumption corresponding to each access identifier based on at least one timestamp corresponding to each access identifier;
[0009] The first page of analysis results is generated based on the time consumed for each access identifier.
[0010] Another aspect of this application provides a page analysis apparatus, comprising:
[0011] The page analysis request acquisition module is used to acquire page analysis requests, which carry the page address of the target page.
[0012] The timestamp generation module is used to determine at least one timestamp corresponding to each access identifier from the access mapping table based on the page analysis request. The access mapping table includes the access identifier, at least one timestamp, and the mapping relationship between the object identifier and the page address.
[0013] The time consumption calculation module is used to calculate the time consumption corresponding to each access identifier based on at least one timestamp corresponding to each access identifier;
[0014] The first page analysis result generation module is used to generate the first page analysis results based on the time consumption corresponding to each access identifier.
[0015] In another implementation of the embodiments of this application, the page analysis device further includes:
[0016] The access request receiving module is used to receive access requests sent by the terminal. The access request carries an object identifier and a page address, and the access request corresponds to a unique access identifier.
[0017] An access request execution module is used to execute an access request and obtain at least one timestamp corresponding to an access identifier. Executing an access request includes executing at least one step, and each step corresponds to a timestamp.
[0018] The access mapping table building module is used to construct an access mapping table by means of the mapping relationship between access identifier, at least one timestamp, object identifier and page address.
[0019] In another implementation of this application embodiment, the timestamp generation module includes:
[0020] The access timestamp generation submodule is used to generate the access timestamp corresponding to the access request based on the access request.
[0021] The timestamp submodule is used to generate a timestamp based on the access request and the page address.
[0022] The rendering timestamp submodule is used to start rendering the interface corresponding to the page address and generate a rendering timestamp when the page address is successfully called.
[0023] The first display timestamp submodule is used to generate the first display timestamp when the page rendering corresponding to the page address obtains the first display identifier.
[0024] In another implementation of this application's embodiments, the time consumption calculation module is further used for:
[0025] The request call time is calculated based on the access timestamp and the call timestamp.
[0026] The rendering time is calculated based on the access timestamp and the rendering timestamp.
[0027] The time taken to display the request is calculated based on the access timestamp and the first display timestamp.
[0028] The rendering time is calculated based on the call timestamp and the rendering timestamp.
[0029] The call and display time is calculated based on the call timestamp and the first display timestamp.
[0030] The rendering and display time is calculated based on the rendering timestamp and the first display timestamp.
[0031] The time corresponding to the access identifier is calculated based on the request call time, request rendering time, request display time, call rendering time, call display time, and rendering and display time.
[0032] In another implementation of this application's embodiments, the page analysis device further includes a data association module, used for:
[0033] In response to an access request, obtain the access behavior data corresponding to the access request;
[0034] Associate access behavior data with the access identifier corresponding to the access request.
[0035] In another implementation of this application's embodiments, the page analysis device further includes a routing information association module, used for:
[0036] Based on the page address carried in the access request, obtain the routing information corresponding to the page address;
[0037] Add the access identifier corresponding to the access request to the routing information corresponding to the page address.
[0038] In another implementation of this application embodiment, the page analysis device further includes a second page analysis result generation module, used for:
[0039] Based on the page analysis request, obtain the number of views in the first step and the number of valid views in the second step from the access mapping table of the target page;
[0040] The analysis results for the second page are generated based on the number of views in the first step and the number of valid views in the second step.
[0041] In another implementation of this application embodiment, the second page analysis result generation module is further used for:
[0042] Calculate the ratio of the number of views in the first step to the number of valid views in the second step based on the number of views in the first step and the number of valid views in the second step.
[0043] The analysis results for the second page are generated based on the ratio of the number of views in the first step to the number of valid views in the second step.
[0044] In another implementation of this application, the access mapping table further includes a mapping relationship between at least one step and an access identifier, and at least one timestamp; the time consumption calculation module is further used for:
[0045] Calculate the time taken for each pair of steps corresponding to each access identifier based on the timestamps of each pair of steps.
[0046] Calculate the time for each access identifier based on the average time of each pair of steps corresponding to each access identifier.
[0047] In another implementation of this application embodiment, the first page analysis result generation module is further used for:
[0048] Based on at least one timestamp corresponding to each access identifier, calculate the first average time consumption of all access identifiers within a preset time period;
[0049] The first page of analysis results is generated based on the first average value.
[0050] In another implementation of this application embodiment, the first page analysis result generation module is further used for:
[0051] Based on the object identifier corresponding to each access identifier, calculate the second average of the time spent by all access identifiers corresponding to the same object identifier;
[0052] The first page of analysis results is generated based on the second average value.
[0053] Another aspect of this application provides a computer device, comprising:
[0054] Memory, transceiver, processor, and bus system;
[0055] The memory is used to store programs;
[0056] The processor is used to execute programs in memory, including methods for performing the aspects mentioned above;
[0057] Bus systems are used to connect memory and processor to enable communication between them.
[0058] Another aspect of this application provides a computer-readable storage medium storing instructions that, when executed on a computer, cause the computer to perform the methods described above.
[0059] Another aspect of this application provides a computer program product or computer program including computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the computer device to perform the methods provided in the above aspects.
[0060] As can be seen from the above technical solutions, the embodiments of this application have the following advantages:
[0061] This application provides a page analysis method and related apparatus. The method includes: first, obtaining a page analysis request carrying the page address of the target page; next, determining at least one timestamp corresponding to each access identifier from an access mapping table according to the page analysis request, wherein the access mapping table includes a mapping relationship between access identifiers, at least one timestamp, object identifiers, and page addresses; then, calculating the time consumption corresponding to each access identifier based on the at least one timestamp corresponding to each access identifier; and finally, generating a first page analysis result based on the time consumption corresponding to each access identifier. The method provided by this application establishes a mapping relationship between access identifiers, timestamps, object identifiers, and page addresses through an access mapping table, thereby allowing the acquisition of all timestamps corresponding to the access identifier through the access identifier, and calculating the time consumption of the access request corresponding to the access identifier based on all timestamps, thus improving data analysis efficiency and page optimization efficiency. Attached Figure Description
[0062] Figure 1 A schematic diagram of the architecture of a page analysis system provided in a certain embodiment of this application;
[0063] Figure 2 A flowchart illustrating a page analysis method provided in one embodiment of this application;
[0064] Figure 3 A flowchart of a page analysis method provided in another embodiment of this application;
[0065] Figure 4 A flowchart of a page analysis method provided in another embodiment of this application;
[0066] Figure 5 A flowchart of a page analysis method provided in another embodiment of this application;
[0067] Figure 6 A flowchart of a page analysis method provided in another embodiment of this application;
[0068] Figure 7 A flowchart of a page analysis method provided in another embodiment of this application;
[0069] Figure 8 A flowchart of a page analysis method provided in another embodiment of this application;
[0070] Figure 9 A flowchart of a page analysis method provided in another embodiment of this application;
[0071] Figure 10 A flowchart of a page analysis method provided in another embodiment of this application;
[0072] Figure 11 A flowchart of a page analysis method provided in another embodiment of this application;
[0073] Figure 12 A flowchart illustrating a page analysis method provided in yet another embodiment of this application;
[0074] Figure 13 A flowchart illustrating a page analysis method for browser redirection to a shopping application, provided in one embodiment of this application;
[0075] Figure 14 A schematic diagram illustrating data transmission according to one embodiment of this application;
[0076] Figure 15 A flowchart illustrating a page analysis method for browser redirection to a shopping application, as provided in another embodiment of this application;
[0077] Figure 16 A flowchart illustrating a page analysis method for browser redirection to a shopping application, as provided in another embodiment of this application;
[0078] Figure 17 A flowchart illustrating a page analysis method for browser redirection to a shopping application, as provided in another embodiment of this application;
[0079] Figure 18 This is a schematic diagram of the structure of a page analysis device provided in one embodiment of this application;
[0080] Figure 19 This is a schematic diagram of the structure of a page analysis device provided in another embodiment of this application;
[0081] Figure 20 This is a schematic diagram of the structure of a page analysis device provided in another embodiment of this application;
[0082] Figure 21 This is a schematic diagram of the structure of a page analysis device provided in another embodiment of this application;
[0083] Figure 22 This is a schematic diagram of the structure of a page analysis device provided in another embodiment of this application;
[0084] Figure 23 A schematic diagram of the structure of a page analysis device provided in another embodiment of this application;
[0085] Figure 24 This is a schematic diagram of a server structure provided in one embodiment of this application. Detailed Implementation
[0086] This application provides a page analysis method and related apparatus. By establishing a mapping relationship between access identifiers, timestamps, object identifiers and page addresses through an access mapping table, the access identifier can be used to obtain all timestamps corresponding to the access identifier in the mapping relationship. The time consumption of the access request corresponding to the access identifier can be calculated based on all timestamps corresponding to the access identifier, thereby improving data analysis efficiency and page optimization efficiency.
[0087] The terms “first,” “second,” “third,” “fourth,” etc. (if present) in the specification, claims, and accompanying drawings of this application are used to distinguish similar objects and are not necessarily used to describe a particular order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of this application described herein can be implemented, for example, in orders other than those illustrated or described herein. Furthermore, the terms “comprising” and “corresponding to,” and any variations thereof, are intended to cover a non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.
[0088] The page analysis method provided in this application also relates to:
[0089] Artificial intelligence (AI) is the theory, methods, technology, and application systems that use digital computers or machines controlled by digital computers to simulate, extend, and expand human intelligence, perceive the environment, acquire knowledge, and use that knowledge to achieve optimal results. In other words, AI is a comprehensive technology within computer science that attempts to understand the essence of intelligence and produce a new kind of intelligent machine that can react in a way similar to human intelligence. AI studies the design principles and implementation methods of various intelligent machines, enabling them to possess the functions of perception, reasoning, and decision-making.
[0090] Artificial intelligence (AI) is a comprehensive discipline encompassing a wide range of fields, including both hardware and software technologies. Fundamental AI technologies generally include sensors, dedicated AI chips, cloud computing, distributed storage, big data processing, operating / interactive systems, and mechatronics. AI software technologies primarily include computer vision, speech processing, natural language processing, and machine learning / deep learning.
[0091] With the research and advancement of artificial intelligence (AI) technology, AI is being studied and applied in various fields, such as smart homes, smart wearable devices, virtual assistants, smart speakers, smart marketing, autonomous driving, drones, robots, smart healthcare, and smart customer service. It is believed that with the development of technology, AI will be applied in more fields and play an increasingly important role.
[0092] To facilitate understanding of the technical solutions provided in the embodiments of this application, some key terms used in the embodiments of this application will be explained below:
[0093] Page load time: The time required for a page to load and be fully displayed when accessed.
[0094] Timestamp: Data generated using digital signature technology to record the time when an event occurred.
[0095] Object identifier: also known as identity document (ID).
[0096] Routing information: Data information generated during the process of sending data from one network address to another.
[0097] Page views (PV): This is a common term in web page statistics, used as an important indicator to evaluate the quality of a website, a news article, or a media outlet.
[0098] Unique Visitors (UV): This is a commonly used term in web page statistics, and it is an important indicator for evaluating the quality of a website, a news article, or a media outlet.
[0099] User page access typically involves server operations including receiving page access requests, calling the page address based on the access request, rendering the page, and displaying page icons. To calculate page execution time, it is necessary to obtain the timestamp corresponding to each operation, calculate the time between every two operations using the timestamps of each operation, and then calculate the page execution time using the time between every two operations.
[0100] Currently, to calculate the time between any two operations, the terminal needs to upload the timestamps of each operation. For example: to calculate the time between receiving a page access request and calling a page address, the terminal needs to upload the timestamps corresponding to receiving the page access request and calling the page address; to calculate the time between receiving a page access request and page rendering, the terminal needs to upload the timestamps corresponding to receiving the page access request and page rendering; to calculate the time between receiving a page access request and the appearance of the page display indicator, the terminal needs to upload the timestamps corresponding to receiving the page access request and the appearance of the page display indicator; to calculate the time between calling a page address and page rendering, the terminal needs to upload the timestamps corresponding to calling the page address and page rendering; to calculate the time between calling a page address and the appearance of the page display indicator, the terminal needs to upload the timestamps corresponding to calling the page address and the appearance of the page display indicator; to calculate the time between page rendering and the appearance of the page display indicator, the terminal needs to upload the timestamps corresponding to page rendering and the appearance of the page display indicator. It is evident that the existing solution results in numerous duplicate timestamp uploads when calculating time, thereby reducing data analysis efficiency and consequently reducing page optimization efficiency.
[0101] This application provides a page analysis method and related apparatus that establishes a mapping relationship between access identifiers, timestamps, object identifiers and page addresses through an access mapping table. Then, all timestamps corresponding to the access identifier can be obtained through the access identifier, and the time consumption of the access request corresponding to the access identifier can be calculated based on all timestamps, thereby improving data analysis efficiency and page optimization efficiency.
[0102] For easier understanding, please refer to Figure 1 , Figure 1 This is a diagram illustrating the application environment of the page analysis method in this application embodiment, such as... Figure 1 As shown, the page analysis method in this embodiment is applied to a page analysis system. The page analysis system includes a server and terminal devices. The server can be an independent physical server, a server cluster or distributed system composed of multiple physical servers, or a cloud server providing basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, content delivery networks (CDNs), and big data and artificial intelligence platforms. The terminal can be a smartphone, tablet, laptop, desktop computer, smart speaker, smartwatch, etc., but is not limited to these. The terminal and server can be directly or indirectly connected via wired or wireless communication, which is not limited in this embodiment.
[0103] The server first obtains a page analysis request carrying the page address of the target page; then, based on the page analysis request, it determines at least one timestamp corresponding to each access identifier from the access mapping table, wherein the access mapping table includes the mapping relationship between the access identifier, at least one timestamp, object identifier and page address; then, based on the at least one timestamp corresponding to each access identifier, it calculates the time consumption corresponding to each access identifier; finally, based on the time consumption corresponding to each access identifier, it generates the first page analysis result.
[0104] The page analysis method used in this application will be described from the server's perspective below. Please refer to [link / reference]. Figure 2 The page analysis method provided in this application includes steps S110 to S140. Specifically:
[0105] S110, Obtain page analysis request.
[0106] The page analysis request carries the page address of the target page.
[0107] It should be noted that the page analysis request sent by the terminal is obtained. The page analysis request includes analysis of time consumption and analysis of effective browsing percentage, etc. This embodiment of the application will be used to illustrate the analysis of time consumption.
[0108] It is understandable that the page analysis request sent by the terminal, carrying the page address of the target page, is obtained in order to analyze the time taken to access the target page.
[0109] S120. Based on the page analysis request, determine at least one timestamp corresponding to each access identifier from the access mapping table.
[0110] The access mapping table includes an access identifier, at least one timestamp, and a mapping relationship between an object identifier and a page address.
[0111] It should be noted that the access mapping table is a record table that generates data when a user accesses a page address and performs corresponding operations based on the access request. The access identifier is a string generated by a random number algorithm when a user clicks on a page URL. Each user has a unique object identifier. Each access corresponds to a unique access identifier.
[0112] Understandably, if there is only an access operation, it corresponds to one timestamp; if an operation is performed based on an access request, each operation corresponds to one timestamp, meaning each access request corresponds to multiple timestamps. The access mapping table includes an access identifier, at least one timestamp, and the correspondence between the object identifier and the page address.
[0113] S130. Calculate the time consumption corresponding to each access identifier based on at least one timestamp corresponding to each access identifier.
[0114] It should be noted that the time taken for the access identifier is calculated using the timestamp corresponding to that access identifier.
[0115] It is understandable that if an access identifier corresponds to two timestamps, the time consumed by that access identifier can be the difference between the two timestamps; if an access identifier corresponds to at least two timestamps, the timestamps corresponding to that access identifier can be the average of the differences between any two timestamps; if an access identifier corresponds to one timestamp, the time consumed by that access identifier can be zero.
[0116] S140. Generate the first page analysis results based on the time consumption corresponding to each access identifier.
[0117] It should be noted that the analysis result of the first page refers to the time consumed calculated by the timestamp corresponding to each access identifier, and the time consumed is analyzed accordingly. The analysis methods include: calculating the average time consumed within a preset time period, calculating the proportion of time consumed within a preset time period that is higher than the preset time, calculating the average time consumed for the same object identifier within a preset time period, etc. This application embodiment does not impose any limitations here.
[0118] The method provided in this application establishes a mapping relationship between access identifiers, timestamps, object identifiers and page addresses through an access mapping table. Then, all timestamps corresponding to the access identifier can be obtained through the access identifier. The time consumption of the access request corresponding to the access identifier can be calculated based on all timestamps corresponding to the access identifier, which improves data analysis efficiency and page optimization efficiency.
[0119] In this application Figure 2 In one optional embodiment of the page analysis method provided in the corresponding implementation, please refer to... Figure 3 The page analysis method also includes steps S210 to S250. Specifically:
[0120] S210. Receive an access request sent by the terminal. The access request carries an object identifier and a page address. The access request corresponds to a unique access identifier.
[0121] Understandably, the server receives an access request from the terminal, generates an access identifier based on the request, and the access request carries the object identifier and the page address of the target page. When the user clicks on the URL of the target page, the terminal receives the click action, generates an access request, which carries the user's object identifier and the page address of the target page, and sends the access request to the server. The server receives the access request from the terminal and generates an access identifier based on the access request.
[0122] S230. Execute the access request and obtain at least one timestamp corresponding to the access identifier.
[0123] Executing an access request includes performing at least one operation, each operation corresponding to a timestamp.
[0124] It's understandable that from receiving an access request to displaying the target page, the server needs to perform at least one operation, generating a timestamp for each operation. These operations include: calling the page address, page rendering, and displaying the first display indicator. Each operation must begin only after the previous one has successfully completed. For example, after successfully calling the page address, page rendering begins; after successfully rendering, displaying the first display indicator begins; if calling the page address fails, page rendering will not be performed, and so on.
[0125] S250. Construct an access mapping table by mapping the access identifier, at least one timestamp, object identifier and page address.
[0126] It is understandable that each access, along with the access identifier, at least one timestamp, object identifier, and page address generated by each access, are associated and stored in the form of an access mapping table.
[0127] The method provided in this application generates a unique access identifier for each access behavior, thereby associating the timestamp of the operation corresponding to each access behavior with the user identifier and the page address, and then calculating the time consumption of the access request corresponding to the access identifier based on all the timestamps corresponding to the access identifier, thus improving the efficiency of data analysis.
[0128] In this application Figure 3 In one optional embodiment of the page analysis method provided in the corresponding implementation, please refer to... Figure 4 Step S210 is followed by step S220. Specifically:
[0129] S220. Generate the access timestamp corresponding to the access request based on the access request.
[0130] Step S230 includes sub-steps S2301 to S2303. Specifically:
[0131] S2301. Based on the access request, call the page address and generate a call timestamp.
[0132] S2302. When the page address is successfully invoked, the interface corresponding to the page address is rendered and a rendering timestamp is generated.
[0133] S2303. When the page rendering corresponding to the page address obtains the first display identifier, generate the first display timestamp.
[0134] For example, when an object or user clicks a page address, the server receives an access request corresponding to this click behavior sent by the terminal. The server generates an access identifier and access timestamp corresponding to the access request. Based on the access request, the server calls the page URL and generates a call timestamp corresponding to the called page URL. After the call is successful, the server starts rendering the page and generates a rendering timestamp corresponding to the page rendering. When the page renders the first display identifier, the server generates a first display timestamp corresponding to the first display identifier.
[0135] As shown in Table 1, taking the five visits to the target page URL by users A, B, and C as an example, when user A clicks on the target page URL, the server receives the access request corresponding to this click behavior sent by the terminal. The server generates an access identifier a1 and an access timestamp 22070611304230 corresponding to the access request. The server calls the page URL and generates a call timestamp 22070611304258 corresponding to the called page URL. Due to a call failure, the rendering operation is not performed after the call, that is, there is no rendering timestamp and the first display timestamp. User A clicks the URL of the target page again. The server receives the access request corresponding to this click behavior from the terminal. Based on the access request, the server generates an access identifier a2 and an access timestamp 22070611304542. The server calls the page URL and generates a call timestamp 22070611304544 for the called page URL. After the call is successful, the server starts rendering the page and generates a rendering timestamp 22070611304550 for the page rendering. When the page renders the first display identifier, it generates a first display timestamp 22070611304559 for the first display identifier. User B clicks on the URL of the target page. The server receives the access request corresponding to this click from the terminal. Based on the access request, the server generates an access identifier b1 and an access timestamp 22070613310634. The server calls the page URL, generating a call timestamp 22070613310639. After the call is successful, the server starts rendering the page, generating a rendering timestamp 22070613310650. Due to a rendering failure, the first display identifier is not rendered, i.e., there is no first display timestamp. User B clicks the URL of the target page again. The server receives the access request corresponding to this click behavior from the terminal. Based on the access request, the server generates an access identifier b2 and an access timestamp 22070613330204. The server calls the page URL and generates a call timestamp 22070613330209. After the call is successful, the server starts rendering the page and generates a rendering timestamp 22070613330212. When the page renders the first display identifier, it generates a first display timestamp 22070613330225.User C clicks on the URL of the target page. The server receives the access request corresponding to this click from the terminal. Based on the access request, the server generates an access identifier c1 and an access timestamp 22070616582835. The server calls the page URL, generating a call timestamp 22070616582840. After the call is successful, the server starts rendering the page, generating a rendering timestamp 22070616582843. When the page renders the first display identifier, the server generates a first display timestamp 22070616582850.
[0136] Table 1
[0137]
[0138] The method provided in this application generates a unique access identifier corresponding to each access behavior, thereby associating the timestamp of the page address, the timestamp of the page rendering, and the timestamp of the first display identifier corresponding to each access behavior with the user identifier and the page address. Then, the time consumption of the access request corresponding to the access identifier is calculated based on all the timestamps corresponding to the access identifier, which improves the efficiency of data analysis.
[0139] In this application Figure 4 In one optional embodiment of the page analysis method provided in the corresponding implementation, please refer to... Figure 5 Step S130 includes sub-steps S1301 to S1307. It should be noted that sub-steps S1301 to S1306 do not have a sequential execution relationship and can be executed simultaneously.
[0140] Specifically:
[0141] S1301. Calculate the request call time based on the access timestamp and the call timestamp.
[0142] S1302. Calculate the requested rendering time based on the access timestamp and rendering timestamp.
[0143] S1303. Calculate the time taken to display the request based on the access timestamp and the first display timestamp.
[0144] S1304. Calculate the rendering time based on the call timestamp and rendering timestamp.
[0145] S1305. Calculate the call and display time based on the call timestamp and the first display timestamp.
[0146] S1306. Calculate the rendering and display time based on the rendering timestamp and the first display timestamp.
[0147] S1307. Calculate the time corresponding to the access identifier based on the request call time, request rendering time, request display time, call rendering time, call display time, and rendering display time.
[0148] It is understandable that after calculating the time spent between each pair of operations corresponding to each access, the average time spent between each pair of operations corresponding to each access is used as the time spent corresponding to the access identifier.
[0149] Taking Table 1 as an example, the time taken for accessing identifier a1 can be calculated using the access timestamp and call timestamp corresponding to a1: 22070611304258-22070611304230=28ms.
[0150] The time consumed by accessing identifier a2 can be calculated from the access timestamp, call timestamp, rendering timestamp, and first display timestamp corresponding to a2. Specifically:
[0151] Based on the access timestamp and the call timestamp, the request call time was calculated as: 22070611304544 - 22070611304542 = 2ms;
[0152] Based on the access timestamp and rendering timestamp, the rendering time was calculated as: 22070611304550 - 22070611304542 = 8ms;
[0153] Based on the access timestamp and the first display timestamp, the time taken to display the request was calculated as: 22070611304559 - 22070611304542 = 17ms;
[0154] Based on the call timestamp and rendering timestamp, the rendering time was calculated as: 22070611304550 - 22070611304544 = 6ms;
[0155] Based on the call timestamp and the first display timestamp, the call and display time was calculated as: 22070611304559 - 22070611304544 = 15ms;
[0156] Based on the rendering timestamp and the first display timestamp, the rendering and display time is calculated as: 22070611304559 - 22070611304550 = 9ms;
[0157] Based on the request call time, request rendering time, request display time, call rendering time, call display time, and rendering display time, the time corresponding to the access identifier is calculated as: (2+8+17+6+15+9) / 6=9.5ms.
[0158] The method provided in this application calculates the time consumption corresponding to the access identifier by taking the request call time, request rendering time, request display time, call rendering time, call display time, and rendering display time, thereby improving the accuracy and reliability of time consumption calculation.
[0159] In this application Figure 3 In one optional embodiment of the page analysis method provided in the corresponding implementation, please refer to... Figure 6 Following step S210 are steps S240 to S260. Specifically:
[0160] S240. In response to the access request, obtain the access behavior data corresponding to the access request.
[0161] It should be noted that access behavior data refers to data generated by actions performed on the target page.
[0162] Understandably, in response to an access request, the server calls the page address of the target page carried in the access request, and renders and displays the target page on the terminal. The user performs corresponding operations on the target page, the terminal receives the user's access behavior data on the target page, sends the access behavior data to the server, and the server retrieves the access behavior data.
[0163] S260. Associate the access behavior data with the access identifier corresponding to the access request.
[0164] It is understandable that access behavior data is associated with access identifiers so that access behavior data can be determined based on the access identifiers.
[0165] For example, when a user clicks on the URL of a target page, the terminal receives the user's click action, generates an access request, and sends the access request to the server. The server receives the access request, responds to it, and calls the URL of the target page carried in the access request. The terminal then renders and displays the target page. When the user performs a corresponding operation on the target page, the terminal receives the user's operation and generates access behavior data for the target page. The server obtains the access behavior data and associates it with an access identifier. Specifically, when the target page is a product page on a shopping platform, the user clicks on the URL of the product page on the shopping platform. The terminal receives the user's click on the URL of the product page on the shopping platform, generates an access request, and sends the access request to the server. The server generates an access identifier based on the access request and calls the URL of the target page carried in the access request. The terminal begins rendering and displaying the product page on the shopping platform. The user clicks "Add to Cart" on the product page. The terminal receives the user's "Add to Cart" click action, generates access behavior data, and sends the access behavior data to the server. The server receives the access behavior data and associates it with an access identifier.
[0166] The method provided in this application, by associating access behavior data with access identifiers, facilitates the analysis of access behavior data corresponding to each access identifier, thereby improving the reliability of data analysis.
[0167] In this application Figure 3 In one optional embodiment of the page analysis method provided in the corresponding implementation, please refer to... Figure 7 Following step S230 are steps S231 to S232. Specifically:
[0168] S231. Obtain the routing information corresponding to the page address carried in the access request.
[0169] It should be noted that the routing information corresponding to the target page's address is obtained based on the logical schema corresponding to the target page's address.
[0170] S232. Add the access identifier corresponding to the access request to the routing information corresponding to the page address.
[0171] Understandably, the access identifier corresponding to the access request is added to the routing information corresponding to the page address in order to create a complete link.
[0172] The method provided in this application improves the stability of opening the target page by adding the access identifier corresponding to the access request to the routing information corresponding to the page address.
[0173] In this application Figure 2In one optional embodiment of the page analysis method provided in the corresponding implementation, please refer to... Figure 8 Following step S110 are steps S150 to S160. Specifically:
[0174] S150. Based on the page analysis request, obtain the number of views for the first operation and the number of valid views for the second operation from the access mapping table of the target page.
[0175] It should be noted that the page analysis request includes analyzing the time spent and the percentage of valid views. This embodiment of the application uses the analysis of the percentage of valid views as an example. The second operation is performed after the first operation is completed. The first number of views refers to the number of page views (PV), and the number of valid views refers to the number of unique IP visitors to the page (UV).
[0176] It is understandable that the first number of views for the first operation within a preset time period and the valid number of views for the second operation within the same preset time period are obtained from the access mapping table of the target page.
[0177] S160. Based on the number of views in the first operation and the number of valid views in the second operation, generate the analysis results for the second page.
[0178] The method provided in this application analyzes the page by using the first number of views and the number of valid views between operations, thereby improving data analysis efficiency and page optimization efficiency.
[0179] In this application Figure 8 In one optional embodiment of the page analysis method provided in the corresponding implementation, please refer to... Figure 9 Step S160 further includes sub-steps S1601 to S1602. Specifically:
[0180] S1601. Calculate the ratio of the number of views for the first operation to the number of valid views for the second operation based on the number of views for the first operation and the number of valid views for the second operation.
[0181] S1602. Based on the ratio of the number of views in the first operation to the number of valid views in the second operation, generate the analysis results for the second page.
[0182] Understandably, the value obtained by dividing the number of valid views in the second operation by the number of views in the first operation is the funnel value between the second and first operations, and the analysis results of the second page are generated based on the calculation results.
[0183] For example, based on the page analysis request, the first pageview count and effective pageview count corresponding to the received access request, the called page address, the interface rendering, and the rendered first display identifier are obtained from the access mapping table of the target page, as shown in Table 2. On July 6, 2022, the first pageview count corresponding to the received access request was 5000 and the effective pageview count was 4800; the first pageview count corresponding to the called page address was 4980 and the effective pageview count was 4790; the first pageview count corresponding to the interface rendering was 4960 and the effective pageview count was 4780; and the first pageview count corresponding to the rendered first display identifier was 4950 and the effective pageview count was 4760.
[0184] Table 2
[0185] time operate First page view count Valid pageviews 220706 Receive access request 5000 4800 220706 Call page address 4980 4790 220706 Interface rendering 4960 4780 220706 The first display identifier is obtained through rendering. 4950 4760
[0186] Based on the first number of views of the received access request and the valid number of views of the called page address, the funnel value between the received access request and the called page address is calculated to be 4790 / 5000; based on the first number of views of the received access request and the valid number of views of the interface rendering, the funnel value between the received access request and the interface rendering address is calculated to be 4780 / 5000; based on the first number of views of the received access request and the valid number of views of the rendered first display identifier, the funnel value between the received access request and the rendered first display identifier is calculated to be 4760 / 5000; based on the first number of views of the called page address and the valid number of views of the interface rendering, the funnel value between the called page address and the interface rendering is calculated to be 4780 / 4980; based on the first number of views of the called page address and the valid number of views of the rendered first display identifier, the funnel value between the called page address and the rendered first display identifier is calculated to be 4760 / 4980; based on the first number of views of the interface rendering and the valid number of views of the rendered first display identifier, the funnel value between the interface rendering and the rendered first display identifier is calculated to be 4760 / 4960.
[0187] The method provided in this application analyzes the page by calculating the ratio of the first number of views to the number of valid views between two operations, thereby improving data analysis efficiency and page optimization efficiency.
[0188] In this application Figure 2 In an optional embodiment of the page analysis method provided in the corresponding implementation, the access mapping table further includes a mapping relationship between at least one operation and an access identifier, and at least one timestamp; please refer to Figure 10 Step S130 includes sub-steps S1308 to S1309. Specifically:
[0189] S1308. Calculate the time consumption of each pair of operations corresponding to each access identifier based on the timestamp of each pair of operations corresponding to each access identifier.
[0190] S1309. Calculate the time consumption corresponding to each access identifier based on the average time consumption of each pair of operations corresponding to each access identifier.
[0191] It should be noted that the time taken for the access identifier is calculated using the timestamp corresponding to that access identifier.
[0192] It is understandable that if an access identifier corresponds to two timestamps, the time consumed by that access identifier can be the difference between the two timestamps; if an access identifier corresponds to at least two timestamps, the timestamps corresponding to that access identifier can be the average of the differences between any two timestamps.
[0193] The method provided in this application calculates the time taken for the access request corresponding to the access identifier based on all timestamps corresponding to the access identifier, thereby improving data analysis efficiency and page optimization efficiency.
[0194] In this application Figure 2 In one optional embodiment of the page analysis method provided in the corresponding implementation, please refer to... Figure 11 Step S140 includes sub-steps S1401 to S1403. Specifically:
[0195] S1401. Based on at least one timestamp corresponding to each access identifier, calculate the first average time consumption of all access identifiers within a preset time period.
[0196] S1403. Generate the analysis results for the first page based on the first average value.
[0197] It should be noted that the preset time period can be within one day, three days, or one week, and this application embodiment does not impose any restrictions.
[0198] Understandably, the process begins by calculating the time consumption for each access identifier based on its timestamp. Then, access identifiers that meet the preset time period are filtered out to obtain the time consumption for the access identifiers that meet the preset time period. Next, the average time consumption of the filtered access identifiers is calculated to obtain the first average value. Finally, the first page analysis results are generated based on the first average value.
[0199] For example, as shown in Table 3, the time consumption corresponding to each access identifier is first calculated based on the timestamp corresponding to the access identifier; then, the access behavior that occurred on July 6, 2022 is determined based on the access timestamp, and access identifiers a1, a2, b1, b2 and c1 are determined; next, the average time consumption of access identifiers a1, a2, b1, b2 and c1 is calculated, and the first average value is 13.434; finally, the first page analysis result is generated based on the first average value.
[0200] Table 3
[0201]
[0202]
[0203] The method provided in this application calculates the time taken for the access request corresponding to the access identifier based on all timestamps corresponding to the access identifier, and then analyzes the page based on the average time taken for all access identifiers within a preset time period, thereby improving page optimization efficiency.
[0204] In this application Figure 2 In one optional embodiment of the page analysis method provided in the corresponding implementation, please refer to... Figure 12 Step S140 includes sub-steps S1402 to S1404. Specifically:
[0205] S1402. Based on the object identifier corresponding to each access identifier, calculate the second average of the time consumption for all access identifiers corresponding to the same object identifier.
[0206] S1404. Based on the second average value, generate the analysis results for the first page.
[0207] Understandably, the process involves first calculating the time consumption for each access identifier based on the timestamp corresponding to the access identifier, then determining the time consumption for at least one access identifier corresponding to the same object identifier based on the object identifier, then calculating the average time consumption for all access identifiers corresponding to the same object identifier to obtain the second average time, and finally generating the first page analysis results based on the second average time.
[0208] For example, as shown in Table 4, the time consumption corresponding to each access identifier is first calculated based on the timestamp corresponding to the access identifier; then, the total time consumption corresponding to the same user is determined based on the user identifier; next, the average time consumption of all access identifiers corresponding to the same object identifier is calculated, and the second average time consumption of user A is 18.75, the second average time consumption of user B is 10.835, and the second average time consumption of user C is 8; finally, the analysis results of the first page are generated based on the second average time consumption of user A, user B, and user C.
[0209] Table 4
[0210]
[0211]
[0212] The method provided in this application calculates the average time consumption of the same object based on the object identifier, and then analyzes the page based on the average time consumption of the same object, thereby improving page optimization efficiency.
[0213] For ease of understanding, a page analysis method applied when a browser redirects to a shopping application is described below. This embodiment of the application is applied to a terminal device. The browser page includes the page address of a product page in the shopping application. When a user clicks this page address, they are redirected from the browser to the product page in the shopping application. The terminal device receives the user's click and generates an access request. This access request carries the user's object identifier and the page address of the product page in the shopping application. The terminal then sends this access request to the server. Please refer to [link to relevant documentation]. Figure 13 , Figure 13 The process by which the server handles this access request includes steps 10 through 19. Specifically:
[0214] Step 10: Receive the access request sent by the terminal.
[0215] The access request includes the user's object identifier and the page address of the product page in the shopping application.
[0216] It should be noted that the object identifier can be a user's identity serial number, and the page address of the product page in the shopping application can appear in the browser in the form of an advertisement.
[0217] Understandably, the server receives access requests from the terminal that carry the object identifier and page address.
[0218] Step 11: Generate the access timestamp corresponding to the access request based on the access request.
[0219] Understandably, the server generates an access timestamp based on the time the access request is received.
[0220] Step 12: Based on the access request, call the page address of the product page of the shopping application and generate a call timestamp.
[0221] Understandably, the server invokes the page address carried in the access request, and generates a timestamp based on the time the page address is invoked. If the page address of the product page in the shopping application fails to be invoked, no timestamp is generated.
[0222] Step 13: When the page address is successfully invoked, the product page of the shopping application begins to render, and a rendering timestamp is generated.
[0223] Understandably, if the page URL is successfully invoked, the product page of the shopping application begins rendering, and a rendering timestamp is generated based on the time when the product page rendering begins. If the product page rendering fails, no rendering timestamp is generated.
[0224] Step 14: When the page rendering corresponding to the page address obtains the first display identifier, generate the first display timestamp.
[0225] It should be noted that the first displayed identifier can be the first character.
[0226] Understandably, when the product page of a shopping application renders the first character, a first display timestamp is generated based on the time when the first character was rendered.
[0227] Step 15: Construct an access mapping table by mapping the access identifier, access timestamp, call timestamp, rendering timestamp, first display timestamp, object identifier, and page address.
[0228] Understandably, if a user successfully navigates from the browser to the product page of the shopping application, an access mapping table is established based on the corresponding access timestamp, invocation timestamp, rendering timestamp, first display timestamp, user object identifier, and the page address of the product page in the shopping application. The access mapping table stores at least one access identifier and its corresponding access timestamp, invocation timestamp, rendering timestamp, first display timestamp, object identifier, and page address.
[0229] Step 16: Obtain the routing information corresponding to the page address carried in the access request.
[0230] It is understandable that on an Android device, the jump from one application to a target application is accomplished through the target application's schema, along with the routing information following the schema.
[0231] Step 17: Add the access identifier corresponding to the access request to the routing information corresponding to the page address.
[0232] Understandably, to ensure the integrity of the link, it is necessary to add the access identifier corresponding to the access request to the routing information corresponding to the page address.
[0233] Step 18: In response to the access request, obtain the access behavior data corresponding to the access request.
[0234] Understandably, when a user clicks the "Add to Cart" icon on a product page in a shopping application, the terminal receives this access behavior, generates access behavior data, and sends the access behavior data to the server.
[0235] Step 19: Associate the access behavior data with the access identifier corresponding to the access request.
[0236] Understandably, to ensure the integrity of the link, it is necessary to associate access behavior data with the access identifier corresponding to the access request.
[0237] like Figure 14 As shown, all data in the browser and shopping application is uploaded to the server via the HTTP protocol.
[0238] It is understandable that if data in the browser is uploaded using a custom protocol within the browser, and data in the shopping application is uploaded using a custom protocol within the shopping application, unified data processing becomes impossible. This embodiment of the application addresses this by uploading all data from both the browser and the shopping application using the HTTP protocol, facilitating unified data processing by the server.
[0239] Please see Figure 15-17 , Figure 15-17 This describes the server's process for analyzing the page that redirects the browser to the shopping application, including steps 20 to 24. Specifically:
[0240] Step 20: Obtain the page analysis request from the browser that redirects to the shopping application.
[0241] Understandably, this involves obtaining a page analytics request, which is used to analyze browser redirects to the shopping application. The page analytics request carries the page address of the product page in the shopping application.
[0242] Step 21: Based on the page analysis request, determine the timestamp corresponding to each access identifier from the access mapping table.
[0243] The access mapping table includes the mapping relationship between access identifier, timestamp, object identifier and page address.
[0244] Understandably, based on the page address carried in the page analysis request, all access identifiers related to that page address are obtained from the access mapping table, and information such as the timestamp and object identifier corresponding to each access identifier is obtained through each access identifier.
[0245] Step 22: Calculate the time consumption for each access identifier based on the timestamp corresponding to each access identifier.
[0246] It is understandable that the time elapsed corresponding to the access identifier can be calculated using the timestamp corresponding to the access identifier. For details on the calculation method, please refer to steps 221 to 227.
[0247] Step 23: Generate the first page analysis results based on the time consumed for each access identifier.
[0248] Understandably, the first page analysis results are generated based on the time consumed corresponding to the access identifier. See steps 231 to 234 for the specific generation method.
[0249] Step 24: Based on the page analysis request, retrieve the number of views and valid views of the access operation, page address call operation, page rendering operation, and first display identifier operation from the access mapping table of the target page.
[0250] It is understandable that the number of views can be page views (PV), and the number of valid views can be unique visitors (UV). The page views and unique visitors are obtained from the access mapping table for access operations, page address calls, page rendering operations, and the first display identifier operation.
[0251] Step 25: Generate the second page analysis results based on the number of views and valid views of the access operation, page address call operation, page rendering operation, and first display identifier display operation.
[0252] Understandably, the process begins by calculating the ratio of the number of views for the first operation to the number of valid views for the second operation, based on the number of views for the first operation and the number of valid views for the second operation. Then, the analysis results for the second page are generated based on this ratio. Specifically: The ratio between the number of page views received and the number of unique IP visitors calling the page address is calculated; the ratio between the number of page views received and the number of unique IP visitors rendering the interface is calculated; the ratio between the number of page views received and the number of unique IP visitors rendering the first display identifier is calculated; the ratio between the number of page views received and the number of unique IP visitors rendering the interface is calculated; the ratio between the number of page views received and the number of unique IP visitors rendering the first display identifier is calculated; the ratio between the number of page views received and the number of unique IP visitors rendering the first display identifier is calculated; and the ratio between the number of page views received and the number of unique IP visitors rendering the first display identifier is calculated.
[0253] Step 22 further includes steps 221 to 227. Specifically:
[0254] Step 221: Calculate the request call time based on the access timestamp and the call timestamp.
[0255] Understandably, the request call time can be obtained by calculating the difference between the call timestamp and the access timestamp.
[0256] Step 222: Calculate the rendering time based on the access timestamp and rendering timestamp.
[0257] It is understandable that the rendering time is obtained by calculating the difference between the rendering timestamp and the access timestamp.
[0258] Step 223: Calculate the time taken to display the request based on the access timestamp and the first display timestamp.
[0259] Understandably, the time taken to display the request is obtained by calculating the difference between the first display timestamp and the access timestamp.
[0260] Step 224: Calculate the rendering time based on the call timestamp and rendering timestamp.
[0261] Understandably, the rendering time is obtained by calculating the difference between the rendering timestamp and the call timestamp.
[0262] Step 225: Calculate the call and display time based on the call timestamp and the first display timestamp.
[0263] Understandably, the time taken to display the message is obtained by calculating the difference between the first display timestamp and the call timestamp.
[0264] Step 226: Calculate the rendering and display time based on the rendering timestamp and the first display timestamp.
[0265] It is understandable that the rendering time is obtained by calculating the difference between the first display timestamp and the rendering timestamp.
[0266] Step 227: Calculate the time corresponding to the access identifier based on the request call time, request rendering time, request display time, call rendering time, call display time, and rendering display time.
[0267] It is understandable that the time consumption corresponding to the access identifier can be obtained by calculating the average of the request call time, request rendering time, request display time, call rendering time, call display time, and rendering display time.
[0268] Step 23 further includes steps 231 to 234. In practice, one can choose to execute steps 231 to 233 or steps 232 to 234. Specifically:
[0269] Step 231: Calculate the first average time consumption of all access identifiers within a preset time period based on the timestamp corresponding to each access identifier.
[0270] Step 233: Generate the first page of analysis results based on the first average value.
[0271] Understandably, the first page analysis results are generated by calculating the average time spent for all access identifiers within a preset time period.
[0272] Step 232: Based on the object identifier corresponding to each access identifier, calculate the second average of the time consumed by all access identifiers corresponding to the same object identifier.
[0273] Step 234: Generate the analysis results for the first page based on the second average value.
[0274] Understandably, the first page analysis results are generated by averaging the time taken for all access identifiers corresponding to the same object identifier.
[0275] The method provided in this application establishes a mapping relationship between access identifiers, timestamps, object identifiers and page addresses through an access mapping table. Then, all timestamps corresponding to the access identifier can be obtained through the access identifier. The time consumption of the access request corresponding to the access identifier can be calculated based on all timestamps corresponding to the access identifier, which improves data analysis efficiency and page optimization efficiency.
[0276] The page analysis device in this application is described in detail below. Please refer to [link / reference]. Figure 18 . Figure 18 This is a schematic diagram of one embodiment of the page analysis device 10 in this application. The page analysis device 10 includes:
[0277] The page analysis request acquisition module 110 is used to acquire page analysis requests, wherein the page analysis request carries the page address of the target page.
[0278] The timestamp generation module 120 is used to determine at least one timestamp corresponding to each access identifier from the access mapping table according to the page analysis request. The access mapping table includes the access identifier, at least one timestamp, and the mapping relationship between the object identifier and the page address.
[0279] The time consumption calculation module 130 is used to calculate the time consumption corresponding to each access identifier based on at least one timestamp corresponding to each access identifier.
[0280] The first page analysis result generation module 140 is used to generate the first page analysis result based on the time consumption corresponding to each access identifier.
[0281] The apparatus provided in this application establishes a mapping relationship between access identifiers, timestamps, object identifiers and page addresses through an access mapping table. Then, all timestamps corresponding to the access identifier can be obtained through the access identifier, and the time consumption of the access request corresponding to the access identifier can be calculated based on all timestamps corresponding to the access identifier, thereby improving data analysis efficiency and page optimization efficiency.
[0282] In this application Figure 18 In one optional embodiment of the page analysis device provided in the corresponding embodiment, please refer to Figure 19 The page analysis device 10 also includes:
[0283] The access request receiving module 210 is used to receive access requests sent by the terminal. The access request carries an object identifier and a page address, and the access request corresponds to a unique access identifier.
[0284] The access request execution module 230 is used to execute the access request and obtain at least one timestamp corresponding to the access identifier.
[0285] Executing an access request includes performing at least one step, each step corresponding to a timestamp.
[0286] Access mapping table construction module 250 is used to construct an access mapping table by means of the mapping relationship between access identifier, at least one timestamp, object identifier and page address.
[0287] The apparatus provided in this application generates a unique access identifier for each access behavior, thereby associating the timestamp of the operation corresponding to each access behavior with the user identifier and the page address, and then calculating the time consumption of the access request corresponding to the access identifier based on all the timestamps corresponding to the access identifier, thus improving the efficiency of data analysis.
[0288] In this application Figure 19 In one optional embodiment of the page analysis device provided in the corresponding embodiment, please refer to Figure 20 The timestamp generation module 120 includes:
[0289] The access timestamp generation submodule 1201 is used to generate the access timestamp corresponding to the access request based on the access request.
[0290] Call the timestamp submodule 1202, which is used to generate a call timestamp based on the page address in the access request.
[0291] The rendering timestamp submodule 1203 is used to start rendering the interface corresponding to the page address and generate a rendering timestamp when the page address is successfully called.
[0292] The first display timestamp submodule 1204 is used to generate the first display timestamp when the page rendering corresponding to the page address obtains the first display identifier.
[0293] The apparatus provided in this application generates a unique access identifier corresponding to each access behavior, thereby associating the timestamp of the page address being called, the timestamp of the page rendering, and the timestamp of the first display identifier being displayed with the user identifier and the page address for each access behavior. Then, the time consumption of the access request corresponding to the access identifier is calculated based on all the timestamps corresponding to the access identifier, which improves the efficiency of data analysis.
[0294] In this application Figure 20 In an optional embodiment of the page analysis device provided in the corresponding embodiment, the time consumption calculation module 130 is further used for:
[0295] The request call time is calculated based on the access timestamp and the call timestamp.
[0296] The rendering time is calculated based on the access timestamp and the rendering timestamp.
[0297] The time taken to display the request is calculated based on the access timestamp and the first display timestamp.
[0298] The rendering time is calculated based on the call timestamp and the rendering timestamp.
[0299] The call and display time is calculated based on the call timestamp and the first display timestamp.
[0300] The rendering and display time is calculated based on the rendering timestamp and the first display timestamp.
[0301] The time corresponding to the access identifier is calculated based on the request call time, request rendering time, request display time, call rendering time, call display time, and rendering and display time.
[0302] The apparatus provided in this application calculates the time consumption corresponding to the access identifier by using the request call time consumption, request rendering time consumption, request display time consumption, call rendering time consumption, call display time consumption, and rendering display time consumption, thereby improving the accuracy and reliability of time consumption calculation.
[0303] In this application Figure 19 In one optional embodiment of the page analysis device provided in the corresponding embodiment, please refer to Figure 21 The page analysis device 10 also includes a data association module 220, used for:
[0304] In response to an access request, obtain the access behavior data corresponding to the access request;
[0305] Associate access behavior data with the access identifier corresponding to the access request.
[0306] The apparatus provided in this application, by associating access behavior data with access identifiers, facilitates the analysis of access behavior data corresponding to each access identifier, thereby improving the reliability of data analysis.
[0307] In this application Figure 19 In one optional embodiment of the page analysis device provided in the corresponding embodiment, please refer to Figure 22 The page analysis device 10 also includes a routing information association module 240, used for:
[0308] Based on the page address carried in the access request, obtain the routing information corresponding to the page address;
[0309] Add the access identifier corresponding to the access request to the routing information corresponding to the page address.
[0310] The apparatus provided in this application improves the stability of opening the target page by adding the access identifier corresponding to the access request to the routing information corresponding to the page address.
[0311] In this application Figure 18 In one optional embodiment of the page analysis device provided in the corresponding embodiment, please refer to Figure 23 The page analysis device 10 also includes a second page analysis result generation module 150, used for:
[0312] Based on the page analysis request, obtain the number of views in the first step and the number of valid views in the second step from the access mapping table of the target page;
[0313] The analysis results for the second page are generated based on the number of views in the first step and the number of valid views in the second step.
[0314] The apparatus provided in this application analyzes the page by measuring the first number of views and the number of valid views between operations, thereby improving data analysis efficiency and page optimization efficiency.
[0315] In this application Figure 23 In an optional embodiment of the page analysis apparatus provided in the corresponding embodiment, the second page analysis result generation module 150 is further configured to:
[0316] Calculate the ratio of the number of views in the first step to the number of valid views in the second step based on the number of views in the first step and the number of valid views in the second step.
[0317] The analysis results for the second page are generated based on the ratio of the number of views in the first step to the number of valid views in the second step.
[0318] The apparatus provided in this application analyzes a page by calculating the ratio of the first number of views to the number of valid views between two operations, thereby improving data analysis efficiency and page optimization efficiency.
[0319] In this application Figure 18 In an optional embodiment of the page analysis apparatus provided in the corresponding embodiment, the access mapping table further includes a mapping relationship between at least one step and an access identifier, and at least one timestamp; the time consumption calculation module 130 is further used for:
[0320] Calculate the time taken for each pair of steps corresponding to each access identifier based on the timestamps of each pair of steps.
[0321] Calculate the time for each access identifier based on the average time of each pair of steps corresponding to each access identifier.
[0322] The apparatus provided in this application calculates the time taken for the access request corresponding to the access identifier based on all timestamps corresponding to the access identifier, thereby improving data analysis efficiency and page optimization efficiency.
[0323] In this application Figure 18 In an optional embodiment of the page analysis apparatus provided in the corresponding embodiment, the first page analysis result generation module 140 is further configured to:
[0324] Based on at least one timestamp corresponding to each access identifier, calculate the first average time consumption of all access identifiers within a preset time period;
[0325] The first page of analysis results is generated based on the first average value.
[0326] The apparatus provided in this application calculates the time taken for the access request corresponding to the access identifier based on all timestamps corresponding to the access identifier, and then analyzes the page based on the average time taken for all access identifiers within a preset time period, thereby improving page optimization efficiency.
[0327] In this application Figure 18 In an optional embodiment of the page analysis apparatus provided in the corresponding embodiment, the first page analysis result generation module 140 is further configured to:
[0328] Based on the object identifier corresponding to each access identifier, calculate the second average of the time spent by all access identifiers corresponding to the same object identifier;
[0329] The first page of analysis results is generated based on the second average value.
[0330] The apparatus provided in this application calculates the average time consumption of the same object based on the object identifier, and then analyzes the page based on the average time consumption of the same object, thereby improving page optimization efficiency.
[0331] Figure 24 This is a schematic diagram of a server structure provided in an embodiment of this application. The server 300 can vary significantly due to different configurations or performance. It may include one or more central processing units (CPUs) 322 (e.g., one or more processors) and memory 332, and one or more storage media 330 (e.g., one or more mass storage devices) for storing application programs 342 or data 344. The memory 332 and storage media 330 can be temporary or persistent storage. The program stored in the storage media 330 may include one or more modules (not shown in the diagram), each module may include a series of instruction operations on the server. Furthermore, the CPU 322 may be configured to communicate with the storage media 330 and execute the series of instruction operations stored in the storage media 330 on the server 300.
[0332] Server 300 may also include one or more power supplies 326, one or more wired or wireless network interfaces 350, one or more input / output interfaces 358, and / or one or more operating systems 341, such as Windows Server. TM Mac OS X TM Unix TM Linux TM FreeBSD TM etc.
[0333] The steps performed by the server in the above embodiments can be based on this Figure 24 The server structure shown.
[0334] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working processes of the systems, devices, and units described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be repeated here.
[0335] In the several embodiments provided in this application, it should be understood that the disclosed systems, apparatuses, and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces, or indirect coupling or communication connection between apparatuses or units, and may be electrical, mechanical, or other forms.
[0336] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.
[0337] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.
[0338] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or all or part of the 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 to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods of the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0339] The above embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit it. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of this application.
Claims
1. A method of page analysis, characterized by, The method comprises: obtaining a page analysis request, wherein the page analysis request carries a page address of a target page; determining, according to the page analysis request, at least one time stamp corresponding to each access identifier from an access mapping table, wherein the access mapping table comprises a mapping relationship between the access identifier, the at least one time stamp, an object identifier and the page address; calculating, according to the at least one time stamp corresponding to each access identifier, a time consumption corresponding to each access identifier; generating a first page analysis result according to the time consumption corresponding to each access identifier; The method further comprises: receiving an access request sent by a terminal, wherein the access request carries an object identifier and a page address, and the access request corresponds to a unique access identifier; generating an access time stamp corresponding to the access request according to the access request; executing the access request to obtain at least one time stamp corresponding to the access identifier, comprising: generating a calling time stamp by executing an operation of calling the page address according to the access request; generating a rendering time stamp by executing an operation of starting rendering of an interface corresponding to the page address when the calling of the page address is successful; and generating a first display time stamp by executing an operation of displaying a first display identifier when the page corresponding to the page address is successfully rendered; constructing the access mapping table through the mapping relationship between the access identifier, the at least one time stamp, the object identifier and the page address.
2. The page analysis method of claim 1, wherein, The calculation of the time consumption corresponding to each access identifier comprises: calculating a request calling time consumption according to the access time stamp and the calling time stamp; calculating a request rendering time consumption according to the access time stamp and the rendering time stamp; calculating a request display time consumption according to the access time stamp and the first display time stamp; calculating a calling rendering time consumption according to the calling time stamp and the rendering time stamp; calculating a calling display time consumption according to the calling time stamp and the first display time stamp; calculating a rendering display time consumption according to the rendering time stamp and the first display time stamp; calculating the time consumption corresponding to the access identifier according to the request calling time consumption, the request rendering time consumption, the request display time consumption, the calling rendering time consumption, the calling display time consumption and the rendering display time consumption.
3. The page analysis method of claim 1, wherein, After receiving the access request sent by the terminal, the method further comprises: obtaining access behavior data corresponding to the access request in response to the access request; associating the access behavior data with the access identifier corresponding to the access request.
4. The page analysis method of claim 1, wherein, After executing the access request, the method further comprises: obtaining routing information corresponding to the page address according to the page address carried by the access request; adding the access identifier corresponding to the access request to the routing information corresponding to the page address.
5. The page analysis method of claim 1, wherein, After obtaining the page analysis request, the method further comprises: obtaining a first operation browsing number and a second operation effective browsing number from the access mapping table of the target page according to the page analysis request; generating a second page analysis result according to the first operation browsing number and the second operation effective browsing number.
6. The page analysis method of claim 5, wherein, The second page analysis result is generated according to the browsing number of the first operation and the effective browsing number of the second operation, and the second page analysis result comprises: The ratio of the browsing number of the first operation to the effective browsing number of the second operation is calculated according to the browsing number of the first operation and the effective browsing number of the second operation; The second page analysis result is generated according to the ratio of the browsing number of the first operation to the effective browsing number of the second operation.
7. The page analysis method of claim 1, wherein, The access mapping table further comprises a mapping relationship between at least one operation and the access identifier and the at least one timestamp; The time consumption corresponding to each access identifier is calculated according to the at least one timestamp corresponding to each access identifier, and the time consumption corresponding to each access identifier comprises: The time consumption of the two-by-two operations corresponding to each access identifier is calculated according to the timestamps of the two-by-two operations corresponding to each access identifier; The time consumption corresponding to each access identifier is calculated according to the average value of the time consumption of the two-by-two operations corresponding to each access identifier.
8. The page analysis method of claim 1, wherein, The first page analysis result is generated according to the time consumption corresponding to each access identifier, and the first page analysis result comprises: The first average value of the time consumption corresponding to all access identifiers within a preset time period is calculated according to the at least one timestamp corresponding to each access identifier; The first page analysis result is generated according to the first average value.
9. The page analysis method of claim 1, wherein, The first page analysis result is generated according to the time consumption corresponding to each access identifier, and the first page analysis result comprises: The second average value of the time consumption corresponding to all access identifiers corresponding to the same object identifier is calculated according to the object identifier corresponding to each access identifier; The first page analysis result is generated according to the second average value.
10. A page analysis apparatus characterized by comprising: It comprises: A page analysis request acquisition module is configured to acquire a page analysis request, wherein the page analysis request carries a page address of a target page; A timestamp generation module is configured to determine at least one timestamp corresponding to each access identifier from an access mapping table according to the page analysis request, wherein the access mapping table comprises a mapping relationship between the access identifier, the at least one timestamp, an object identifier and the page address; A time consumption calculation module is configured to calculate the time consumption corresponding to each access identifier according to the at least one timestamp corresponding to each access identifier; A first page analysis result generation module is configured to generate a first page analysis result according to the time consumption corresponding to each access identifier; An access request receiving module is configured to receive an access request sent by a terminal, wherein the access request carries an object identifier and a page address, and the access request corresponds to a unique access identifier; An access request execution module is configured to execute the access request to obtain at least one timestamp corresponding to the access identifier; An access mapping table construction module is configured to construct the access mapping table through the mapping relationship between the access identifier, the at least one timestamp, the object identifier and the page address. The timestamp generation module comprises: An access timestamp generation submodule is configured to generate an access timestamp corresponding to the access request according to the access request. The calling timestamp submodule is configured to generate a calling timestamp by performing an operation of calling the page address according to the access request. The rendering timestamp submodule is configured to generate a rendering timestamp by performing an operation of starting rendering of an interface corresponding to the page address when the calling of the page address succeeds. The first display timestamp submodule is configured to generate a first display timestamp by performing an operation of displaying a first display identifier when rendering of a page corresponding to the page address succeeds.
11. The page analysis apparatus of claim 10, wherein, The time consumption calculation module is further configured to: calculate a request calling time consumption according to the access timestamp and the calling timestamp; calculate a request rendering time consumption according to the access timestamp and the rendering timestamp; calculate a request display time consumption according to the access timestamp and the first display timestamp; calculate a calling rendering time consumption according to the calling timestamp and the rendering timestamp; calculate a calling display time consumption according to the calling timestamp and the first display timestamp; calculate a rendering display time consumption according to the rendering timestamp and the first display timestamp; and calculate a time consumption corresponding to the access identifier according to the request calling time consumption, the request rendering time consumption, the request display time consumption, the calling rendering time consumption, the calling display time consumption and the rendering display time consumption.
12. The page analysis apparatus of claim 10, wherein, The page analysis apparatus further includes a data association module configured to: obtain access behavior data corresponding to the access request in response to the access request; and associate the access behavior data with the access identifier corresponding to the access request.
13. The page analysis apparatus of claim 10, wherein, The page analysis apparatus further includes a routing information association module configured to: obtain routing information corresponding to the page address according to the page address carried by the access request; and add the access identifier corresponding to the access request to the routing information corresponding to the page address.
14. The page analysis apparatus of claim 10, wherein, The page analysis apparatus further includes a second page analysis result generation module configured to: obtain a browse number of a first operation and an effective browse number of a second operation from the access mapping table of the target page according to the page analysis request; and generate a second page analysis result according to the browse number of the first operation and the effective browse number of the second operation.
15. The page analysis apparatus of claim 14, wherein, The second page analysis result generation module is further configured to: calculate a ratio of the browse number of the first operation to the effective browse number of the second operation according to the browse number of the first operation and the effective browse number of the second operation; and generate a second page analysis result according to the ratio of the browse number of the first operation to the effective browse number of the second operation.
16. The page analysis apparatus of claim 10, wherein, The access mapping table further includes a mapping relationship between at least one operation and the access identifier and at least one timestamp. The time consumption calculation module is further configured to: calculate a time consumption of each pair of operations corresponding to each access identifier according to timestamps of the each pair of operations corresponding to each access identifier; and calculate a time consumption corresponding to each access identifier according to an average value of time consumptions of each pair of operations corresponding to each access identifier.
17. The page analysis apparatus of claim 10, wherein, The first page analysis result generation module is further configured to: According to the at least one time stamp corresponding to each of the access identifiers, a first average value of time consumption corresponding to all of the access identifiers within a preset time period is calculated; According to the first average value, a first page analysis result is generated.
18. The page analysis apparatus of claim 10, wherein, The first page analysis result generation module is further configured to: According to the object identifier corresponding to each of the access identifiers, a second average value of time consumption corresponding to all of the access identifiers corresponding to a same object identifier is calculated; According to the second average value, a first page analysis result is generated.
19. A computer device, comprising: Comprise: a memory, a transceiver, a processor and a bus system; The memory is configured to store a program; The processor is configured to execute the program in the memory, including executing the page analysis method in any one of claims 1 to 9; The bus system is configured to connect the memory and the processor, so that the memory and the processor communicate.
20. A computer readable storage medium comprising instructions which, when executed on a computer, cause the computer to perform the page analysis method of any one of claims 1 to 9.
21. A computer program product comprising a computer program, characterized in that, The computer program is executed by the processor to perform the page analysis method of any one of claims 1 to 9.
Citation Information
Patent Citations
Page script loading method and page script loading device
CN103377064A
Page loading duration determination method and device, electronic equipment and storage medium
CN114896013A