Page elements determine method and apparatus, user behavior determining method of path and device
Technical field
The application is related to Internet technical field, more particularly to a kind of page elements determine method and apparatus, user behavior
Determining method of path and device.
Background technology
With the continuous development of Internet technology, increasing information resources selection network is used as the carrier propagated
Family can access the information in each webpage by web browser.User inputs the webpage for needing to access in web browser
Corresponding website information, then confirm to access, web browser sends access request to corresponding web page server, and the access please
The website information that user asks the webpage of access is carried in asking, website information of the web page server in access request, is looked into
Look for the web page code of the webpage, and the web page code found is returned into web browser, web browser is according to receiving
Web page code, the webpage is supplied to user.
Subsequent user may click on some page elements in the webpage when accessing the webpage, if the page member clicked on
Element links corresponding to website information, then can trigger web browser and send access request, the access request to web page server
In carry website information corresponding to the link of user's click, web page server according to the website information carried in access request,
The web page code for the webpage that need to be jumped to is searched, and the web page code found is returned into web browser, web browser
According to the web page code received, the webpage is supplied to user, it is achieved thereby that redirecting between webpage.
In the prior art, web page server can record the website information for the webpage that user accesses every time, subsequently count
During the behavior path of user, it can determine that user redirects between each webpage of access according to each website information of record
Behavior path.
Therefore prior art can only count the behavior path that user redirects between each webpage of access.But
In practical situations both, when user clicks on the page elements on accessed webpage, the page elements clicked on may not be net
Linked corresponding to the information of location, will not now carry out webpage and redirect, would not also triggered web browser and be sent to web page server
Access request, then web page server can not just record these clicking operations that user is directed to webpage, subsequently in counting user row
For path when, can not also count the clicking operation that user is not link corresponding to website information for page elements so that
The accuracy for obtaining counting user behavior path is relatively low.
The content of the invention
In view of this, the embodiment of the present application provides a kind of page elements and determines that method and apparatus, user behavior path determine
Method and device, for solving the problems, such as that the accuracy in prior art counting user behavior path is relatively low.
The embodiment of the present application is achieved through the following technical solutions:
According to the aspect of the application the 1st, there is provided a kind of page elements determine method, including:
Web page server receives the first access request that web browser is sent, and searching user according to the first access request please
Seek the web page code of the webpage of access;
In the web page code found, access request simulation code and the not link corresponding to website information are added
Attribute information corresponding to page elements;
Web page code after addition access request simulation code and attribute information is sent to the web browser;With
Make the web browser that webpage is supplied into user, and detect clicking operation of the user to each page elements in the webpage,
If the targeted page elements of the clicking operation detected do not link corresponding to website information, the visit in web page code
Request simulation code is asked, attribute information corresponding to targeted page elements, and the attribute that will be got are obtained from web page code
Information carries and web page server corresponding to the webpage is sent in the second access request;
If the second access request that the web browser is sent is received, according in the second access request received
The attribute information of carrying, determine the targeted page elements of clicking operation of the user in the webpage.
According to the aspect of the application the 2nd, there is provided a kind of web page server, including:
First access request receiving unit, for receiving the first access request of web browser transmission;
First web page code searching unit, for searching the webpage for the webpage that user's request accesses according to the first access request
Code;
Adding device, in the web page code that is found in the first web page code searching unit, adding access request mould
Intend code and the not attribute information corresponding to website information corresponding to the page elements of link;
First web page code transmitting element, after adding device is added into access request simulation code and attribute information
Web page code be sent to the web browser;So that webpage is supplied to user by the web browser, and detect user
To the clicking operation of each page elements in the webpage, if the targeted page elements of the clicking operation detected are not believed for network address
Linked corresponding to breath, then the access request simulation code in web page code, targeted page member is obtained from web page code
Attribute information corresponding to element, and the attribute information got is carried and is sent in the second access request corresponding to the webpage
Web page server;
Second access request receiving unit, the second access request sent for receiving the web browser;
Page elements determining unit, for being taken in the second access request for being received according to the second access request receiving unit
The attribute information of band, determine the targeted page elements of clicking operation of the user in the webpage.
According to the aspect of the application the 3rd, there is provided a kind of page elements determine method, including:
First access request is sent to webpage corresponding to the webpage by web browser when user asks to access webpage
Server;
The web page code that the web page server is sent is received, web page server addition is carried in the web page code
Access request simulation code and the not attribute information corresponding to website information corresponding to the page elements of link;
According to the web page code received, webpage is supplied to user;And user is detected to each page member in the webpage
The clicking operation of element;
If the targeted page elements of the clicking operation detected do not link corresponding to website information, according to webpage generation
Access request simulation code in code, attribute information corresponding to targeted page elements is obtained from web page code, and will obtained
To attribute information carry web page server corresponding to the webpage is sent in the second access request so that the webpage take
Device be engaged according to the attribute information carried in the second access request received, determines clicking operation institute of the user in the webpage
For page elements.
According to the aspect of the application the 4th, there is provided a kind of web browser, including:
First access request transmitting element, for when user asks to access webpage, the first access request to be sent into institute
State web page server corresponding to webpage;
Web page code receiving unit, the web page code sent for receiving the web page server, in the web page code
The page elements institute for carrying the access request simulation code of web page server addition and not linked corresponding to website information
Corresponding attribute information;
Web page providing unit, for the web page code received according to web page code receiving unit, webpage is supplied to use
Family;
Clicking operation detection unit, for detecting clicking operation of the user to each page elements in the webpage;
Second access request transmitting element, if the targeted page elements of clicking operation for detecting are not believed for network address
Linked corresponding to breath, then the access request simulation code in web page code, targeted page member is obtained from web page code
Attribute information corresponding to element, and the attribute information got is carried and is sent in the second access request corresponding to the webpage
Web page server, so that the web page server is according to the attribute information carried in the second access request received, it is determined that with
The targeted page elements of clicking operation of the family in the webpage.
According to the aspect of the application the 5th, there is provided a kind of page elements determine method, including:
First access request is sent to webpage corresponding to the webpage by web browser when user asks to access webpage
Server;
The web page server searches the web page code for the webpage that user's request accesses according to the first access request;And
In the web page code found, access request simulation code and the not link corresponding to website information are added
Attribute information corresponding to page elements;
Web page code after addition access request simulation code and attribute information is sent to the web browser;
Webpage is supplied to user by the web browser according to the web page code received;And user is detected to described
The clicking operation of each page elements in webpage;
If the targeted page elements of the clicking operation detected do not link corresponding to website information, according to webpage generation
Access request simulation code in code, attribute information corresponding to targeted page elements is obtained from web page code, and will obtained
To attribute information carry web page server corresponding to the webpage is sent in the second access request;
The web page server determines user described according to the attribute information carried in the second access request received
The targeted page elements of clicking operation in webpage.
According to the aspect of the application the 6th, there is provided a kind of page elements determine system, including web browser and web service
Device, wherein:
Web browser, for when user asks to access webpage, it is corresponding that the first access request to be sent into the webpage
Web page server, the web page code sent according to web page server, webpage is supplied to user, user is to the webpage for detection
In each page elements clicking operation, if the targeted page elements of the clicking operation detected are not chain corresponding to website information
Connect, then the access request simulation code in web page code, obtains attribute corresponding to the page elements from web page code
Information, and the attribute information got is carried web page server corresponding to the webpage is sent in the second access request;
Web page server, for the first access request sent according to web browser, search the net that user asks to access
The web page code of page, and in the web page code found, add access request simulation code and do not corresponded to for website information
Link page elements corresponding to attribute information, the webpage generation after access request simulation code and attribute information will be added
Code is sent to the web browser;And the attribute information carried in the second access request sent according to web browser,
Determine the targeted page elements of clicking operation of the user in the webpage.
According to the aspect of the application the 7th, there is provided a kind of user behavior determining method of path, including:
Webpage of the acquisition user in each webpage for specifying session to be accessed redirects path and user specifies session at this
The targeted page elements of clicking operation in each webpage accessed;
Path and page elements are redirected according to the webpage of acquisition, determine the user in user's row in specifying session
For path;
Wherein, the targeted page elements of the clicking operation, are determined in the following manner:
Web page server adds access request simulation code and be not website information pair in the web page code found
Attribute information corresponding to the page elements for the link answered;
Web page code after addition access request simulation code and attribute information is sent to the web browser, with
Make the web browser that webpage is supplied into user, and detect clicking operation of the user to each page elements in the webpage,
If the targeted page elements of the clicking operation detected do not link corresponding to website information, the visit in web page code
Request simulation code is asked, attribute information corresponding to targeted page elements, and the attribute that will be got are obtained from web page code
Information carries and web page server corresponding to the webpage is sent in the second access request;
If the second access request that the web browser is sent is received, according in the second access request received
The attribute information of carrying, determine the targeted page elements of clicking operation of the user in the webpage.
According to the aspect of the application the 8th, there is provided a kind of user behavior path determining device, including:
Obtaining unit, path and user are redirected for obtaining webpage of the user in each webpage for specifying session to be accessed
The targeted page elements of clicking operation in each webpage that this specifies session to be accessed;Wherein, described in being clicked as user
After page elements, webpage will not be carried out and redirected;
User behavior path determining unit, the webpage for being obtained according to obtaining unit redirect path and page elements,
Determine the user in the user behavior path in specifying session;
Wherein, the targeted page elements of the clicking operation, are determined in the following manner:
Web page server adds access request simulation code and be not website information pair in the web page code found
Attribute information corresponding to the page elements for the link answered;
Web page code after addition access request simulation code and attribute information is sent to the web browser, with
Make the web browser that webpage is supplied into user, and detect clicking operation of the user to each page elements in the webpage,
If the targeted page elements of the clicking operation detected do not link corresponding to website information, the visit in web page code
Request simulation code is asked, attribute information corresponding to targeted page elements, and the attribute that will be got are obtained from web page code
Information carries and web page server corresponding to the webpage is sent in the second access request;
If the second access request that the web browser is sent is received, according in the second access request received
The attribute information of carrying, determine the targeted page elements of clicking operation of the user in the webpage.
According to the aspect of the application the 9th, there is provided a kind of page elements determine method, including:
The page elements that web page server will add access request simulation code and not linked corresponding to website information
Web page code after corresponding attribute information is sent to web browser, indicates the web browser according to the net received
Page code, the webpage is supplied to user, and detects clicking operation of the user to each page elements in the webpage in real time;
The web page server receives the second access request that the web browser is sent, in second access request
Carry the attribute information of page elements that user is clicked in webpage, not linked corresponding to website information;
The web page server determines user described according to the attribute information carried in the second access request received
The targeted page elements of clicking operation in webpage.
In the embodiment of the present application technical scheme, web browser will carry the webpage when user asks to access webpage
The first access request of website information be sent to web page server corresponding to the webpage, the web page server is visited according to first
The website information carried in request is asked, searches the web page code that user asks the webpage of access, and in the web page code found
In, access request simulation code and the not attribute information corresponding to website information corresponding to the page elements of link are added,
Web page code after addition access request simulation code and attribute information is sent to the web browser, web browser
According to the web page code received, the webpage is supplied to the user, user is to the page elements in the webpage for detection
Clicking operation, i.e., will not be real if the targeted page elements of the clicking operation detected do not link corresponding to website information
Existing network page redirects, and now web browser can also send the of the attribute information that carry the page elements to web page server
Two access requests, the web page server is according to the attribute information carried in the second access request received, it becomes possible to determines
The targeted page elements of clicking operation of the user in the webpage, that is to say, that the embodiment of the present application technical scheme is not only
The behavior path that user redirects between each webpage of access can be counted, additionally it is possible to count user in webpage
Which page elements performs clicking operation;Subsequently when needing the user behavior path of counting user, user can be first obtained
Webpage in each webpage for specifying session to be accessed redirects path and user in each webpage for specifying session to be accessed
The targeted page elements of clicking operation, path and page elements are then redirected according to the webpage of acquisition, determine the use
Family in the user behavior path in specifying session, and the webpage in each webpage no longer only accessed according to user redirect path come
User behavior path is determined, so as to be effectively improved the accuracy in counting user behavior path.
Other features and advantage will illustrate in the following description, also, partly become from specification
Obtain it is clear that or being understood by implementing the application.The purpose of the application and other advantages can be by the explanations write
Specifically noted structure is realized and obtained in book, claims and accompanying drawing.
Brief description of the drawings
Accompanying drawing is used for providing further understanding of the present application, and a part for constitution instruction, implements with the application
Example is used to explain the application together, does not form the limitation to the application.In the accompanying drawings:
Fig. 1 is that page elements determine method flow schematic diagram in the embodiment of the present application one;
Fig. 2 is in the embodiment of the present application one, and web page server is the schematic flow sheet of user's distributing user mark;
Fig. 3 is in the embodiment of the present application one, and the page buries a device, buries a pass between dispensing device and data recording equipment
It is schematic diagram;
Fig. 4 is that page elements determine Method And Principle schematic diagram in the embodiment of the present application one;
Fig. 5 is in the embodiment of the present application one, intercepts and stores the principle schematic of web page code;
Fig. 6 is web browser structural representation in the embodiment of the present application two;
Fig. 7 is web page server structural representation in the embodiment of the present application two;
Fig. 8 is user behavior determining method of path schematic flow sheet in the embodiment of the present application three;
Fig. 9 is user behavior path determining device structural representation in the embodiment of the present application four.
Embodiment
The preferred embodiment of the application is illustrated below in conjunction with Figure of description, it will be appreciated that described herein
Preferred embodiment is merely to illustrate and explained the application, is not used to limit the application.And in the case where not conflicting, this Shen
Please in embodiment and embodiment in feature can be mutually combined.
The embodiment of the present application proposes, not only wants webpage of the counting user between each webpage of access to redirect path, also
Need the targeted page elements of clicking operation of the counting user in each webpage, the webpage that follow-up can obtains according to statistics
The targeted page elements of the clicking operation of path and user in each webpage are redirected, determine the user behavior road of user
Footpath.
The process of the targeted page elements of clicking operation of the counting user in each webpage is first introduced below.
Embodiment one
As shown in figure 1, method flow diagram is determined for the page elements that the embodiment of the present application one proposes, its specific handling process
It is as follows:
Step 11, web browser will carry the first of the website information of the webpage when user asks to access webpage
Access request is sent to web page server corresponding to the webpage.
User can input network address corresponding to the webpage for needing to access when desiring access to certain webpage in web browser
Information, then confirm to access, to corresponding web page server transmission access request, (access request is properly termed as web browser
First access request), the website information of user's input is carried in the access request, or user clicks in the webpage of access
After being linked corresponding to some website information, web browser also can send to carry to corresponding web page server and click on
The access request of website information corresponding to link (access request is properly termed as the first access request).That is, webpage is clear
Look in the first access request that device is sent to web page server and carry the website information of webpage that user asks to access.
In the embodiment of the present application one, the access request that web browser is sent to web page server can be, but not limited to be super
Text transfer protocol (HTTP, Hyper Text Transfer Protocol) is asked, the website information of webpage can with but it is unlimited
In URL (URL, Uniform Resource Locator) address for webpage.
Step 12, the web page server searches user and asks to visit according to the website information carried in the first access request
The web page code for the webpage asked.
If by the logged webpage for ask to access of web browser before user, possibility in web browser
User mark of the user in the webpage that request accesses is stored with, now user can also be identified to carry and visited by web browser
Ask in request and be sent to web page server.
As shown in Fig. 2 after web page server receives access request, whether carried in the access request for first judging to receive
There is user's mark, if judging not carry user's mark, web page server is that the user distributes new user's mark, and
New session identification is distributed for this session, now, the number of sessions of the user is 1, and the quantity of webpage is corresponding to the session
1, will the user ask access webpage be the session in first webpage;If judge to carry user's mark, net
Page server judges whether the session identification of the user of storage is effective, if judging effectively, to show that user asks what is accessed
Webpage one unlatching session context in, the quantity of webpage corresponding to the session is now added 1, if judge it is invalid,
Distribute new session identification for the user, now the quantity of webpage corresponding to the session is 1, will the user ask the net that accesses
Page is first webpage in the session.
Step 13, the web page server is in the web page code found, adds access request simulation code and not
Attribute information corresponding to the page elements that are linked corresponding to website information.
Web page server can add before the web page code of webpage is sent into web browser in web page code
Access request simulation code and the not attribute information corresponding to website information corresponding to the page elements of link, subsequent web pages
Access request simulation code of the browser can in web page code, sent to web page server and carry page elements
The access request of attribute information.
In the embodiment of the present application one, the page code of webpage can be, but not limited to for HTML (HTML,
Hypertext Markup Language) code, the attribute information for the page elements that web page server is added is properly termed as
Seed attributes, for example, the attribute information that web page server is the addition of certain page elements is " tabA ", if subsequent user clicks
The page elements, then web browser will by the attribute information " tabA " carry web service is sent in access request
Device.
In the embodiment of the present application one, above-mentioned access request simulation code can be, but not limited to as JAVASCRIPT codes.
Step 14, the web page server sends out the web page code after adding access request simulation code and attribute information
Give the web browser.
Step 15, the webpage is supplied to the user by the web browser according to the web page code received.
Step 16, clicking operation of the web browser detection user to the page elements in the webpage.
After webpage is supplied to user by web browser, user can be detected in real time to each page elements in the webpage
Clicking operation, wherein, page elements in webpage may be to be linked corresponding to website information, if user clicks these pages
Surface element, then it can carry out webpage and redirect, as the webpage corresponding to current web page jumps to the link of click, the page in webpage is first
Element may not also be to be linked corresponding to website information, for example, some page elements in webpage may be option button, if with
Family clicks page elements corresponding to option button, then will not carry out webpage and redirect.
Step 17, if the targeted page elements of the clicking operation detected do not link corresponding to website information, institute
Web browser is stated to be sent to the attribute information carrying of the page elements corresponding to the webpage in the second access request
Web page server.
In the prior art, if the page elements that user is clicked in the webpage accessed are not chain corresponding to website information
Connect, then will not carry out webpage and redirect, then web browser also would not send access request, web service to web page server
Device also can not just count on clicking operation of the user for the page elements in webpage.
On the other hand, the embodiment of the present application one proposes, if the page elements that user is clicked in the webpage accessed are not net
Link corresponding to the information of location, then web browser still can send access request to web page server (access request can claim
For the second access request), wherein, the attribute informations of the page elements that user is clicked on is carried in second access request.
Wherein, web page server is previously inserted access request simulation code in web page code, is referred to as " burying a little "
Operation.If subsequent web pages browser detects that the targeted page elements of the clicking operation of user are not chain corresponding to website information
Connect, then access request simulation code (i.e. in web page code " point " of institute " bury ") of the web browser in web page code, from
Attribute information corresponding to the page elements is obtained in web page code, and the attribute information got is carried to access second and asked
Web page server corresponding to the webpage is sent in asking.
In addition, the embodiment of the present application one has been proposed that if the targeted page elements of the clicking operation detected are that network address is believed
Linked corresponding to breath, then web browser carries website information corresponding to the page elements in access request (access request
Be properly termed as the 3rd access request) in be sent to web page server corresponding to the webpage.
Step 18, the web page server is according to the attribute information carried in the second access request received, it is determined that with
The targeted page elements of clicking operation of the family in the webpage.
After web page server receives the second access request of web browser transmission, extracted from the second access request
The attribute information of page elements, be stored with web page server each page elements mark and page elements attribute information it
Between corresponding relation, web page server according to the attribute information extracted, determined in above-mentioned corresponding relation user this
The targeted page elements of clicking operation, then web page server can just count user for which of webpage page member
Element has carried out clicking operation.
From the foregoing, it will be observed that the page is provided with web page server buries a device, for being sent to the net of web browser
" burying a little " operation is carried out in page code, is provided with web browser and buries a dispensing device, for when performing web page code, root
According to " point " of institute's " burying ", the access request for the attribute information for carrying page elements, web page server are sent to web page server
In be additionally provided with data recording equipment, for according to the access request that receives, determining and recording this clicking operation of user
Targeted page elements, wherein, the page buries a device, buries relation such as Fig. 3 institutes between dispensing device, data recording equipment
Show.
Page elements determine Method And Principle schematic diagram as shown in figure 4, in the webpage that user provides for web browser
Page elements perform clicking operation, if the page elements that user clicks on do not link corresponding to website information, web page browsing
Device provides a user corresponding web page operation result, in addition, web browser can also be according to webpage according to the clicking operation of user
Access request simulation code in code, the attribute information for the page elements that user clicks on is collected from web page code, then will
The attribute information of collection is sent to web page server, and web page server can just determine what user was clicked on according to attribute information
Page elements.
In addition, if the access request that web page server receives is the 3rd access request, i.e. user is clicked in webpage
Page elements to link corresponding to website information, then web page server is according to the net carried in the 3rd access request received
Location information, determine that the webpage of the user redirects path, wherein it is determined that the webpage of user redirects the process and prior art one in path
Cause, repeat no more here.
The embodiment of the present application one proposes that web page server is directed to each session of user, can store this time meeting of user
The corresponding web page operation daily record of words, wherein, the webpage comprising user redirects path in web page operation daily record, specifically:Webpage
After server receives the 3rd access request, according to the time point for receiving the 3rd access request, it will be taken in the 3rd access request
The website information of band is stored in web page operation daily record corresponding to the session identification of this time session of the user, wherein web service
Website information can be carried out corresponding storage by device with receiving the time point of the 3rd access request, can also be according to receiving the 3rd
The time point of access request by the order after arriving first, stores each website information successively.
In addition, also including the attribute information for the page elements that user is clicked in webpage in web page operation daily record, have
Body:After web page server receives the second access request, according to the time point for receiving the second access request, second is accessed
Website information corresponding to the attribute information carried in request and the webpage (i.e. user performs the targeted webpage of clicking operation)
Correspondingly it is stored in web page operation daily record corresponding to the session identification of this time session of the user, wherein web page server can incite somebody to action
Attribute information carries out corresponding storage with receiving the time point of the second access request, can also be according to receiving the second access request
Time point by the order after arriving first, store each attribute information successively.
Therefore web page operation daily record storage corresponding with session identification, not only exist in web page operation daily record comprising user
Webpage in each webpage that corresponding session is accessed redirects path, also comprising user in the webpage that corresponding session is accessed
The attribute information for the page elements clicked on, wherein, attribute information storage corresponding with website information, webpage can be redirected path
It is associated together with the attribute information of page elements, so as to obtain complete user behavior path.
For example, web page operation daily record of the table one for some session of user, wherein, the website information of webpage is webpage
URL addresses, the attribute information for the page elements that user clicks on is seed attributes.
Table one:
As shown in Table 1, for user in this conversation procedure, the URL addresses of the webpage 1 accessed first are http://
item.taobao.com;Then user clicks the page elements linked corresponding to website information in webpage 1, and webpage 1 redirects
It is http to URL addresses://item.taobao.com/item.htmId=8789467987 webpage 2;User is in webpage 2
In click not for certain page elements of link corresponding to website information, will not now carry out webpage and redirect, the page elements
Seed attributes are tabA;Then user clicks another page elements not linked corresponding to website information again in webpage 2,
Webpage will not now be carried out to redirect, the seed attributes of the page elements are tabB.
The embodiment of the present application proposes, can subsequently go back user behavior path of the original subscriber in session is specified, then just need
The web page code for each webpage that user is accessed in this specifies session is obtained, if the webpage that user accesses is static network
Page, then the web page code of webpage can be directly obtained according to the website information of webpage, if the webpage that user accesses is Dynamic Networks
Page (webpage that i.e. no corresponding authority can not access), then be that can not get the webpage generation of webpage according to the website information of webpage
Code.On the other hand, the embodiment of the present application one proposes, web page server can incite somebody to action when web page code is sent into web browser
The web page code and the corresponding storage of website information, then, can be according to webpage subsequently at the also user behavior path of original subscriber
Website information, to directly obtain the web page code of webpage, specifically:If user clicks and linked corresponding to website information,
The website information that web browser will click on carries is sent to web page server in the 3rd access request, and web page server receives
After the 3rd access request sent to web browser, according to the website information carried in the 3rd access request, the network address is searched
The web page code of webpage corresponding to information, and the web page code found is sent to the web browser, and will search
To web page code and the 3rd access request in the website information that carries is corresponding stores.
In the embodiment of the present application one, the web page code that web page server provides to web browser can be static Web page
Web page code, or the web page code of dynamic web page.Web page server can feed back webpage to web browser every time
During code, by web page code and the corresponding storage of website information;In addition, in order to save storage resource, web page server can also
Whether webpage is dynamic web page corresponding to the website information for first judging to carry in the 3rd access request, if the determination result is YES, i.e.,
For dynamic web page, then the website information carried in the web page code found and the 3rd access request is corresponded to and stored, if judging
As a result it is no, as static Web page, then web page server is not carried out in the web page code and the 3rd access request that will find
The step of website information of carrying correspondingly stores.
Wherein it is possible to which the ccf layer in web page server sets a blocker device and page code storage device, block
Device device is cut to be used to capture the web page code (being, for example, html source code) that web page server feeds back to web browser, page generation
Code storage device is used to store web page code, if webpage is dynamic web page, the html source code in outputString is not
Have can read right, can not carry out preservation operation, thus perform intercept operation when, can be by the outputString of interception
Content is copied in the outputString of forgery, and set can read right, so as to realize preserve html source code operation.Such as
Shown in Fig. 5, web browser sends the access request for carrying website information to web page server, and web page server is according to the 3rd
The website information carried in access request, search the web page code of webpage corresponding to the website information, and the webpage that will be found
Code is sent to web browser, in addition, the blocker device set in advance in the ccf layer of web page server intercepts webpage clothes
The web page code for device feedback of being engaged in, and is sent to page code storage device, and page code storage device is by web page code and network address
Information is corresponding to be stored.
Embodiment two
The page elements proposed with the embodiment of the present application one determine that method is corresponding, and the embodiment of the present application two proposes a kind of webpage
Browser, its structure as shown in fig. 6, including:
First access request transmitting element 61, for when user asks to access webpage, the network address of the webpage will to be carried
First access request of information is sent to web page server corresponding to the webpage;
Web page code receiving unit 62, the web page code sent for receiving the web page server, the web page code
In carry the access request simulation code of web page server addition and be not the page elements of link corresponding to website information
Corresponding attribute information;
Web page providing unit 63, for the web page code received according to web page code receiving unit 62, by the webpage
It is supplied to the user;
Clicking operation detection unit 64, for detecting clicking operation of the user to the page elements in the webpage;
Second access request transmitting element 65, the clicking operation for being detected in clicking operation detection unit 64 are targeted
Page elements to link corresponding to website information when, the attribute information of the page elements is carried in the second access request
In be sent to web page server corresponding to the webpage.
It is preferred that the second access request transmitting element 65, specifically in the web page code according to the webpage
Access request simulation code, obtain attribute information corresponding to the page elements from the web page code, and will get
Attribute information carries and web page server corresponding to the webpage is sent in the second access request.
It is preferred that the web browser also includes the 3rd access request transmitting element, it is single for being detected in clicking operation
When the targeted page elements of first 64 clicking operations detected link corresponding to website information, by corresponding to the page elements
Website information carries and is sent to web page server corresponding to the webpage in the 3rd access request.
The web browser that embodiments herein is provided can be realized by computer program.Those skilled in the art should
This is it is understood that above-mentioned dividing elements mode is only one kind in plurality of cells dividing mode, if being divided into other units
Or without inner cells, all should be within the protection domain of the application as long as web browser has above-mentioned function.
The page elements proposed with the embodiment of the present application one determine that method is corresponding, and the embodiment of the present application two proposes a kind of webpage
Server, its structure as shown in fig. 7, comprises:
First access request receiving unit 71, the first access request sent for receiving web browser, described first
The website information that user asks the webpage of access is carried in access request;
First web page code searching unit 72, first for being received according to the first access request receiving unit 71 accesses
The website information carried in request, search the web page code that user asks the webpage of access;
Adding device 73, in the web page code that is found in the first web page code searching unit 72, addition accesses please
Ask simulation code and the not attribute information corresponding to website information corresponding to the page elements of link;
First web page code transmitting element 74, for adding device 73 to be added into access request simulation code and attribute letter
Web page code after breath is sent to the web browser;
Second access request receiving unit 75, the second access request sent for receiving the web browser are described
The category of page elements that user is clicked in webpage, not linked corresponding to website information is carried in second access request
Property information;
Page elements determining unit 76, for the second access request received according to the second access request receiving unit 75
The attribute information of middle carrying, determine the targeted page elements of clicking operation of the user in the webpage.
It is preferred that the web page server also includes:
3rd access request receiving unit, the 3rd access request sent for receiving the web browser, described the
Website information corresponding to the page elements that user is clicked in webpage is carried in three access requests;
Webpage redirects path determining unit, for the 3rd access request received according to the 3rd access request receiving unit
The website information of middle carrying, determine that the webpage of the user redirects path.
More preferably, the web page server also includes:
Website information memory cell, for after the 3rd access request receiving unit receives the 3rd access request, according to
The time point of the 3rd access request is received, the website information carried in the 3rd access request is stored in this of the user
In web page operation daily record corresponding to the session identification of session;
Attribute information memory cell, for after the second access request receiving unit receives the second access request, according to
The time point of the second access request is received, by net corresponding to the attribute information carried in the second access request and the webpage
Location information is correspondingly stored in web page operation daily record corresponding to the session identification of this time session of the user.
More preferably, the web page server also includes:
Second web page code searching unit, for after the 3rd access request receiving unit receives the 3rd access request,
According to the website information carried in the 3rd access request, the web page code of webpage corresponding to the website information is searched;
Second web page code transmitting element, the web page code for the second web page code searching unit to be found are sent to
The web browser;
Web page code storing sub-units, visited for the web page code for finding the second web page code searching unit and the 3rd
Ask that the website information carried in request is corresponding to store.
More preferably, the web page server also includes:
Dynamic web page judging unit, for finding the second web page code searching unit in web page code storing sub-units
Web page code and the 3rd access request in before the corresponding storage of the website information that carries, judge what is carried in the 3rd access request
Whether webpage corresponding to website information is dynamic web page;
The web page code storing sub-units, specifically for when the judged result of dynamic web page judging unit is is, inciting somebody to action
Web page code that second web page code searching unit the is found and website information carried in the 3rd access request is corresponding stores.
The web page server that embodiments herein is provided can be realized by computer program.Those skilled in the art should
This is it is understood that above-mentioned dividing elements mode is only one kind in plurality of cells dividing mode, if being divided into other units
Or without inner cells, all should be within the protection domain of the application as long as web page server has above-mentioned function.
The page elements proposed with the embodiment of the present application one determine that method is corresponding, and the embodiment of the present application two proposes a kind of page
Element determines system, including web browser and web page server, wherein:
Web browser, first for when user asks to access webpage, will carry the website information of the webpage visits
Ask that request is sent to web page server corresponding to the webpage, the web page code sent according to web page server, by the webpage
The user is supplied to, clicking operation of the user to the page elements in the webpage is detected, if the clicking operation institute detected
For page elements be not link corresponding to website information, then the attribute information of the page elements is carried and accessed second
Web page server corresponding to the webpage is sent in request;
Web page server, for the website information carried in the first access request for being sent according to web browser, search
User asks the web page code of the webpage accessed, and in the web page code found, add access request simulation code and
The not attribute information corresponding to website information corresponding to the page elements of link, by addition access request simulation code and category
Property information after web page code be sent to the web browser, and in the second access request sent according to web browser
The attribute information of carrying, determine the targeted page elements of clicking operation of the user in the webpage.
Embodiment three
It is described below that to redirect the clicking operation of path and user in each webpage according to the obtained webpage of statistics targeted
Page elements, determine the process in the user behavior path of user.
As shown in figure 8, the schematic flow sheet of the user behavior determining method of path proposed for the embodiment of the present application three, it has
Body handling process is as follows:
Step 81, webpage of the acquisition user in each webpage for specifying session to be accessed redirects path and user refers at this
Determine the targeted page elements of clicking operation in each webpage that session is accessed.
In the embodiment of the present application one, web page operation daily record is stored according to session, i.e., web page operation daily record with
Session identification is corresponding to be stored, therefore subsequently when it needs to be determined that user is in the user behavior path in specifying session, can first root
The session identification of session is specified according to this, the web page operation daily record of the specified session of the user, net are obtained from web page server
The website information for each webpage that the user is accessed in this specifies session, and the user are carried in page operations daily record each
The attribute information of the targeted page elements of the clicking operation that is performed in webpage, then according to the web page operation daily record got
The website information of middle carrying, determine that the webpage for each webpage that the user is accessed in this specifies session redirects path, Yi Jigen
According to the attribute information of the page elements carried in the web page operation daily record got, determine the user in this specifies session
The targeted page elements of clicking operation.
Wherein, web page server redirects the page elements storage web page operation daily record of path and user's click according to webpage
Process is consistent with the process in the embodiment of the present application one, repeats no more here.
Step 82, path and page elements are redirected according to the webpage of acquisition, determines the user in this specifies session
User behavior path.
Due to that can not only determine that the webpage of user redirects path according to web page operation daily record, additionally it is possible to determine user
The page elements clicked in webpage, such that redirecting path and user institute's point in webpage according to the webpage of user
The page elements hit, determine the complete user behavior path of the user.
Prior art after user behavior path is obtained, it is necessary to the data in the user behavior path that artificial analysis obtains,
So as to study click situation of the user in each webpage, treatment effeciency is than relatively low.On the other hand, the embodiment of the present application three proposes, it is determined that
After going out the user behavior path of user, the user behavior path of original subscriber can also be gone back, so as to according to the user after reduction
Behavior path, click situation of the user in each webpage is analyzed accurately and quickly, be effectively improved treatment effeciency.
Specifically:The sequencing of each webpage is accessed according to the user, is visited for the user in session is specified
Each webpage asked performs respectively:According to the website information of the webpage, the web page code of the webpage is obtained, is then based on what is got
The web page code of the webpage, the webpage is rendered, according to the targeted page elements of the clicking operation of user in the web page, in wash with watercolours
The clicking operation of original subscriber in the web page is gone back in the webpage after dye.
If web page server storage specified session web page operation daily record as shown in the table one in the embodiment of the present application one,
It can then determine that user is in the behavior path in specifying session:(1) it is http to access URL addresses://
Item.taobao.com webpage 1;(2) it is http to jump to URL addresses by webpage 1://item.taobao.com/
item.htmId=8789467987 webpage 2;(3) user clicks the page member that seed attributes are tabA in webpage 2
Element;(4) user clicks the page elements that seed attributes are tabB in webpage 2.
Subsequently when reducing user behavior path, (1) is according to the URL addresses of webpage 1, the web page code of acquisition webpage 1, base
In the web page code of the webpage 1 got, webpage 1 is rendered;(2) according to the URL addresses of webpage 2, the webpage generation of acquisition webpage 2
Code, based on the web page code of the webpage 2 got, renders webpage 2;(3) according to the webpage 2 and user rendered in webpage 2
The targeted page elements of the clicking operation (page member that the page elements and seed attributes that seed attributes are tabA are tabB
Element), go back clicking operation of the original subscriber in webpage 2.
In addition, for more vivid reduction user behavior path, the embodiment of the present application three is also, it has been proposed that animation can be used
Mode, also original subscriber is in the user behavior path in specifying session, then just clearly, clearly user can be known to net
The click situation of page, facilitates Web page maker to pinpoint the problems, targetedly releases prioritization scheme.
In the embodiment of the present application three, webpage can be static Web page, or dynamic web page, web page server can be
When feeding back web page code to web browser every time, by web page code and the corresponding storage of website information, i.e. web page server will
The web page code of all webpages provided to web browser is stored, and web page server can also first judge the 3rd access
Whether webpage corresponding to the website information carried in request is dynamic web page, if dynamic web page, then the webpage generation that will be found
Code is corresponding with the website information carried in the 3rd access request to be stored, if static Web page, then web page server be not carried out by
The step of web page code found and the website information carried in the 3rd access request correspondingly store, i.e. web page server only will
The web page code of the dynamic web page provided to web browser is stored.
Subsequently before the also user behavior path of original subscriber, the network address letter of webpage can be first obtained from web page server
Corresponding relation between breath and the web page code of webpage.
If web page server is stored the web page code of all webpages provided to web browser, in basis
The website information of webpage, when obtaining the web page code of the webpage, can directly it got according to the website information of the webpage
In corresponding relation between website information and web page code, the web page code of the webpage is searched;If web page server only will be to net
The web page code for the dynamic web page that page browsing device provides is stored, then in the website information according to the webpage, obtains the webpage
Web page code when, the type of webpage (type of webpage include static Web page and dynamic web page) of the webpage can be first judged, if sentencing
Breaking, the webpage be static Web page, then carries the website information of the webpage and be sent to webpage clothes in web page code obtains request
Business device, and the web page code of the webpage of web page server transmission is received, wherein, the web page code received is web page server
Obtain what is sent after the website information carried in request is found according to web page code, if judging for dynamic web page, basis
The website information of the webpage, in the corresponding relation between the website information and web page code got, search the net of the webpage
Page code.
Therefore the embodiment of the present application three just can not when rendering the webpage of user's access for no corresponding authority
The dynamic web page of access, it can be obtained according to the web page code and the corresponding relation of website information that web page server prestores
The web page code of dynamic web page, therefore dynamic web page can be rendered exactly, so as to completely go back the user behavior road of original subscriber
Footpath.
From above-mentioned processing procedure, in the embodiment of the present application technical scheme, web browser asks to access net in user
During page, the first access request of the website information for carrying the webpage is sent to web page server corresponding to the webpage, should
For web page server according to the website information carried in the first access request, lookup user asks the web page code of the webpage accessed,
And in the web page code found, add access request simulation code and the page not linked corresponding to website information member
Attribute information corresponding to element, the web page code after addition access request simulation code and attribute information is sent to the net
The webpage is supplied to the user, user is to institute for detection by page browsing device, web browser according to the web page code received
The clicking operation of the page elements in webpage is stated, if the targeted page elements of the clicking operation detected are not website information pair
The link answered, i.e., redirecting for webpage will not be realized, now web browser can also send to web page server and carry the page
Second access request of attribute of an element information, the web page server is according to the attribute carried in the second access request received
Information, it becomes possible to determine the targeted page elements of clicking operation of the user in the webpage, that is to say, that the application is real
The behavior path that user redirects between each webpage of access can not only be counted by applying a technical scheme, additionally it is possible to be counted
User performs clicking operation for which of webpage page elements;Subsequently in the user behavior path for needing counting user
When, it can first obtain that webpage of the user in each webpage for being accessed of session is specified redirects path and user specifies session at this
The targeted page elements of clicking operation in each webpage accessed, then redirect path and the page according to the webpage of acquisition
Element, the user is determined in the user behavior path in specifying session, and in each webpage no longer only accessed according to user
Webpage redirect path to determine user behavior path, so as to be effectively improved the accuracy in counting user behavior path.
Example IV
Corresponding with the user behavior determining method of path that the embodiment of the present application three proposes, the embodiment of the present application four proposes one kind
User behavior path determining device, its structure as shown in figure 9, including:
Obtaining unit 91, path and use are redirected for obtaining webpage of the user in each webpage for specifying session to be accessed
The targeted page elements of clicking operation of the family in each webpage for specifying session to be accessed;
User behavior path determining unit 92, the webpage for being obtained according to obtaining unit 91 redirect path and page member
Element, determine the user in the user behavior path in specifying session.
It is preferred that the obtaining unit 91 specifically includes:
Web page operation log acquisition subelement, for according to the session identification for specifying session, being obtained from web page server
The web page operation daily record of the specified session of user, carries the user and is visited in this specifies session in web page operation daily record
The website information for each webpage asked, and the category of the targeted page elements of the clicking operation that is performed in each webpage of the user
Property information;
Webpage redirects path determination subelement, the website information carried in the web page operation daily record got for basis,
Determine that the webpage for each webpage that the user is accessed in this specifies session redirects path;
Page elements determination subelement, for the attribute according to the page elements carried in the web page operation daily record got
Information, determine the user in the targeted page elements of the clicking operation in specifying session.
It is preferred that described device also includes user behavior path reduction unit, meeting is specified at this for reducing the user
User behavior path in words.
More preferably, user behavior path reduction unit specifically includes:
Web page code obtains subelement, for accessing the sequencing of each webpage according to the user, for the user
Each webpage accessed in this specifies session, respectively according to the website information of the webpage, obtain the web page code of the webpage;
Webpage renders subelement, for obtaining the web page code for the webpage that subelement is got, wash with watercolours based on web page code
Contaminate the webpage;
Clicking operation also atomic unit, the page elements targeted for the clicking operation according to user in the web page,
The clicking operation of original subscriber in the web page is gone back in the webpage after rendering.
More preferably, described device also includes:
Corresponding relation acquiring unit, for reducing the user in this specifies session in user behavior path reduction unit
User behavior path before, from web page server obtain webpage website information and the web page code of webpage between it is corresponding
Relation.
More preferably, the web page code obtains subelement, suitable specifically for the priority according to each webpage of user access
Sequence, each webpage accessed for the user in this specifies session, respectively according to the website information of the webpage, in corresponding relation
In corresponding relation between website information and web page code that acquiring unit is got, the web page code of the webpage is searched.
More preferably, the web page code obtains subelement, suitable specifically for the priority according to each webpage of user access
Sequence, each webpage accessed for the user in this specifies session, the type of webpage of the webpage, wherein web page class is judged respectively
Type includes static Web page and dynamic web page, if judging, the webpage is static Web page, and the website information of the webpage is carried
Web page code obtains in request and is sent to web page server, and receives the web page code of the webpage of web page server transmission, its
In, the web page code received is sent out after web page server is found according to the website information carried in web page code acquisition request
Send, if judging for dynamic web page, according to the website information of the webpage, in the network address that corresponding relation acquiring unit is got
In corresponding relation between information and web page code, the web page code of the webpage is searched.
It is preferred that user behavior path reduction unit, exists specifically for by the way of animation, reducing the user
This specifies the user behavior path in session.
In the embodiment of the present application four, user behavior path determining device can be arranged in web page server, that is to say, that
Web page server has the above-mentioned function of user behavior path determining device, in addition, user behavior path determining device can also
It is arranged in other servers.
The user behavior path determining device that embodiments herein is provided can be realized by computer program.This area
Technical staff is it should be appreciated that above-mentioned dividing elements mode is only one kind in plurality of cells dividing mode, if division
, all should be the application's as long as user behavior path determining device has above-mentioned function for other units or without inner cells
Within protection domain.
It will be understood by those skilled in the art that embodiments herein can be provided as method, apparatus (equipment) or computer
Program product.Therefore, in terms of the application can use complete hardware embodiment, complete software embodiment or combine software and hardware
Embodiment form.Moreover, the application can use the meter for wherein including computer usable program code in one or more
The computer journey that calculation machine usable storage medium is implemented on (including but is not limited to magnetic disk storage, CD-ROM, optical memory etc.)
The form of sequence product.
The application is the flow chart with reference to method, apparatus (equipment) and computer program product according to the embodiment of the present application
And/or block diagram describes.It should be understood that can be by each flow in computer program instructions implementation process figure and/or block diagram
And/or square frame and the flow in flow chart and/or block diagram and/or the combination of square frame.These computer programs can be provided to refer to
The processors of all-purpose computer, special-purpose computer, Embedded Processor or other programmable data processing devices is made to produce
One machine so that produced by the instruction of computer or the computing device of other programmable data processing devices for realizing
The device for the function of being specified in one flow of flow chart or multiple flows and/or one square frame of block diagram or multiple square frames.
These computer program instructions, which may be alternatively stored in, can guide computer or other programmable data processing devices with spy
Determine in the computer-readable memory that mode works so that the instruction being stored in the computer-readable memory, which produces, to be included referring to
Make the manufacture of device, the command device realize in one flow of flow chart or multiple flows and/or one square frame of block diagram or
The function of being specified in multiple square frames.
These computer program instructions can be also loaded into computer or other programmable data processing devices so that counted
Series of operation steps is performed on calculation machine or other programmable devices to produce computer implemented processing, so as in computer or
The instruction performed on other programmable devices is provided for realizing in one flow of flow chart or multiple flows and/or block diagram one
The step of function of being specified in individual square frame or multiple square frames.
Although having been described for the preferred embodiment of the application, those skilled in the art once know basic creation
Property concept, then can make other change and modification to these embodiments.So appended claims be intended to be construed to include it is excellent
Select embodiment and fall into having altered and changing for the application scope.Obviously, those skilled in the art can be to the application
Various changes and modification are carried out without departing from spirit and scope.So, if these modifications and variations of the application
Belong within the scope of the application claim and its equivalent technologies, then the application is also intended to exist comprising these changes and modification
It is interior.