CN104050266B - User behavior recording method, device and web browser - Google Patents
User behavior recording method, device and web browser Download PDFInfo
- Publication number
- CN104050266B CN104050266B CN201410281046.5A CN201410281046A CN104050266B CN 104050266 B CN104050266 B CN 104050266B CN 201410281046 A CN201410281046 A CN 201410281046A CN 104050266 B CN104050266 B CN 104050266B
- Authority
- CN
- China
- Prior art keywords
- user behavior
- thread
- data
- event
- user
- 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.)
- Active
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/958—Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking
Landscapes
- Engineering & Computer Science (AREA)
- Databases & Information Systems (AREA)
- Theoretical Computer Science (AREA)
- Data Mining & Analysis (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The disclosure is directed to a kind of user behavior recording method, including:When listening to user behavior event, user behavior record thread is enabled;By the user behavior record thread, the data of the user behavior event listened to are sent to server.The disclosure can upload onto the server the data of user behavior event in real time, the real-time of enhancing record user behavior event.The disclosure also discloses the device and web browser for realizing the above method.
Description
Technical field
This disclosure relates to Internet technical field, more particularly to a kind of user behavior recording method, device and web page browsing
Device.
Background technology
With the development of Internet technology, record and tracking user behavior track and access record turn into internet product
Improve the important means of user's viscosity.By user's action trail and the data messages such as record are accessed, the user can be searched out
The field of concern and point of interest, so as to be the more related contents of user push, to strengthen the friendliness to user, improve and use
Family stickiness.
No longer represented simply by links and accesses for user behavior, each time operation of the user in webpage is all
It is to be recorded, for analyzing user behavior, to find the point of interest of the user.When user accesses, pass through local cache
Mode record user access trace information, it is necessary to when the browser thread free time by user access trace information send to
Server, the delay for causing user trajectory information to upload, real-time are poor.
The content of the invention
The problem of to overcome correlation technique to exist, it is clear that the disclosure provides a kind of user behavior recording method, device and webpage
Look at device, the data of user behavior event can be uploaded onto the server in real time, the real-time of enhancing record user behavior event.
According to the first aspect of the embodiment of the present disclosure, there is provided a kind of user behavior recording method, including:
When listening to user behavior event, user behavior record thread is enabled;
By the user behavior record thread, the data of the user behavior event listened to are sent to service
Device.User behavior information is uploaded onto the server in real time, the real-time of enhancing record user behavior.
Described when listening to user behavior event, the step of enabling user behavior record thread, includes:
When listening to the user behavior event of main thread, newly-built user behavior record thread;
Enable the data of the user behavior event listened to described in the newly-built user behavior record thread processing.
It is described by the user record thread, the data of the user behavior event listened to are sent to server
The step of after, methods described also includes:
Terminate the newly-built user behavior record thread.Improve the real-time of the data of upload user behavior event.On
After biography, the execution of the newly-built user behavior record thread is terminated, discharges the internal memory of user behavior record thread occupancy
Resource, to control the resources occupation rate of web browser or other applications, be advantageous to the smooth operation of maintenance system.
Described when listening to user behavior event, the step of enabling user behavior record thread, includes:
Whole webpage threads of web browser correspond to the same user behavior record thread, listen to any one institute
When stating the user behavior event of webpage thread, the user behavior record thread is enabled.Improve upload user behavior event
The real-time of data, and the resource of any one webpage thread is not take up, will not be to the fluency of any one webpage thread
Impact.
It is described listen to main thread user behavior event when, the step of enabling user behavior record thread, includes:
The corresponding user behavior record thread of each webpage thread of web browser, listens to the webpage
During the user behavior event of thread, the user behavior record thread corresponding with the webpage thread is enabled.Improve upload
The real-time of the data of user behavior event, and the resource of any one webpage thread is not take up, will not be to any one net
The fluency of page slot journey impacts, and can be the number of the different real-time upload user behavior events of web content provider
According to.
It is described by the user behavior record thread, the data of the user behavior event listened to are sent to clothes
It is engaged in including the step of device:
Received by the user behavior record thread from the user behavior thing listened to described in data exchange interface
The data of part;
By the user behavior record thread send described in the data of user behavior event that listen to server.Make
The record of the data of user behavior event and transmission are carried out on backstage completely, are not take up other thread resources, are not influenceed user couple
The normal use of web browser or application program.
The data of the user behavior event include type, toggle area and the user identity card of the user behavior event
It is bright.
According to the second aspect of the embodiment of the present disclosure, there is provided a kind of user behavior tape deck, including:
Module being monitored, during for listening to user behavior event, enabling user behavior record thread;
Sending module, for by the user record thread, the data of the user behavior event listened to be sent out
Deliver to server.
The monitoring module includes:
Processing unit, during user behavior event for listening to main thread, newly-built user behavior record thread;
First enables unit, for enabling the user's row listened to described in the newly-built user behavior record thread processing
For the data of event.
Described device also includes:
Module is terminated, for terminating the newly-built user behavior record thread.
The monitoring module includes:
Second enables unit, for corresponding to the same user behavior record when whole webpage threads of web browser
Thread, when listening to the user behavior event of any one webpage thread, enable the user behavior record thread.
The monitoring module includes:
3rd enables unit, for when corresponding one user behavior record of each webpage thread of web browser
Thread, when listening to the user behavior event of the webpage thread, enable the user behavior corresponding with the webpage thread
Record thread.
The sending module includes:
Receiving unit, for being received by the user behavior record thread from being listened to described in data exchange interface
User behavior event data;
Transmitting element, the number for the user behavior event by being listened to described in user behavior record thread transmission
According to server.
According to the third aspect of the embodiment of the present disclosure, there is provided a kind of web browser, including any one above-mentioned user's row
For tape deck.
According to the fourth aspect of the embodiment of the present disclosure, there is provided a kind of user behavior tape deck, including:
Processor;
For storing the memory of processor-executable instruction;
Wherein described processor is configured as:
When listening to user behavior event, user behavior record thread is enabled;
By the user behavior record thread, the data of the user behavior event listened to are sent to service
Device.
The technical scheme provided by this disclosed embodiment can include the following benefits:By the data of user behavior event
Upload onto the server in real time, the real-time of enhancing record user behavior event;After the data of upload user behavior event, terminating should
The execution of newly-built user behavior record thread, the memory source of user behavior record thread occupancy is discharged, to control webpage
The resources occupation rate of browser or other applications, be advantageous to the smooth operation of maintenance system;It is not take up any one net
The resource of page slot journey, the fluency of any one webpage thread will not be impacted, and can be different web page contents
The data of the real-time upload user behavior event of provider.
It should be appreciated that the general description and following detailed description of the above are only exemplary and explanatory, not
The disclosure can be limited.
Brief description of the drawings
Accompanying drawing herein is merged in specification and forms the part of this specification, shows the implementation for meeting the present invention
Example, and for explaining principle of the invention together with specification.
Fig. 1 is a kind of flow chart of user behavior recording method according to an exemplary embodiment.
Fig. 2 is a kind of flow chart of user behavior recording method according to an exemplary embodiment.
Fig. 3 is a kind of flow chart of user behavior recording method according to an exemplary embodiment.
Fig. 4 is a kind of flow chart of user behavior recording method according to an exemplary embodiment.
Fig. 5 is a kind of block diagram of user behavior tape deck according to an exemplary embodiment.
Fig. 6 is a kind of block diagram of user behavior tape deck according to an exemplary embodiment.
Fig. 7 is the block diagram of the monitoring module according to an exemplary embodiment.
Fig. 8 is the block diagram of the sending module according to an exemplary embodiment.
Fig. 9 is a kind of block diagram of user behavior tape deck according to an exemplary embodiment.
Embodiment
Here exemplary embodiment will be illustrated in detail, its example is illustrated in the accompanying drawings.Following description is related to
During accompanying drawing, unless otherwise indicated, the same numbers in different accompanying drawings represent same or analogous key element.Following exemplary embodiment
Described in embodiment do not represent and the consistent all embodiments of the present invention.On the contrary, they be only with it is such as appended
The example of the consistent apparatus and method of some aspects being described in detail in claims, of the invention.
Fig. 1 is a kind of flow chart of user behavior recording method according to an exemplary embodiment, as shown in figure 1,
User behavior recording method is used in terminal device, comprises the following steps.
In step S101, when listening to user behavior event, user behavior record thread is enabled.
User behavior event when terminal device monitoring users are surfed the Net, including webpage access track, clicking operation, input behaviour
Make etc..The monitoring of above-mentioned user behavior event when being surfed the Net for user, it can be realized by a global monitor.
For example, pass through HTML (Hyper Text Markup Language, hypertext markup language in global monitor
Speech) DOM (Document Object Model, DOM Document Object Model) attributes record user behavior event.HTML DOM, i.e.,
For the master pattern of html document, the DOM methods and DOM attributes of all html objects in webpage html document are defined, its
In, this DLL of DOM attributes can obtain or set each attribute of an element value in html document, by DOM attributes come
Record user behavior.For example, history attributes include the Page Name accessed and URL (Uniform Resource
Locator, URL) array;Document attributes can create an example when body elements are run into script,
For binding the user behavior event for needing to monitor and recording the data of the family behavior event.Above-mentioned monitoring users behavior event
Mode is only for example, and does not form the limitation to disclosure protection domain.
The user behavior record thread operates in backstage, for recording the data of user behavior event and entering with server
The thread of row data communication, the performance of other threads is not influenceed.When terminal device listens to user behavior event, the user is enabled
Behavior record thread.The user behavior record thread, independently of other scripts, and in the operation on backstage, is not influenceed by one kind
The scripts of other thread performances is realized.
For example, the function of above-mentioned user behavior record thread is realized by a Web Worker object.It is loaded into the Web
The code of Worker objects is as follows:
In current Javascript threads, use one entitled userRecord's of Worker classes loading
Javascript files are as user behavior record thread, for preserving the data of the user behavior event listened to.
For the user behavior event of monitoring, bound by DOM attributes.Such as:
The user behavior event monitored is needed in the body elements outermost layer binding of document attributes, as in above-mentioned code
The user behavior event of binding " clicking on (click) ", so as to will click on user behavior event of the operation as monitoring.Listen to phase
During the clicking operation answered, the data of the user behavior event are recorded in follow-up call back function.
In one embodiment, the data of the user behavior event include user behavior event type data
[‘behavior’];The toggle area data [' area '] of the user behavior event and the user for triggering the user behavior event
Proof of identification data [' userId '].By the data exchange interface between thread, such as postMessage interfaces, to user
Behavior record thread (userRecord threads) sends the data data of user behavior event.
In step s 102, by user's behavior record thread, by the data of the user behavior event listened to send to
Server.
The user behavior record thread, on backstage in addition to recording the data of the user behavior event listened to, also use
To enter row data communication with server, the data of the user behavior event listened to are uploaded onto the server, are not take up other lines
The Internet resources of journey, the fluency of other threads is not interfered with.
In one embodiment, the user record thread receives other threads by the data exchange interface between each thread
The data of the user behavior event listened to.In the code of above-mentioned example, other threads are by postMessage interfaces, i.e.,
UserRecord.postMessage (data) methods send to user behavior record thread (userRecord threads) and listened to
User behavior event data data;So user behavior record thread (userRecord threads) then passes through onmessage
Interface, i.e. onmessage (data) method receive the data data for the user behavior event that other threads listen to.
When user behavior record thread sends the data of the user behavior event listened to server, such as code below
It is shown:
The user behavior record thread (userRecord threads) has initiated a HTTP (Hyper Text to server
Transfer Protocol, HTTP) post requests, user behavior of the server for counting each user
The data of event.UserRecord threads send the data data of the user behavior event received by data exchange interface
To server.
By the user behavior record thread, the data of record user behavior event in real time on backstage, and by user's row
The real-time and validity of the data for server, improving collection user behavior event are sent in real time for the data of event, and
And other thread resources are not take up, the performance of other threads will not be impacted.
When the internet behavior to user is analyzed, user behavior recording method is provided using the embodiment of the present disclosure, no
The real-time of the data of the user behavior event got can be only improved, and is not take up webpage thread resources, is not interfered with
Fluency when browsing webpage to user.For different web browsers, its internal thread distribution and service condition have
Institute is different, and different situations are illustrated respectively below by several embodiments.
Embodiment one
According to the newly-built user behavior record thread of the user behavior event listened to, in the real-time recording and sending sheet in backstage
The data of secondary user behavior event.After being sent completely, the user behavior record thread is terminated, discharges the user behavior record thread
Shared memory source.
Fig. 2 is a kind of flow chart of user behavior recording method according to an exemplary embodiment, as shown in Fig. 2
User behavior recording method is used in terminal device, comprises the following steps.
In step s 201, when listening to the user behavior event of main thread, newly-built user behavior record thread.
The main thread is web browser or the main thread of other applications.Binding is monitored by global monitor
User behavior event.When listening to any one user behavior event of binding, newly-built user behavior record thread is triggered
Call back function, so as to be created that a user behavior record thread.
In step S202, the number for the user behavior event that newly-built user behavior record thread processing listens to is enabled
According to.
The newly-built user behavior record thread, the use listened to is received by the data exchange interface between main thread
The data of family behavior event.
In step S203, by the newly-built user behavior record thread, by the number of the user behavior event listened to
According to transmission to server.
In step S204, newly-built user behavior record thread is terminated.
For example, for user behavior record thread (the userRecord lines created by the way of Web Worker objects
Journey) for, recorded by the method for " worker.terminate (userRecord.js) " to terminate the newly-built user behavior
Thread, discharge the memory source shared by the user behavior record thread.The newly-built user behavior record thread is used for rear
Platform records the data of this user behavior event listened to, and the data of this user behavior event listened to are sent
To server, the real-time of the data of raising upload user behavior event.After upload, the newly-built user behavior note is terminated
Record thread execution, discharge the user behavior record thread occupancy memory source, with control web browser or other should
With the resources occupation rate of program, be advantageous to the smooth operation of maintenance system.When once again listening for the user behavior event of binding,
Then newly-built user behavior record thread records and sent the data of the user behavior event listened to again.
Embodiment two
In the web browser of terminal device operation, its internal thread includes one or more webpage threads and a use
Family behavior record thread.The user behavior record thread is used for recording the user of the web browser whole webpage thread from the background
The data of behavior event, and the data of user behavior event are sent to server.Fig. 3 is shown according to an exemplary embodiment
A kind of user behavior recording method flow chart, as shown in figure 3, user behavior recording method be used for terminal device in, including
Following steps.
In step S301, when listening to the user behavior event of any one webpage thread, user behavior call wire is enabled
Journey.
In step s 302, by user's behavior record thread, by the data of the user behavior event listened to send to
Server.
Whole webpage threads of web browser correspond to same user behavior record thread, listen to any of which one
During the user behavior event of webpage thread, the user behavior record thread is all enabled.The user behavior record thread passes through data
Translation interface receives the data of the user behavior event listened to from webpage thread, and the user behavior thing that this is listened to
The data of part are sent to server, improve the real-time of upload user behavior event, and are not take up any one webpage line
The resource of journey, user will not be impacted using the fluency of any one webpage thread.In the present embodiment, above-mentioned webpage is clear
It may be a kind of provisional corresponding states to look at the webpage thread of device and the corresponding relation of user behavior record thread, any possibility
Occur the web browser of above-mentioned thread corresponding states within the protection domain of the disclosure.
Embodiment three
In the web browser of terminal device operation, its internal thread includes one or more webpage threads, and often
One webpage thread all correspond to a user behavior record thread, i.e., each webpage thread correspond to a user behavior note
Record thread.In this case, different user behavior record threads can be enabled for different webpage threads, difference will be come from
The data of the user behavior event of webpage thread, sent by different user behavior record threads to different servers.Fig. 4
It is a kind of flow chart of user behavior recording method according to an exemplary embodiment, as shown in figure 4, user behavior records
Method is used in terminal device, comprises the following steps.
In step S401, when listening to the user behavior event of webpage thread, enable corresponding with the webpage thread
User behavior record thread.
In step S402, by user behavior record thread corresponding with the webpage thread, the user's row that will be listened to
Sent for the data of event to server.
Each webpage thread of web browser each corresponds to a user behavior record thread, listens to any of which
During the user behavior event of one webpage thread, user behavior record thread corresponding with the webpage thread is all enabled.With the net
User behavior record thread corresponding to page slot journey receives the data of the user behavior event listened to by data transformation interface, and
The data for the user behavior event that this is listened to are sent to server, improve the real-time of upload user behavior event, and
And the resource of any one webpage thread is not take up, shadow will not be caused using the fluency of any one webpage thread to user
Ring.Optionally, the web browser is according to the html document content of webpage thread, judge the webpage thread it is current browse in
Hold;When listening to user behavior event, the user behavior call wire according to corresponding to enabling the current browsing content of the webpage thread
Journey, by the corresponding user behavior record thread by the data of the user behavior event listened to send to the browsing content
Related server, so as to the data for the different real-time upload user behavior events of web content provider.This implementation
In example, the webpage thread of above-mentioned web browser and the corresponding relation of user behavior record thread may be a kind of provisional pair
State is answered, it is any it is possible that the web browser of above-mentioned thread corresponding states is within the protection domain of the disclosure.
Fig. 5 is a kind of block diagram of user behavior tape deck according to an exemplary embodiment.Reference picture 5, the use
Family behavior record device includes monitoring module 50 and sending module 51.
When the monitoring module 50 is configurable for listening to user behavior event, user behavior record thread is enabled;
The sending module 51 is configurable for by user's record thread, by the data of the user behavior event listened to
Send to server.
In one embodiment, as shown in fig. 6, the user behavior tape deck includes monitoring module 50, the and of sending module 51
Terminate module 52.
When the monitoring module 50 is configurable for listening to user behavior event, user behavior record thread is enabled;
The sending module 51 is configurable for by user's record thread, by the data of the user behavior event listened to
Send to server;
The termination module 52 is configurable for terminating newly-built user behavior record thread.
In one embodiment, the monitoring module 50, as shown in fig. 7, comprises processing unit 500, first enables unit 501,
Second, which enables unit 502 and the 3rd, enables unit 503.
When the processing unit 500 is configurable for listening to the user behavior event of main thread, a newly-built user behavior
Record thread;
This first enables unit 501 and is configurable for enabling the use that newly-built user behavior record thread processing listens to
The data of family behavior event.
This second enables whole webpage threads that unit 502 is configurable for when web browser and corresponds to same user
Behavior record thread, when listening to the user behavior event of any one webpage thread, enable user behavior record thread.
3rd, which enables unit 503, is configurable for as the corresponding user of each webpage thread of web browser
Behavior record thread, when listening to the user behavior event of webpage thread, enable user behavior record corresponding with webpage thread
Thread.
In one embodiment, as shown in figure 8, the sending module 51 includes receiving unit 510 and transmitting element 511.
The receiving unit 510 is configurable for receiving the prison from data exchange interface by user's behavior record thread
The data for the user behavior event heard;
The transmitting element 511 is configurable for sending the user behavior event listened to by user's behavior record thread
Data to server.
On the device in above-described embodiment, wherein modules perform the concrete mode of operation in relevant this method
Embodiment in be described in detail, explanation will be not set forth in detail herein.
The embodiment of the present disclosure provides a kind of web browser, and the web browser includes any one in above-described embodiment
User behavior tape deck.The web browser can be by the user behavior record thread on backstage by the number of user behavior event
According to uploading onto the server in real time, and the resource of webpage thread is not take up, does not influence the fluency that user browses webpage.
Fig. 9 is a kind of block diagram of user behavior tape deck 800 according to an exemplary embodiment.For example, device
800 can be mobile phone, computer, digital broadcast terminal, messaging devices, game console, tablet device, and medical treatment is set
It is standby, body-building equipment, personal digital assistant etc..
Reference picture 9, device 800 can include following one or more assemblies:Processing component 802, memory 804, power supply
Component 806, multimedia groupware 808, audio-frequency assembly 810, the interface 812 of input/output (I/O), sensor cluster 814, and
Communication component 816.
The integrated operation of the usual control device 800 of processing component 802, such as communicated with display, call, data, phase
The operation that machine operates and record operation is associated.Treatment element 802 can refer to including one or more processors 820 to perform
Order, to complete all or part of step of above-mentioned method.In addition, processing component 802 can include one or more modules, just
Interaction between processing component 802 and other assemblies.For example, processing component 802 can include multi-media module, it is more to facilitate
Interaction between media component 808 and processing component 802.
Memory 804 is configured as storing various types of data to support the operation in equipment 800.These data are shown
Example includes the instruction of any application program or method for being operated on device 800, contact data, telephone book data, disappears
Breath, picture, video etc..Memory 804 can be by any kind of volatibility or non-volatile memory device or their group
Close and realize, as static RAM (SRAM), Electrically Erasable Read Only Memory (EEPROM) are erasable to compile
Journey read-only storage (EPROM), programmable read only memory (PROM), read-only storage (ROM), magnetic memory, flash
Device, disk or CD.
Electric power assembly 806 provides electric power for the various assemblies of device 800.Electric power assembly 806 can include power management system
System, one or more power supplys, and other components associated with generating, managing and distributing electric power for device 800.
Multimedia groupware 808 is included in the screen of one output interface of offer between described device 800 and user.One
In a little embodiments, screen can include liquid crystal display (LCD) and touch panel (TP).If screen includes touch panel, screen
Curtain may be implemented as touch-screen, to receive the input signal from user.Touch panel includes one or more touch sensings
Device is with the gesture on sensing touch, slip and touch panel.The touch sensor can not only sensing touch or sliding action
Border, but also detect and touched or the related duration and pressure of slide with described.In certain embodiments, more matchmakers
Body component 808 includes a front camera and/or rear camera.When equipment 800 is in operator scheme, such as screening-mode or
During video mode, front camera and/or rear camera can receive outside multi-medium data.Each front camera and
Rear camera can be a fixed optical lens system or have focusing and optical zoom capabilities.
Audio-frequency assembly 810 is configured as output and/or input audio signal.For example, audio-frequency assembly 810 includes a Mike
Wind (MIC), when device 800 is in operator scheme, during such as call model, logging mode and speech recognition mode, microphone by with
It is set to reception external audio signal.The audio signal received can be further stored in memory 804 or via communication set
Part 816 is sent.In certain embodiments, audio-frequency assembly 810 also includes a loudspeaker, for exports audio signal.
I/O interfaces 812 provide interface between processing component 802 and peripheral interface module, and above-mentioned peripheral interface module can
To be keyboard, click wheel, button etc..These buttons may include but be not limited to:Home button, volume button, start button and lock
Determine button.
Sensor cluster 814 includes one or more sensors, and the state for providing various aspects for device 800 is commented
Estimate.For example, sensor cluster 814 can detect opening/closed mode of equipment 800, and the relative positioning of component, for example, it is described
Component is the display and keypad of device 800, and sensor cluster 814 can be with 800 1 components of detection means 800 or device
Position change, the existence or non-existence that user contacts with device 800, the orientation of device 800 or acceleration/deceleration and device 800
Temperature change.Sensor cluster 814 can include proximity transducer, be configured to detect in no any physical contact
The presence of neighbouring object.Sensor cluster 814 can also include optical sensor, such as CMOS or ccd image sensor, for into
As being used in application.In certain embodiments, the sensor cluster 814 can also include acceleration transducer, gyro sensors
Device, Magnetic Sensor, pressure sensor or temperature sensor.
Communication component 816 is configured to facilitate the communication of wired or wireless way between device 800 and other equipment.Device
800 can access the wireless network based on communication standard, such as WiFi, 2G or 3G, or combinations thereof.In an exemplary implementation
In example, communication component 816 receives broadcast singal or broadcast related information from external broadcasting management system via broadcast channel.
In one exemplary embodiment, the communication component 816 also includes near-field communication (NFC) module, to promote junction service.Example
Such as, in NFC module radio frequency identification (RFID) technology can be based on, Infrared Data Association (IrDA) technology, ultra wide band (UWB) technology,
Bluetooth (BT) technology and other technologies are realized.
In the exemplary embodiment, device 800 can be believed by one or more application specific integrated circuits (ASIC), numeral
Number processor (DSP), digital signal processing appts (DSPD), PLD (PLD), field programmable gate array
(FPGA), controller, microcontroller, microprocessor or other electronic components are realized, for performing above-mentioned user behavior record side
Method.
In the exemplary embodiment, a kind of non-transitorycomputer readable storage medium including instructing, example are additionally provided
Such as include the memory 804 of instruction, above-mentioned instruction can be performed to complete the above method by the processor 820 of device 800.For example,
The non-transitorycomputer readable storage medium can be ROM, random access memory (RAM), CD-ROM, tape, floppy disk
With optical data storage devices etc..
A kind of non-transitorycomputer readable storage medium, when the instruction in the storage medium is by the processing of mobile terminal
When device performs so that mobile terminal is able to carry out a kind of user behavior recording method, and methods described includes:
When listening to user behavior event, user behavior record thread is enabled;
By the user behavior record thread, the data of the user behavior event listened to are sent to service
Device.
Described when listening to user behavior event, the step of enabling user behavior record thread, includes:
When listening to the user behavior event of main thread, newly-built user behavior record thread;
Enable the data of the user behavior event listened to described in the newly-built user behavior record thread processing.
It is described by the user record thread, the data of the user behavior event listened to are sent to server
The step of after, methods described also includes:
Terminate the newly-built user behavior record thread.
Described when listening to user behavior event, the step of enabling user behavior record thread, includes:
Whole webpage threads of web browser correspond to the same user behavior record thread, listen to any one institute
When stating the user behavior event of webpage thread, the user behavior record thread is enabled.
It is described listen to main thread user behavior event when, the step of enabling user behavior record thread, includes:
The corresponding user behavior record thread of each webpage thread of web browser, listens to the webpage
During the user behavior event of thread, the user behavior record thread corresponding with the webpage thread is enabled.
It is described by the user behavior record thread, the data of the user behavior event listened to are sent to clothes
It is engaged in including the step of device:
Received by the user behavior record thread from the user behavior thing listened to described in data exchange interface
The data of part;
By the user behavior record thread send described in the data of user behavior event that listen to server.
The data of the user behavior event include type, toggle area and the user identity card of the user behavior event
It is bright.
Those skilled in the art will readily occur to the present invention its after considering specification and putting into practice invention disclosed herein
Its embodiment.The application be intended to the present invention any modification, purposes or adaptations, these modifications, purposes or
Person's adaptations follow the general principle of the present invention and including the undocumented common knowledges in the art of the disclosure
Or conventional techniques.Description and embodiments are considered only as exemplary, and true scope and spirit of the invention are by following
Claim is pointed out.
It should be appreciated that the invention is not limited in the precision architecture for being described above and being shown in the drawings, and
And various modifications and changes can be being carried out without departing from the scope.The scope of the present invention is only limited by appended claim.
Claims (13)
- A kind of 1. user behavior recording method, it is characterised in that including:When listening to the user behavior event of main thread, newly-built user behavior record thread;Enable newly-built user's row For the data of the user behavior event listened to described in record thread processing, the user behavior record thread is used for recording user The data of behavior event and enter row data communication with server;By the user behavior record thread, the data of the user behavior event listened to are sent to server.
- 2. the method as described in claim 1, it is characterised in that it is described by the user record thread, listened to described The data of user behavior event send the step of server, methods described also includes:Terminate the newly-built user behavior record thread.
- 3. the method as described in claim 1, it is characterised in that it is described listen to main thread user behavior event when, enable User behavior record thread, including:Whole webpage threads of web browser correspond to the same user behavior record thread, listen to any one described net During the user behavior event of page slot journey, the user behavior record thread is enabled.
- 4. the method as described in claim 1, it is characterised in that it is described listen to main thread user behavior event when, enable User behavior record thread, including:The corresponding user behavior record thread of each webpage thread of web browser, listens to the webpage thread User behavior event when, enable the user behavior record thread corresponding with the webpage thread.
- 5. the method as described in claim 1, it is characterised in that it is described by the user behavior record thread, by the prison The data for the user behavior event heard, which were sent to the step of server, to be included:Received by the user behavior record thread from the user behavior event listened to described in data exchange interface Data;By the user behavior record thread send described in the data of user behavior event that listen to server.
- 6. the method as described in claim 1, it is characterised in that the data of the user behavior event include the user behavior Type, toggle area and the user identity of event prove.
- A kind of 7. user behavior tape deck, it is characterised in that including:Module being monitored, during for listening to user behavior event, enabling user behavior record thread, the user behavior call wire Journey is used for recording the data of user behavior event and enters row data communication with server;Sending module, for by the user record thread, by the data of the user behavior event listened to send to Server;The monitoring module includes:Processing unit, during user behavior event for listening to main thread, newly-built user behavior record thread;First enables unit, for enabling the user behavior thing listened to described in the newly-built user behavior record thread processing The data of part.
- 8. device as claimed in claim 7, it is characterised in that described device also includes:Module is terminated, for terminating the newly-built user behavior record thread.
- 9. device as claimed in claim 7, it is characterised in that the monitoring module includes:Second enables unit, for corresponding to the same user behavior call wire when whole webpage threads of web browser Journey, when listening to the user behavior event of any one webpage thread, enable the user behavior record thread.
- 10. device as claimed in claim 7, it is characterised in that the monitoring module includes:3rd enables unit, for when the corresponding user behavior call wire of each webpage thread of web browser Journey, when listening to the user behavior event of the webpage thread, enable the user behavior note corresponding with the webpage thread Record thread.
- 11. device as claimed in claim 7, it is characterised in that the sending module includes:Receiving unit, for being received by the user behavior record thread from the use listened to described in data exchange interface The data of family behavior event;Transmitting element, the data for the user behavior event by being listened to described in user behavior record thread transmission are extremely Server.
- 12. a kind of web browser, it is characterised in that including any described user behavior tape decks of claim 7-11.
- A kind of 13. user behavior tape deck, it is characterised in that including:Processor;For storing the memory of processor-executable instruction;Wherein described processor is configured as:When listening to the user behavior event of main thread, newly-built user behavior record thread;Enable newly-built user's row For the data of the user behavior event listened to described in record thread processing, the user behavior record thread is used for recording user The data of behavior event and enter row data communication with server;By the user behavior record thread, the data of the user behavior event listened to are sent to server.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410281046.5A CN104050266B (en) | 2014-06-20 | 2014-06-20 | User behavior recording method, device and web browser |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410281046.5A CN104050266B (en) | 2014-06-20 | 2014-06-20 | User behavior recording method, device and web browser |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104050266A CN104050266A (en) | 2014-09-17 |
CN104050266B true CN104050266B (en) | 2017-11-10 |
Family
ID=51503098
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410281046.5A Active CN104050266B (en) | 2014-06-20 | 2014-06-20 | User behavior recording method, device and web browser |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104050266B (en) |
Families Citing this family (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104298782B (en) * | 2014-11-07 | 2017-10-24 | 郭磊 | Internet user actively accesses the analysis method of action trail |
CN106294116A (en) * | 2015-06-11 | 2017-01-04 | 阿里巴巴集团控股有限公司 | Record and the methods, devices and systems of reproduction process process |
CN106484714B (en) * | 2015-08-27 | 2019-06-21 | 阿里巴巴集团控股有限公司 | A kind of storage method and equipment of behavior record |
CN107104927A (en) * | 2016-02-23 | 2017-08-29 | 阿里巴巴集团控股有限公司 | Access path acquisition method and device |
CN105975351A (en) * | 2016-04-25 | 2016-09-28 | 乐视控股(北京)有限公司 | User behavior message reporting method and apparatus |
CN106503134B (en) * | 2016-10-19 | 2019-08-13 | Oppo广东移动通信有限公司 | Browser jumps to the method for data synchronization and device of application program |
CN108132955A (en) * | 2016-12-01 | 2018-06-08 | 中移(苏州)软件技术有限公司 | A kind of log storing method and device |
CN108171547B (en) * | 2017-12-27 | 2021-12-07 | 平安普惠企业管理有限公司 | User behavior tracking method, device, equipment and storage medium |
CN111046317A (en) * | 2019-12-27 | 2020-04-21 | 北京奇艺世纪科技有限公司 | Page data acquisition method, device, equipment and computer readable storage medium |
CN111858279A (en) * | 2020-07-09 | 2020-10-30 | 深圳市富之富信息技术有限公司 | Method and device for tracking user behaviors of browser |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101651707A (en) * | 2009-09-22 | 2010-02-17 | 西安交通大学 | Method for automatically acquiring user behavior log of network |
CN102761573A (en) * | 2011-04-28 | 2012-10-31 | 北京随视传媒科技有限公司 | Media information user browsing behavioral data monitoring method |
CN103873583A (en) * | 2014-03-24 | 2014-06-18 | 北京聚思信息咨询有限公司 | Method and system for analyzing behaviors of internet users based on cloud platform |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2007241982A (en) * | 2006-03-09 | 2007-09-20 | Nu Channel Beijing (X Plus) | Method and system for accurate issuance of data information |
-
2014
- 2014-06-20 CN CN201410281046.5A patent/CN104050266B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101651707A (en) * | 2009-09-22 | 2010-02-17 | 西安交通大学 | Method for automatically acquiring user behavior log of network |
CN102761573A (en) * | 2011-04-28 | 2012-10-31 | 北京随视传媒科技有限公司 | Media information user browsing behavioral data monitoring method |
CN103873583A (en) * | 2014-03-24 | 2014-06-18 | 北京聚思信息咨询有限公司 | Method and system for analyzing behaviors of internet users based on cloud platform |
Also Published As
Publication number | Publication date |
---|---|
CN104050266A (en) | 2014-09-17 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104050266B (en) | User behavior recording method, device and web browser | |
CN104270404B (en) | A kind of login method and device based on terminal iidentification | |
CN104159275B (en) | Method for connecting network and device | |
WO2021022689A1 (en) | Information collection method and apparatus | |
CN104778405B (en) | Ad blocking method and device | |
CN104991916B (en) | The loading method and device of webpage | |
CN107329743A (en) | Methods of exhibiting, device and the storage medium of five application page | |
US11204681B2 (en) | Program orchestration method and electronic device | |
CN103870551B (en) | The method and apparatus that a kind of cross-domain data obtains | |
CN104536787B (en) | Resource preloads method and device | |
CN104951517A (en) | Behavior log statistics method and device | |
CN106126632A (en) | Recommend method and device | |
EP3176719A1 (en) | Methods and devices for acquiring certification document | |
CN104331503A (en) | Information push method and device | |
CN107220059A (en) | The display methods and device of application interface | |
CN104572875A (en) | Popularization information putting effectiveness determining method and device | |
CN109525652A (en) | Information sharing method, device, equipment and storage medium | |
CN111127053B (en) | Page content recommendation method and device and electronic equipment | |
KR101744696B1 (en) | Method, device, program and recording medium for filtering information | |
CN108628870A (en) | A kind of web preview method and apparatus | |
CN104199915A (en) | Method and device for detecting webpage changes | |
CN106331076A (en) | Advertisement push method and apparatus | |
CN108268507B (en) | Browser-based processing method and device and electronic equipment | |
CN107534860A (en) | Wi-Fi hotspot portal authentication method and device | |
CN111079040B (en) | Resource sniffing method, device, terminal, 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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |