Page data analysis methods and apparatus, computer storage media, electronic devices

By triggering a built-in script during page loading, the target user is identified and the target script is loaded, solving the problem of page analysis where there are no errors but data delivery is abnormal, and achieving efficient page content analysis.

CN116150532BActive Publication Date: 2026-04-03GUANGZHOU BOGUAN TELECOMM TECH LTD
View PDF 1 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-10-20
Publication Date
2026-04-03

AI Technical Summary

Technical Problem

Existing technologies cannot effectively analyze pages that do not report errors but have abnormal data delivery, resulting in the inability to capture and analyze page data anomalies.

Method used

By triggering a built-in script during page loading, the system obtains current user information, identifies the target user, loads the target script, and performs page content analysis, including generating verification parameters, obtaining dynamic scripts and a list of target users, thereby enabling analysis of the target page.

Benefits of technology

It improves the targeting and efficiency of page content analysis, solves the analysis problem when there are no errors but the data is delivered abnormally, and realizes the capture and analysis of pages with abnormal data delivery.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116150532B_ABST
    Figure CN116150532B_ABST
Patent Text Reader

Abstract

This disclosure provides a page data analysis method and apparatus, a computer storage medium, and an electronic device. The method includes: responding to an access operation to a current page, loading the content of the current page, and triggering a built-in script during the loading process of the current page content; responding to feedback on the current page content, obtaining the current user located on the current page through the built-in script, and determining whether the current user is a target user based on the user information of the current user; when the current user is determined to be a target user, obtaining and loading a target script corresponding to the target user, and analyzing the page content of the target page through the target script. This disclosure improves the efficiency of page content analysis.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This disclosure relates to the field of data processing technology, and more specifically, to a page data analysis method, a page data analysis device, a computer-readable storage medium, and an electronic device. Background Technology

[0002] With the development of the internet, browsing web pages through browsers has become one of the main ways to obtain information. However, some users encounter problems when browsing pages, hindering their access to information. Therefore, it is necessary to collect page error information to locate and analyze the problem.

[0003] In related technologies, global error information is collected through error events, or local error information is collected for asynchronous operations using try-catch blocks. Both the error event and the try-catch block only begin collecting error information when an error occurs on the page.

[0004] However, during the page display process, when no errors occur on the page, but page data delivery is abnormal due to differences in different user browsers, the error event and try-catch method cannot collect the data abnormally, thus making it impossible to analyze the page with abnormal data delivery.

[0005] Therefore, a new method for page data analysis is needed.

[0006] It should be noted that the information disclosed in the background section above is only used to enhance the understanding of the background of this disclosure, and therefore may include information that does not constitute prior art known to those skilled in the art. Summary of the Invention

[0007] The purpose of this disclosure is to provide a page data analysis method, a page data analysis device, a computer-readable storage medium, and an electronic device, thereby at least to some extent overcoming the limitation and defects of related technologies that prevent the analysis of pages with no errors but abnormal data delivery.

[0008] A first aspect of this disclosure provides a page data analysis method, the method comprising:

[0009] In response to an access operation to the current page, load the content of the current page, and trigger a built-in script during the loading process of the current page content;

[0010] In response to feedback on the content of the current page, the system obtains the current user located on the current page through the built-in script, and determines whether the current user is the target user based on the user information of the current user.

[0011] When the current user is determined to be the target user, the target script corresponding to the target user is obtained and loaded, and the page content of the target page is analyzed through the target script.

[0012] In one exemplary embodiment of this disclosure, before responding to an access operation to the current page, the page data analysis method further includes:

[0013] Retrieve all script information on the current page;

[0014] Based on the script information, the built-in script included in the script is identified, and the built-in script is placed before other scripts on the current page.

[0015] In one exemplary embodiment of this disclosure, in response to feedback on the content of the current page, obtaining the current user located on the current page through the built-in script, and determining whether the current user is a target user based on the user information of the current user, includes:

[0016] In response to feedback from the target user regarding an anomaly in the delivery of content on the current page, a target verification parameter is generated based on the feedback, and the target verification parameter is then sent to the current page.

[0017] The built-in script is used to obtain the current user and the user information of the current user located on the current page.

[0018] The built-in script determines whether the current user is the target user by using the current user's user information and the target verification parameters.

[0019] In one exemplary embodiment of this disclosure, the built-in script determines whether the current user is a target user by using the current user's user information and the target verification parameters, including:

[0020] Obtain the current page information of the current page, the target user parameter and the target page parameter in the target verification parameters;

