CN104253835A - User behavior data acquisition method and system - Google Patents

User behavior data acquisition method and system Download PDF

Info

Publication number
CN104253835A
CN104253835A CN201310261711.XA CN201310261711A CN104253835A CN 104253835 A CN104253835 A CN 104253835A CN 201310261711 A CN201310261711 A CN 201310261711A CN 104253835 A CN104253835 A CN 104253835A
Authority
CN
China
Prior art keywords
user behavior
behavior data
data
queue file
independent process
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
CN201310261711.XA
Other languages
Chinese (zh)
Other versions
CN104253835B (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.)
Advanced New Technologies Co 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 CN201310261711.XA priority Critical patent/CN104253835B/en
Publication of CN104253835A publication Critical patent/CN104253835A/en
Priority to HK15103313.7A priority patent/HK1204512A1/en
Application granted granted Critical
Publication of CN104253835B publication Critical patent/CN104253835B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention discloses a user behavior data acquisition method and system. The method includes the following steps that: a browser control receives user behavior data from page script language; the browser control writes the user behavior data into a preset offline queued file; and an independent process is created, and the user behavior data in the off-line queue file is sent to a server through the independent process. According to the user behavior data acquisition method and system of the invention, the user behavior data on a page are sent to the server reliably through collaborative work of the JavaScript, the browser control and the independent process, and the accuracy of the acquisition of the user behavior data can be improved.

Description

