CN104750693A - Method and device for realizing dotting - Google Patents

Method and device for realizing dotting Download PDF

Info

Publication number
CN104750693A
CN104750693A CN201310731196.7A CN201310731196A CN104750693A CN 104750693 A CN104750693 A CN 104750693A CN 201310731196 A CN201310731196 A CN 201310731196A CN 104750693 A CN104750693 A CN 104750693A
Authority
CN
China
Prior art keywords
page
ready
getting
data
storage space
Prior art date
Legal status (The legal status 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 status listed.)
Granted
Application number
CN201310731196.7A
Other languages
Chinese (zh)
Other versions
CN104750693B (en
Inventor
王一
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Alibaba Group Holding Ltd
Original Assignee
Alibaba Group Holding Ltd
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 Alibaba Group Holding Ltd filed Critical Alibaba Group Holding Ltd
Priority to CN201310731196.7A priority Critical patent/CN104750693B/en
Publication of CN104750693A publication Critical patent/CN104750693A/en
Priority to HK15108318.1A priority patent/HK1207711A1/en
Application granted granted Critical
Publication of CN104750693B publication Critical patent/CN104750693B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention provides a method and a device for realizing dotting. The method comprises the steps of recording dotting data in a memory space with a double spread characteristic before page jumping; after page jumping, reading the dotting data recorded before page jumping, and sending the dotting data to a dotting server through a dotting request. According to the method, the dotting data recorded in a current page staying stage before page jumping is sent, so that the dotting request is guaranteed to have enough time to be sent, dotting loss is lowered, and the accuracy of business statistical data is ensured.

Description

A kind of implementation method of getting ready and device
[technical field]
The present invention relates to Computer Applied Technology field, particularly a kind of implementation method of getting ready and device.
[background technology]
The business statistics data of website are the souls of a website, are that the development provider in future is to guide simultaneously.Current most business statistics data all rely on having got ready of browser end, and namely browser is got request ready by initiation and will be got data ready and send to and get server ready, record get data ready by getting server ready in daily record.What is called gets the business datum that data are exactly function point ready, such as when certain link in user's webpage clicking, be exactly business datum to the click information of this link, in addition, get ready in data and also may comprise user id, time of origin etc., get server accordingly ready and just can obtain the clicked statistics of this link.In fact the process got ready is exactly to the collection of business datum and is supplied to and gets the process that server carries out business statistics ready.
Under this special scene of page jump, service logic response user operation performs the redirect from current page to another page, get logic ready to carry out getting process ready after service logic performs, but in a lot of situation, the page jump time is less than the deadline getting logic ready, need to perform under stable environment owing to getting logic ready, if therefore after page jump, next page environment is become from current page environment, get logic ready can cancel viewed device, thus cause request of getting ready to be sent to getting server ready.Along with browser is more and more advanced, the page jump time can be shorter and shorter, and above-mentioned Loss of getting ready also can be more and more serious, thus cause business statistics data distortion.
[summary of the invention]
In view of this, the invention provides a kind of implementation method of getting ready and device, get Loss ready so that reduce.
Concrete technical scheme is as follows:
The invention provides a kind of implementation method got ready, the method comprises:
Before page jump, be recorded in getting data ready the storage space had across page characteristic;
After page jump, read before page jump and get data ready described in record, described data of getting ready are sent to get server ready by getting request ready.
According to the present invention one preferred implementation, described in the storage space had across page characteristic comprise: window.name or cookie.
According to the present invention one preferred implementation, get data ready described in record before described reading page jump and comprise:
Search from the described storage space had across page characteristic and get data ready for page record before redirect; Or,
Reading from the described storage space had across page characteristic after getting data ready, having described in emptying across getting data ready in the storage space of page characteristic.
According to the present invention one preferred implementation, described by get ready data be recorded in have across the storage space of page characteristic step by the page before redirect page script perform;
Getting data ready described in record before described reading page jump, sending to the step getting server ready to be performed by the page script in the page after redirect by getting request ready described data of getting ready.
Present invention also offers a kind of implement device got ready, this device comprises:
Record cell, for before page jump, is recorded in getting data ready the storage space had across page characteristic;
Transmitting element, for after page jump, reads before page jump and gets data ready described in record, described data of getting ready is sent to get server ready by getting request ready.
According to the present invention one preferred implementation, described in the storage space had across page characteristic comprise: window.name or cookie.
According to the present invention one preferred implementation, described transmitting element read to record before page jump described in get data ready time, specifically perform: search from the described storage space had across page characteristic and get data ready for page record before redirect; Or, reading from the described storage space had across page characteristic after getting data ready, having described in emptying across getting data ready in the storage space of page characteristic.
According to the present invention one preferred implementation, described record cell is the page script before redirect in the page;
Described transmitting element is the page script after redirect in the page.
As can be seen from the above technical solutions, the present invention is recorded in getting data ready the storage space had across page characteristic before page jump, after page jump, reading is got Data Concurrent ready and is sent the request of getting ready, that is, before the dwell phase of current page sends redirect, page dwell phase record gets data ready, thus ensure the enough time that request of getting ready sends, reduce and get Loss ready, ensure the accuracy of business statistics data.
[accompanying drawing explanation]
The implementation method process flow diagram got ready that Fig. 1 provides for the embodiment of the present invention one;
The implement device structural drawing got ready that Fig. 2 provides for the embodiment of the present invention two.
[embodiment]
In order to make the object, technical solutions and advantages of the present invention clearly, describe the present invention below in conjunction with the drawings and specific embodiments.
In the present invention, no longer by the process of getting ready, the gap be stuck between service logic and page jump completes, but before page jump, complete the record getting data ready, again the data of getting ready recorded before page jump are sent to get server ready by getting request ready after page jump.Be described in detail below by embodiment a pair method provided by the invention.
Embodiment one,
The method flow diagram that Fig. 1 provides for the embodiment of the present invention one, as shown in Figure 1, the method comprises the following steps:
Step 101: before page jump, is recorded in getting data ready in the storage space had across page characteristic.
Due in principle, get logic ready not allow block and affect service logic, therefore after service logic is complete, get logic ready and get data ready for current page record, this record getting data ready must ensure to complete before page jump, avoids recording the operation of getting data ready and is cancelled because environment that page jump causes changes.
Can send after page jump owing to getting request ready, therefore in order to ensure that getting data ready does not lose, be recorded in the storage space had across page characteristic by getting data ready, the guarantee time all will tried one's best due to the record and reading of getting data ready is of short duration, and the storage space therefore preferably had across page characteristic is window.name or cookie.Widow.name wherein is simply introduced, widow.name is the attribute of a widow object in browser environment, and when loading new page, the property value of this attribute still remains unchanged, and this attribute can support longer property value, is generally 2MB.Cookie comparatively knows, and no longer introduces at this.
What relate in the embodiment of the present invention is got ready logic and can be realized by page script, and such as javascript, also can be realized by other page programs, this step operate in page jump before page script in perform.
The data of getting ready of record generally include the identification information of function point and the information of the place page, such as, when clicking certain hyperlink on the page 1 as user, record the identification information of this hyperlink and the information of this hyperlink place page, due to different operating type different results may be produced for certain function point, now, can further include the action type for this function point, can further include other parameter informations, do not enumerate at this.
Step 102: after page jump, that reads record before page jump gets data ready, will get data ready and send to get server ready by getting request ready.
In embodiments of the present invention, after page jump, in order to ensure to leave for the time that the request got ready sends, start as soon as possible to perform this step.After page jump, page loading procedure can comprise the process obtaining page source code, initialization page context and run page program, in embodiments of the present invention, completes can perform this step as long as run the page context initialization got ready required for logic.
That is, what send page dwell phase record before redirect in the dwell phase of current page gets data ready, the like.Getting Data Concurrent ready due to reading send the time of the request of getting ready usually at Millisecond, such as 50ms ~ 500ms, and the time of page dwell phase at least comprises the time etc. of page load time and response user operation usually, at least in level second, therefore can ensure that getting request ready successfully sends completely.
Obtain record before page jump get data ready time, a kind of implementation is: search and get data ready for current page institute source page record, comprise the information of the place page owing to getting data ready, just can find accordingly and get data ready for current page institute source page record.Another kind of implementation is: each read from storage space get data ready after, all the data of getting ready of storage space can be emptied, like this read in storage space get data ready time, certain is exactly get data ready for page record before redirect.
The present invention the page jump that is suitable for can include but not limited to following two kinds of scenes: a kind of scene is the page jump caused by user's clickable hyperlinks; Another kind of scene is the page jump caused by user's submission form.The execution flow process of these two kinds of scenes is identical, and difference is only the content getting data ready.
Give an example, suppose that user clicks the hyperlink pointing to URL2 on the page 1 that URL1 is corresponding, the operation of service logic response user, the page 2 that request access URL2 is corresponding.After service logic performs, before page jump, the javascript of the page 1 will get data ready and will be stored in window.name, and this is got data ready and comprises the mark of clicked hyperlink and the information of the place page 1.When after page jump, in the initial time of load page 2, as long as perform the page context initialization required for javascript operation got ready to complete, that records when can read the page 1 from window.name gets data ready, this is got ready data and can be identified by the information of the place page, and sends to get server ready by getting request ready.
Be more than the detailed description that method provided by the invention is carried out, below by embodiment two, device provided by the invention be described in detail.
Embodiment two,
The implement device structural drawing got ready that Fig. 2 provides for the embodiment of the present invention two, this device gets logic for realizing ready described in embodiment one, and this device mainly comprises record cell 01 and transmitting element 02 as shown in Figure 2.
Wherein, record cell 01 is responsible for before page jump, is recorded in getting data ready the storage space had across page characteristic.After service logic is complete, record cell 01 gets data ready for current page record, and this record getting data ready must ensure to complete before page jump, avoids recording the operation of getting data ready and is cancelled because environment that page jump causes changes.
Here the storage space had across page characteristic can include but not limited to: window.name or cookie.The data of getting ready of record generally include the identification information of function point and the information of the place page, such as, when clicking certain hyperlink on the page 1 as user, record the identification information of this hyperlink and the information of this hyperlink place page, due to different operating type different results may be produced for certain function point, now, can further include the action type for this function point, can further include other parameter informations, do not enumerate at this.
This record cell 01 can be realized by the page script in webpage before redirect, and such as javascript, also can be realized by other page programs.
Transmitting element 02 is responsible for after page jump, and that reads record before page jump gets data ready, will get data ready and send to get server ready by getting request ready.
Particularly, when what transmitting element 02 recorded before reading page jump gets data ready, following two kinds of modes can be adopted: a kind of mode is: search from the storage space had across page characteristic and get data ready for page record before redirect, comprise the information of the place page owing to getting data ready, just can find accordingly record for the page before current page institute's source page and redirect get data ready.Another kind of mode is: read after getting data ready from the storage space had across page characteristic, empty and have across getting data ready in the storage space of page characteristic, like this read in storage space get data ready time, certain is exactly get data ready for page record before redirect.
This transmitting element 02 can be realized by the page script in webpage after redirect, and such as javascript, also can be realized by other page programs.
In several embodiment provided by the present invention, should be understood that, disclosed apparatus and method, can realize by another way.Such as, device embodiment described above is only schematic, and such as, the division of described unit, is only a kind of logic function and divides, and actual can have other dividing mode when realizing.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, also can be that the independent physics of unit exists, also can two or more unit in a unit integrated.Above-mentioned integrated unit both can adopt the form of hardware to realize, and the form that hardware also can be adopted to add SFU software functional unit realizes.
The above-mentioned integrated unit realized with the form of SFU software functional unit, can be stored in a computer read/write memory medium.Above-mentioned SFU software functional unit is stored in a storage medium, comprising some instructions in order to make a computer equipment (can be personal computer, server, or the network equipment etc.) or processor (processor) perform the part steps of method described in each embodiment of the present invention.And aforesaid storage medium comprises: USB flash disk, portable hard drive, ROM (read-only memory) (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic disc or CD etc. various can be program code stored medium.
The foregoing is only preferred embodiment of the present invention, not in order to limit the present invention, within the spirit and principles in the present invention all, any amendment made, equivalent replacement, improvement etc., all should be included within the scope of protection of the invention.

Claims (8)

1. the implementation method got ready, is characterized in that, the method comprises:
Before page jump, be recorded in getting data ready the storage space had across page characteristic;
After page jump, read before page jump and get data ready described in record, described data of getting ready are sent to get server ready by getting request ready.
2. method according to claim 1, is characterized in that, described in the storage space had across page characteristic comprise: window.name or cookie.
3. method according to claim 1 and 2, is characterized in that, gets data ready and comprise before described reading page jump described in record:
Search from the described storage space had across page characteristic and get data ready for page record before redirect; Or,
Reading from the described storage space had across page characteristic after getting data ready, having described in emptying across getting data ready in the storage space of page characteristic.
4. method according to claim 1 and 2, is characterized in that, described by get ready data be recorded in have across the storage space of page characteristic step by the page before redirect page script perform;
Getting data ready described in record before described reading page jump, sending to the step getting server ready to be performed by the page script in the page after redirect by getting request ready described data of getting ready.
5. the implement device got ready, is characterized in that, this device comprises:
Record cell, for before page jump, is recorded in getting data ready the storage space had across page characteristic;
Transmitting element, for after page jump, reads before page jump and gets data ready described in record, described data of getting ready is sent to get server ready by getting request ready.
6. device according to claim 5, is characterized in that, described in the storage space had across page characteristic comprise: window.name or cookie.
7. the device according to claim 5 or 6, it is characterized in that, described transmitting element read to record before page jump described in get data ready time, specifically perform: search from the described storage space had across page characteristic and get data ready for page record before redirect; Or, reading from the described storage space had across page characteristic after getting data ready, having described in emptying across getting data ready in the storage space of page characteristic.
8. the device according to claim 5 or 6, is characterized in that, described record cell is the page script before redirect in the page;
Described transmitting element is the page script after redirect in the page.
CN201310731196.7A 2013-12-26 2013-12-26 A kind of implementation method got ready and device Active CN104750693B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201310731196.7A CN104750693B (en) 2013-12-26 2013-12-26 A kind of implementation method got ready and device
HK15108318.1A HK1207711A1 (en) 2013-12-26 2015-08-27 Method for realizing dotting and device thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310731196.7A CN104750693B (en) 2013-12-26 2013-12-26 A kind of implementation method got ready and device

Publications (2)

Publication Number Publication Date
CN104750693A true CN104750693A (en) 2015-07-01
CN104750693B CN104750693B (en) 2018-11-27

Family

ID=53590403

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310731196.7A Active CN104750693B (en) 2013-12-26 2013-12-26 A kind of implementation method got ready and device

Country Status (2)

Country Link
CN (1) CN104750693B (en)
HK (1) HK1207711A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110717130A (en) * 2018-06-27 2020-01-21 武汉斗鱼网络科技有限公司 Dotting method, dotting device, dotting terminal and storage medium
CN113672650A (en) * 2021-08-24 2021-11-19 北京北大方正电子有限公司 Method, device and equipment for selecting data in page crossing manner and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101187945A (en) * 2007-12-13 2008-05-28 深圳市迅雷网络技术有限公司 A page processing method and device
CN101382947A (en) * 2008-09-26 2009-03-11 新浪技术(中国)有限公司 Method and device for determining pointing distribution information in page
US20100030792A1 (en) * 2008-07-29 2010-02-04 Verizon Corporate Services Group Inc. Method and System for Profile Control
CN102999500A (en) * 2011-09-09 2013-03-27 深圳市快播科技有限公司 Statistical method and system for click rate

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101187945A (en) * 2007-12-13 2008-05-28 深圳市迅雷网络技术有限公司 A page processing method and device
US20100030792A1 (en) * 2008-07-29 2010-02-04 Verizon Corporate Services Group Inc. Method and System for Profile Control
CN101382947A (en) * 2008-09-26 2009-03-11 新浪技术(中国)有限公司 Method and device for determining pointing distribution information in page
CN102999500A (en) * 2011-09-09 2013-03-27 深圳市快播科技有限公司 Statistical method and system for click rate

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
阿步: "Beforeunload丢失率统计", 《豆丁网》 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110717130A (en) * 2018-06-27 2020-01-21 武汉斗鱼网络科技有限公司 Dotting method, dotting device, dotting terminal and storage medium
CN110717130B (en) * 2018-06-27 2022-11-11 武汉斗鱼网络科技有限公司 Dotting method, dotting device, dotting terminal and storage medium
CN113672650A (en) * 2021-08-24 2021-11-19 北京北大方正电子有限公司 Method, device and equipment for selecting data in page crossing manner and storage medium

Also Published As

Publication number Publication date
HK1207711A1 (en) 2016-02-05
CN104750693B (en) 2018-11-27

Similar Documents

Publication Publication Date Title
JP6517263B2 (en) System, method and storage medium for improving access to search results
CN104462534B (en) network information sharing method and device
US9038094B2 (en) Automated service interface optimization
US20170124213A1 (en) Automating Web Tasks Based on Web Browsing Histories and User Actions
CN109561117B (en) Data acquisition method and device
CN110020339B (en) Webpage data acquisition method and device based on non-buried point
US8667409B2 (en) Systems and methods for handling focus of application user interface elements
CN103501340A (en) Message push method, message push device and client
CN114417197A (en) Access record processing method and device and storage medium
US20180198685A1 (en) Method and apparatus for processing delivery data, and storage medium
CN104850546A (en) Mobile media information display method and system
CN108717435A (en) Webpage loading method, information processing method, computer equipment and storage medium
CN102880679B (en) A kind of info web storage means and device
CN105160018A (en) Method, device and system for image copy/paste
CN101188521B (en) A method for digging user behavior data and website server
CN106326261A (en) Pre-reading method and device for webpage and intelligent terminal device
CN105808221A (en) Card type desktop realization method and apparatus
CN105550179A (en) Webpage collection method and browser plug-in
CN109002550B (en) Test method and device for reduction equipment
CN104750693A (en) Method and device for realizing dotting
US20160350089A1 (en) Code caching system
CN111382179B (en) Data processing method and device and electronic equipment
CN108491315A (en) The page is resident statistical method, device and the computer readable storage medium of duration
CN111767053A (en) Front-end page data acquisition method and device
CN109313657A (en) For providing the method and system of additional information relevant to main information

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
REG Reference to a national code

Ref country code: HK

Ref legal event code: DE

Ref document number: 1207711

Country of ref document: HK

GR01 Patent grant
GR01 Patent grant