[0021] By comparing the target user parameters and the user information, and by comparing the current page information and the target page parameters of the current page;

[0022] When the target user parameters are the same as the user information and the target page parameters are the same as the current page information, the current user is determined to be the target user and the current page is determined to be the target page.

[0023] In one exemplary embodiment of this disclosure, the page data analysis method further includes:

[0024] When the target user parameters are the same as the user information, and the target page parameters are different from the current page information, the analysis of the page content of the current page ends.

[0025] In one exemplary embodiment of this disclosure, the page data analysis method further includes:

[0026] When the built-in script fails to obtain the target user parameter and the target page parameter from the target verification parameters, the dynamic script is obtained and loaded before the built-in script is loaded.

[0027] Obtain the target user list included in the dynamic script. When the user information of the current user and the current page information of the current page are in the target user list, determine the current user as the target user and the current page as the target page.

[0028] In one exemplary embodiment of this disclosure, when the current user is determined to be a target user, a target script corresponding to the target user is obtained and loaded, and the page content of the target page is analyzed using the target script, including:

[0029] Based on the user information of the target user, a target script retrieval request is generated and sent to the server.

[0030] Receive the target script corresponding to the target script request sent by the server, execute the target script, and analyze the page content of the target page through the target script.

[0031] According to a second aspect of the present disclosure, a page data analysis apparatus is provided, the apparatus comprising:

[0032] The built-in script triggering module is used to respond to access operations on the current page, load the content of the current page, and trigger the built-in script during the loading process of the content of the current page;

[0033] The user identification module is used to respond to feedback on the content of the current page, obtain the current user located on the current page through the built-in script, and determine whether the current user is the target user based on the user information of the current user.

[0034] The page content analysis module is used to obtain and load the target script corresponding to the target user when the current user is determined to be the target user, and to analyze the page content of the target page through the target script.

[0035] According to a third aspect of the present disclosure, a computer-readable storage medium is provided having a computer program stored thereon, characterized in that, when the program is executed by a processor, it implements the page data analysis method as described in the first aspect of the above embodiments.

[0036] According to a fourth aspect of the present disclosure, an electronic device is provided, comprising: one or more processors; and a storage device for storing one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors implement the page data analysis method as described in the first aspect of the above embodiments.

[0037] According to a fifth aspect of this disclosure, a computer program product or computer program is provided, comprising 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 various alternative implementations described above.

[0038] The technical solutions provided in this disclosure may have the following beneficial effects:

[0039] In some embodiments of this disclosure, the technical solutions can be implemented by responding to access operations on the current page, loading the content of the current page, and triggering a built-in script during the loading process; responding to feedback on the content of the current page, obtaining the current user located on the current page through the built-in script, and determining whether the current user is a target user based on the user information of the current user; when the current user is determined to be a target user, obtaining and loading the target script corresponding to the target user, and analyzing the page content of the target page through the target script. Implementing the embodiments of this disclosure, on the one hand, when a user accesses the current page, the content of the current page is loaded. During the loading process, a built-in script is triggered. After the built-in script is triggered, it determines the current user on the current page. If the current user is the target user, the page content of the current page is analyzed using a target script, making the page content analysis more targeted and improving its efficiency. On the other hand, after a user provides feedback on the current page content, the built-in script determines the target user based on the user's feedback, and then analyzes the page content of the target user's current page. This solves the problem in related technologies where errors can occur when there is no page error, but when page data delivery is abnormal, the abnormality cannot be captured and analyzed, thus realizing the analysis of pages with abnormal data delivery.

[0040] It should be understood that the above general description and the following detailed description are exemplary and explanatory only, and are not intended to limit this disclosure. Attached Figure Description

[0041] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this disclosure and, together with the description, serve to explain the principles of this disclosure. It is obvious that the drawings described below are merely some embodiments of this disclosure, and those skilled in the art can obtain other drawings based on these drawings without any inventive effort.

[0042] Figure 1 The diagram illustrates a system architecture for a page data analysis method applicable to embodiments of the present disclosure.

[0043] Figure 2 A flowchart illustrating a page data analysis method according to an exemplary embodiment of the present disclosure is shown schematically.

[0044] Figure 3 The flowchart illustrates a page data analysis method according to an example embodiment of the present disclosure, prior to responding to an access operation to the current page;

[0045] Figure 4 The illustration schematically shows a method flowchart for responding to feedback on the content of the current page according to an example embodiment of the present disclosure, obtaining the current user located on the current page through a built-in script, and determining whether the current user is a target user based on the user information of the current user;