User behavior data acquisition method and system thereof
Technical field
The application relates to technical field of electronic commerce, particularly relates to a kind of user behavior data acquisition method and system thereof.
Background technology
User behavior (User Behavior) data describe the data that user uses the mode of operation of product, and at present, the data acquisition of user behavior is the basis of subsequent analysis user behavior work, is related to the quality of final Result.
In prior art, the general JavaScript AJAX technology that adopts carries out user behavior data collection, and this technology is a kind of data receiver formula without refreshing, and there is following problem in actual applications:
1, client network environment more complicated, user, while browsing page, can use the operation of Internet resources in a large number, causes the AJAX on the page to ask the situation that may occur postponing or blocking.
2, on the page, JavaScript runs life cycle and is limited to current page state, sends request and can be abandoned when the page leaves, and now asks to fail transmission.
In sum, known of the prior art by page JavaScript AJAX mode send request exist by network environment influence larger, and leave page request once user and just cannot complete, reliably cannot cause the problem reducing the accuracy that user behavior data gathers by recording user behavioral data, therefore be necessary that the technological means proposing to improve solves the problem.
Summary of the invention
The main purpose of the application is to provide a kind of user behavior data acquisition method and system thereof, to solve being sent request reliably cannot be caused reducing the problem of the accuracy that user behavior data gathers by recording user behavioral data by page JavaScript AJAX mode of prior art existence.
For solving the problems of the technologies described above, according to an aspect of the application, provide a kind of user behavior data acquisition method, it comprises:
Browser control part receives the user behavior data from page script language; The offline queue file that described user behavior data write is preset by described browser control part; Create independent process, and by described independent process, the user behavior data in offline queue file is sent to server.
Wherein, before described browser control part receives the step from the user behavior data of page script language, described method also comprises: user behavior is described as the user behavior data of predetermined structure by described page script language;
The step that described browser control part receives from the user behavior data of page script language comprises: described browser control part is by calling the user behavior data of predetermined structure described in predefined control interface.
Wherein, the user behavior data of described predetermined structure comprises following information: page URL(uniform resource locator), quote source, behavior description, writing time.
Wherein, describedly by described independent process, the step that the user behavior data in offline queue file is sent to server to be comprised: described independent process makes regular check in offline queue file the user behavior data whether having needs to send, if so, then by calling system interface check network state; If network state is idle, then according to first-in first-out, the user behavior data in described offline queue file is sent to described server.
Wherein, described method also comprises: judge whether user behavior data sends successfully, if then these data in described offline queue file deleted.
According to the another aspect of the application, additionally provide a kind of user behavior data acquisition system, it comprises:
Browser control part module, for receiving the user behavior data from page script language, and by offline queue file default for described user behavior data write; Independent process module, for being sent to server by the user behavior data in offline queue file.
Wherein, described browser control part module is by calling the user behavior data of predefined control interface predetermined structure, and wherein, user behavior is described as the user behavior data of predetermined structure by described page script language.
Wherein, the user behavior data of described predetermined structure comprises following information: page URL(uniform resource locator), quote source, behavior description, writing time.
Wherein, described independent process module comprises: data review module, for making regular check in offline queue file whether have user behavior data to be sent; Network state checking module, if for having user behavior data to be sent in offline queue file, then by calling system interface check network state; Data transmission blocks, if be idle for network state, is then sent to described server according to first-in first-out by the user behavior data in offline queue file.
Wherein, described independent process module also comprises: judge module, for judging whether user behavior data sends successfully; These data in described offline queue file if send successfully for user behavior data, are then deleted by removing module.
According to the technical scheme of the application, communicated with browser control part by JavaScript, set up the request transmit queue of off-line, by the user behavior data in independent process transmit queue, namely by JavaScript-browser control part-independent process three collaborative work by the user behavior data reliable diffusion on the page to server, improve the collection accuracy rate of user behavior data.
Accompanying drawing explanation
Accompanying drawing described herein is used to provide further understanding of the present application, and form a application's part, the schematic description and description of the application, for explaining the application, does not form the improper restriction to the application.In the accompanying drawings:
Fig. 1 is the flow chart of the user behavior data acquisition method according to the embodiment of the present application;
Fig. 2 is the schematic diagram receiving the user behavior data that JavaScript transmits according to the browser control part of the embodiment of the present application;
Fig. 3 is the composition structural representation of the user behavior data according to the embodiment of the present application;
Fig. 4 is the schematic diagram cooperated by queue file according to browser control part and the independent process of the embodiment of the present application;
Fig. 5 is the flow chart of the independent process processing queue file according to the embodiment of the present application;
Fig. 6 is the structured flowchart of the user behavior data acquisition system according to the embodiment of the present application;
Fig. 7 is the structured flowchart of the independent process module according to the embodiment of the present application.
Embodiment
In one typically configuration, computing equipment comprises one or more processor (CPU), input/output interface, network interface and internal memory.
Internal memory may comprise the volatile memory in computer-readable medium, and the forms such as random access memory (RAM) and/or Nonvolatile memory, as read-only memory (ROM) or flash memory (flash RAM).Internal memory is the example of computer-readable medium.
Computer-readable medium comprises permanent and impermanency, removable and non-removable media can be stored to realize information by any method or technology.Information can be computer-readable instruction, data structure, the module of program or other data.The example of the storage medium of computer comprises, but be not limited to phase transition internal memory (PRAM), static RAM (SRAM), dynamic random access memory (DRAM), the random access memory (RAM) of other types, read-only memory (ROM), Electrically Erasable Read Only Memory (EEPROM), fast flash memory bank or other memory techniques, read-only optical disc read-only memory (CD-ROM), digital versatile disc (DVD) or other optical storage, magnetic cassette tape, tape magnetic rigid disk stores or other magnetic storage apparatus or any other non-transmitting medium, can be used for storing the information can accessed by computing equipment.According to defining herein, computer-readable medium does not comprise non-temporary computer readable media (transitory media), as data-signal and the carrier wave of modulation.
Internal memory may comprise module 1, module 2, module N....
This application provides a kind of user behavior data acquisition method reliably, control interface is called by being changed into from the JavaScript AJAX of prior art by request transmission approach, write local offline queue file, and the mode of transmission is responsible for by independent process, may be there is the unsuccessful problem of transmission in the request of solving, improve the collection success rate of user behavior data.
For making the object of the application, technical scheme and advantage clearly, below in conjunction with drawings and the specific embodiments, the application is described in further detail.
According to the embodiment of the application, provide a kind of user behavior data acquisition method, described data acquisition (Data collecting) refers to process data being sent to server from the client that user uses.
Fig. 1 is the flow chart of the user behavior data acquisition method according to the embodiment of the present application, and as shown in Figure 1, the method comprises:
Step S102, browser control part receives the user behavior data from page script language.
User behavior (User Behavior) is the mode of operation that user uses product, such as, include but not limited to that download file, online game etc. can use the operation of Internet resources in a large number.User behavior is described as the user behavior data of predetermined structure by page script language (JavaScript), browser control part (Plug-in) is by calling the user behavior data of predefined control interface predetermined structure, in actual applications, with reference to figure 2, user behavior data is delivered to browser control part to (KeyValuePair) form in the mode of character string by key-be worth.
Because data collection service has certain demand to transmitted data message, for meeting this data transfer needs, the application defines the composition structure of user behavior data, with reference to figure 3, include but not limited to following information according to the user behavior data of the predetermined structure of the application: page URL(uniform resource locator) (URL), data quote source (guiding the page to come the upper page URL of current location), behavior description information, writing time.Further, require that user behavior data has following characteristics: final generate data volume little (less data once send and have higher success rate), (without the need to additional assemblies Update Table) in config set, be easy to serializing (encoding without the need to complexity when simple data facilitates text to present and sends HTTP request).
Step S104, the offline queue file that user behavior data write is preset by browser control part.
Pre-set the queue file of off-line, the data list in this queue file is according to first in first out (FIFO) mode deal with data.
Step S106, creates independent process, and by independent process, the user behavior data in offline queue file is sent to server.
With reference to figure 4, the browser control part of the application and independent process are cooperated by offline queue (such as disk file), browser control part is responsible for adding user behavior data to lining up afterbody, the data that independent process takes out queue head send, thus the accurate acquisition of completing user behavioral data.
After independent process starts, make regular check in queue file the data whether having and need to send, if had, by the upstate of calling system interface check network, send these data when network idle, after being sent completely, need these data to delete from queue.Describe the handling process of the queue file of independent process in detail below with reference to Fig. 5, in this embodiment, independent process detects in queue file the data having and need to send, and network is in idle condition can send data.With reference to figure 5, this handling process comprises:
Step S502, independent process reads queue file's header data;
Step S504, the data assembling of head is request msg by queue;
Step S506, independent process sends request to server;
Step S508, data are sent completely, and server returns success to independent process, and the conditional code such as returned by HTTP request can judge that whether transmission is successful;
Step S510, independent process deletes the uppermost data of queue file's head;
Step S512, data have been deleted, and continue to continue to perform step S502 when performing step S502 or wait for that next time, detection time arrived.
The application is by communicating with browser control part, set up the request transmit queue of off-line, and the data be responsible for by the independent process independent of browser in transmit queue, namely pass through JavaScript-control-independent process three collaborative work by the user behavior data reliable diffusion on the page to server, thus improve the collection accuracy rate of user behavior data.
According to the embodiment of the application, additionally provide a kind of user behavior data acquisition system, with reference to figure 6, described system at least comprises: browser control part module 610 and independent process module 620, is described below in detail the 26S Proteasome Structure and Function of above-mentioned each module.
Described user behavior data for receiving the user behavior data from page script language, and is write the offline queue file preset by browser control part module 610.In the embodiment of the present application, user behavior is described as the user behavior data of predetermined structure by page script language, wherein, the user behavior data of predetermined structure includes but not limited to following information: page URL(uniform resource locator), quote source, behavior description, writing time.Browser control part module 610 is by calling the user behavior data of predefined control interface predetermined structure.
Independent process module 620 is for being sent to server by the user behavior data in offline queue file.
According to above-described embodiment of the application, by JavaScript-browser control part-independent process three collaborative work by the user behavior data reliable diffusion on the page to server.
With reference to figure 7, independent process module 620 comprises further: data review module 710, network state checking module 720 and data transmission blocks 730.
Wherein, data review module 710, for making regular check in offline queue file whether have user behavior data to be sent;
Network state checking module 720 couples mutually with data review module 710, if for having user behavior data to be sent in offline queue file, then by calling system interface check network state;
Data transmission blocks 730 couples mutually with network state checking module 720, if be idle for network state, then according to first-in first-out, the user behavior data in offline queue file is sent to server.
Continue with reference to figure 7, described independent process module 620 also comprises:
Judge module 740 couples mutually with data transmission blocks 730, for judging whether user behavior data sends successfully;
Removing module 750 couples mutually with judge module 740, if send successfully for user behavior data, then these data in offline queue file is deleted.
The operating procedure of the method for the application is corresponding with the architectural feature of system, can be cross-referenced, repeats no longer one by one.
In sum, according to the technique scheme of the application, communicated with browser control part by JavaScript, set up the request transmit queue of off-line, by the user behavior data in independent process transmit queue, namely by JavaScript-browser control part-independent process three collaborative work by the user behavior data reliable diffusion on the page to server, improve the collection accuracy rate of user behavior data.
The foregoing is only the embodiment of the application, be not limited to the application, for a person skilled in the art, the application can have various modifications and variations.Within all spirit in the application and principle, any amendment done, equivalent replacement, improvement etc., within the right that all should be included in the application.
Those skilled in the art should understand, the embodiment of the application can be provided as method, system or computer program.Therefore, the application can adopt the form of complete hardware embodiment, completely software implementation or the embodiment in conjunction with software and hardware aspect.And the application can adopt in one or more form wherein including the upper computer program implemented of computer-usable storage medium (including but not limited to magnetic disc store, CD-ROM, optical memory etc.) of computer usable program code.

Claims (10)

1. a user behavior data acquisition method, is characterized in that, comprising:
Browser control part receives the user behavior data from page script language;
The offline queue file that described user behavior data write is preset by described browser control part;
Create independent process, and by described independent process, the user behavior data in offline queue file is sent to server.
2. method according to claim 1, it is characterized in that, before described browser control part receives the step from the user behavior data of page script language, described method also comprises: user behavior is described as the user behavior data of predetermined structure by described page script language;
The step that described browser control part receives from the user behavior data of page script language comprises: described browser control part is by calling the user behavior data of predetermined structure described in predefined control interface.
3. method according to claim 2, is characterized in that, the user behavior data of described predetermined structure comprises following information: page URL(uniform resource locator), quote source, behavior description, writing time.
4. method according to claim 1, is characterized in that, describedly the step that user behavior data in offline queue file is sent to server is comprised by described independent process:
Described independent process makes regular check in offline queue file the user behavior data whether having and need to send, if so, then by calling system interface check network state;
If network state is idle, then according to first-in first-out, the user behavior data in described offline queue file is sent to described server.
5. method according to claim 4, is characterized in that, also comprises:
Judge whether user behavior data sends successfully, if then these data in described offline queue file deleted.
6. a user behavior data acquisition system, is characterized in that, comprising:
Browser control part module, for receiving the user behavior data from page script language, and by offline queue file default for described user behavior data write;
Independent process module, for being sent to server by the user behavior data in offline queue file.
7. system according to claim 6, it is characterized in that, described browser control part module is by calling the user behavior data of predefined control interface predetermined structure, and wherein, user behavior is described as the user behavior data of predetermined structure by described page script language.
8. system according to claim 7, is characterized in that, the user behavior data of described predetermined structure comprises following information: page URL(uniform resource locator), quote source, behavior description, writing time.
9. system according to claim 6, is characterized in that, described independent process module comprises:
Data review module, for making regular check in offline queue file whether have user behavior data to be sent;
Network state checking module, if for having user behavior data to be sent in offline queue file, then by calling system interface check network state;
Data transmission blocks, if be idle for network state, is then sent to described server according to first-in first-out by the user behavior data in offline queue file.
10. system according to claim 9, is characterized in that, described independent process module also comprises:
Judge module, for judging whether user behavior data sends successfully;
These data in described offline queue file if send successfully for user behavior data, are then deleted by removing module.
CN201310261711.XA 2013-06-27 2013-06-27 User behavior data acquisition method and its system Active CN104253835B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201310261711.XA CN104253835B (en) 2013-06-27 2013-06-27 User behavior data acquisition method and its system
HK15103313.7A HK1204512A1 (en) 2013-06-27 2015-04-01 Method for collecting user behavior data and system thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310261711.XA CN104253835B (en) 2013-06-27 2013-06-27 User behavior data acquisition method and its system

