Webpage information acquisition method and device, electronic equipment and computer storage medium
By generating identifier information for click events, the region and number of click events on a webpage can be determined, solving the problem of inaccurate data caused by complex webpage structures. This enables accurate statistics and analysis of user behavior, supporting webpage development and marketing decisions.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-12-02
- Publication Date
- 2026-03-17
AI Technical Summary
The increasingly complex page structure of current web pages leads to inaccurate data on user behavior collected.
By acquiring click events from the target webpage, identifying information is generated. The region and attribute fields are used to determine the area where the click events occurred. The number of clicks and visitors are counted, and a heatmap is generated to show the degree of user preference.
It enables accurate statistics on click events and visitor numbers in various areas of the target webpage, providing a basis for user preference analysis and webpage development, and supporting malicious access monitoring and advertising information delivery.
Smart Images

Figure CN114579899B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of Internet technology, specifically to a method, apparatus, electronic device, and computer storage medium for obtaining web page information. Background Technology
[0002] With the development of network technology, there is an increasing demand for business scenarios that collect user actions on application pages or browser pages to clarify user needs. For example, statistical analysis of collected user behavior data can be used for product analysis and optimization, thereby providing users with better data services. However, due to the increasingly complex page structures of current web pages, the collected user behavior data may be inaccurate. Summary of the Invention
[0003] This application provides a method, apparatus, electronic device, and computer storage medium for obtaining web page information.
[0004] In a first aspect, embodiments of this application provide a method for obtaining web page information, the method comprising:
[0005] Obtain click events for a target webpage and generate identification information for the click events; wherein, the identification information includes a region field;
[0006] The region field determines the region on the target webpage where the click event occurred.
[0007] This application embodiment identifies the area on the target webpage where the click event occurs by marking the area where the click event occurs, thus solving the problems of increasingly complex webpage structures and inaccurate data on user behavior collected at present.
[0008] In one possible implementation, the identification information further includes attribute fields;
[0009] After determining the region in the target webpage where the click event occurred based on the region field, the method further includes:
[0010] Based on the attribute fields of the click event, determine the number of clicks in the area where the click event occurred;
[0011] Based on the number of clicks in the areas where the click events occurred, the number of click events in each area of the target webpage is determined.
[0012] This application embodiment uses attribute fields to count the number of clicks on each area of the target page, making it easier to understand the user's preference for each area of the target page.
[0013] In one possible implementation, before acquiring the click event for the target webpage, the method further includes:
[0014] A node tree of the target webpage is generated based on the region identifiers of each region in the target webpage; wherein, the node tree includes: nodes for representing identifier information, and node connection relationships for the hierarchical relationship between each region;
[0015] Determining the number of clicks in the area where the click event occurred based on the attribute fields of the click event includes:
[0016] If the attribute field of the current click event matches the preset field, it is determined that a click event has occurred in the area where the current click event is located;
[0017] If the attribute field of the node corresponding to the area where the current click event is located does not match the preset field, traverse all the upper-level nodes of the node corresponding to the area where the current click event is located to determine whether there is an attribute field in the upper-level nodes that matches the preset field.
[0018] If there is an attribute field in the upper-level nodes that matches the preset field, a click event will occur in the area corresponding to the node with the attribute field that matches the preset field in the upper-level nodes.
[0019] The step of determining the number of click events occurring in each area of the target webpage based on the number of clicks in the click event occurrence area includes: counting the number of clicks in each click event occurrence area within a preset time period.
[0020] This application embodiment utilizes the method of parsing the target webpage to generate a node tree, which can realize the statistics of the number of click events in the nested areas of the target webpage, and use a preset time to count the number of click events within the required time period. This not only realizes the flexible statistics of the number of click events in each area of the target webpage, but also meets the needs of target webpage development, enabling developers to understand the dynamic information of the changes in the number of click events in each area of the target webpage in real time.
[0021] In one possible implementation, the identification information further includes a user field;
[0022] After determining the number of click events occurring in each area of the target webpage based on the number of clicks in the click event occurrence area, the method further includes: determining the number of visitors in each area of the target webpage based on the user field.
[0023] This application embodiment can add a user field to the identifier information of click events to count the number of visitors to the target webpage. This not only realizes the statistics of the characteristic information of the users who visit the target webpage, so as to facilitate the later development and utilization of the target webpage, but also enables the monitoring of malicious access.
[0024] In one possible implementation, after determining the number of visitors in each area of the target webpage based on the user field, the method further includes: displaying the number of click events and / or the number of visitors in each area of the target webpage.
[0025] This application embodiment allows staff to understand the number of click events and / or visits to a target webpage by displaying the number of click events and / or visits to the target webpage.
[0026] In one possible implementation, displaying the number of click events and / or the number of visitors for each area of the target webpage includes:
[0027] The target webpage displays the number of click events and / or the number of visitors in each of the aforementioned areas; or,
[0028] Generate a report page to display the number of click events and / or the number of visitors in each area of the target webpage.
[0029] This application embodiment can display the number of click events and / or the number of visitors on the target webpage, and can also generate a report page to display the number of click events and / or the number of visitors in each area of the target webpage, so that staff can quickly understand the number of click events and the number of visits on the target webpage.
[0030] In one possible implementation, displaying the number of click events and / or the number of visitors in each area on the target webpage includes:
[0031] Add labels to each area of the target webpage to display the number of click events and / or the number of visitors in each area.
[0032] This application embodiment can intuitively display the number of click events and visits on the target webpage by adding tags near each area. This not only allows web designers to quickly understand the areas that users like to click on, but also provides valuable information for the later operation and marketing of the webpage.
[0033] In one possible implementation, after determining the number of visitors to each area of the target webpage based on the user field of the click event, the method further includes:
[0034] Based on a preset color threshold corresponding to the number of click events in each area of the target webpage, a first heatmap is generated on the target webpage to display the degree of user preference for each area; and / or,
[0035] Based on a preset color threshold corresponding to the number of visitors in each area of the target webpage, a second heatmap is generated on the target webpage to display the degree of user preference in each area of the target webpage; wherein, the preset color threshold is used to represent the color corresponding to the number of click events and / or the range of visitor numbers, with different colors corresponding to different ranges.
[0036] This application embodiment can intuitively display the number of click events and visits on a target webpage by generating a heatmap. This not only allows web designers to quickly understand the areas that users like to click on, but also provides valuable information for the later operation and marketing of the webpage.
[0037] Secondly, embodiments of this application provide a webpage information acquisition device, the device comprising:
[0038] The identifier generation module is used to acquire click events for a target webpage and generate identifier information for the click events; wherein, the identifier information includes a region field;
[0039] The first determining module is used to determine the region in the target webpage where the click event occurred based on the region field.
[0040] In one possible implementation, the identification information further includes attribute fields;
[0041] The device further includes:
[0042] The second determining module is used to determine the number of clicks in the area where the click event occurred based on the attribute field of the click event after the first determining module determines the area where the click event occurred in the target webpage based on the area field.
[0043] The third determining module is used to determine the number of click events occurring in each area of the target webpage based on the number of clicks in the click event occurrence area.
[0044] In one possible implementation, the device further includes:
[0045] A node tree generation module is used to generate a node tree of the target webpage based on the region identifiers of each region in the target webpage before the identifier generation module obtains the click event for the target webpage and generates the identifier information of the click event; wherein, the node tree includes: nodes for representing identifier information, and node connection relationships for the hierarchical relationship between each region;
[0046] The second determining module is specifically used for:
[0047] If the attribute field of the current click event matches the preset field, it is determined that a click event has occurred in the area where the current click event is located;
[0048] If the attribute field of the node corresponding to the area where the current click event is located does not match the preset field, traverse all the upper-level nodes of the node corresponding to the area where the current click event is located to determine whether there is an attribute field in the upper-level nodes that matches the preset field.
[0049] If there is an attribute field in the upper-level nodes that matches the preset field, a click event will occur in the area corresponding to the node with the attribute field that matches the preset field in the upper-level nodes.
[0050] The third determining module is specifically used to: count the number of clicks in each click event occurrence area within a preset time period.
[0051] In one possible implementation, the identification information further includes a user field;
[0052] The device further includes a fourth determining module, configured to determine the number of visitors to each area of the target webpage based on the user field after the third determining module determines the number of click events occurring in each area of the target webpage based on the number of clicks in the click event occurrence area.
[0053] In one possible implementation, the apparatus further includes a display module, configured to display the number of click events and / or the number of visitors in each area of the target webpage after the fourth determining module determines the number of visitors in each area of the target webpage based on the user field.
[0054] In one possible implementation, the display module includes:
[0055] A display unit is configured to display on the target webpage the number of click events occurring in each area and / or the number of visitors; and / or,
[0056] The report page generation unit is used to generate a report page that displays the number of click events and / or the number of visitors in each area of the target webpage.
[0057] In one possible implementation, the display unit is specifically used for:
[0058] Add labels to each area of the target webpage to display the number of click events and / or the number of visitors in each area.
[0059] In one possible implementation, the device further includes:
[0060] The first heatmap generation unit is configured to, after the fourth determining module determines the number of visitors to each region of the target webpage based on the user field, generate a first heatmap on the target webpage to display the degree of user preference for each region of the target webpage based on a preset color threshold corresponding to the number of click events occurring in each region of the target webpage; and / or,
[0061] The second heatmap generation unit is used to generate a second heatmap on the target webpage to display the degree of user preference for each area of the target webpage, based on a preset color threshold corresponding to the number of visitors in each area of the target webpage after the fourth determining module determines the number of visitors in each area based on the user field; wherein, the preset color threshold is used to represent the color corresponding to the number of click events and / or the range of visitor numbers, with different colors corresponding to different ranges.
[0062] Thirdly, embodiments of this application provide a computer storage medium storing a plurality of instructions adapted for loading by a processor and executing the method steps provided in the first aspect of embodiments of this application.
[0063] Fourthly, embodiments of this application provide an electronic device, including: a processor and a memory; wherein the memory stores a computer program adapted to be loaded and executed by the processor:
[0064] In one possible implementation, the identification information further includes attribute fields;
[0065] After determining the region in the target webpage where the click event occurred based on the region field, the processor is further configured to perform:
[0066] Based on the attribute fields of the click event, determine the number of clicks in the area where the click event occurred;
[0067] Based on the number of clicks in the areas where the click events occurred, the number of click events in each area of the target webpage is determined.
[0068] In one possible implementation, before the processor acquires a click event for the target webpage, it is also used to perform:
[0069] A node tree of the target webpage is generated based on the region identifiers of each region in the target webpage; wherein, the node tree includes: nodes for representing identifier information, and node connection relationships for the hierarchical relationship between each region;
[0070] When the processor determines the number of clicks in the area where the click event occurred based on the attribute fields of the click event, it specifically executes the following:
[0071] If the attribute field of the current click event matches the preset field, it is determined that a click event has occurred in the area where the current click event is located;
[0072] If the attribute field of the node corresponding to the area where the current click event is located does not match the preset field, traverse all the upper-level nodes of the node corresponding to the area where the current click event is located to determine whether there is an attribute field in the upper-level nodes that matches the preset field.
[0073] If there is an attribute field in the upper-level nodes that matches the preset field, a click event will occur in the area corresponding to the node with the attribute field that matches the preset field in the upper-level nodes.
[0074] The step of determining the number of click events occurring in each area of the target webpage based on the number of clicks in the click event occurrence area includes: counting the number of clicks in each click event occurrence area within a preset time period.
[0075] In one possible implementation, the identification information further includes a user field;
[0076] After determining the number of click events occurring in each area of the target webpage based on the number of clicks in the click event occurrence area, the processor is further configured to: determine the number of visitors in each area of the target webpage based on the user field.
[0077] In one possible implementation, after the processor determines the number of visitors in each area of the target webpage based on the user field, it is further configured to perform: displaying the number of click events and / or the number of visitors in each area of the target webpage.
[0078] In one possible implementation, when the processor displays the number of click events and / or the number of visitors in each area of the target webpage, it specifically performs the following:
[0079] The target webpage displays the number of click events occurring in each of the aforementioned areas and / or the number of visitors; and / or,
[0080] Generate a report page to display the number of click events and / or the number of visitors in each area of the target webpage.
[0081] In one possible implementation, when the processor displays the number of click events occurring in each area and / or the number of visitors on the target webpage, it specifically performs the following:
[0082] Add labels to each area of the target webpage to display the number of click events and / or the number of visitors in each area.
[0083] In one possible implementation, after the processor determines the number of visitors to each area of the target webpage based on the user field of the click event, it is further configured to perform:
[0084] Based on a preset color threshold corresponding to the number of click events in each area of the target webpage, a first heatmap is generated on the target webpage to display the degree of user preference for each area; and / or,
[0085] Based on a preset color threshold corresponding to the number of visitors in each area of the target webpage, a second heatmap is generated on the target webpage to display the degree of user preference in each area of the target webpage; wherein, the preset color threshold is used to represent the color corresponding to the number of click events and / or the range of visitor numbers, with different colors corresponding to different ranges.
[0086] Understandably, the webpage information acquisition device provided in the second aspect, the computer storage medium provided in the third aspect, and the electronic device provided in the fourth aspect are all used to execute the webpage information acquisition method provided in the first aspect. Therefore, the beneficial effects they can achieve can be referred to the beneficial effects in the model training method provided in the first aspect, and will not be repeated here. Attached Figure Description
[0087] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0088] Figure 1 This application provides an illustration of a webpage information acquisition method according to an embodiment of this application.
[0089] Figure 2 A system architecture diagram of a web page information acquisition method provided in this application embodiment;
[0090] Figure 3 A flowchart illustrating a webpage information acquisition method provided in an embodiment of this application;
[0091] Figure 4 A flowchart illustrating another webpage information acquisition method provided in this application embodiment;
[0092] Figure 5A flowchart illustrating another web page information acquisition method provided in this application embodiment;
[0093] Figure 6a This is a schematic diagram of a target webpage for a webpage information acquisition method provided in an embodiment of this application;
[0094] Figure 6b A schematic diagram of the node tree of the target webpage for a webpage information acquisition method provided in this application embodiment;
[0095] Figure 7 A flowchart illustrating a webpage information acquisition method provided in an embodiment of this application;
[0096] Figure 8 A flowchart illustrating another webpage information acquisition method provided in this application embodiment;
[0097] Figure 9 A schematic diagram illustrating the click-through rate and access rate of each area in the target webpage for a webpage information acquisition method provided in this application embodiment;
[0098] Figure 10 A bar chart showing the click-through rate and access rate of each area of the target webpage in a webpage information acquisition method provided in this application embodiment;
[0099] Figure 11 This is a schematic diagram of the structure of a web page information acquisition device provided in an embodiment of this application;
[0100] Figure 12 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Detailed Implementation
[0101] In the following description, when referring to the accompanying drawings, the same numbers in different drawings denote the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this application. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this application as detailed in the appended claims.
[0102] In the description of this application, it should be understood that the terms "first," "second," etc., are used for descriptive purposes only and should not be construed as indicating or implying relative importance. Those skilled in the art can understand the specific meaning of the above terms in this application based on the specific circumstances. Furthermore, in the description of this application, unless otherwise stated, "multiple" refers to two or more. "And / or" describes the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A existing alone, A and B existing simultaneously, or B existing alone. The character " / " generally indicates that the preceding and following related objects are in an "or" relationship.
[0103] Figure 1 An illustrative diagram shows an application scenario of the webpage information acquisition method provided in this application. For example... Figure 1 As shown, the target webpage 10 may include: a title category section 11 at the top of the target webpage 10, a scrolling image section 12 in the middle of the target webpage, and an information entry section 13 at the bottom of the target webpage. Wherein:
[0104] The title category section 11 can specifically include six categories: news, shopping, entertainment, travel, education, and automobiles. When a user clicks on any category title, a new content page corresponding to that category is generated. When the user's mouse hovers over any category title, the scrolling image section 12 can display the hot topics of that category. The scrolling image section 12 can specifically include a background section, an image section, and a sliding section. The background section can include a clickable "+" button after "Hot News," allowing users to follow the "Hot News" content. The image section can include multiple hot news images; when a user clicks on the current hot news image, a content page corresponding to that hot news is generated. The sliding section is located on both sides of the hot news images, allowing users to view the previous or next hot news image by clicking the sliding buttons on the left or right. The information item section 13 can specifically include multiple information items under different categories. For example, for the news category, the target webpage 10 can display four units from left to right: local news, provincial news, domestic news, and international news. When a user clicks on the first news item in the local news section, a specific content page for that news item is generated.
[0105] Figure 2 This diagram illustrates a system architecture for a webpage information retrieval method applied in an embodiment of this application. Figure 2As shown, the execution subject of this application embodiment is a terminal, which is an electronic device with a display screen. This terminal includes, but is not limited to, handheld devices, personal computers, tablets, in-vehicle devices, smartphones, computing devices, or other processing devices connected to a wireless modem. In different networks, terminal devices can be called by different names, such as: user equipment, access terminal, user unit, user station, mobile station, mobile station, remote station, remote terminal, mobile device, user terminal, terminal, wireless communication device, user agent or user device, cellular phone, cordless phone, personal digital assistant (PDA), terminal devices in 5G networks, or future evolved networks, etc. A terminal system refers to an operating system that can run on a terminal. It is a program that manages and controls the terminal hardware and terminal applications, and is an indispensable system application for the terminal. This system includes, but is not limited to, Android systems, iOS systems, Windows Phone (WP) systems, and Ubuntu mobile operating systems, etc.
[0106] According to some embodiments, the terminal can connect to the server via a network. The network is used to provide a communication link between the terminal and the server. The network can include various connection types, such as wired, wireless communication links, or fiber optic cables, etc. It should be understood that... Figure 2 The number of terminals, networks, and servers shown is merely illustrative. Depending on actual needs, there can be any number of terminals, networks, and servers. For example, a server cluster could consist of multiple servers. Users can use terminals to interact with servers via the network to obtain web page information, etc.
[0107] Next, combine Figure 1 The application scenarios of the introduced web page information retrieval methods are illustrated in the diagram. Figure 2 The system architecture diagram described herein illustrates the webpage information acquisition method provided in this application embodiment, which can be executed by the aforementioned terminal device. The webpage information acquisition method provided in this application embodiment is applicable to scenarios where the terminal and server communicate in real time.
[0108] In one embodiment, Figure 3 As shown, a flowchart of a method for obtaining web page information is provided. Figure 3 As shown, the method for obtaining information from this webpage includes the following steps:
[0109] S301, Obtain the click event for the target webpage and generate the click event identification information.
[0110] The identification information may include a region field.
[0111] In this application embodiment, the identification information is used to represent information recording the basic information of a click event. For example, the region field it includes is used to indicate the specific region on the target webpage where the click event occurred. For example, when a user clicks... Figure 1 When clicking on the shopping title of the target webpage, the tag information of the generated click event 1 can be v1_index_shopping, i.e., tag:v1_index_shopping.
[0112] Possibly, embodiments of this application may set coordinates for points on the target webpage and generate click event identifier information based on the coordinate information.
[0113] Specifically, horizontal and vertical coordinate axes are set for the width and height of the target webpage. Each point on the target webpage corresponds to a coordinate. When a user clicks on a point on the target webpage, the horizontal and vertical coordinates of that point are automatically generated. If the coordinates of the point are within the preset coordinate range that can generate identification information, the identification information for the click event is automatically generated. Otherwise, the click event cannot generate identification information, that is, the click event is invalid. For example, assuming that the preset coordinate range for generating identification information for a shopping title is 50-70 for the horizontal coordinate and 230-240 for the vertical coordinate, if the coordinates of the current click event are (62, 240), the identification information v1_index_shopping for the click event can be generated; if the coordinates of the current click event are (45, 225), the click event cannot generate identification information.
[0114] S302, determine the region in the target webpage where the click event occurred based on the region field.
[0115] Specifically, the server can determine the user's clicked category based on the tag generated from the target webpage in the terminal: the region field v1_index_shopping. Figure 1 The shopping title in the title category section 11 at the top of the target webpage 10.
[0116] In a specific example, when the user clicks... Figure 1 When the target webpage is in the middle, the coordinates (85, 170) of the click event are generated. Since these coordinates are within the preset horizontal coordinate range of 30-280 and the preset vertical coordinate range of 130-200 of the image portion in the scrolling image portion 12, the tag information of the click event is generated: v2_index_mainphoto. Based on the area field v2_index_mainphoto in the tag information, it can be determined that the click event occurred in the image portion of the scrolling image portion 12 of the target webpage.
[0117] In this embodiment, click events on a target webpage are acquired, and identification information for these click events is generated. The region where the click event occurred on the target webpage is then determined based on a region field. Therefore, this embodiment addresses the problems of increasingly complex webpage structures and inaccurate data on user actions by identifying the regions where click events occur on the target webpage.
[0118] In some implementations, the identification information may also include attribute fields. These attribute fields are used to represent the attributes of the click event. For example, if a user clicks the "+" button after "News Hotspots" in the background of the scrolling image section 12, the identification information for this click event is generated as tag: pk:v2_index_pressb1, where the attribute field is pk, indicating that the user clicked the event as a button.
[0119] In one embodiment, Figure 4 As shown, a flowchart of a method for obtaining web page information is provided. Figure 4 As shown, the method for obtaining webpage information may include the following steps:
[0120] S401, Obtain the click event for the target webpage and generate the click event identification information.
[0121] Specifically, S401 is the same as S301, and will not be repeated here.
[0122] S402, determine the region on the target webpage where the click event occurred based on the region field.
[0123] Specifically, S402 is the same as S302, and will not be repeated here.
[0124] S403, determine the number of clicks in the area where the click event occurred based on the attribute fields of the click event.
[0125] For example, if all user click events occur Figure 1 In the leftmost information item section at the bottom of the target webpage, the generated click event identifiers are tag1: bk:v3_index_itemE, tag2: bk:v3_index_itemE, tag3: bk:v3_index_itemE, tag4: bk:v3_index_itemE, and tag5: bk:v3_index_itemE. The attribute field bk appears 5 times in these identifiers. Based on this attribute field, it can be determined that the number of clicks in the leftmost information item section at the bottom of the target webpage where these click events occurred is 5.
[0126] S404, Based on the number of clicks in the areas where click events occurred, determine the number of click events occurring in each area of the target webpage.
[0127] In a specific example, if all user click events occur Figure 1 The click event identifiers for the information items at the bottom of the target webpage are as follows: tag1: bk:v3_index_itemE, tag2: bk:v3_index_itemF, tag3: bk:v3_index_itemF, tag4: bk:v3_index_itemF, tag5: bk:v3_index_itemH, tag6: bk:v3_index_itemG, tag7: bk:v3_index_itemE, tag8: bk:v3_index_itemF, tag9: bk:v3_index_itemG, tag10: bk:v3_index_itemH. Statistical analysis of the region fields in these identifiers reveals that the click counts for the information items at the bottom of the target webpage are 2, 4, 2, and 2 respectively. Furthermore, since all user click events occurred... Figure 1 The target webpage is located at the bottom; therefore, the number of click events in other areas of the target webpage is 0.
[0128] Therefore, the embodiments of this application can determine the number of click events in each area of the target webpage by using the attribute fields in the click event identifier information, thereby further performing statistical analysis on the click events in each area of the target webpage, determining the degree of user preference for each area of the target webpage, which is not only beneficial to the further development and utilization of the target webpage, but also allows the value of each area of the target webpage to be determined based on user preferences for operations such as advertising information delivery.
[0129] In one embodiment, Figure 5 As shown, a flowchart of a method for obtaining web page information is provided. Figure 5 As shown, the method for obtaining webpage information may include the following steps:
[0130] S501, Generate a node tree of the target webpage based on the region identifiers of each region in the target webpage.
[0131] The node tree can include nodes that represent identification information and node connections that define the hierarchical relationships between different regions.
[0132] For example, Figure 6b It shows Figure 6aThe node tree of the target webpage includes the following: First-level nodes may include title nodes A, B, and C in the title category section, background node D in the scrolling image section, and item unit nodes E, F, G, and H in the information item section; Second-level nodes may include image node D1 in the image section of the scrolling image section, clickable + button node D3 after "News Hotspots" in the background section, and item nodes E1, E2, and E3 in item unit node E, F1, F2, and F3 in item unit node F, G1, G2, and G3 in item unit node G, and H1, H2, and H3 in item unit node H; Third-level nodes may include sliding button node D2 in the scrolling image section.
[0133] Specifically, in the above example, the relationships between nodes in each level can be as follows: the parent node of the sliding button node D2 in the third level can be the image node D1 in the second level; the parent node of the image node D1 and the + button node D3 in the second level can be the background node D in the first level; the parent node of the item nodes E1, E2, and E3 in the second level can be the item unit node E in the first level; the parent node of the item nodes F1, F2, and F3 in the second level can be the item unit node F in the first level; the parent node of the item nodes G1, G2, and G3 in the second level can be the item unit node G in the first level; and the parent node of the item nodes H1, H2, and H3 in the second level can be the item unit node H in the first level.
[0134] S502, Obtain the click event for the target webpage and generate the click event identification information.
[0135] Specifically, S502 is the same as S301, and will not be repeated here.
[0136] S503, determine the region on the target webpage where the click event occurred based on the region field.
[0137] Specifically, S503 is the same as S302, and will not be repeated here.
[0138] S504, if the attribute field of the current click event matches the preset field, determine that a click event has occurred in the area where the current click event is located.
[0139] Among them, the preset fields are used to represent the fields used to record the occurrence of click events.
[0140] Specifically, assuming the preset field is bk, when the attribute field of the click event's identifier information contains bk, a click event is recorded in the area where the current click event occurs. For example, if the identifier information of the item unit node E corresponding to the current click event is tag1: bk:v3_index_itemE, and the attribute field bk in this identifier information matches the preset field bk, then a click event is recorded in the area where the item unit E is located. If the identifier information of the + button node D3 corresponding to the current click event is tag: pk:v2_index_pressb1, and the attribute field pk does not match the preset field bk, then the + button area where the + button node D3 is located will not record the occurrence of the current click event.
[0141] S505, if the attribute field of the node corresponding to the current click event area does not match the preset field, traverse the upper-level nodes of the node corresponding to the current click event area to determine whether there is an attribute field that matches the preset field in the upper-level nodes.
[0142] Furthermore, if the attribute fields of the node corresponding to the current click event area do not match the preset fields, it is determined whether the node corresponding to the current click event area has a parent node. If a parent node exists, it is further determined whether the attribute fields of the parent node corresponding to the current click event area match the preset fields. If the attribute fields of the parent node corresponding to the current click event area still do not match the preset fields, the parent nodes are traversed. If the attribute fields of all parent nodes of the node corresponding to the current click event area do not match the preset fields, then this click event is not included in the area record.
[0143] S506, if there is an attribute field in each of the upper-level nodes that matches the preset field, then a click event occurs in the area corresponding to the node of the attribute field that matches the preset field in each of the upper-level nodes.
[0144] For example, if the identifier tag of the sliding button node D2 corresponding to the current click event is pk:v2_index_pressb2, and the attribute field pk does not match the preset field bk, then the sliding button area where the sliding button node D2 is located will not record the occurrence of the current click event. Further, it is determined whether the sliding button node D2 has a parent node. Since the parent node of the sliding button node D2 is the second-level image node D1, it is further determined whether the attribute field in the identifier tag fk:v2_index_mainphoto corresponding to the image node D1 matches the preset field. Since the attribute field fk corresponding to the image node D1 still does not match the preset field bk, it is further determined whether the image node D1 has a parent node. Since the parent node of the image node D1 is the first-level background node D, it is further determined whether the attribute field in the identifier tag bk:v2_index_background corresponding to the background node D matches the preset field. Since the attribute field bk corresponding to the background node D matches the preset field bk, a click event is recorded for the background part corresponding to the background node D.
[0145] S507, count the number of clicks in each click event area within a preset time period.
[0146] The estimated time is used to represent a pre-set time period. For example, the preset time can be every 3 hours, every 6 hours, or every day, and the specific time can be set according to the content of the target webpage.
[0147] Specifically, the preset time can be 1 hour, meaning that the number of click events occurring in each area of the target webpage is counted every hour. For example, for... Figure 6a For the target webpage, count the number of clicks in title area A, title area B, title area C, scrolling image area D, and item unit areas E, F, G, and H from 17:00 to 18:00 on November 22, 2020.
[0148] It is possible that after completing the statistics of the number of clicks in each area within a preset time, the statistics can be stored in the database and the number of clicks in the next preset time can be counted again starting from 0. Alternatively, the cumulative statistics of the number of clicks can continue based on the current number of clicks.
[0149] Therefore, by using the method of parsing the target webpage to generate a node tree, this application embodiment can realize the counting of click events in nested areas of the target webpage, and use a preset time to count the number of click events within the required time period. This not only realizes the flexible counting of click events in each area of the target webpage, but also meets the needs of target webpage development, and allows for real-time understanding of the dynamic information of changes in the number of click events in each area of the target webpage.
[0150] In some implementations, the identification information may also include a user field. This user field represents user information accessing the target page, and may include, but is not limited to, the user's mobile phone number or a system-generated membership account in a combination of numbers and letters.
[0151] For example, if user A's mobile phone number is 123456789, when user A clicks... Figure 1 When clicking on the shopping title of the target webpage, the 123456789 in the generated click event 1 identifier information tag:bk:v1_index_shopping:123456789 is the user field.
[0152] In one embodiment, Figure 7 As shown, a flowchart of a method for obtaining web page information is provided. Figure 7 As shown, the method for obtaining webpage information may include the following steps:
[0153] S701, Obtain click events for the target webpage and generate click event identification information.
[0154] Specifically, S701 is the same as S301, and will not be repeated here.
[0155] S702, determine the region in the target webpage where the click event occurred based on the region field.
[0156] Specifically, S702 is the same as S302, and will not be repeated here.
[0157] S703, based on the attribute fields of the click event, determine the number of clicks in the area where the click event occurred.
[0158] Specifically, S703 is the same as S403, which will not be repeated here.
[0159] S704, Based on the number of clicks in the area where the click event occurred, determine the number of click events occurring in each area of the target webpage.
[0160] Specifically, S704 is the same as S404, and will not be repeated here.
[0161] S705, determine the number of visitors to each area of the target webpage based on the user field.
[0162] Specifically, in this embodiment of the application, the user information of the click event can be determined based on the user field in the identifier information generated by the click event. When the user field in the identifier information of multiple click events is the same, it can be determined that they are click events of the same user.
[0163] For example, if user A makes multiple requests... Figure 1 Clicking on each item in the leftmost information section at the bottom of the target webpage generates click event identifiers for the following tags: tag1: bk:v3_index_itemE1:123456789, tag2: bk:v3_index_itemE3:123456789, tag3: bk:v3_index_itemE2:123456789, tag4: bk:v3_index_itemE2:123456789, and tag5: bk:v3_index_itemE4:123456789. The attribute field "bk" appears 5 times in these identifiers, indicating that the number of clicks on the leftmost information section at the bottom of the target webpage is 5. The user field "123456789" appears in all of these identifiers, indicating that the number of visitors to the leftmost information section at the bottom of the target webpage who triggered these clicks is 1.
[0164] Therefore, this application embodiment can add a user field to the identification information of the click event to count the number of visitors to the target webpage. This not only realizes the statistics of the characteristic information of the users who visit the target webpage, so as to facilitate the later development and utilization of the target webpage, but also enables the monitoring of malicious access.
[0165] In one embodiment, Figure 8 As shown, a flowchart of a method for obtaining web page information is provided. Figure 8 As shown, the method for obtaining webpage information may include the following steps:
[0166] S801, obtain the click event for the target webpage and generate the click event identification information.
[0167] S802, determine the region in the target webpage where the click event occurred based on the region field.
[0168] S803 determines the number of clicks in the area where the click event occurred based on the attribute fields of the click event.
[0169] S804, based on the number of clicks in the area where the click event occurred, determine the number of click events occurring in each area of the target webpage.
[0170] S805 determines the number of visitors to each area of the target webpage based on the user field.
[0171] S806 displays the number of click events and / or the number of visitors in each area of the target webpage.
[0172] Preferably, embodiments of this application can display the number of click events and / or the number of visitors in each area on the target webpage.
[0173] For example, add labels to different areas of the target webpage to display the number of clicks and / or visitors in each area, such as... Figure 9 As shown, tags can be placed near the title area A on the target webpage, indicating a click count of 167 and a visit count of 106; near the title area B, indicating a click count of 662 and a visit count of 421; near the title area C, indicating a click count of 351 and a visit count of 200; near the background area D in the scrolling image section, indicating a click count of 6953 and a visit count of 5661; near the item unit area E in the information item section, indicating a click count of 266 and a visit count of 123; near the item unit area F, indicating a click count of 89 and a visit count of 50; near the item unit area G, indicating a click count of 523 and a visit count of 400; and near the item unit area H, indicating a click count of 1122 and a visit count of 1008.
[0174] Preferably, embodiments of this application can also generate a report page to display the number of click events and / or the number of visitors in each area of the target webpage. For example, Table 1 is a report page generated based on the number of click events and the number of visitors in each area of the target webpage.
[0175] Table 1
[0176] area Click count Page views A 167 106 B 622 421 C 351 200 D 6953 5661 E 266 123 F 89 50 G 523 400 H 1122 1008
[0177] Alternatively, embodiments of this application may also generate graphical information such as bar charts, line charts, pie charts, and bar graphs based on the number of click events and the number of visitors in each area in Table 1.
[0178] like Figure 10 The bar chart shown, generated based on the number of clicks and visitors in each area of the target webpage, can intuitively display the click volume and access volume of each area, facilitating subsequent processing and analysis based on the information from each area of the target webpage.
[0179] In some implementations, embodiments of this application may also generate a first heatmap on the target webpage to display the degree of user preference for each area of the target webpage based on a preset color threshold corresponding to the number of click events occurring in each area of the target webpage; and / or, generate a second heatmap on the target webpage to display the degree of user preference for each area of the target webpage based on a preset color threshold corresponding to the number of visitors in each area of the target webpage.
[0180] The preset color threshold is used to represent the color corresponding to the range of click events and / or visitor counts, with different colors corresponding to different ranges.
[0181] Specifically, the preset color threshold can be divided into different quantity threshold ranges corresponding to different colors. For example, a quantity in the range of 0-100 corresponds to green, a quantity in the range of 101-500 corresponds to yellow, a quantity in the range of 501-2000 corresponds to orange-red, and a quantity in the range of 2001-8000 corresponds to red. Furthermore, based on the quantity threshold range corresponding to the click volume or access volume of each area in the target webpage, a first heatmap of click volume or a second heatmap of access volume can be generated on the target webpage.
[0182] Therefore, the embodiments of this application can intuitively display the number of click events and visits on the target webpage by adding tags near each area, generating report pages, displaying diagrams, or heat maps. This not only allows web designers to quickly understand the areas that users like to click on, but also provides valuable information for the later operation and marketing of the webpage.
[0183] Figure 11 This is a schematic diagram of the structure of a webpage information acquisition device provided in an exemplary embodiment of this application. This webpage information acquisition device can be installed in electronic devices such as terminal devices and servers to execute the webpage information acquisition method of any of the above embodiments of this application. Figure 11 As shown, the webpage acquisition device includes:
[0184] The identifier generation module 111 is used to acquire click events for a target webpage and generate identifier information for the click events; wherein, the identifier information includes a region field;
[0185] The first determining module 112 is used to determine the region in the target webpage where the click event occurred based on the region field.
[0186] In this embodiment, click events on a target webpage are acquired, and identification information for these click events is generated. The region where the click event occurred on the target webpage is then determined based on a region field. Therefore, this embodiment addresses the problems of increasingly complex webpage structures and inaccurate data on user actions by identifying the regions where click events occur on the target webpage.
[0187] In some possible embodiments, the identification information may further include attribute fields;
[0188] The device further includes:
[0189] The second determining module is used to determine the number of clicks in the area where the click event occurred based on the attribute field of the click event after the first determining module 112 determines the area where the click event occurred in the target webpage based on the area field.
[0190] The third determining module is used to determine the number of click events occurring in each area of the target webpage based on the number of clicks in the click event occurrence area.
[0191] In some possible embodiments, the device further includes:
[0192] The node tree generation module is used to generate a node tree of the target webpage based on the region identifiers of each region in the target webpage before the identifier generation module 111 obtains the click event for the target webpage and generates the identifier information of the click event; wherein, the node tree includes: nodes for representing identifier information, and node connection relationships for the hierarchical relationship between each region;
[0193] The second determining module is specifically used for:
[0194] If the attribute field of the current click event matches the preset field, it is determined that a click event has occurred in the area where the current click event is located;
[0195] If the attribute field of the node corresponding to the area where the current click event is located does not match the preset field, traverse all the upper-level nodes of the node corresponding to the area where the current click event is located to determine whether there is an attribute field in the upper-level nodes that matches the preset field.
[0196] If there is an attribute field in the upper-level nodes that matches the preset field, a click event will occur in the area corresponding to the node with the attribute field that matches the preset field in the upper-level nodes.
[0197] The third determining module is specifically used to: count the number of clicks in each click event occurrence area within a preset time period.
[0198] In some possible embodiments, the identification information may further include a user field;
[0199] The device further includes a fourth determining module, configured to determine the number of visitors to each area of the target webpage based on the user field after the third determining module determines the number of click events occurring in each area of the target webpage based on the number of clicks in the click event occurrence area.
[0200] In some possible embodiments, the apparatus further includes: a display module, configured to display the number of click events occurring in each region of the target webpage and / or the number of visitors after the third determining module determines the number of click events occurring in each region of the target webpage based on the number of clicks in the click event occurrence region.
[0201] In some possible embodiments, the display unit is specifically used for:
[0202] A display unit is configured to display on the target webpage the number of click events occurring in each area and / or the number of visitors; and / or,
[0203] The report page generation unit is used to generate a report page that displays the number of click events and / or the number of visitors in each area of the target webpage.
[0204] In some possible embodiments, the display unit is specifically used for:
[0205] Add labels to each area of the target webpage to display the number of click events and / or the number of visitors in each area.
[0206] In some possible embodiments, the device further includes:
[0207] The first heatmap generation unit is configured to, after the third determining module determines the number of click events occurring in each region of the target webpage based on the number of clicks in the click event occurrence region, generate a first heatmap on the target webpage to display the user preference level of each region of the target webpage based on a preset color threshold corresponding to the number of click events occurring in each region of the target webpage; and / or,
[0208] The second heatmap generation unit is used to generate a second heatmap on the target webpage to display the degree of user preference for each area of the target webpage, based on a preset color threshold corresponding to the number of visitors in each area of the target webpage, after the third determining module determines the number of click events in each area based on the number of click events in the click event occurrence area. The preset color threshold is used to represent the color corresponding to the range of numbers of click events and / or visitors, with different colors corresponding to different ranges.
[0209] It should be noted that the webpage information acquisition device provided in the above embodiments is only illustrated by the division of the above functional modules when executing the webpage information acquisition method. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above. In addition, the webpage information acquisition device and the webpage information acquisition method embodiments provided in the above embodiments belong to the same concept, and the implementation process can be found in the method embodiments, which will not be repeated here.
[0210] The sequence numbers of the embodiments in this application are for descriptive purposes only and do not represent the superiority or inferiority of the embodiments.
[0211] Please see Figure 12 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Figure 12 As shown, the electronic device 120 may include: at least one processor 121, at least one network interface 124, a user interface 123, a memory 125, and at least one communication bus 122.
[0212] The communication bus 122 is used to enable communication between these components.
[0213] The user interface 123 may include a display screen and a camera. Optionally, the user interface 123 may also include a standard wired interface and a wireless interface.
[0214] The network interface 124 may optionally include a standard wired interface or a wireless interface (such as a Wi-Fi interface).
[0215] The processor 121 may include one or more processing cores. The processor 121 connects to various parts within the electronic device 120 using various interfaces and lines, and performs various functions and processes data by running or executing instructions, programs, code sets, or instruction sets stored in the memory 125, and by calling data stored in the memory 125. Optionally, the processor 121 may be implemented using at least one hardware form of Digital Signal Processing (DSP), Field-Programmable Gate Array (FPGA), or Programmable Logic Array (PLA). The processor 121 may integrate one or a combination of several of the following: Central Processing Unit (CPU), Graphics Processing Unit (GPU), and modem. The CPU primarily handles the operating system, user interface, and applications; the GPU is responsible for rendering and drawing the content required for display on the screen; and the modem handles wireless communication. It is understood that the modem may also not be integrated into the processor 121 and may be implemented as a separate chip.
[0216] The memory 125 may include random access memory (RAM) or read-only memory. Optionally, the memory 125 may include a non-transitory computer-readable storage medium. The memory 125 can be used to store instructions, programs, code, code sets, or instruction sets. The memory 125 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for at least one function (such as touch function, sound playback function, image playback function, etc.), instructions for implementing the above-described method embodiments, etc.; the data storage area may store data involved in the above-described method embodiments, etc. Optionally, the memory 125 may also be at least one storage device located remotely from the aforementioned processor 121. Figure 12 As shown, the memory 125, which serves as a computer storage medium, may include an operating system, a network communication module, a user interface module, and a web page information retrieval application.
[0217] exist Figure 12In the illustrated electronic device 120, the user interface 123 is mainly used to provide an input interface for the user and to obtain the user's input data; while the processor 121 can be used to call the web page information retrieval application stored in the memory 125 and specifically perform the following operations:
[0218] Obtain click events for a target webpage and generate identification information for the click events; wherein, the identification information includes a region field;
[0219] The region field determines the region on the target webpage where the click event occurred.
[0220] In one possible embodiment, the identification information further includes attribute fields;
[0221] After determining the region in the target webpage where the click event occurred based on the region field, the processor 121 is further configured to perform:
[0222] Based on the attribute fields of the click event, determine the number of clicks in the area where the click event occurred;
[0223] Based on the number of clicks in the areas where the click events occurred, the number of click events in each area of the target webpage is determined.
[0224] In one possible embodiment, before executing the process of acquiring click events for the target webpage, the processor 121 also performs:
[0225] A node tree of the target webpage is generated based on the region identifiers of each region in the target webpage; wherein, the node tree includes: nodes for representing identifier information, and node connection relationships for the hierarchical relationship between each region;
[0226] When the processor 121 determines the number of clicks in the area where the click event occurred based on the attribute fields of the click event, it specifically performs the following:
[0227] If the attribute field of the current click event matches the preset field, it is determined that a click event has occurred in the area where the current click event is located;
[0228] If the attribute field of the node corresponding to the area where the current click event is located does not match the preset field, traverse all the upper-level nodes of the node corresponding to the area where the current click event is located to determine whether there is an attribute field in the upper-level nodes that matches the preset field.
[0229] If there is an attribute field in the upper-level nodes that matches the preset field, a click event will occur in the area corresponding to the node with the attribute field that matches the preset field in the upper-level nodes.
[0230] When the processor 121 executes the function of determining the number of click events occurring in each region of the target webpage based on the number of clicks in the click event occurrence region, it specifically performs the following: counts the number of clicks in each click event occurrence region within a preset time period.
[0231] In one possible embodiment, the identification information further includes a user field;
[0232] After determining the number of click events occurring in each area of the target webpage based on the number of clicks in the click event occurrence area, the processor 121 is further configured to: determine the number of visitors in each area of the target webpage based on the user field.
[0233] In one possible embodiment, after the processor 121 determines the number of visitors in each area of the target webpage using the user field, it further performs the following: displaying the number of click events and / or the number of visitors in each area of the target webpage.
[0234] In one possible embodiment, when the processor 121 displays the number of click events and / or the number of visitors for each area of the target webpage, it specifically performs the following:
[0235] The target webpage displays the number of click events and / or the number of visitors in each of the aforementioned areas; or,
[0236] Generate a report page to display the number of click events and / or the number of visitors in each area of the target webpage.
[0237] In one possible embodiment, when the processor 121 executes the process of displaying the number of click events occurring in each area and / or the number of visitors on the target webpage, it specifically performs the following:
[0238] Add labels to each area of the target webpage to display the number of click events and / or the number of visitors in each area.
[0239] In one possible embodiment, after determining the number of visitors in each region of the target webpage based on the user field of the click event, the processor 121 is further configured to perform:
[0240] Based on a preset color threshold corresponding to the number of click events in each area of the target webpage, a first heatmap is generated on the target webpage to display the degree of user preference for each area; and / or,
[0241] Based on a preset color threshold corresponding to the number of visitors in each area of the target webpage, a second heatmap is generated on the target webpage to display the degree of user preference in each area of the target webpage; wherein, the preset color threshold is used to represent the color corresponding to the number of click events and / or the range of visitor numbers, with different colors corresponding to different ranges.
[0242] This application also provides a computer-readable storage medium storing instructions that, when executed on a computer or processor, cause the computer or processor to perform the above-described instructions. Figures 3-5 ,as well as Figures 7-8 One or more steps in the illustrated embodiment. If the constituent modules of the above-described web page information acquisition device are implemented as software functional units and sold or used as independent products, they can be stored in the computer-readable storage medium.
[0243] In the above embodiments, implementation can be achieved entirely or partially through software, hardware, firmware, or any combination thereof. When implemented using software, it can be implemented entirely or partially as a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, all or part of the processes or functions described in the embodiments of this application are generated. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium or transmitted through the computer-readable storage medium. The computer instructions can be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, Digital Subscriber Line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that integrates one or more available media. The available media may be magnetic media (e.g., floppy disks, hard disks, magnetic tapes), optical media (e.g., digital versatile discs (DVDs)), or semiconductor media (e.g., solid-state drives (SSDs)).
[0244] Those skilled in the art will understand that all or part of the processes in the above embodiments can be implemented by a computer program instructing related hardware. This program can be stored in a computer-readable storage medium, and when executed, it can include the processes of the embodiments of the above methods. The aforementioned storage medium includes various media capable of storing program code, such as Read Only Memory (ROM), Random Access Memory (RAM), magnetic disks, or optical disks. Unless otherwise specified, the technical features of this embodiment and its implementation schemes can be combined arbitrarily.
[0245] The embodiments described above are merely preferred embodiments of this application and are not intended to limit the scope of this application. Any modifications and improvements made by those skilled in the art to the technical solutions of this application without departing from the spirit of this application should fall within the protection scope defined by the claims of this application.
Claims
1. A method of obtaining information from a web page, characterized by, The method comprises: acquiring a click event of a target webpage, and generating identification information of the click event; wherein the identification information comprises a region field and an attribute field; determining a region in which the click event occurs in the target webpage based on the region field; in a case where the attribute field of a current click event matches a preset field, determining that a click event occurs once in the region in which the current click event is located; in a case where the attribute field of a node corresponding to the region in which the current click event is located does not match the preset field, determining a node tree of the target webpage, traversing each node at a higher level of the node corresponding to the region in which the current click event is located, and determining whether there is an attribute field matching the preset field in the each node at the higher level, the node tree being generated based on region identifications of each region in the target webpage, and the node tree comprising a node for representing identification information and a node connection relationship of a hierarchical relationship between each region; and if there is an attribute field matching the preset field in the each node at the higher level, determining that a click event occurs once in the region corresponding to the node of the attribute field matching the preset field in the each node at the higher level. counting the number of clicks of each click event occurring region within a preset time.
2. The method of claim 1, wherein, The identification information further comprises a user field. After counting the number of clicks of each click event occurring region within a preset time, the method further comprises determining the number of visitors of each region in the target webpage based on the user field.
3. The method of claim 2, wherein, After determining the number of visitors of each region in the target webpage based on the user field, the method further comprises displaying the number of click events and / or the number of visitors of each region in the target webpage.
4. The method of claim 3, wherein, The displaying the number of click events and / or the number of visitors of each region in the target webpage comprises: displaying the number of click events and / or the number of visitors of each region in the target webpage; and / or generating a report page for displaying the number of click events and / or the number of visitors of each region in the target webpage.
5. The method of claim 4, wherein, The displaying the number of click events and / or the number of visitors of each region in the target webpage comprises: adding a label for displaying the number of click events and / or the number of visitors of each region in each region of the target webpage.
6. The method of claim 2, wherein, After determining the number of visitors of each region in the target webpage based on the user field of the click event, the method further comprises: generating a first heat map for displaying the degree of user preference of each region in the target webpage on the target webpage based on a preset color threshold corresponding to the number of click events of each region in the target webpage; and / or generating a second heat map for displaying the degree of user preference of each region in the target webpage on the target webpage based on a preset color threshold corresponding to the number of visitors of each region in the target webpage; wherein the preset color threshold is used to represent a color corresponding to a number range in which the number of click events and / or the number of visitors is located, and different number ranges correspond to different colors.
7. A web page information acquisition apparatus characterized by comprising: The device comprises: The identifier generation module is configured to acquire a click event for a target webpage and generate identifier information of the click event, wherein the identifier information comprises a region field and an attribute field. The first determination module is configured to determine a region in which the click event occurs in the target webpage based on the region field. The second determination module is configured to determine that a click event occurs in a region in which a current click event is located in a case where an attribute field of the current click event matches a preset field, and determine a node tree of the target webpage, traverse nodes at each level of an upper layer of a node corresponding to the region in which the current click event is located, and determine whether there is an attribute field matching the preset field in the nodes at each level of the upper layer, the node tree being generated based on region identifiers of regions in the target webpage, the node tree comprising nodes representing the identifier information and node connection relationships of hierarchical relationships between the regions; and determine that a click event occurs in a region corresponding to a node of the attribute field matching the preset field in the nodes at each level of the upper layer in a case where there is an attribute field matching the preset field in the nodes at each level of the upper layer. The third determination module is configured to count the number of clicks of regions in which click events occur within a preset time.
8. The apparatus of claim 7, wherein, The identifier information further comprises a user field. The apparatus further comprises a fourth determination module configured to determine the number of visitors of regions in the target webpage based on the user field after the third determination module counts the number of clicks of regions in which click events occur within a preset time.
9. The apparatus of claim 8, wherein, The apparatus further comprises a display module configured to display the number of clicks of regions in the target webpage and / or the number of visitors after the fourth determination module determines the number of visitors of regions in the target webpage based on the user field.
10. The apparatus of claim 9, wherein, The display module comprises: a display unit configured to display the number of clicks of regions in the target webpage and / or the number of visitors on the target webpage; and / or a report page generation unit configured to generate a report page for displaying the number of clicks of regions in the target webpage and / or the number of visitors.
11. The apparatus of claim 10, wherein, The display unit is specifically configured to: add a label for displaying the number of clicks of regions in the target webpage and / or the number of visitors in the regions in the target webpage.
12. The apparatus of claim 8, wherein, The apparatus further comprises: a first heat map generation unit configured to generate a first heat map for displaying the degree of user preference of regions in the target webpage based on preset color thresholds corresponding to the number of clicks of regions in the target webpage after the fourth determination module determines the number of visitors of regions in the target webpage based on the user field; and / or a second heat map generation unit configured to generate a second heat map for displaying the degree of user preference of regions in the target webpage based on preset color thresholds corresponding to the number of clicks of regions in the target webpage after the fourth determination module determines the number of visitors of regions in the target webpage based on the user field. A second heat map generation unit is configured to generate a second heat map for displaying the user preference degree of each region in the target webpage on the target webpage based on the preset color threshold corresponding to the visitor quantity of each region in the target webpage after the fourth determination module determines the visitor quantity of each region in the target webpage based on the user field.
13. A computer storage medium, comprising, The computer storage medium stores a plurality of instructions, which are suitable for being loaded and executed by the processor to perform the method steps of any one of claims 1-6.
14. An electronic device, comprising: Comprise: A processor and a memory; wherein the memory stores a computer program, and the computer program is suitable for being loaded and executed by the processor to perform the method steps of any one of claims 1-6.
Citation Information
Patent Citations
Method for acquiring touching quantity of web page area
CN101299688A
Thermal analysis method, device and equipment of webpage access
CN108121802A