[0046] Figure 5 This illustration schematically shows a flowchart of a method for determining whether the current user is a target user using the current user's user information and target verification parameters according to an example embodiment of the present disclosure;

[0047] Figure 6 A flowchart illustrating a page data analysis method according to an exemplary embodiment of the present disclosure is shown schematically;

[0048] Figure 7 The flowchart illustrates a method for determining the current user as a target user, acquiring and loading a target script corresponding to the target user, and analyzing the page content of the target page using the target script, according to an example embodiment of the present disclosure.

[0049] Figure 8 This illustration schematically shows a page data analysis apparatus according to an exemplary embodiment of the present disclosure;

[0050] Figure 9An electronic device for implementing the page data analysis method described above is illustrated according to an example embodiment of the present disclosure. Detailed Implementation

[0051] Exemplary embodiments will now be described more fully with reference to the accompanying drawings. However, these exemplary embodiments can be implemented in many forms and should not be construed as limited to the examples set forth herein; rather, they are provided to make this disclosure more comprehensive and complete, and to fully convey the concept of the exemplary embodiments to those skilled in the art. In the following description, numerous specific details are provided to give a full understanding of embodiments of this disclosure. However, those skilled in the art will recognize that the technical solutions of this disclosure may be practiced with one or more of these specific details omitted, or other methods, components, apparatuses, steps, etc., may be employed. In other instances, well-known technical solutions are not shown or described in detail to avoid obscuring various aspects of this disclosure.

[0052] Furthermore, the accompanying drawings are merely illustrative of this disclosure and are not necessarily drawn to scale. The same reference numerals in the drawings denote the same or similar parts, and therefore repeated descriptions of them will be omitted. Some block diagrams shown in the drawings are functional entities and do not necessarily correspond to physically or logically independent entities. These functional entities may be implemented in software, in one or more hardware modules or integrated circuits, or in different network and / or processor devices and / or microcontroller devices.

[0053] Figure 1 A schematic diagram of an exemplary terminal device to which embodiments of the present disclosure can be applied is shown.

[0054] like Figure 1 As shown, the terminal device may include one or more of terminal devices 101, 102, and 103. Terminal devices 101, 102, and 103 may be various electronic devices with displays, including but not limited to desktop computers, portable computers, smartphones, and tablet computers. This disclosure does not limit the specific number of terminal devices and servers.

[0055] For example, terminal devices 101, 102, and 103 can be associated with users A, B, and C, respectively. Different pages can be browsed on the terminal devices. These different pages are generated by platform 104, where users can register and log in. The platform can store user information such as account information and user ID (identity document). Different pages have different page information, such as information including a unique identifier.

[0056] For example, when user A accesses page A on terminal device 101, terminal device 101 displays page A. If page A has no errors but the data transmission is abnormal, platform 104 will respond with feedback from the user regarding the abnormal page content. Furthermore, the built-in script in page A collects the user's information and the page's information. Based on this information, it determines whether the user is the target user for the feedback and whether the page is the target page. If the user and page are determined to be the target user and page, a target script retrieval request is generated based on the user's information. Platform 104 sends this request to server 105. Server 105 returns the target script to platform 104, which then analyzes the data content of target page A.

[0057] This example implementation provides a page data analysis method, referencing... Figure 2 As shown, the method includes:

[0058] Step S210: Respond to the access operation to the current page, load the content of the current page, and trigger the built-in script during the loading process of the content of the current page;

[0059] Step S220: Respond to feedback on the content of the current page, obtain the current user located on the current page through the built-in script, and determine whether the current user is the target user based on the user information of the current user;

[0060] Step S230: When the current user is determined to be the target user, the target script corresponding to the target user is obtained and loaded, and the page content of the target page is analyzed through the target script.

[0061] Implementation Figure 2The page data analysis method shown can load the current page content in response to access operations on the current page, and trigger a built-in script during the loading process of the current page content; respond to feedback on the current page content, obtain the current user located on the current page through the built-in script, and determine whether the current user is a target user based on the user information of the current user; if the current user is determined to be a target user, obtain and load the target script corresponding to the target user, and analyze the page content of the target page through the target script. Implementing the embodiments of this disclosure, on the one hand, when a user accesses the current page, the content of the current page is loaded. During the loading process, a built-in script is triggered. After the built-in script is triggered, it determines the current user on the current page. If the current user is the target user, the page content of the current page is analyzed using a target script, making the page content analysis more targeted and improving its efficiency. On the other hand, after a user provides feedback on the current page content, the built-in script determines the target user based on the user's feedback, and then analyzes the page content of the target user's current page. This solves the problem in related technologies where errors can occur when there is no page error, but when page data delivery is abnormal, the abnormality cannot be captured and analyzed, thus realizing the analysis of pages with abnormal data delivery.