Publications (2)

Publication Number Publication Date
CN104253835A true CN104253835A (en) 2014-12-31
CN104253835B CN104253835B (en) 2018-11-16

Family

ID=52188367

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310261711.XA Active CN104253835B (en) 2013-06-27 2013-06-27 User behavior data acquisition method and its system

Country Status (2)

Country Link
CN (1) CN104253835B (en)
HK (1) HK1204512A1 (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104598371A (en) * 2015-01-28 2015-05-06 成都品果科技有限公司 User behavior data collecting method
CN105975351A (en) * 2016-04-25 2016-09-28 乐视控股(北京)有限公司 User behavior message reporting method and apparatus
CN109948025A (en) * 2019-03-20 2019-06-28 上海古鳌电子科技股份有限公司 A kind of data referencing recording method
CN111913911A (en) * 2020-07-15 2020-11-10 杭州鸿泉物联网技术股份有限公司 Service data forwarding method and server

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6018619A (en) * 1996-05-24 2000-01-25 Microsoft Corporation Method, system and apparatus for client-side usage tracking of information server systems
CN101034997A (en) * 2006-03-09 2007-09-12 新数通兴业科技(北京)有限公司 Method and system for accurately publishing the data information
CN101087210A (en) * 2007-05-22 2007-12-12 网御神州科技(北京)有限公司 High-performance Syslog processing and storage method
CN101222349A (en) * 2007-01-12 2008-07-16 中国电信股份有限公司 Method and system for collecting web user action and performance data
CN102385549A (en) * 2010-09-02 2012-03-21 北京无限立通通讯技术有限责任公司 Log processing system, log processing method and log storage sub-system
CN102891873A (en) * 2011-07-21 2013-01-23 腾讯科技(深圳)有限公司 Method for storing log data and log data storage system
CN103166827A (en) * 2011-12-09 2013-06-19 北京神州泰岳软件股份有限公司 Method and system for user behavior data reporting

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6018619A (en) * 1996-05-24 2000-01-25 Microsoft Corporation Method, system and apparatus for client-side usage tracking of information server systems
CN101034997A (en) * 2006-03-09 2007-09-12 新数通兴业科技(北京)有限公司 Method and system for accurately publishing the data information
CN101222349A (en) * 2007-01-12 2008-07-16 中国电信股份有限公司 Method and system for collecting web user action and performance data
CN101087210A (en) * 2007-05-22 2007-12-12 网御神州科技(北京)有限公司 High-performance Syslog processing and storage method
CN102385549A (en) * 2010-09-02 2012-03-21 北京无限立通通讯技术有限责任公司 Log processing system, log processing method and log storage sub-system
CN102891873A (en) * 2011-07-21 2013-01-23 腾讯科技(深圳)有限公司 Method for storing log data and log data storage system
CN103166827A (en) * 2011-12-09 2013-06-19 北京神州泰岳软件股份有限公司 Method and system for user behavior data reporting

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104598371A (en) * 2015-01-28 2015-05-06 成都品果科技有限公司 User behavior data collecting method
CN105975351A (en) * 2016-04-25 2016-09-28 乐视控股(北京)有限公司 User behavior message reporting method and apparatus
CN109948025A (en) * 2019-03-20 2019-06-28 上海古鳌电子科技股份有限公司 A kind of data referencing recording method
CN109948025B (en) * 2019-03-20 2023-10-20 上海古鳌电子科技股份有限公司 Data reference recording method
CN111913911A (en) * 2020-07-15 2020-11-10 杭州鸿泉物联网技术股份有限公司 Service data forwarding method and server

Also Published As

Publication number Publication date
HK1204512A1 (en) 2015-11-20
CN104253835B (en) 2018-11-16

Similar Documents

Publication Publication Date Title
CN105224343B (en) A kind of the update reminding method and device of application program
CN104426925B (en) Web page resources acquisition methods and device
CN107733972A (en) A kind of short linking analytic method, device and equipment
CN103488732A (en) Generation method and device of static pages
CN104462534A (en) Network information sharing method and device
US10158691B2 (en) Method and apparatus for providing network resources at intermediary server
CN102882974A (en) Method for saving website access resource by website identification version number
US20120278403A1 (en) Presenting link information near links within electronic messages
CN113382083B (en) Webpage screenshot method and device
JP2018506796A (en) Data backfill method and system
CN105160018A (en) Method, device and system for image copy/paste
CN106528866A (en) Method, device and system for updating metadata
CN110249324B (en) Maintaining session identifiers for content selection across multiple web pages
CN104253835A (en) User behavior data acquisition method and system
CN106446640B (en) User knows method for distinguishing and server
US20220407907A1 (en) Web application component migration to a cloud computing system
KR101779791B1 (en) Transmitting information based on reading speed
CN105450771A (en) Information push and information push optimization methods, servers and systems
CN106156291A (en) The caching method of static resource and system thereof based on Localstroage
CN110020297A (en) A kind of loading method of web page contents, apparatus and system
US20160315905A1 (en) Method and System for Determining and Tracking an Email Open Duration
CN103051722B (en) A kind ofly determine the method whether page is held as a hostage and relevant device
CN113792232B (en) Page feature calculation method, page feature calculation device, electronic equipment, page feature calculation medium and page feature calculation program product
CN102694802B (en) Network access information recording method and device
CN108920589B (en) Browsing hijacking identification method, device, server and storage medium

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: 1204512

Country of ref document: HK

GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20191209

Address after: P.O. Box 31119, grand exhibition hall, hibiscus street, 802 West Bay Road, Grand Cayman, Cayman Islands

Patentee after: Innovative advanced technology Co., Ltd

Address before: A four-storey 847 mailbox in Grand Cayman Capital Building, British Cayman Islands

Patentee before: Alibaba Group Holding Co., Ltd.

TR01 Transfer of patent right