Summary of the invention
The invention provides a kind of acquisition methods and device of internet access source-information, at least to solve the problem that cannot guarantee to get internet access source-information.
To achieve these goals, according to an aspect of the present invention, a kind of acquisition methods of internet access source-information is provided.
Acquisition methods according to internet access source-information of the present invention comprises: whether successfully judge to send visit data first to flow monitoring server, wherein, visit data comprises access source-information first; And when judging to send visit data failure first to flow monitoring server, sending the request of visit data checking first to monitoring of the advertisement server and sending access source-information to ask monitoring of the advertisement server to flow monitoring server.
Further, judge whether send visit data first to flow monitoring server successfully comprises: whether the script performed in the webpage of back-call is successful to judge sending visit data first to flow monitoring server.
Further, script in the webpage of back-call is performed to judge whether send visit data first to flow monitoring server successfully comprises: visit data is whether successfully to judge to send first to flow monitoring server to perform JavaScript script in the webpage of back-call.
Further, perform back-call webpage in JavaScript script to judge whether send visit data first to flow monitoring server successfully comprises: reading back-call banner; Obtain the mode bit of the banner of back-call; Judge whether the banner of back-call mates with the mode bit of the banner of back-call; When the banner of mode bit and back-call matches, judge to send visit data success first to flow monitoring server; And when the banner of mode bit and back-call does not mate, judge to send visit data failure first to flow monitoring server.
Further, when the banner of mode bit and back-call matches, judge that sending visit data first to flow monitoring server successfully comprises: read the order value in the banner of back-call; When order value in the banner of mode bit numerical value and back-call is equal, judge to send visit data success first to flow monitoring server, when the banner of mode bit and back-call does not mate, judge that sending visit data first to flow monitoring server unsuccessfully comprises: read the order value in the banner of back-call; When order value in the banner of mode bit numerical value and back-call is unequal, judge to send visit data failure first to flow monitoring server.
Further, send the request of visit data checking first to monitoring of the advertisement server to comprise to flow monitoring server transmission access source-information to ask monitoring of the advertisement server: send visit data first to monitoring of the advertisement server and verify that request and visitor's mark identify to flow monitoring server transmission access source-information and visitor to ask monitoring of the advertisement server.
To achieve these goals, according to another aspect of the present invention, provide a kind of acquisition device of internet access source-information, this device is for performing the acquisition methods of any one internet access source-information provided by the invention.
According to a further aspect in the invention, a kind of acquisition device of internet access source-information is provided.This acquisition device comprises: judging unit, and whether successful for judging to send visit data first to flow monitoring server, wherein, visit data comprises access source-information first; And transmitting element, for when judging to send visit data failure first to flow monitoring server, sending the request of visit data checking first to monitoring of the advertisement server and sending access source-information to ask monitoring of the advertisement server to flow monitoring server.
Further, whether the script of judging unit also for performing in the webpage of back-call be successful to judge sending visit data first to flow monitoring server.
Further, whether the JavaScript script of judging unit also for performing in the webpage of back-call be successful to judge sending visit data first to flow monitoring server.
Further, judging unit comprises: read subelement, for reading the banner of back-call; Obtain subelement, for obtaining the mode bit of the banner of back-call; Judgment sub-unit, whether the mode bit for the banner of the banner with back-call that judge back-call mates; First judges subelement, for when the banner of mode bit and back-call matches, judges to send visit data success first to flow monitoring server; And second judges subelement, for when the banner of mode bit and back-call does not mate, judge to send visit data failure first to flow monitoring server.
Further, first judges that subelement comprises: the first read module, for reading the order value in the banner of back-call; First determination module, time equal for the order value in the banner of mode bit numerical value and back-call, judge to send visit data success first to flow monitoring server, second judges that subelement comprises: the second read module, for reading the order value in the banner of back-call; Second determination module, time unequal for the order value in the banner of mode bit numerical value and back-call, judges to send visit data failure first to flow monitoring server.
Further, transmitting element also sends visitor mark to ask monitoring of the advertisement server to flow monitoring server for sending visitor's mark to monitoring of the advertisement server.
By the present invention, whether lose owing to detecting visit data first, and when detecting that access source-information is lost, from this access source-information of monitoring of the advertisement server request.Thus avoid when accessing to flow monitoring server transmission Monitoring Data failure first, flow monitoring server is monitored flow and loses access source-information from back-call data, therefore solve the problem that access source-information may be lost, and then reach the access source-information effect accurately guaranteeing visitor.
Embodiment
It should be noted that, when not conflicting, the embodiment in the application and the feature in embodiment can combine mutually.Below with reference to the accompanying drawings and describe the present invention in detail in conjunction with the embodiments.
Embodiments provide a kind of acquisition device of internet access source-information, below the acquisition device of the internet access source-information that the embodiment of the present invention provides is introduced.
Fig. 1 is the structured flowchart of the acquisition device of internet access source-information according to the embodiment of the present invention.
As shown in Figure 1, this acquisition device comprises judging unit 11 and transmitting element 12.
Whether judging unit 11 is successful for judging to send visit data first to flow monitoring server, and wherein, visit data comprises access source-information first.
The function of judging unit 11 can be realized by CPU or single-chip microcomputer.
Transmitting element 12, for when judging to send visit data failure first to flow monitoring server, sending the request of visit data checking first to monitoring of the advertisement server and sending access source-information to ask monitoring of the advertisement server to flow monitoring server.
Transmitting element 12 is connected with judging unit 11, after the result of determination obtaining judging unit 11, can send the request of visit data checking first by monitoring of the advertisement server.
In the present embodiment, whether lose owing to removing to detect visit data first on one's own initiative, and when detecting that access source-information is lost, from this access source-information of monitoring of the advertisement server request, thus avoid when accessing to flow monitoring server transmission Monitoring Data failure first, flow monitoring server is monitored flow and loses the situation generation of access source-information from back-call data, reaches the access source-information effect accurately guaranteeing visitor.
Fig. 2 is the structured flowchart of the device according to first preferred embodiment of the invention.This embodiment can as preferred implementation embodiment illustrated in fig. 1.
As shown in Figure 2, the acquisition device of this internet access source-information comprises judging unit 11 and transmitting element 12, wherein, judging unit comprises reading subelement 111, acquisition subelement 112, judgment sub-unit 113, first judgement subelement 114 and the second judgement subelement 115, first judges that subelement 114 comprises the first read module 1141 and the first determination module 1142, second judges that subelement 115 comprises the second read module 1151 and the second determination module 1152.
In the present embodiment, whether the script of judging unit 11 also for performing in the webpage of back-call be successful to judge sending visit data first to flow monitoring server.
Further, whether the JavaScript script of judging unit 11 also for performing in the webpage of back-call be successful to judge sending visit data first to flow monitoring server.
In the present embodiment, judge whether successfully to send visit data first to flow monitoring server by JavaScript script, thus can be avoided the possibility of access source-information loss, guarantee that the access source-information of visitor is accurate.
Read subelement 111 for reading the banner of back-call.
Particularly, in the present embodiment, banner is the Cookie of webpage, stores this access in Cookie, and (both this PV) is the information of which PV.
Obtain subelement 112 for obtaining the mode bit of the banner of back-call.
Whether judgment sub-unit 113 mates for the mode bit of the banner of the banner with back-call that judge back-call.
First judges that subelement 114 is for when the banner of mode bit and back-call matches, and judges to send visit data success first to flow monitoring server.
First read module 1141 is for reading the order value in the banner of back-call.
When first determination module 1142 is equal for the order value in the banner of mode bit numerical value and back-call, judge to send visit data success first to flow monitoring server.
Second judges that subelement 115 is not for when the banner of mode bit and back-call mates, and judges to send visit data failure first to flow monitoring server.
Second read module 1151 is for reading the order value in the banner of back-call.
When second determination module 1152 is unequal for the order value in the banner of mode bit numerical value and back-call, judge to send visit data failure first to flow monitoring server.
Only successfully to flow monitoring server send first visit data time, the page of back-call just can upgrade the mode bit numerical value of Cookie, if send visit data failure first to flow monitoring server, then mode bit numerical value remains unchanged, therefore, by PV the number that the mode bit numerical value and this Cookie that compare Cookie characterize, just can judge to send PV data success or not first.
In the present embodiment, transmitting element 12 also sends visitor mark to ask monitoring of the advertisement server to flow monitoring server for sending visitor's mark to monitoring of the advertisement server, based on this function of transmitting element 12, the present embodiment can understand the relevant information of visitor further.
In the present embodiment, whether consistent by PV number of the mode bit numerical value with number of times that compare Cookie, just can judge to send PV data success or not first, thus can give for change in time when PV loss of data first, simultaneously, by sending visitor's mark, understand further the relevant information of visitor, thus make the follow-up Data Collection to user and data sampling more targeted.
The embodiment of the present invention additionally provides a kind of acquisition methods of internet access source-information.
Fig. 3 is the flow chart of the acquisition methods of internet access source-information according to the embodiment of the present invention.
As shown in Figure 3, the acquisition methods of this internet access source-information comprises following step S302 to step S304.
Step S302, whether successfully judge to send visit data first to flow monitoring server, wherein, visit data comprises access source-information first.
Visit data refers to the PV(PageView first of the session in network application first, browse number of pages) data, access source-information is included first in PV data, such as certain product D has thrown in advertisement C in A, B two websites, visitor all can be made to enter the homepage of this product D by the link of the advertisement C of A, B two websites, if Accessor Access is advertisement C, now, access source-information can be obtained, that is, visitor is by the link of A website or the links and accesses of B website advertisement C or the homepage entering product D.
Assuming that visitor is after having carried out access first to advertisement C, visits again second page of website, then sent back-call data to flow monitoring server.
Contain access source-information due in visit data first, so when sending visit data failure first to flow monitoring server, access source-information is also lost thereupon, and this makes the migration efficiency in this website later stage lack very important Data support; Meanwhile, when sending visit data failure first, flow monitor can monitor flow from back-call data, and it is the landing page that the page of back-call so also can be caused to be mistaken as.Wherein, the landing page is first page that visitor browses when entering this website, concerning website, have special maintenance meaning and commercial value, thus determine exactly landing page in the face of webpage very important.Whether the present embodiment sends visit data first to flow monitoring server by detecting current sessions, judge whether visit data is lost first, thus avoid when sending visit data failure first to flow monitoring server, flow monitor is monitored flow and causes error from back-call data, in embodiments of the present invention, if detect that access source-information is lost, then from this access source-information of monitoring of the advertisement server request.
After access second page, perform the script of second page, i.e. script in the webpage of back-call is to judge sending first whether successfully visit data to flow monitoring server.
Particularly, in the present embodiment, whether the JavaScript script that can perform in the webpage of back-call is successful to judge sending visit data first to flow monitoring server.
Such as, first the banner of back-call is read, then the mode bit of the banner of back-call is obtained, whether mated by the mode bit of the banner of the banner with back-call that judge back-call, when the banner of mode bit numerical value and back-call matches, judge to send visit data success first to flow monitoring server; When the banner of mode bit and back-call does not mate, judge to send visit data failure first to flow monitoring server.
Particularly, the page of back-call can detect whether successfully sent PV data first with banner Cookie, the method detected is the information read by program in Cookie, have the information which PV this PV is in Cookie, program is here for carrying out the judgement of data and comparing.
After sending data to flow monitoring server, can receive the call back function from flow monitoring server, call back function divides two kinds, and one is successful call back function, and another kind is failed call back function.Only when receiving successful call back function, the page of back-call just can upgrade the mode bit numerical value of Cookie, and mode bit numerical value is as basis for estimation thus, can judge to send PV data success or not first.
In the present embodiment, as previously mentioned, first read the order value in the banner of back-call, that is, which PV this PV is, when the order value so in the banner of mode bit numerical value and back-call is equal, such as, when mode bit numerical value shows 10 in binary form, when simultaneously to store this PV in Cookie be the information of the 2nd PV, can judge to send visit data success first to flow monitoring server; Otherwise, when the order value in the banner of mode bit numerical value and back-call is unequal, then judge to send visit data failure first to flow monitoring server.
Step S304, when judging to send visit data failure first to flow monitoring server, sending the request of visit data checking first to monitoring of the advertisement server and sending access source-information to ask monitoring of the advertisement server to flow monitoring server.
When entering this website for the first time because website caller passes through the advertisement link on click network, monitoring of the advertisement server can record visit data first, now, monitoring of the advertisement server will send to flow monitoring server by visit data first, make flow monitoring server can obtain the landing page and visitor's source-information accurately from visit data first.
In order to understand the relevant information of visitor further, preferably, while sending the request of visit data checking first to monitoring of the advertisement server, subsidiary visitor's mark sends access source-information and visitor's mark to ask monitoring of the advertisement server to flow monitoring server, this visitor mark can distinguish each visitor exactly, identified by this visitor, flow monitoring server can be made to carry out more specifically and more accurately detecting.
Fig. 4 is the flow chart of the acquisition methods of internet access source-information according to the preferred embodiment of the invention, and as shown in Figure 4, the method comprises the steps that S401 is to step S407.
Step S401, visitor clicks the advertisement on Internet advertising media.
Such as, the advertisement on visitor webpage clicking A or webpage B.
Step S402, the Url information that monitoring of the advertisement server record is clicked and landed, this Url information comprises visit data first, then jumps to the product web that advertisement is corresponding.
Step S403, if the product web landing page (page of namely accessing first) is containing JavaScript script, then sends PV data first.If send PV data failure first, PV loss of data first.
Step S404, second page is come in visitor's link clicked on the landing page.
Step S405, the normal transmitted traffic statistics of the script on second page is to flow monitoring server, and the content of the content of these data and first PV data is as broad as long.
Step S406, script detect current sessions first PV data may lose, therefore can to monitoring of the advertisement server initiate authoritative PV verify request, incidentally go up simultaneously visitor identify.
Step S407, monitoring of the advertisement server is real landing page information, and namely PV data first, add the information such as the visitor's mark uploaded and be sent to flow monitoring server together.
As can be seen from the above description, the embodiment of the present invention ensure that the accuracy of PV data first, thus ensure that the accurate measurements of access source-information to visitor and the landing page.
It should be noted that, can perform in the computer system of such as one group of computer executable instructions in the step shown in the flow chart of accompanying drawing, and, although show logical order in flow charts, but in some cases, can be different from the step shown or described by order execution herein.
Obviously, those skilled in the art should be understood that, above-mentioned of the present invention each module or each step can realize with general calculation element, they can concentrate on single calculation element, or be distributed on network that multiple calculation element forms, alternatively, they can realize with the executable script of calculation element, thus, they can be stored and be performed by calculation element in the storage device, or they are made into each integrated circuit modules respectively, or the multiple module in them or step are made into single integrated circuit module to realize.Like this, the present invention is not restricted to any specific hardware and software combination.
The foregoing is only the preferred embodiments of the present invention, be not limited to the present invention, for a person skilled in the art, the present invention can have various modifications and variations.Within the spirit and principles in the present invention all, any amendment done, equivalent replacement, improvement etc., all should be included within protection scope of the present invention.