[0062] The steps described above in this example implementation will now be explained in more detail.

[0063] In step S210, in response to the access operation to the current page, the content of the current page is loaded, and a built-in script is triggered during the loading of the content of the current page.

[0064] In this embodiment, the current user can access the page through a browser client on a terminal device, or directly enter a page link, click a page link, or access it via a QR code generated based on the link. This example embodiment does not specifically limit the user's access method to the current page. User information can be user account information or other unique identifiers used to obtain user information to indicate a specific user. Similarly, page information can also be information containing a unique identifier or field to indicate a specific page.

[0065] In this example embodiment, referring to 3, before responding to an access operation to the current page, the page data analysis method may further include:

[0066] Step S310. Obtain all script information in the current page;

[0067] Step S320. Based on the script information, determine the built-in script included in the script, and place the built-in script before other scripts on the current page.

[0068] The following will further explain and illustrate steps S310 and S320. Specifically, before a user accesses the current page, the execution order of different scripts on the page needs to be configured. The page may include one or more scripts. In this example embodiment, there is no specific limitation on the number of scripts included on the page. When configuring the execution order of scripts on the current page, firstly, the information of all scripts included on the current page is obtained. Then, the built-in scripts on the current page are determined through the script information of each script. After obtaining the built-in scripts, they are configured before other scripts included on the current page. In this example embodiment, there is no specific limitation on the specific position of the built-in scripts on the current page.

[0069] In step S220, in response to feedback on the content of the current page, the current user located on the current page is obtained through the built-in script, and it is determined whether the current user is the target user based on the user information of the current user.

[0070] In this example embodiment, when a user is using the current webpage, the current webpage does not report any errors. However, if there are errors in the distribution of page data, garbled characters, or incorrect formatting of the webpage, the user can provide feedback on the content of the current page. That is, the platform can receive user feedback on the content of the current page.

[0071] In this example embodiment, reference Figure 4 As shown, in response to feedback on the content of the current page, the built-in script retrieves the current user located on the current page, and determines whether the current user is the target user based on the user information of the current user. This may include:

[0072] Step S410. Respond to the feedback from the target user regarding the abnormal delivery of the content of the current page, generate target verification parameters based on the feedback, and send the target verification parameters to the current page;

[0073] Step S420. Obtain the current user and the user information of the current user located on the current page through the built-in script;

[0074] Step S430. The built-in script determines whether the current user is the target user by using the current user's user information and the target verification parameters.

[0075] The following will further explain and illustrate steps S410-S430. Specifically, when the platform responds to user feedback regarding an anomaly in the delivery of content on the current page, after receiving the user's feedback, the platform generates target verification parameters based on the user's feedback and sends these target verification parameters to the current page. The target verification parameters can be in the form of a link or a QR code; in this example embodiment, the form of the target verification parameters is not specifically limited. These target verification parameters include target user parameters and target page parameters. The target user parameter is the unique identifier of the user who reported the anomaly in the delivery of content on the current page to the platform, and the target page parameter is the unique identifier of the page where the content delivery anomaly occurred. In addition, the built-in script on the current page can also obtain the current user and their user information located on the current page, and compare the obtained user information with the target verification parameters to determine whether the current user is the target user.

[0076] Furthermore, in this example embodiment, reference is made to... Figure 5 As shown, the built-in script determines whether the current user is the target user based on the current user's user information and the target verification parameters, and may include:

[0077] Step S510. Obtain the current page information of the current page, the target user parameter and the target page parameter in the target verification parameters;

[0078] Step S520. By comparing the target user parameters and the user information, and by comparing the current page information and the target page parameters of the current page;

[0079] Step S530. When the target user parameters are the same as the user information and the target page parameters are the same as the current page information, determine that the current user is the target user and the current page is the target page.

[0080] The following will further explain and illustrate steps S510-S530. Specifically, firstly, the built-in script obtains the current page information, the target user parameters included in the target verification parameters, and the target page parameters. After obtaining these, the target user parameters are compared with the user information, and the current page information is compared with the target page parameters. If the target user parameters are the same as the current user's user information, the current user is identified as the target user. If the current page information is the same as the target page parameters, the current page is identified as the target page.

[0081] In this example embodiment, the page data analysis method may further include:

