[go: up one dir, main page]

HK1249215A1 - Page element determination methods, equipment and user behavior path determination method and device - Google Patents

Page element determination methods, equipment and user behavior path determination method and device Download PDF

Info

Publication number
HK1249215A1
HK1249215A1 HK18108075.1A HK18108075A HK1249215A1 HK 1249215 A1 HK1249215 A1 HK 1249215A1 HK 18108075 A HK18108075 A HK 18108075A HK 1249215 A1 HK1249215 A1 HK 1249215A1
Authority
HK
Hong Kong
Prior art keywords
webpage
access request
code
user
web
Prior art date
Application number
HK18108075.1A
Other languages
Chinese (zh)
Other versions
HK1249215B (en
Inventor
王磊
Original Assignee
创新先进技术有限公司
阿里巴巴集團控股有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 创新先进技术有限公司, 阿里巴巴集團控股有限公司 filed Critical 创新先进技术有限公司
Priority to HK18108075.1A priority Critical patent/HK1249215B/en
Priority claimed from HK18108075.1A external-priority patent/HK1249215B/en
Publication of HK1249215A1 publication Critical patent/HK1249215A1/en
Publication of HK1249215B publication Critical patent/HK1249215B/en

Links

Landscapes

  • Information Transfer Between Computers (AREA)

Description

Page element determining method and device, and user behavior path determining method and device
Technical Field
The present application relates to the field of internet technologies, and in particular, to a method and an apparatus for determining a page element, and a method and an apparatus for determining a user behavior path.
Background
With the continuous development of internet technology, more and more information resources select networks as carriers for propagation, and users can access information in each webpage through a webpage browser. The method comprises the steps that a user inputs website information corresponding to a webpage needing to be accessed in a webpage browser, then access is confirmed, the webpage browser sends an access request to a corresponding webpage server, the access request carries the website information of the webpage which the user requests to access, the webpage server searches a webpage code of the webpage according to the website information in the access request and returns the searched webpage code to the webpage browser, and the webpage browser provides the webpage for the user according to the received webpage code.
When a subsequent user accesses the webpage, some page elements in the webpage may be clicked, if the clicked page elements are links corresponding to the website information, the webpage browser is triggered to send an access request to the webpage server, the access request carries the website information corresponding to the links clicked by the user, the webpage server searches webpage codes of the webpage to be skipped according to the website information carried in the access request, the searched webpage codes are returned to the webpage browser, and the webpage browser provides the webpage to the user according to the received webpage codes, so that the webpage skipping is realized.
In the prior art, a web server may record website information of a webpage accessed by a user each time, and subsequently, when counting a behavior path of the user, a behavior path that the user jumps between the webpages accessed may be determined according to the recorded website information.
From the above, the prior art can only count the behavior path of the user jumping among the visited web pages. However, in an actual situation, when a user clicks a page element on an accessed webpage, the clicked page element may not be a link corresponding to the website information, and at this time, webpage skipping is not performed, and a webpage browser is not triggered to send an access request to a webpage server, so that the webpage server cannot record the clicking operations of the user for the webpage, and subsequently, when a user behavior path is counted, the clicking operations of the user for the link, which is not corresponding to the website information, cannot be counted, so that the accuracy of counting the user behavior path is low.
Disclosure of Invention
In view of this, embodiments of the present application provide a method and an apparatus for determining a page element, and a method and an apparatus for determining a user behavior path, so as to solve the problem of low accuracy in calculating a user behavior path in the prior art.
The embodiment of the application is realized by the following technical scheme:
according to the first aspect of the present application, there is provided a page element determining method, including:
the method comprises the steps that a webpage server receives a first access request sent by a webpage browser, and searches a webpage code of a webpage which a user requests to access according to the first access request;
adding an access request simulation code and attribute information corresponding to a linked page element which is not corresponding to the website information into the searched webpage code;
sending the webpage code added with the access request simulation code and the attribute information to the webpage browser; enabling the web browser to provide a web page for a user, detecting the click operation of the user on each page element in the web page, if the detected page element targeted by the click operation is not a link corresponding to the website information, simulating a code according to an access request in the web code, acquiring attribute information corresponding to the targeted page element from the web code, carrying the acquired attribute information in a second access request, and sending the second access request to a web server corresponding to the web page;
and if a second access request sent by the web browser is received, determining a page element aimed at by a user in the clicking operation of the web page according to the attribute information carried in the received second access request.
According to the second aspect of the present application, there is provided a web server comprising:
the first access request receiving unit is used for receiving a first access request sent by a web browser;
the first webpage code searching unit is used for searching the webpage code of the webpage which the user requests to access according to the first access request;
the adding unit is used for adding the access request simulation code and the attribute information corresponding to the page element which is not the link corresponding to the website information in the webpage code searched by the first webpage code searching unit;
the first webpage code sending unit is used for sending the webpage code added with the access request simulation code and the attribute information by the adding unit to the webpage browser; enabling the web browser to provide a web page for a user, detecting the click operation of the user on each page element in the web page, if the detected page element targeted by the click operation is not a link corresponding to the website information, simulating a code according to an access request in the web code, acquiring attribute information corresponding to the targeted page element from the web code, carrying the acquired attribute information in a second access request, and sending the second access request to a web server corresponding to the web page;
a second access request receiving unit, configured to receive a second access request sent by the web browser;
and the page element determining unit is used for determining the page element aimed by the click operation of the user in the webpage according to the attribute information carried in the second access request received by the second access request receiving unit.
According to the 3 rd aspect of the present application, there is provided a page element determining method, including:
when a user requests to access a webpage, a webpage browser sends a first access request to a webpage server corresponding to the webpage;
receiving a webpage code sent by the webpage server, wherein the webpage code carries an access request simulation code added by the webpage server and attribute information corresponding to a page element of a link which is not corresponding to website information;
providing the webpage to the user according to the received webpage code; detecting the clicking operation of the user on each page element in the webpage;
if the detected page element targeted by the click operation is not the link corresponding to the website information, acquiring the attribute information corresponding to the targeted page element from the webpage code according to the access request simulation code in the webpage code, carrying the acquired attribute information in the second access request, and sending the second access request to the webpage server corresponding to the webpage, so that the webpage server determines the page element targeted by the click operation of the user in the webpage according to the received attribute information carried in the second access request.
According to the 4 th aspect of the present application, there is provided a web browser comprising:
the first access request sending unit is used for sending a first access request to a webpage server corresponding to a webpage when a user requests to access the webpage;
the webpage code receiving unit is used for receiving a webpage code sent by the webpage server, wherein the webpage code carries an access request simulation code added by the webpage server and attribute information corresponding to a page element which is not a link corresponding to the website information;
the webpage providing unit is used for providing the webpage to the user according to the webpage code received by the webpage code receiving unit;
the click operation detection unit is used for detecting the click operation of the user on each page element in the webpage;
and the second access request sending unit is used for acquiring the attribute information corresponding to the page element from the webpage code according to the access request simulation code in the webpage code if the detected page element to which the click operation is directed is not the link corresponding to the website information, and sending the acquired attribute information carried in the second access request to the webpage server corresponding to the webpage, so that the webpage server determines the page element to which the click operation of the user in the webpage is directed according to the attribute information carried in the received second access request.
According to the 5 th aspect of the present application, there is provided a page element determination method, including:
when a user requests to access a webpage, a webpage browser sends a first access request to a webpage server corresponding to the webpage;
the webpage server searches a webpage code of a webpage which a user requests to access according to the first access request; and are
Adding an access request simulation code and attribute information corresponding to a linked page element which is not corresponding to the website information into the searched webpage code;
sending the webpage code added with the access request simulation code and the attribute information to the webpage browser;
the webpage browser provides a webpage to a user according to the received webpage code; detecting the clicking operation of the user on each page element in the webpage;
if the detected page element targeted by the click operation is not the link corresponding to the website information, acquiring attribute information corresponding to the targeted page element from the webpage code according to an access request simulation code in the webpage code, and carrying the acquired attribute information in a second access request to send the second access request to a webpage server corresponding to the webpage;
and the webpage server determines the page element aimed by the clicking operation of the user in the webpage according to the attribute information carried in the received second access request.
According to the 6 th aspect of the present application, there is provided a page element determination system including a web browser and a web server, wherein:
the webpage browser is used for sending a first access request to a webpage server corresponding to a webpage when a user requests to access the webpage, providing the webpage for the user according to a webpage code sent by the webpage server, detecting the clicking operation of the user on each page element in the webpage, if the detected page element corresponding to the clicking operation is not a link corresponding to the website information, simulating a code according to the access request in the webpage code, acquiring attribute information corresponding to the page element from the webpage code, carrying the acquired attribute information in a second access request, and sending the second access request to the webpage server corresponding to the webpage;
the webpage server is used for searching a webpage code of a webpage which a user requests to access according to a first access request sent by the webpage browser, adding an access request simulation code and attribute information corresponding to a page element which is not a link corresponding to website information in the searched webpage code, and sending the webpage code added with the access request simulation code and the attribute information to the webpage browser; and determining a page element aimed at by a user in the webpage through clicking operation according to attribute information carried in a second access request sent by the webpage browser.
According to the 7 th aspect of the present application, there is provided a user behavior path determining method, including:
acquiring webpage jump paths of the user in the webpages accessed by the specified session and webpage elements aimed by the clicking operation of the user in the webpages accessed by the specified session;
determining a user behavior path of the user in the specified session according to the obtained webpage jump path and the obtained page elements;
the page element to which the click operation is directed is determined by the following method:
the web server adds an access request simulation code and attribute information corresponding to a linked page element which is not corresponding to the website information in the searched web code;
sending the webpage code added with the access request simulation code and the attribute information to the webpage browser so that the webpage browser provides a webpage for a user, detecting the click operation of the user on each page element in the webpage, if the detected page element targeted by the click operation is not a link corresponding to the website information, acquiring the attribute information corresponding to the targeted page element from the webpage code according to the access request simulation code in the webpage code, carrying the acquired attribute information in a second access request, and sending the second access request to a webpage server corresponding to the webpage;
and if a second access request sent by the web browser is received, determining a page element aimed at by a user in the clicking operation of the web page according to the attribute information carried in the received second access request.
According to the 8 th aspect of the present application, there is provided a user behavior path determination device, including:
the acquiring unit is used for acquiring webpage jump paths of the webpages accessed by the user in the specified session and the page elements corresponding to the clicking operation of the user in the webpages accessed by the specified session; when the user clicks the page element, webpage skipping cannot be carried out;
a user behavior path determining unit, configured to determine a user behavior path of the user in the specified session according to the webpage jump path and the page element obtained by the obtaining unit;
the page element to which the click operation is directed is determined by the following method:
the web server adds an access request simulation code and attribute information corresponding to a linked page element which is not corresponding to the website information in the searched web code;
sending the webpage code added with the access request simulation code and the attribute information to the webpage browser so that the webpage browser provides a webpage for a user, detecting the click operation of the user on each page element in the webpage, if the detected page element targeted by the click operation is not a link corresponding to the website information, acquiring the attribute information corresponding to the targeted page element from the webpage code according to the access request simulation code in the webpage code, carrying the acquired attribute information in a second access request, and sending the second access request to a webpage server corresponding to the webpage;
and if a second access request sent by the web browser is received, determining a page element aimed at by a user in the clicking operation of the web page according to the attribute information carried in the received second access request.
According to the 9 th aspect of the present application, there is provided a page element determination method, including:
the method comprises the steps that a webpage server sends a webpage code added with an access request simulation code and attribute information corresponding to a page element of a link not corresponding to website information to a webpage browser, the webpage browser is instructed to provide a webpage for a user according to the received webpage code, and clicking operation of the user on each page element in the webpage is detected in real time;
the web page server receives a second access request sent by the web page browser, wherein the second access request carries attribute information of a page element which is clicked by a user in a web page and is not a link corresponding to the website information;
and the webpage server determines the page element aimed by the clicking operation of the user in the webpage according to the attribute information carried in the received second access request.
In the technical solution of the embodiment of the present application, when a user requests to access a web page, a web browser sends a first access request carrying website information of the web page to a web server corresponding to the web page, the web server searches a web code of the web page requested to be accessed by the user according to the website information carried in the first access request, adds an access request simulation code and attribute information corresponding to a page element of a link not corresponding to the website information to the found web code, sends the web code to which the access request simulation code and the attribute information are added to the web browser, the web browser provides the web page to the user according to the received web code, detects a click operation of the user on the page element in the web page, and if the detected page element to which the click operation is directed is not a link corresponding to the website information, the webpage skipping cannot be realized, at the moment, the webpage browser sends a second access request carrying attribute information of the webpage element to the webpage server, and the webpage server can determine the webpage element to which the clicking operation of the user in the webpage is directed according to the attribute information carried in the received second access request, that is to say, the technical scheme of the embodiment of the application can not only count behavior paths skipped by the user between the accessed webpages, but also count the webpage elements of the webpage on which the user performs the clicking operation; when the user behavior path of the user needs to be counted subsequently, the webpage jump path in each webpage accessed by the user in the specified session and the page element corresponding to the click operation of the user in each webpage accessed by the specified session can be obtained firstly, then the user behavior path of the user in the specified session is determined according to the obtained webpage jump path and the page element, and the user behavior path is not determined according to the webpage jump path in each webpage accessed by the user, so that the accuracy of counting the user behavior path is effectively improved.
Additional features and advantages of the application will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by the practice of the application. The objectives and other advantages of the application may be realized and attained by the structure particularly pointed out in the written description and claims hereof as well as the appended drawings.
Drawings
The accompanying drawings are included to provide a further understanding of the application and are incorporated in and constitute a part of this specification, illustrate embodiments of the application and together with the description serve to explain the principles of the application and not to limit the application. In the drawings:
fig. 1 is a schematic flowchart illustrating a page element determination method according to a first embodiment of the present application;
fig. 2 is a schematic flowchart illustrating a process of allocating a user identifier to a user by a web server according to a first embodiment of the present application;
fig. 3 is a schematic diagram illustrating a relationship between a page node burying device, a node burying transmitting device and a data recording device according to a first embodiment of the present application;
FIG. 4 is a schematic diagram illustrating a principle of a page element determination method according to a first embodiment of the present application;
FIG. 5 is a schematic diagram illustrating a principle of intercepting and storing a web page code according to a first embodiment of the present application;
FIG. 6 is a schematic diagram illustrating a web browser structure according to a second embodiment of the present application;
fig. 7 is a schematic structural diagram of a web server according to a second embodiment of the present application;
fig. 8 is a schematic flowchart of a user behavior path determination method in the third embodiment of the present application;
fig. 9 is a schematic structural diagram of a user behavior path determining apparatus according to a fourth embodiment of the present application.
Detailed Description
The preferred embodiments of the present application will be described in conjunction with the drawings of the specification, it being understood that the preferred embodiments described herein are merely for purposes of illustration and explanation and are not intended to limit the present application. And the embodiments and features of the embodiments in the present application may be combined with each other without conflict.
According to the method and the device for determining the user behavior path, not only are webpage jump paths between webpages visited by the user counted, but also page elements corresponding to clicking operations of the user in the webpages need to be counted, and then the user behavior path of the user can be determined according to the webpage jump paths obtained through counting and the page elements corresponding to the clicking operations of the user in the webpages.
The following first describes a process of counting page elements targeted by user click operations in each web page.
Example one
As shown in fig. 1, a flowchart of a page element determination method provided in an embodiment of the present application includes the following specific processing flows:
step 11, when a user requests to access a webpage, the webpage browser sends a first access request carrying website information of the webpage to a webpage server corresponding to the webpage.
When a user wants to access a certain webpage, the user may input website information corresponding to the webpage to be accessed in a web browser, and then confirm the access, the web browser sends an access request (the access request may be referred to as a first access request) to a corresponding web server, where the access request carries the website information input by the user, or after the user clicks a link corresponding to certain website information in the accessed webpage, the web browser also sends an access request (the access request may be referred to as a first access request) carrying the website information corresponding to the clicked link to the corresponding web server. That is to say, the first access request sent by the web browser to the web server carries the website information of the web page requested to be accessed by the user.
In an embodiment of the present application, the access request sent by the web browser to the web server may be, but is not limited to, a hypertext Transfer Protocol (HTTP) request, and the website information of the web page may be, but is not limited to, a Uniform Resource Locator (URL) address of the web page.
And step 12, the webpage server searches the webpage code of the webpage which the user requests to access according to the website information carried in the first access request.
If the user has previously logged in the requested access webpage through the web browser, the user identifier of the user in the requested access webpage may be stored in the web browser, and at this time, the web browser may also carry the user identifier in the access request and send the access request to the web server.
As shown in fig. 2, after receiving an access request, a web server first determines whether the received access request carries a user identifier, and if it is determined that the access request does not carry a user identifier, the web server allocates a new user identifier to the user and allocates a new session identifier to the session, where at this time, the number of sessions of the user is 1, the number of web pages corresponding to the session is 1, that is, the web page requested to be accessed by the user is a first web page in the session; if the session identifier is judged to be carried with the user identifier, the web page server judges whether the stored session identifier of the user is valid, if the session identifier is judged to be valid, the stored session identifier of the user is indicated to be in an open session context, at the moment, the number of the web pages corresponding to the session is added by 1, if the session identifier is judged to be invalid, a new session identifier is distributed to the user, at the moment, the number of the web pages corresponding to the session is 1, namely, the web page requested to be accessed by the user is the first web page in the session.
And step 13, adding an access request simulation code and attribute information corresponding to the page element which is not the link corresponding to the website information into the searched webpage code by the webpage server.
Before sending the web page code of the web page to the web browser, the web server may add an access request simulation code and attribute information corresponding to a page element that is not a link corresponding to the website information to the web page code, and a subsequent web browser may send an access request carrying the attribute information of the page element to the web server according to the access request simulation code in the web page code.
In the first embodiment of the present application, a page code of a web page may be, but is not limited to, a Hypertext Markup Language (HTML) code, and attribute information of a page element added by a web server may be referred to as a seed attribute, for example, attribute information added by the web server for a certain page element is "tabA", and if a subsequent user clicks the page element, the web browser will carry the attribute information "tabA" in an access request to send the access request to the web server.
In the first embodiment of the present application, the access request emulation code may be, but is not limited to, JAVASCRIPT code.
And step 14, the web page server sends the web page code added with the access request simulation code and the attribute information to the web page browser.
And step 15, the webpage browser provides the webpage to the user according to the received webpage code.
And step 16, the webpage browser detects the clicking operation of the user on the page elements in the webpage.
After the web page is provided for the user by the web browser, the clicking operation of the user on each page element in the web page is detected in real time, wherein the page elements in the web page may be links corresponding to the website information, if the user clicks the page elements, the web page skipping is performed, the current web page is skipped to the web page corresponding to the clicked link, the page elements in the web page may not be links corresponding to the website information, for example, some page elements in the web page may be option buttons, and if the user clicks the page elements corresponding to the option buttons, the web page skipping is not performed.
And step 17, if the detected page element targeted by the click operation is not the link corresponding to the website information, the web browser carries the attribute information of the page element in a second access request and sends the second access request to a web server corresponding to the web page.
In the prior art, if a page element clicked by a user in an accessed webpage is not a link corresponding to website information, webpage skipping cannot be performed, and then a webpage browser cannot send an access request to a webpage server, and the webpage server cannot count click operations of the user on the page element in the webpage.
In view of this, in the first embodiment of the present application, if a page element clicked by a user in an accessed webpage is not a link corresponding to website information, the webpage browser still sends an access request (the access request may be referred to as a second access request) to the webpage server, where the second access request carries attribute information of the page element clicked by the user.
The web server inserts an access request simulation code into the web code in advance, which may also be referred to as a "buried point" operation. If the subsequent web browser detects that the page element targeted by the click operation of the user is not the link corresponding to the website information, the web browser acquires the attribute information corresponding to the page element from the web code according to the access request simulation code (namely the point 'buried' in the web code) in the web code, carries the acquired attribute information in a second access request, and sends the second access request to the web server corresponding to the web page.
In addition, in the first embodiment of the present application, it is further provided that, if the detected page element targeted by the click operation is a link corresponding to the website information, the web browser carries the website information corresponding to the page element in an access request (the access request may be referred to as a third access request), and sends the access request to a web server corresponding to the web page.
And step 18, the webpage server determines the page element aimed by the click operation of the user in the webpage according to the attribute information carried in the received second access request.
After receiving a second access request sent by the web browser, the web server extracts attribute information of the page elements from the second access request, wherein the web server stores a corresponding relationship between the identifier of each page element and the attribute information of the page element, and determines the page element to which the user performs the click operation in the corresponding relationship according to the extracted attribute information, so that the web server can count the page elements in the web page on which the user performs the click operation.
It can be known from the above that, a page point burying device is arranged in the web server and is used for performing a point burying operation in the web code to be sent to the web browser, a point burying sending device is arranged in the web browser and is used for sending an access request carrying attribute information of a page element to the web server according to the buried point when executing the web code, and a data recording device is further arranged in the web server and is used for determining and recording the page element targeted by the click operation of the user at this time according to the received access request, wherein the relationship among the page point burying device, the point burying sending device and the data recording device is shown in fig. 3.
The page element determination method is as shown in fig. 4, a principle schematic diagram of a page element determination method is that a user performs a click operation on a page element in a web page provided by a web browser, if the page element clicked by the user is not a link corresponding to website information, the web browser provides a corresponding web operation result to the user according to the click operation of the user, in addition, the web browser collects attribute information of the page element clicked by the user from a web code according to an access request simulation code in the web code, and then sends the collected attribute information to a web server, so that the web server can determine the page element clicked by the user according to the attribute information.
In addition, if the access request received by the web server is a third access request, that is, the page element clicked by the user in the web page is the link corresponding to the website information, the web server determines the web page jump path of the user according to the website information carried in the received third access request, wherein the process of determining the web page jump path of the user is consistent with the prior art, and is not repeated here.
The first embodiment of the present application provides that, for each session of a user, a web server may store a web operation log corresponding to the session of the user, where the web operation log includes a web jump path of the user, specifically: after receiving the third access request, the web server stores the website information carried in the third access request in the web operation log corresponding to the session identifier of the session of the user according to the time point of receiving the third access request, wherein the web server can correspondingly store the website information and the time point of receiving the third access request, and can also sequentially store the website information according to the sequence of the time point of receiving the third access request from the beginning to the end.
In addition, the web page operation log further includes attribute information of a page element clicked by the user in the web page, specifically: after receiving the second access request, the web server correspondingly stores the attribute information carried in the second access request and the website information corresponding to the web page (i.e., the web page targeted by the user to perform the clicking operation) in the web operation log corresponding to the session identifier of the session of the user according to the time point of receiving the second access request, wherein the web server can correspondingly store the attribute information and the time point of receiving the second access request, and can also sequentially store the attribute information according to the sequence of the time point of receiving the second access request from first to last.
As can be seen from the above, the web page operation log is stored in correspondence with the session identifier, and the web page operation log not only contains the web page jump path of each web page accessed by the user in the corresponding session, but also contains the attribute information of the page element clicked by the user in the web page accessed by the corresponding session, where the attribute information is stored in correspondence with the website information, and the web page jump path and the attribute information of the page element can be associated together, so as to obtain a complete user behavior path.
For example, the first table is a web page operation log of a certain session of the user, where the website information of the web page is a URL address of the web page, and the attribute information of the page element clicked by the user is a seed attribute.
Table one:
as can be seen from the table I, in the session process of the user, the URL address of the webpage 1 accessed for the first time is http:// item. Then the user clicks a page element of a link corresponding to the website information in the webpage 1, and the webpage 1 jumps to a URL address of http:// item. Web page 2 with id 8789467987; a user clicks a certain page element which is not a link corresponding to the website information in the webpage 2, webpage skipping is not performed at the moment, and the seed attribute of the page element is tabA; and then, the user clicks another page element which is not a link corresponding to the website information in the webpage 2, the webpage skipping is not performed at the moment, and the seed attribute of the page element is tabB.
The embodiment of the application provides that a user behavior path of a user in an appointed session can be restored subsequently, then, a webpage code of each webpage accessed by the user in the appointed session needs to be acquired, if the webpage accessed by the user is a static webpage, the webpage code of the webpage can be acquired directly according to website information of the webpage, and if the webpage accessed by the user is a dynamic webpage (namely, the webpage which cannot be accessed without corresponding authority), the webpage code of the webpage cannot be acquired according to the website information of the webpage. In contrast, according to the first embodiment of the present application, when the web server sends the web code to the web browser, the web code and the website information may be stored correspondingly, so that when the user behavior path of the user is restored, the web code of the web page may be directly obtained according to the website information of the web page, specifically: if the user clicks the link corresponding to the website information, the webpage browser carries the clicked website information in a third access request and sends the third access request to the webpage server, after the webpage server receives the third access request sent by the webpage browser, the webpage server searches for the webpage code of the webpage corresponding to the website information according to the website information carried in the third access request, sends the searched webpage code to the webpage browser, and correspondingly stores the searched webpage code and the website information carried in the third access request.
In the first embodiment of the present application, the web page code provided by the web page server to the web page browser may be a web page code of a static web page, and may also be a web page code of a dynamic web page. The web page server can correspondingly store the web page code and the website information when feeding back the web page code to the web page browser every time; in addition, in order to save storage resources, the web server may also first determine whether the web page corresponding to the website information carried in the third access request is a dynamic web page, if the determination result is yes, the web page is a dynamic web page, the found web page code and the website information carried in the third access request are correspondingly stored, and if the determination result is no, the web page is a static web page, the web server does not perform the step of correspondingly storing the found web page code and the website information carried in the third access request.
The method includes the steps that an interceptor device and a page code storage device can be arranged on a framework layer of a web server, the interceptor device is used for capturing web page codes (such as HTML source codes) fed back to a web browser by the web server, the page code storage device is used for storing the web page codes, and if the web page is a dynamic web page, the HTML source codes in the outputString have no readable authority and cannot be stored. As shown in fig. 5, the web browser sends an access request carrying website information to the web server, the web server searches for a web code of a web page corresponding to the website information according to the website information carried in the third access request, and sends the found web code to the web browser, and in addition, an interceptor device arranged in advance in a framework layer of the web server intercepts the web code fed back by the web server and sends the web code to a page code storage device, and the page code storage device correspondingly stores the web code and the website information.
Example two
Corresponding to the page element determination method provided in the first embodiment of the present application, a second embodiment of the present application provides a web browser, whose structure is shown in fig. 6, and includes:
the first access request sending unit 61 is configured to send a first access request carrying website information of a webpage to a webpage server corresponding to the webpage when a user requests to access the webpage;
a web page code receiving unit 62, configured to receive a web page code sent by the web page server, where the web page code carries an access request simulation code added by the web page server and attribute information corresponding to a page element that is not a link corresponding to the website information;
a web page providing unit 63 for providing the web page to the user according to the web page code received by the web page code receiving unit 62;
a click operation detection unit 64, configured to detect a click operation performed by a user on a page element in the web page;
the second access request sending unit 65 is configured to, when the page element targeted by the click operation detected by the click operation detection unit 64 is not a link corresponding to the website information, carry the attribute information of the page element in a second access request and send the second access request to a web server corresponding to the web page.
Preferably, the second access request sending unit 65 is specifically configured to obtain, according to an access request simulation code in a web page code of the web page, attribute information corresponding to the page element from the web page code, and send the obtained attribute information to a web server corresponding to the web page by carrying the obtained attribute information in a second access request.
Preferably, the web browser further includes a third access request sending unit, configured to, when the page element targeted by the click operation detected by the click operation detection unit 64 is a link corresponding to the website information, carry the website information corresponding to the page element in the third access request and send the third access request to the web server corresponding to the web page.
The web browser provided by the embodiments of the present application may be implemented by a computer program. It should be understood by those skilled in the art that the above-mentioned cell division method is only one of many cell division methods, and if the cell division method is divided into other cells or not, it is within the scope of the present application as long as the web browser has the above-mentioned functions.
Corresponding to the method for determining page elements provided in the first embodiment of the present application, a second embodiment of the present application provides a web server, whose structure is shown in fig. 7, and includes:
a first access request receiving unit 71, configured to receive a first access request sent by a web browser, where the first access request carries website information of a webpage that a user requests to access;
the first webpage code searching unit 72 is configured to search a webpage code of a webpage that a user requests to access according to website information carried in the first access request received by the first access request receiving unit 71;
an adding unit 73, configured to add, in the web page code found by the first web page code finding unit 72, the access request simulation code and the attribute information corresponding to the page element that is not the link corresponding to the website information;
a first web page code sending unit 74, configured to send the web page code to which the access request simulation code and the attribute information are added by the adding unit 73 to the web browser;
a second access request receiving unit 75, configured to receive a second access request sent by the web browser, where the second access request carries attribute information of a page element that is clicked in a web page by a user and is not a link corresponding to the website information;
the page element determining unit 76 is configured to determine, according to the attribute information carried in the second access request received by the second access request receiving unit 75, a page element to which a user performs a click operation in the web page.
Preferably, the web page server further comprises:
a third access request receiving unit, configured to receive a third access request sent by the web browser, where the third access request carries website information corresponding to a page element clicked by a user in a web page;
and the webpage jump path determining unit is used for determining the webpage jump path of the user according to the website information carried in the third access request received by the third access request receiving unit.
Preferably, the web page server further comprises:
the website information storage unit is used for storing the website information carried in the third access request in the webpage operation log corresponding to the session identifier of the session of the user according to the time point of receiving the third access request after the third access request receiving unit receives the third access request;
and the attribute information storage unit is used for correspondingly storing the attribute information carried in the second access request and the website information corresponding to the webpage in the webpage operation log corresponding to the session identifier of the session of the user according to the time point of receiving the second access request after the second access request receiving unit receives the second access request.
Preferably, the web page server further comprises:
the second webpage code searching unit is used for searching the webpage code of the webpage corresponding to the website information according to the website information carried in the third access request after the third access request receiving unit receives the third access request;
the second webpage code sending unit is used for sending the webpage code searched by the second webpage code searching unit to the webpage browser;
and the webpage code storage subunit is used for correspondingly storing the webpage code searched by the second webpage code searching unit and the website information carried in the third access request.
Preferably, the web page server further comprises:
the dynamic webpage judging unit is used for judging whether the webpage corresponding to the website information carried in the third access request is a dynamic webpage or not before the webpage code searched by the second webpage code searching unit and the website information carried in the third access request are correspondingly stored by the webpage code storing subunit;
the web code storage subunit is specifically configured to, when the determination result of the dynamic web page determining unit is yes, correspondingly store the web code found by the second web code searching unit and the website information carried in the third access request.
The web server provided by the embodiment of the application can be realized by a computer program. It should be understood by those skilled in the art that the above-mentioned unit division method is only one of many unit division methods, and if the unit division method is divided into other units or not, it should be within the scope of the present application as long as the web server has the above-mentioned functions.
Corresponding to the page element determining method provided in the first embodiment of the present application, a second embodiment of the present application provides a page element determining system, including a web browser and a web server, where:
the webpage browser is used for sending a first access request carrying website information of a webpage to a webpage server corresponding to the webpage when a user requests to access the webpage, providing the webpage to the user according to a webpage code sent by the webpage server, detecting a clicking operation of the user on a page element in the webpage, and carrying attribute information of the page element in a second access request to the webpage server corresponding to the webpage if the detected page element targeted by the clicking operation is not a link corresponding to the website information;
the web server is used for searching a web code of a web page requested to be accessed by a user according to website information carried in a first access request sent by the web browser, adding an access request simulation code and attribute information corresponding to a page element of a link not corresponding to the website information in the searched web code, sending the web code added with the access request simulation code and the attribute information to the web browser, and determining the page element corresponding to the click operation of the user in the web page according to the attribute information carried in a second access request sent by the web browser.
EXAMPLE III
The following describes a process of determining a user behavior path of a user according to a webpage jump path obtained through statistics and a page element targeted by a user click operation in each webpage.
As shown in fig. 8, a flow diagram of a user behavior path determining method provided in the third embodiment of the present application is shown, and a specific processing flow is as follows:
and step 81, acquiring webpage jump paths of the webpages accessed by the user in the specified session and the page elements corresponding to the clicking operations of the users in the webpages accessed by the specified session.
In the first embodiment of the present application, the web page operation log is stored according to the session, that is, the web page operation log is stored in correspondence with the session identifier, so that when it is required to determine the user behavior path of the user in the specified session, the web page operation log of the designated session of the user is obtained from the web page server according to the session identifier of the designated session, the web page operation log carries the website information of each web page accessed by the user in the designated session, and attribute information of a page element to which a click operation performed by the user in each web page is directed, then determining the webpage jump path of each webpage accessed by the user in the appointed conversation according to the acquired website information carried in the webpage operation log, and determining the page element aimed by the user in the click operation in the specified session according to the acquired attribute information of the page element carried in the webpage operation log.
The process of the web page server storing the web page operation log according to the web page jump path and the page element clicked by the user is consistent with the process in the first embodiment of the application, and is not described again here.
And step 82, determining a user behavior path of the user in the specified session according to the obtained webpage jump path and the obtained page elements.
The webpage jump path of the user can be determined according to the webpage operation log, and the page element clicked in the webpage by the user can also be determined, so that the complete user behavior path of the user can be determined according to the webpage jump path of the user and the page element clicked in the webpage by the user.
In the prior art, after the user behavior path is obtained, data of the obtained user behavior path needs to be manually analyzed, so that the click condition of the user on each webpage is researched, and the processing efficiency is low. In contrast, the third embodiment of the application provides that after the user behavior path of the user is determined, the user behavior path of the user can be restored, so that the click condition of the user in each webpage can be accurately and quickly analyzed according to the restored user behavior path, and the processing efficiency is effectively improved.
Specifically, the method comprises the following steps: according to the sequence of the user accessing the webpages, respectively executing the following steps aiming at the webpages accessed by the user in the appointed conversation: the method comprises the steps of obtaining a webpage code of a webpage according to website information of the webpage, rendering the webpage based on the obtained webpage code of the webpage, and restoring a clicking operation of a user in the rendered webpage according to a webpage element aiming at the clicking operation of the user in the webpage.
If the web page operation log of the specified session stored by the web page server is shown in table one in the first embodiment of the present application, it may be determined that a behavior path of the user in the specified session is: (1) accessing a webpage 1 with a URL address of http:// item. (2) Jump from web page 1 to URL address http:// item. Web page 2 with id 8789467987; (3) the user clicks a page element with the seed attribute of tabA in the webpage 2; (4) the user has clicked on the page element whose seed attribute is tabB in the web page 2.
When the user behavior path is restored subsequently, (1) acquiring a webpage code of the webpage 1 according to the URL address of the webpage 1, and rendering the webpage 1 based on the acquired webpage code of the webpage 1; (2) acquiring a webpage code of the webpage 2 according to the URL address of the webpage 2, and rendering the webpage 2 based on the acquired webpage code of the webpage 2; (3) and restoring the click operation of the user in the webpage 2 according to the rendered webpage 2 and the page elements (the page element with the seed attribute of tabA and the page element with the seed attribute of tabB) which are aimed by the click operation of the user in the webpage 2.
In addition, in order to restore the user behavior path more vividly, the third embodiment of the application further provides that the user behavior path of the user in the specified session can be restored in an animation mode, so that the click condition of the user on the webpage can be clearly and clearly known, a webpage designer can conveniently find the problem, and an optimization scheme can be pertinently provided.
In the third embodiment of the present application, the web page may be a static web page or a dynamic web page, the web page server may store the web page code and the website information correspondingly each time the web page code is fed back to the web page browser, that is, the web page server stores the web page codes of all the web pages provided to the web page browser, the web page server may also first determine whether the web page corresponding to the website information carried in the third access request is a dynamic web page, if the web page is a dynamic web page, the found web page code and the website information carried in the third access request are stored correspondingly, and if the web page is a static web page, the web page server may not perform the step of storing the found web page code and the website information carried in the third access request correspondingly, that is, the web page server only stores the web page code of the dynamic web page provided to the web page browser.
Subsequently, before restoring the user behavior path of the user, the corresponding relationship between the website information of the web page and the web page code of the web page may be obtained from the web page server.
If the web page server stores the web page codes of all the web pages provided for the web page browser, when the web page codes of the web pages are acquired according to the website information of the web pages, the web page codes of the web pages can be directly searched in the corresponding relationship between the acquired website information and the web page codes according to the website information of the web pages; if the web page server only stores the web page code of the dynamic web page provided for the web page browser, when the web page code of the web page is acquired according to the web address information of the web page, the web page type of the web page (the web page type comprises a static web page and a dynamic web page) can be firstly judged, if the web page is judged to be the static web page, the web address information of the web page is carried in the web page code acquisition request and is sent to the web page server, and the web page code of the web page sent by the web page server is received, wherein the received web page code is sent after the web page server finds the web address information carried in the web page code acquisition request, if the web page is judged to be the dynamic web page, the web page code of the web page is found in the corresponding relation between the acquired web address information and the web page code according to the web address information of the web.
As can be seen from the above, in the third embodiment of the application, when rendering a webpage accessed by a user, for a dynamic webpage that cannot be accessed without a corresponding right, the webpage code of the dynamic webpage can be obtained according to the corresponding relationship between the webpage code and the website information that are pre-stored by the webpage server, so that the dynamic webpage can be accurately rendered, and the user behavior path of the user can be completely restored.
As can be seen from the above processing procedures, in the technical solution of the embodiment of the present application, when a user requests to access a web page, a web browser sends a first access request carrying website information of the web page to a web server corresponding to the web page, the web server searches a web code of the web page requested to be accessed by the user according to the website information carried in the first access request, adds an access request simulation code and attribute information corresponding to a page element that is not a link corresponding to the website information to the found web code, sends the web code to which the access request simulation code and the attribute information are added to the web browser, the web browser provides the web page to the user according to the received web code, detects a click operation of the user on the page element in the web page, and if the detected page element to which the click operation is directed is not a link corresponding to the website information, the webpage skipping cannot be realized, at the moment, the webpage browser sends a second access request carrying attribute information of the webpage element to the webpage server, and the webpage server can determine the webpage element to which the clicking operation of the user in the webpage is directed according to the attribute information carried in the received second access request, that is to say, the technical scheme of the embodiment of the application can not only count behavior paths skipped by the user between the accessed webpages, but also count the webpage elements of the webpage on which the user performs the clicking operation; when the user behavior path of the user needs to be counted subsequently, the webpage jump path in each webpage accessed by the user in the specified session and the page element corresponding to the click operation of the user in each webpage accessed by the specified session can be obtained firstly, then the user behavior path of the user in the specified session is determined according to the obtained webpage jump path and the page element, and the user behavior path is not determined according to the webpage jump path in each webpage accessed by the user, so that the accuracy of counting the user behavior path is effectively improved.
Example four
Corresponding to the user behavior path determining method provided in the third embodiment of the present application, a fourth embodiment of the present application provides a user behavior path determining apparatus, whose structure is shown in fig. 9, and includes:
an obtaining unit 91, configured to obtain a webpage jump path in each webpage accessed by a specified session by a user and a page element for a click operation in each webpage accessed by the specified session by the user;
and a user behavior path determining unit 92, configured to determine a user behavior path of the user in the specified session according to the web page jump path and the page element obtained by the obtaining unit 91.
Preferably, the obtaining unit 91 specifically includes:
a web page operation log obtaining subunit, configured to obtain, from a web server, a web page operation log of a specified session of a user according to a session identifier of the specified session, where the web page operation log carries website information of each web page visited by the user in the specified session, and attribute information of a page element to which a click operation performed by the user in each web page is directed;
a webpage jump path determining subunit, configured to determine, according to the website information carried in the obtained webpage operation log, a webpage jump path of each webpage accessed by the user in the specified session;
and the page element determining subunit is configured to determine, according to the attribute information of the page element carried in the acquired web page operation log, a page element to which a click operation of the user in the specified session is directed.
Preferably, the device further includes a user behavior path restoring unit, configured to restore the user behavior path of the user in the specified session.
Preferably, the user behavior path restoring unit specifically includes:
a web code obtaining subunit, configured to obtain, according to the sequence in which the user accesses the web pages, a web code of the web page according to the website information of the web page, for each web page that the user accesses in the specified session;
the webpage rendering subunit is used for rendering the webpage based on the webpage code of the webpage acquired by the webpage code acquiring subunit;
and the click operation reduction subunit is used for reducing the click operation of the user in the rendered webpage according to the page element corresponding to the click operation of the user in the webpage.
More preferably, the apparatus further comprises:
and the corresponding relation acquisition unit is used for acquiring the corresponding relation between the website information of the webpage and the webpage code of the webpage from the webpage server before the user behavior path reduction unit reduces the user behavior path of the user in the specified session.
Preferably, the web page code obtaining subunit is specifically configured to, according to the sequence in which the user accesses the web pages, respectively search, according to the website information of the web page, the web page code of the web page in the correspondence between the website information and the web page code obtained by the correspondence obtaining unit for each web page accessed by the user in the specified session.
Preferably, the web page code acquiring subunit is specifically configured to respectively determine, according to the sequence in which the user accesses the web pages, the web page types of the web pages for the web pages accessed by the user in the specified session, wherein the web page type includes a static web page and a dynamic web page, if the web page is determined to be a static web page, the website information of the webpage is carried in a webpage code acquisition request and is sent to a webpage server, and the webpage code of the webpage sent by the webpage server is received, wherein, the received webpage code is sent after the webpage server finds out according to the website information carried in the webpage code acquisition request, if the received webpage code is judged to be a dynamic webpage, according to the website information of the webpage, and searching the webpage code of the webpage in the corresponding relation between the website information and the webpage code acquired by the corresponding relation acquisition unit.
Preferably, the user behavior path restoring unit is specifically configured to restore the user behavior path of the user in the specified session in an animation manner.
In the fourth embodiment of the present application, the user behavior path determining apparatus may be disposed in a web server, that is, the web server has the above function of the user behavior path determining apparatus, and in addition, the user behavior path determining apparatus may also be disposed in another server.
The user behavior path determination device provided by the embodiment of the application can be realized by a computer program. It should be understood by those skilled in the art that the above-mentioned unit division method is only one of many unit division methods, and if the unit division method is divided into other units or not divided into units, it is within the scope of the present application as long as the user behavior path determination apparatus has the above-mentioned functions.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, apparatus (device), or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (devices) and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While the preferred embodiments of the present application have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all alterations and modifications as fall within the scope of the application. It will be apparent to those skilled in the art that various changes and modifications may be made in the present application without departing from the spirit and scope of the application. Thus, if such modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is intended to include such modifications and variations as well.

Claims (40)

1. A page element determination method includes:
the method comprises the steps that a webpage server receives a first access request sent by a webpage browser, and searches a webpage code of a webpage which a user requests to access according to the first access request;
adding an access request simulation code and attribute information corresponding to a linked page element which is not corresponding to the website information into the searched webpage code;
sending the webpage code added with the access request simulation code and the attribute information to the webpage browser; enabling the web browser to provide a web page for a user, detecting the click operation of the user on each page element in the web page, if the detected page element targeted by the click operation is not a link corresponding to the website information, simulating a code according to an access request in the web code, acquiring attribute information corresponding to the targeted page element from the web code, carrying the acquired attribute information in a second access request, and sending the second access request to a web server corresponding to the web page;
and if a second access request sent by the web browser is received, determining a page element aimed at by a user in the clicking operation of the web page according to the attribute information carried in the received second access request.
2. The method of claim 1, wherein the access request emulation code is JAVASCRIPT code.
3. The method of claim 1, further comprising:
the webpage server receives a third access request sent by the webpage browser, wherein the third access request carries website information corresponding to a page element clicked by a user in a webpage;
and the webpage server determines the webpage jump path of the user according to the website information carried in the received third access request.
4. The method of claim 3, further comprising:
after receiving the third access request, the web page server stores the website information carried in the third access request in a web page operation log corresponding to the session identifier of the session of the user according to the time point of receiving the third access request;
and/or
And after receiving the second access request, the web page server correspondingly stores the attribute information carried in the second access request and the website information corresponding to the web page in a web page operation log corresponding to the session identifier of the session of the user according to the time point of receiving the second access request.
5. The method of claim 3, further comprising:
after receiving the third access request, the web page server searches a web page code of a web page corresponding to the web address information according to the web address information carried in the third access request; and are
And sending the searched webpage code to the webpage browser.
6. The method of claim 5, further comprising:
and correspondingly storing the searched webpage code and the website information carried in the third access request.
7. A web server, comprising:
the first access request receiving unit is used for receiving a first access request sent by a web browser;
the first webpage code searching unit is used for searching the webpage code of the webpage which the user requests to access according to the first access request;
the adding unit is used for adding the access request simulation code and the attribute information corresponding to the page element which is not the link corresponding to the website information in the webpage code searched by the first webpage code searching unit;
the first webpage code sending unit is used for sending the webpage code added with the access request simulation code and the attribute information by the adding unit to the webpage browser; enabling the web browser to provide a web page for a user, detecting the click operation of the user on each page element in the web page, if the detected page element targeted by the click operation is not a link corresponding to the website information, simulating a code according to an access request in the web code, acquiring attribute information corresponding to the targeted page element from the web code, carrying the acquired attribute information in a second access request, and sending the second access request to a web server corresponding to the web page;
a second access request receiving unit, configured to receive a second access request sent by the web browser;
and the page element determining unit is used for determining the page element aimed by the click operation of the user in the webpage according to the attribute information carried in the second access request received by the second access request receiving unit.
8. The web server of claim 7, further comprising:
a third access request receiving unit, configured to receive a third access request sent by the web browser, where the third access request carries website information corresponding to a page element clicked by a user in a web page;
and the webpage jump path determining unit is used for determining the webpage jump path of the user according to the website information carried in the third access request received by the third access request receiving unit.
9. The web server of claim 8, further comprising:
the website information storage unit is used for storing the website information carried in the third access request in the webpage operation log corresponding to the session identifier of the session of the user according to the time point of receiving the third access request after the third access request receiving unit receives the third access request;
and/or
And the attribute information storage unit is used for correspondingly storing the attribute information carried in the second access request and the website information corresponding to the webpage in the webpage operation log corresponding to the session identifier of the session of the user according to the time point of receiving the second access request after the second access request receiving unit receives the second access request.
10. The web server of claim 8, further comprising:
the second webpage code searching unit is used for searching the webpage code of the webpage corresponding to the website information according to the website information carried in the third access request after the third access request receiving unit receives the third access request;
and the second webpage code sending unit is used for sending the webpage codes searched by the second webpage code searching unit to the webpage browser.
11. The web server of claim 10, further comprising:
and the webpage code storage subunit is used for correspondingly storing the webpage code searched by the second webpage code searching unit and the website information carried in the third access request.
12. A page element determination method includes:
when a user requests to access a webpage, a webpage browser sends a first access request to a webpage server corresponding to the webpage;
receiving a webpage code sent by the webpage server, wherein the webpage code carries an access request simulation code added by the webpage server and attribute information corresponding to a page element of a link which is not corresponding to website information;
providing the webpage to the user according to the received webpage code; detecting the clicking operation of the user on each page element in the webpage;
if the detected page element targeted by the click operation is not the link corresponding to the website information, acquiring the attribute information corresponding to the targeted page element from the webpage code according to the access request simulation code in the webpage code, carrying the acquired attribute information in the second access request, and sending the second access request to the webpage server corresponding to the webpage, so that the webpage server determines the page element targeted by the click operation of the user in the webpage according to the received attribute information carried in the second access request.
13. The method according to claim 12, wherein the web browser carries the attribute information of the page element in a second access request and sends the second access request to a web server corresponding to the web page, specifically including:
and the web browser acquires the attribute information corresponding to the page element from the web code according to an access request simulation code in the web code of the web page, carries the acquired attribute information in a second access request and sends the second access request to a web server corresponding to the web page.
14. The method of claim 12, further comprising:
if the detected page element targeted by the click operation is the link corresponding to the website information, the webpage browser carries the website information corresponding to the page element in a third access request and sends the third access request to the webpage server corresponding to the webpage, so that the webpage server determines the webpage jump path of the user according to the website information carried in the received third access request.
15. A web browser, comprising:
the first access request sending unit is used for sending a first access request to a webpage server corresponding to a webpage when a user requests to access the webpage;
the webpage code receiving unit is used for receiving a webpage code sent by the webpage server, wherein the webpage code carries an access request simulation code added by the webpage server and attribute information corresponding to a page element which is not a link corresponding to the website information;
the webpage providing unit is used for providing the webpage to the user according to the webpage code received by the webpage code receiving unit;
the click operation detection unit is used for detecting the click operation of the user on each page element in the webpage;
and the second access request sending unit is used for acquiring the attribute information corresponding to the page element from the webpage code according to the access request simulation code in the webpage code if the detected page element to which the click operation is directed is not the link corresponding to the website information, and sending the acquired attribute information carried in the second access request to the webpage server corresponding to the webpage, so that the webpage server determines the page element to which the click operation of the user in the webpage is directed according to the attribute information carried in the received second access request.
16. The web browser according to claim 15, wherein the second access request sending unit is specifically configured to obtain, according to an access request simulation code in a web code of the web page, attribute information corresponding to the page element from the web code, and send the obtained attribute information to a web server corresponding to the web page by carrying the obtained attribute information in the second access request.
17. The web browser of claim 15, further comprising:
and the third access request sending unit is used for carrying the website information corresponding to the page element in a third access request and sending the third access request to the webpage server corresponding to the webpage when the page element corresponding to the click operation detected by the click operation detection unit is the link corresponding to the website information.
18. A page element determination method includes:
when a user requests to access a webpage, a webpage browser sends a first access request to a webpage server corresponding to the webpage;
the webpage server searches a webpage code of a webpage which a user requests to access according to the first access request; and are
Adding an access request simulation code and attribute information corresponding to a linked page element which is not corresponding to the website information into the searched webpage code;
sending the webpage code added with the access request simulation code and the attribute information to the webpage browser;
the webpage browser provides a webpage to a user according to the received webpage code; detecting the clicking operation of the user on each page element in the webpage;
if the detected page element targeted by the click operation is not the link corresponding to the website information, acquiring attribute information corresponding to the targeted page element from the webpage code according to an access request simulation code in the webpage code, and carrying the acquired attribute information in a second access request to send the second access request to a webpage server corresponding to the webpage;
and the webpage server determines the page element aimed by the clicking operation of the user in the webpage according to the attribute information carried in the received second access request.
19. A page element determination system comprising a web browser and a web server, wherein:
the webpage browser is used for sending a first access request to a webpage server corresponding to a webpage when a user requests to access the webpage, providing the webpage for the user according to a webpage code sent by the webpage server, detecting the clicking operation of the user on each page element in the webpage, if the detected page element corresponding to the clicking operation is not a link corresponding to the website information, simulating a code according to the access request in the webpage code, acquiring attribute information corresponding to the page element from the webpage code, carrying the acquired attribute information in a second access request, and sending the second access request to the webpage server corresponding to the webpage;
the webpage server is used for searching a webpage code of a webpage which a user requests to access according to a first access request sent by the webpage browser, adding an access request simulation code and attribute information corresponding to a page element which is not a link corresponding to website information in the searched webpage code, and sending the webpage code added with the access request simulation code and the attribute information to the webpage browser; and determining a page element aimed at by a user in the webpage through clicking operation according to attribute information carried in a second access request sent by the webpage browser.
20. A user behavior path determination method comprises the following steps:
acquiring webpage jump paths of the user in the webpages accessed by the specified session and webpage elements aimed by the clicking operation of the user in the webpages accessed by the specified session;
determining a user behavior path of the user in the specified session according to the obtained webpage jump path and the obtained page elements;
the page element to which the click operation is directed is determined by the following method:
the web server adds an access request simulation code and attribute information corresponding to a linked page element which is not corresponding to the website information in the searched web code;
sending the webpage code added with the access request simulation code and the attribute information to the webpage browser so that the webpage browser provides a webpage for a user, detecting the click operation of the user on each page element in the webpage, if the detected page element targeted by the click operation is not a link corresponding to the website information, acquiring the attribute information corresponding to the targeted page element from the webpage code according to the access request simulation code in the webpage code, carrying the acquired attribute information in a second access request, and sending the second access request to a webpage server corresponding to the webpage;
and if a second access request sent by the web browser is received, determining a page element aimed at by a user in the clicking operation of the web page according to the attribute information carried in the received second access request.
21. The method as claimed in claim 20, wherein obtaining the web page jump path of each web page visited by the user in the specified session and the page element for the click operation of the user in each web page visited by the specified session specifically includes:
acquiring a webpage operation log of a specified session of a user from a webpage server according to a session identifier of the specified session, wherein the webpage operation log carries website information of each webpage accessed by the user in the specified session and attribute information of a page element for a click operation executed by the user in each webpage;
according to the website information carried in the obtained webpage operation log, determining webpage jump paths of the webpages accessed by the user in the specified session, and according to the attribute information of the page elements carried in the obtained webpage operation log, determining the page elements targeted by the clicking operation of the user in the specified session.
22. The method of claim 20, further comprising:
and restoring the user behavior path of the user in the specified session.
23. The method according to claim 22, wherein restoring the user behavior path of the user in the specified session specifically includes:
according to the sequence of the user accessing the webpages, respectively executing the following steps aiming at the webpages accessed by the user in the specified session:
acquiring a webpage code of the webpage according to the website information of the webpage;
rendering the webpage based on the acquired webpage code of the webpage;
and restoring the clicking operation of the user in the rendered webpage according to the page element aimed by the clicking operation of the user in the webpage.
24. The method of claim 23, prior to restoring the user behavior path of the user in the specified session, further comprising:
and acquiring the corresponding relation between the website information of the webpage and the webpage code of the webpage from the webpage server.
25. The method according to claim 24, wherein the obtaining the web page code of the web page according to the website information of the web page specifically comprises:
and searching the webpage code of the webpage in the corresponding relation between the acquired website information and the webpage code according to the website information of the webpage.
26. The method according to claim 24, wherein the obtaining the web page code of the web page according to the website information of the web page specifically comprises:
judging the webpage type of the webpage, wherein the webpage type comprises a static webpage and a dynamic webpage;
if the webpage is judged to be a static webpage, carrying the website information of the webpage in a webpage code acquisition request, sending the webpage code to a webpage server, and receiving the webpage code of the webpage sent by the webpage server, wherein the received webpage code is sent after the webpage server finds out the website information carried in the webpage code acquisition request;
and if the dynamic webpage is judged, searching the webpage code of the webpage in the corresponding relation between the acquired website information and the webpage code according to the website information of the webpage.
27. The method according to claim 22, wherein restoring the user behavior path of the user in the specified session specifically includes:
and restoring the user behavior path of the user in the specified session in an animation mode.
28. A user behavior path determination apparatus, comprising:
the acquiring unit is used for acquiring webpage jump paths of the webpages accessed by the user in the specified session and the page elements corresponding to the clicking operation of the user in the webpages accessed by the specified session; when the user clicks the page element, webpage skipping cannot be carried out;
a user behavior path determining unit, configured to determine a user behavior path of the user in the specified session according to the webpage jump path and the page element obtained by the obtaining unit;
the page element to which the click operation is directed is determined by the following method:
the web server adds an access request simulation code and attribute information corresponding to a linked page element which is not corresponding to the website information in the searched web code;
sending the webpage code added with the access request simulation code and the attribute information to the webpage browser so that the webpage browser provides a webpage for a user, detecting the click operation of the user on each page element in the webpage, if the detected page element targeted by the click operation is not a link corresponding to the website information, acquiring the attribute information corresponding to the targeted page element from the webpage code according to the access request simulation code in the webpage code, carrying the acquired attribute information in a second access request, and sending the second access request to a webpage server corresponding to the webpage;
and if a second access request sent by the web browser is received, determining a page element aimed at by a user in the clicking operation of the web page according to the attribute information carried in the received second access request.
29. The apparatus according to claim 28, wherein the obtaining unit specifically includes:
a web page operation log obtaining subunit, configured to obtain, from a web server, a web page operation log of a specified session of a user according to a session identifier of the specified session, where the web page operation log carries website information of each web page visited by the user in the specified session, and attribute information of a page element to which a click operation performed by the user in each web page is directed;
a webpage jump path determining subunit, configured to determine, according to the website information carried in the obtained webpage operation log, a webpage jump path of each webpage accessed by the user in the specified session;
and the page element determining subunit is configured to determine, according to the attribute information of the page element carried in the acquired web page operation log, a page element to which a click operation of the user in the specified session is directed.
30. The apparatus of claim 28, further comprising a user behavior path restoring unit for restoring the user behavior path of the user in the specified session.
31. The apparatus according to claim 30, wherein the user behavior path restoring unit specifically includes:
a web code obtaining subunit, configured to obtain, according to the sequence in which the user accesses the web pages, a web code of the web page according to the website information of the web page, for each web page that the user accesses in the specified session;
the webpage rendering subunit is used for rendering the webpage based on the webpage code of the webpage acquired by the webpage code acquiring subunit;
and the click operation reduction subunit is used for reducing the click operation of the user in the rendered webpage according to the page element corresponding to the click operation of the user in the webpage.
32. The apparatus of claim 31, further comprising:
and the corresponding relation acquisition unit is used for acquiring the corresponding relation between the website information of the webpage and the webpage code of the webpage from the webpage server before the user behavior path reduction unit reduces the user behavior path of the user in the specified session.
33. The apparatus according to claim 32, wherein the web page code obtaining subunit is specifically configured to, according to the sequence in which the user accesses the web pages, respectively search, according to the website information of the web page, for each web page that the user accesses in the specified session, a web page code of the web page in the correspondence between the website information and the web page code obtained by the correspondence obtaining unit.
34. The apparatus according to claim 32, wherein the web page code acquiring subunit is specifically configured to determine, according to the sequence in which the user accesses the web pages, the web page types of the web pages that the user accesses in the specified session, respectively, where the web page types include a static web page and a dynamic web page, and if the web page is determined to be a static web page, send the web page code acquiring request carrying the web page address information of the web page to the web page server, and receive the web page code of the web page sent by the web page server, where the received web page code is sent after the web page server finds the web page code acquiring request according to the web page address information carried in the web page code acquiring request, and if the web page code acquiring unit determines to be a dynamic web page, in the correspondence between the web page code and the web page address information acquired by the correspondence acquiring unit according to the web page address information of the web page, and searching the webpage code of the webpage.
35. The apparatus according to claim 30, wherein the user behavior path restoring unit is specifically configured to restore the user behavior path of the user in the specified session in an animation manner.
36. A page element determination method includes:
the method comprises the steps that a webpage server sends a webpage code added with an access request simulation code and attribute information corresponding to a page element of a link not corresponding to website information to a webpage browser, the webpage browser is instructed to provide a webpage for a user according to the received webpage code, and clicking operation of the user on each page element in the webpage is detected in real time;
the web page server receives a second access request sent by the web page browser, wherein the second access request carries attribute information of a page element which is clicked by a user in a web page and is not a link corresponding to the website information;
and the webpage server determines the page element aimed by the clicking operation of the user in the webpage according to the attribute information carried in the received second access request.
37. The method of claim 36, further comprising, prior to the method:
and the webpage server adds an access request simulation code and attribute information corresponding to a webpage element which is not a link corresponding to the website information in the webpage code.
38. The method of claim 37, wherein:
and when the user clicks the page element which is not the link corresponding to the website information, the webpage skipping is not carried out.
39. The method of claim 37, wherein:
after the webpage server receives a first access request sent by a webpage browser, an access request simulation code and attribute information corresponding to a linked page element which is not corresponding to the website information are added into the webpage code;
the first access request carries website information of a webpage which a user requests to access.
40. The method of claim 36, wherein the second access request sent by the web browser comprises:
and the web browser simulates a code according to an access request in the web code, and acquires the attribute information corresponding to the page element from the web code.
HK18108075.1A 2018-06-22 Page element determination methods, equipment and user behavior path determination method and device HK1249215B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
HK18108075.1A HK1249215B (en) 2018-06-22 Page element determination methods, equipment and user behavior path determination method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
HK18108075.1A HK1249215B (en) 2018-06-22 Page element determination methods, equipment and user behavior path determination method and device

Publications (2)

Publication Number Publication Date
HK1249215A1 true HK1249215A1 (en) 2018-10-26
HK1249215B HK1249215B (en) 2021-04-01

Family

ID=

Similar Documents

Publication Publication Date Title
CN107609135B (en) Page element determining method and device, and user behavior path determining method and device
US9659105B2 (en) Methods and apparatus to track web browsing sessions
US8812520B1 (en) Augmented resource graph for scoring resources
JP6173546B2 (en) Redirect reduction
US9229989B1 (en) Using resource load times in ranking search results
EP1576487B1 (en) Web server hit multiplier and redirector
US10242199B2 (en) Application test using attack suggestions
US11989247B2 (en) Indexing access limited native applications
US9075914B2 (en) Analytics driven development
US7827166B2 (en) Handling dynamic URLs in crawl for better coverage of unique content
CN107766344B (en) Template rendering method and device and browser
US20110238723A1 (en) Systems and methods for web decoding
CN109033195A (en) The acquisition methods of webpage information obtain equipment and computer-readable medium
CN110059269B (en) Page tracking method and device, electronic equipment and computer readable storage medium
CN104572777A (en) Webpage loading method and device based on UIWebView component
CN104158697B (en) A kind of dead chain detection method and device
CN104503983A (en) Method and device for providing website certification data for search engine
Vogel et al. An in-depth analysis of web page structure and efficiency with focus on optimization potential for initial page load
US20200257711A1 (en) User navigation in a target portal
CN107526748B (en) A method and device for identifying user click behavior
CN104407979A (en) Script detection method and device
CN111770119A (en) Website resource acquisition method, system, device and computer storage medium
HK1249215A1 (en) Page element determination methods, equipment and user behavior path determination method and device
Richardson et al. An Empirical Study of Caching Impact on an AWS Hosted Website
HK1249215B (en) Page element determination methods, equipment and user behavior path determination method and device