[0082] When the target user parameters are the same as the user information, and the target page parameters are different from the current page information, the analysis of the page content of the current page ends.

[0083] Specifically, when the built-in script compares the current user's information with the target user's parameters, but finds that the current page's information is different from the target page's parameters, that is, when the current user is the target user but the current page is not the target page, the analysis process for the current page ends.

[0084] Furthermore, in this example embodiment, reference is made to... Figure 6 As shown, page data analysis methods may also include:

[0085] Step S610. When the built-in script does not obtain the target user parameter and the target page parameter in the target verification parameters, obtain the dynamic script and load the dynamic script before the built-in script is loaded;

[0086] Step S620. Obtain the target user list included in the dynamic script. When the user information of the current user and the current page information of the current page are in the target user list, determine the current user as the target user and the current page as the target page.

[0087] The following will further explain and illustrate steps S610 and S620. Specifically, when the built-in script fails to obtain the target user parameters and target page parameters included in the target verification parameters, the platform can send a dynamic script retrieval request to the server and retrieve the dynamic script from the server. After retrieving the dynamic script, it can be loaded before loading the built-in script. After loading the dynamic script, the platform retrieves the target user list included in the dynamic script. This target user list includes the unique identifier of the user and the unique identifier of the page. When the unique identifier of the current user and the current page reported by the current user are both in the target user list, the current user is identified as the target user, and the current page is identified as the target page. When the user information of the current user and the current page information of the current page do not exist in the target user list, the analysis process for the current page ends.

[0088] In step S230, when the current user is determined to be the target user, the target script corresponding to the target user is obtained and loaded, and the page content of the target page is analyzed through the target script.

[0089] In this example embodiment, when it is determined that the current user is the target user and the page where the current user is located is the target page, the current page can be analyzed, that is, the page content of the target page can be analyzed.

[0090] refer to Figure 7 As shown, when the current user is determined to be the target user, the target script corresponding to the target user is obtained and loaded. The page content of the target page is analyzed using the target script, which may include:

[0091] Step S710. Generate a target script acquisition request based on the user information of the target user, and send the target script acquisition request to the server;

[0092] Step S720. Receive the target script sent by the server corresponding to the target script request, execute the target script, and analyze the page content of the target page through the target script.

[0093] The following will further explain and illustrate steps S710 and S720. Specifically, when the platform determines that the current user is the target user and the current page is the target page through the built-in script, the platform can generate a target script retrieval request based on the target user's user information and send the target script retrieval request to the server. The server then provides the target script to the platform. The target script can be a JS (JavaScript, a programming language) script configured on the server, that is, a piece of JS script code that the developers have tested locally and uploaded to the server and stored in the database. This target script is specific to a particular user. When the server receives the target script retrieval request, it determines whether a target script corresponding to the target user exists. If it does, the server sends the target script corresponding to the target script retrieval request to the platform. After receiving the target script, the platform loads the target script into the target page, and the target script performs analysis on the target page.

[0094] In this scenario, when the platform sends a JavaScript request to the server to retrieve the target script, the server will also return a JavaScript script, which the platform can then directly parse and execute. When the platform sends an AJAX (Asynchronous JavaScript and XML) request, the platform can execute the target script using methods such as `eval("target script")` or `new Function("target script")`. This example embodiment does not impose specific limitations on this method.

[0095] In this example embodiment, when analyzing the current page, analysis can be performed on page screenshots, page display data, environmental analysis data, or syntax data, etc. This example embodiment does not specifically limit the content of the analysis. Specifically, page display data analysis can be used to detect data obtained when the page requests certain specific interfaces from the server. For different users, the data returned by specific interfaces differs, and different data may cause certain script logic to be executed on the page, resulting in some anomalies. Page display data analysis can also be used to determine whether certain specific Document Object Model (DOM) nodes exist in the page document, and whether certain specific data is rendered under those specific nodes. Environmental data analysis can be used to analyze whether the user's current network environment is abnormal. Syntax data analysis can be used to analyze whether the user's current system supports certain specific syntaxes. Different data can be analyzed through target scripts according to the actual page access situation and other needs; this embodiment does not impose any special limitations.

[0096] The real-time data rendering method provided in this exemplary embodiment has at least the following advantages: On the one hand, when a user accesses the current page, the content of the current page is loaded. During the loading process, a built-in script is triggered. After the built-in script is triggered, the current user on the current page is determined through the built-in script. If the current user is the target user, the page content of the current page is analyzed through the target script, making the page content analysis more targeted and improving the efficiency of page content analysis. On the other hand, after the user provides feedback on the current page content, the target user is determined through the built-in script based on the user's feedback, and then the page content of the target user's current page is analyzed. This solves the problem in related technologies where errors can occur when the page does not happen, but when page data delivery is abnormal, the abnormality cannot be captured and analyzed, thus realizing the analysis of pages with abnormal data delivery.

[0097] Furthermore, this example embodiment also provides a page data analysis device. (See reference...) Figure 8 As shown, the page data analysis device may include: a built-in script triggering module 810, a user confirmation module 820, and a page content analysis module 830. Wherein:

[0098] The built-in script triggering module 810 is used to respond to the access operation of the current page, load the content of the current page, and trigger the built-in script during the loading process of the content of the current page;

[0099] The user identification module 820 is used to respond to feedback on the content of the current page, obtain the current user located on the current page through the built-in script, and determine whether the current user is the target user based on the user information of the current user.

[0100] The page content analysis module 830 is used to obtain and load the target script corresponding to the target user when the current user is determined to be the target user, and to analyze the page content of the target page through the target script.

[0101] In one exemplary embodiment of this disclosure, before responding to an access operation to the current page, the page data analysis method further includes:

[0102] Retrieve all script information on the current page;

[0103] Based on the script information, the built-in script included in the script is identified, and the built-in script is placed before other scripts on the current page.

[0104] In one exemplary embodiment of this disclosure, in response to feedback on the content of the current page, obtaining the current user located on the current page through the built-in script, and determining whether the current user is a target user based on the user information of the current user, includes:

[0105] In response to feedback from the target user regarding an anomaly in the delivery of content on the current page, a target verification parameter is generated based on the feedback, and the target verification parameter is then sent to the current page.

[0106] The built-in script is used to obtain the current user and the user information of the current user located on the current page.

[0107] The built-in script determines whether the current user is the target user by using the current user's user information and the target verification parameters.

[0108] In one exemplary embodiment of this disclosure, the built-in script determines whether the current user is a target user by using the current user's user information and the target verification parameters, including:

[0109] Obtain the current page information of the current page, the target user parameter and the target page parameter in the target verification parameters;

[0110] By comparing the target user parameters and the user information, and by comparing the current page information and the target page parameters of the current page;

[0111] When the target user parameters are the same as the user information and the target page parameters are the same as the current page information, the current user is determined to be the target user and the current page is determined to be the target page.

[0112] In one exemplary embodiment of this disclosure, the page data analysis method further includes:

[0113] When the target user parameters are the same as the user information, and the target page parameters are different from the current page information, the analysis of the page content of the current page ends.

[0114] In one exemplary embodiment of this disclosure, the page data analysis method further includes:

[0115] When the built-in script fails to obtain the target user parameter and the target page parameter from the target verification parameters, the dynamic script is obtained and loaded before the built-in script is loaded.

[0116] Obtain the target user list included in the dynamic script. When the user information of the current user and the current page information of the current page are in the target user list, determine the current user as the target user and the current page as the target page.

[0117] In one exemplary embodiment of this disclosure, when the current user is determined to be a target user, a target script corresponding to the target user is obtained and loaded, and the page content of the target page is analyzed using the target script, including:

[0118] Based on the user information of the target user, a target script retrieval request is generated and sent to the server.

[0119] Receive the target script corresponding to the target script request sent by the server, execute the target script, and analyze the page content of the target page through the target script.

[0120] It should be noted that although several modules or units of the device for performing actions have been mentioned in the detailed description above, this division is not mandatory. In fact, according to embodiments of the present invention, the features and functions of two or more modules or units described above can be embodied in one module or unit. Conversely, the features and functions of one module or unit described above can be further divided and embodied by multiple modules or units.

[0121] Furthermore, although the steps of the method in this invention are described in a specific order in the accompanying drawings, this does not require or imply that the steps must be performed in that specific order, or that all the steps shown must be performed to achieve the desired result. Additional or alternative steps may be omitted, multiple steps may be combined into one step, and / or a step may be broken down into multiple steps.

[0122] In an exemplary embodiment of the present invention, an electronic device capable of implementing the above-described method is also provided.

[0123] Those skilled in the art will understand that various aspects of the present invention can be implemented as systems, methods, or program products. Therefore, various aspects of the present invention can be specifically implemented in the following forms: entirely hardware implementations, entirely software implementations (including firmware, microcode, etc.), or implementations combining hardware and software aspects, collectively referred to herein as “circuits,” “modules,” or “systems.”

[0124] The following reference Figure 9 To describe an electronic device 900 according to this embodiment of the present invention. Figure 9 The electronic device 900 shown is merely an example and should not impose any limitations on the functionality and scope of use of the embodiments of the present invention.

[0125] like Figure 9 As shown, the electronic device 900 is manifested in the form of a general-purpose computing device. The components of the electronic device 900 may include, but are not limited to: at least one processing unit 910, at least one storage unit 920, a bus 930 connecting different system components (including storage unit 920 and processing unit 910), and a display unit 940.

[0126] The storage unit stores program code that can be executed by the processing unit 910, causing the processing unit 910 to perform the steps described in the "Exemplary Methods" section of this specification according to various exemplary embodiments of the present invention. For example, the processing unit 910 can perform actions such as... Figure 1 The steps shown are as follows: S110: In response to the access operation of the current page, load the content of the current page, and trigger the built-in script during the loading process of the content of the current page; S120: In response to the feedback of the content of the current page, obtain the current user located on the current page through the built-in script, and determine whether the current user is the target user based on the user information of the current user; S130: When it is determined that the current user is the target user, obtain and load the target script corresponding to the target user, and analyze the page content of the target page through the target script.

[0127] Storage unit 920 may include readable media in the form of volatile storage units, such as random access memory (RAM) 9201 and / or cache memory 9202, and may further include read-only memory (ROM) 9203.

[0128] Storage unit 920 may also include a program / utility 9204 having a set (at least one) program module 9205, such program module 9205 including but not limited to: operating system, one or more application programs, other program modules and program data, each or some combination of these examples may include an implementation of a network environment.

[0129] Bus 930 can represent one or more of several types of bus structures, including a memory cell bus or memory cell controller, a peripheral bus, a graphics acceleration port, a processing unit, or a local bus using any of the various bus structures.

[0130] Electronic device 900 can also communicate with one or more external devices 1000 (e.g., keyboard, pointing device, Bluetooth device, etc.), and with one or more devices that enable a user to interact with electronic device 900, and / or with any device that enables electronic device 900 to communicate with one or more other computing devices (e.g., router, modem, etc.). This communication can be performed via input / output (I / O) interface 950. Furthermore, electronic device 900 can also communicate with one or more networks (e.g., local area network (LAN), wide area network (WAN), and / or public networks, such as the Internet) via network adapter 960. As shown, network adapter 960 communicates with other modules of electronic device 900 via bus 930. It should be understood that, although not shown in the figures, other hardware and / or software modules can be used in conjunction with electronic device 900, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.

[0131] Through the above description of the embodiments, those skilled in the art will readily understand that the exemplary embodiments described herein can be implemented by software or by combining software with necessary hardware. Therefore, the technical solutions according to the embodiments of the present invention can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (such as a CD-ROM, USB flash drive, portable hard drive, etc.) or on a network, including several instructions to cause a computing device (such as a personal computer, server, terminal device, or network device, etc.) to execute the method according to the embodiments of the present invention.

[0132] In exemplary embodiments of the present invention, a computer-readable storage medium is also provided, on which a program product capable of implementing the methods described above is stored. In some possible embodiments, various aspects of the present invention may also be implemented as a program product comprising program code that, when the program product is run on a terminal device, causes the terminal device to perform the steps of the various exemplary embodiments of the present invention described in the "Exemplary Methods" section above.

[0133] According to embodiments of the present invention, a program product for implementing the above-described method may employ a portable compact disc read-only memory (CD-ROM) and include program code, and may run on a terminal device, such as a personal computer. However, the program product of the present invention is not limited thereto. In this document, a readable storage medium may be any tangible medium containing or storing a program that may be used by or in conjunction with an instruction execution system, apparatus, or device.

[0134] The program product may employ any combination of one or more readable media. A readable medium may be a readable signal medium or a readable storage medium. A readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of readable storage media (a non-exhaustive list) include: an electrical connection having one or more wires, a portable disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof.

[0135] Computer-readable signal media may include data signals propagated in baseband or as part of a carrier wave, carrying readable program code. Such propagated data signals may take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. A readable signal medium may also be any readable medium other than a readable storage medium, capable of sending, propagating, or transmitting programs for use by or in conjunction with an instruction execution system, apparatus, or device.

[0136] The program code contained on the readable medium may be transmitted using any suitable medium, including but not limited to wireless, wired, optical fiber, RF, etc., or any suitable combination thereof.

[0137] Program code for performing the operations of this invention can be written in any combination of one or more programming languages, including object-oriented programming languages ​​such as Java and C++, and conventional procedural programming languages ​​such as C or similar languages. The program code can execute entirely on the user's computing device, partially on the user's device, as a standalone software package, partially on the user's computing device and partially on a remote computing device, or entirely on a remote computing device or server. In cases involving remote computing devices, the remote computing device can be connected to the user's computing device via any type of network, including a local area network (LAN) or a wide area network (WAN), or it can be connected to an external computing device (e.g., via the Internet using an Internet service provider).

[0138] Furthermore, the above figures are merely illustrative of the processes included in the method according to exemplary embodiments of the present invention, and are not intended to be limiting. It is readily understood that the processes shown in the above figures do not indicate or limit the temporal order of these processes. Additionally, it is readily understood that these processes may be executed synchronously or asynchronously, for example, in multiple modules.

[0139] Other embodiments of the invention will readily occur to those skilled in the art upon consideration of the specification and practice of the invention described herein. This application is intended to cover any variations, uses, or adaptations of the invention that follow the general principles of the invention and include common knowledge or customary techniques in the art not invented herein. The specification and embodiments are to be considered exemplary only, and the true scope and spirit of the invention are indicated by the claims.

Claims

1. A method for analyzing page data, characterized in that, include: In response to an access operation to the current page, load the content of the current page, and trigger a built-in script during the loading process of the current page content; In response to feedback regarding an anomaly in the delivery of content to the current page, a target verification parameter is generated based on the feedback, and the target verification parameter is delivered to the current page; the current user and their user information are obtained from the current page via the built-in script. Obtain the current page information of the current page, the target user parameter and the target page parameter in the target verification parameters; compare the target user parameter and the user information, and compare the current page information and the target page parameter of the current page. When the target user parameters are the same as the user information and the target page parameters are the same as the current page information, the current user is determined to be the target user and the current page is determined to be the target page. When the current user is determined to be the target user, the target script corresponding to the target user is obtained and loaded, and the page content of the target page is analyzed through the target script.

2. The page data analysis method according to claim 1, characterized in that, Before responding to an access operation to the current page, the page data analysis method further includes: Retrieve all script information on the current page; Based on the script information, the built-in script included in the script is identified, and the built-in script is placed before other scripts on the current page.

3. The page data analysis method according to claim 1, characterized in that, The page data analysis method also includes: When the target user parameters are the same as the user information, and the target page parameters are different from the current page information, the analysis of the page content of the current page ends.

4. The page data analysis method according to claim 1, characterized in that, The page data analysis method also includes: When the built-in script fails to obtain the target user parameter and the target page parameter from the target verification parameters, the dynamic script is obtained and loaded before the built-in script is loaded. Obtain the target user list included in the dynamic script. When the user information of the current user and the current page information of the current page are in the target user list, determine the current user as the target user and the current page as the target page.

5. The page data analysis method according to claim 1, characterized in that, When the current user is determined to be the target user, the target script corresponding to the target user is obtained and loaded. The page content of the target page is analyzed using the target script, including: Based on the user information of the target user, a target script retrieval request is generated and sent to the server. The server receives the target script corresponding to the target script acquisition request sent by the server, executes the target script, and analyzes the page content of the target page through the target script.

6. A page data analysis device, characterized in that, include: The built-in script triggering module is used to respond to access operations on the current page, load the content of the current page, and trigger the built-in script during the loading process of the content of the current page; The user identification module is used to respond to feedback on the abnormal delivery of content on the current page, generate target verification parameters based on the feedback, and send the target verification parameters to the current page; and obtain the current user and the user information of the current user located on the current page through the built-in script. Obtain the current page information of the current page, the target user parameter and the target page parameter in the target verification parameters; compare the target user parameter and the user information, and compare the current page information and the target page parameter of the current page. When the target user parameters are the same as the user information and the target page parameters are the same as the current page information, the current user is determined to be the target user and the current page is determined to be the target page. The page content analysis module is used to obtain and load the target script corresponding to the target user when the current user is determined to be the target user, and to analyze the page content of the target page through the target script.

7. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the program is executed by the processor, it implements the page data analysis method as described in any one of claims 1 to 5.

8. An electronic device, characterized in that, include: One or more processors; A storage device for storing one or more programs, which, when executed by one or more processors, cause the one or more processors to implement the page data analysis method as described in any one of claims 1 to 5.

Citation Information

Patent Citations

  • Page test method, device, equipment, and computer readable storage medium

    CN111831571A