CN109213652A - User behavior data acquisition method and device - Google Patents

User behavior data acquisition method and device Download PDF

Info

Publication number
CN109213652A
CN109213652A CN201710527314.0A CN201710527314A CN109213652A CN 109213652 A CN109213652 A CN 109213652A CN 201710527314 A CN201710527314 A CN 201710527314A CN 109213652 A CN109213652 A CN 109213652A
Authority
CN
China
Prior art keywords
control
thread
user behavior
behavior data
page
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.)
Pending
Application number
CN201710527314.0A
Other languages
Chinese (zh)
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.)
Beijing Didi Infinity Technology and Development Co Ltd
Original Assignee
Beijing Didi Infinity Technology and Development Co 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 Beijing Didi Infinity Technology and Development Co Ltd filed Critical Beijing Didi Infinity Technology and Development Co Ltd
Priority to CN201710527314.0A priority Critical patent/CN109213652A/en
Publication of CN109213652A publication Critical patent/CN109213652A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3051Monitoring arrangements for monitoring the configuration of the computing system or of the computing system component, e.g. monitoring the presence of processing resources, peripherals, I/O links, software programs
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3003Monitoring arrangements specially adapted to the computing system or computing system component being monitored
    • G06F11/302Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system component is a software system
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Computing Systems (AREA)
  • General Physics & Mathematics (AREA)
  • Quality & Reliability (AREA)
  • Mathematical Physics (AREA)
  • Human Computer Interaction (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The present invention provides a kind of user behavior data acquisition method and device, this method comprises: the thread of starting application program, thread includes first thread and the second thread, first thread is used to acquire the user behavior data of the control for application program, second thread is used for the function of executing application, and first thread and the second thread are mutually indepedent;By first thread, acquisition is directed to the user behavior data of control.User behavior data acquisition method and device provided by the invention, by being used to acquire the code of user behavior data, being decoupled with the code of, executing application function, so that developer is when being arranged the code for acquiring user behavior data, do not need again according to bury semantic understanding, to the cognition of code logic, avoid because to bury a semantic understanding mistake, to code logic cognitive presence deviation the problems such as, lead to bury a mistake and/or bury the problem of omitting, the accuracy of the user behavior data of application program acquisition can be improved.

Description

User behavior data acquisition method and device
Technical field
The present invention relates to data processing technique more particularly to a kind of user behavior data acquisition methods and device.
Background technique
As types of applications program is in the universal of terminal, the life of user also becomes more and more convenient, and user can pass through These application programs of installation at the terminal enjoy these application program brings convenience and convenience whenever and wherever possible, these are answered It for example can be application program of calling a taxi, payment application, chat application, multimedia application, movement with program eventually Hold mailbox etc..
Currently, application program provider by the analysis to user behavior data, can excavate user use preference, The information such as behavioural habits, similar users group provide reference frame for the optimization and development of application program.Therefore, user behavior The acquisition of data becomes the emphasis of application program provider concern.In the prior art, the developer of application program is by answering With the mode buried manually in program code a little, it is implanted into statistics codes in the application.In this way, user is using application program When, the statistics codes of application program can recorde each behavior of user using application program when, realize user behavior number According to acquisition.
However, when above-mentioned developer buries manually in application code, easily there is burying a mistake and/or bury and lose The case where leakage, leads to not accurately acquire user behavior data by application program.
Summary of the invention
The present invention provides a kind of user behavior data acquisition method and device, to solve in the prior art because of developer When being buried manually in application code, easily there is burying a mistake and/or bury the case where omitting, so that passing through application program The lower problem of the accuracy rate of user behavior data collected.
First aspect present invention provides a kind of user behavior data acquisition method, this method comprises:
Start the thread of application program, the thread includes first thread and the second thread, and the first thread is for adopting Collection is for the user behavior data of the control of the application program, and second thread is for executing the function of the application program Can, the first thread and second thread are mutually indepedent;
By the first thread, acquisition is directed to the user behavior data of the control.
In a kind of possible embodiment, the user behavior data includes: the page letter of the page where the control Breath;
The page info includes at least one of following: the previous page of the control information of the page, the page Control information.
In alternatively possible embodiment, the method also includes:
By the first thread, the user behavior data is stored.
In alternatively possible embodiment, the method also includes:
By the first thread, the user behavior data is sent to server.
In alternatively possible embodiment, user behavior number of the acquisition for the control of the application program According to, comprising:
Capture the operating gesture that user is directed to the application program;
According to the type of the operating gesture, determine whether the operating gesture is the gesture for operating the control;
When the operating gesture is to operate the gesture of the control, user of the acquisition for the control of the application program Behavioral data.
In alternatively possible embodiment, the type of the operating gesture includes any one of following:
Click, long-pressing, sliding.
In alternatively possible embodiment, the user behavior data further includes the mark of the control;
The mark of the control include: the title of class belonging to the control, the title of the class of the page where the control, Position of the control in the page.
In alternatively possible embodiment, the method also includes:
By the first thread, the screenshot of the page where the control is intercepted;
It is generated by the first thread in the mark of control control described in the position mark in the screenshot Screenshot after label, and establish the corresponding relationship of the mark of the screenshot and the control;
Screenshot from the label to server and the corresponding relationship by the first thread, after sending.
Second aspect of the present invention provides a kind of user behavior data acquisition device, which includes:
Processing module, for starting the thread of application program, the thread includes first thread and the second thread, and described One thread is used to acquire the user behavior data of the control for the application program, and second thread is for executing described answer With the function of program, the first thread and second thread are mutually indepedent;
Acquisition module, for by the first thread, acquisition to be directed to the user behavior data of the control.
In a kind of possible embodiment, the user behavior data includes: the page letter of the page where the control Breath;
The page info includes at least one of following: the previous page of the control information of the page, the page Control information.
In alternatively possible embodiment, described device further include:
Memory module, for storing the user behavior data by the first thread.
In alternatively possible embodiment, described device further include:
Sending module, for sending the user behavior data to server by the first thread.
In alternatively possible embodiment, the acquisition module is specifically used for capture user for described and applies journey The operating gesture of sequence, and according to the type of the operating gesture, determine whether the operating gesture is the hand for operating the control Gesture, when the operating gesture is to operate the gesture of the control, user behavior of the acquisition for the control of the application program Data.
In alternatively possible embodiment, the type of the operating gesture includes any one of following:
Click, long-pressing, sliding.
In alternatively possible embodiment, the user behavior data further includes the mark of the control;
The mark of the control include: the title of class belonging to the control, the title of the class of the page where the control, Position of the control in the page.
In alternatively possible embodiment, the acquisition module is also used to through the first thread, described in interception The screenshot of the page where control;
The processing module is also used to through the first thread, in position mark of the control in the screenshot The mark of the control, the screenshot after generating label, and establish the corresponding relationship of the mark of the screenshot and the control;
Described device further include:
Sending module, for the screenshot and the correspondence by the first thread, after sending the label to server Relationship.
User behavior data acquisition method and device provided by the invention, by the generation that will be used to acquire user behavior data Code can be decoupled with the code of, executing application function, so that developer is arranged in the application for acquiring user When the code of behavioral data, do not need again according to burying semantic understanding yet, and, the cognition to code logic avoids Because to bury a semantic understanding mistake, to code logic cognitive presence deviation the problems such as, lead to bury what mistake and/or bury was omitted Problem.Therefore, the accuracy of application program user behavior data collected can be improved in method through this embodiment.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this Some embodiments of invention for those of ordinary skill in the art without creative efforts, can be with It obtains other drawings based on these drawings.
Fig. 1 is the flow diagram of user behavior data acquisition method embodiment one provided by the invention;
Fig. 2 is the flow diagram of user behavior data acquisition method embodiment two provided by the invention;
Fig. 3 is the flow diagram of user behavior data acquisition method embodiment three provided by the invention;
Fig. 4 is the schematic diagram of Application Program Interface provided by the invention;
Fig. 5 is the structural schematic diagram of user behavior data acquisition device embodiment one provided by the invention;
Fig. 6 is the structural schematic diagram of user behavior data acquisition device embodiment two provided by the invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other Embodiment shall fall within the protection scope of the present invention.
In the prior art, the developer of application program can according to burying semantic understanding, and, to code logic Cognition, buried manually in the code of application program a little, in the code of application program be implanted into for acquiring user behavior number According to code.That is, code for acquiring user behavior data, with, for the code of executing application function be It is coupled.In this way, can be acquired in real time in the function of executing application by the thread of operation application program For the user behavior data of the control of application program.However, because to bury a semantic understanding mistake, to code logic cognitive presence When the problems such as deviation, above-mentioned developer bury manually in the code of application program, easily there is burying a mistake and/or bury and lose The case where leakage, leads to not accurately acquire user behavior data by application program.
User behavior data acquisition method and device provided by the invention, it is intended to solve in the prior art because developer exists When being buried manually in application code, easily there is burying a mistake and/or bury the case where omitting, so that passing through application program institute The lower problem of the accuracy rate of the user behavior data of acquisition.
Technical solution of the present invention is described in detail with specifically embodiment below.These specific implementations below Example can be combined with each other, and the same or similar concept or process may be repeated no more in some embodiments.
Fig. 1 is the flow diagram of user behavior data acquisition method embodiment one provided by the invention.The present embodiment Executing subject can be user behavior data acquisition device, can also be to be integrated with the terminal of user behavior data acquisition device to set It is standby, it is following to be carried out so that executing subject is the terminal device (abbreviation terminal device) for being integrated with user behavior data acquisition device as an example Explanation.What is involved is terminal devices for the present embodiment by the first thread of application program, acquires the specific mistake of user behavior data Journey.As shown in Figure 1, this method may include:
S101, the thread for starting application program.Wherein, thread includes first thread and the second thread, and first thread is used for User behavior data of the acquisition for the control of application program, function of second thread for executing application, first thread It is mutually indepedent with the second thread.
Specifically, in the present embodiment, by the way that the generation for acquiring user behavior data is separately provided in the application Code, and executes these codes by independent thread so that code for acquiring user behavior data, with, execute application The code of program function can decouple.That is, the code for acquiring user behavior data, the generation with, executing application function Code be it is identical independent, can be executed by different threads.In this way, developer is being arranged for acquiring user behavior number According to code when, do not need again according to burying semantic understanding yet, and, the cognition to code logic.It can thus be avoided Because to bury a semantic understanding mistake, to code logic cognitive presence deviation the problems such as, lead to bury what mistake and/or bury was omitted Problem.
Therefore, when terminal device receives the enabled instruction for being used to start application program of user's input, terminal device The first thread and the second thread of application program can be started simultaneously.Wherein, the present embodiment does not limit above-mentioned user and inputs starting The mode of instruction, for example, user can be by clicking application program image target mode, to end in the user interface of terminal device End equipment inputs above-mentioned enabled instruction.User can also be by for example " opening so-and-so to answer to the input of the voice assistant of terminal device With program " phonetic order mode, input above-mentioned enabled instruction to terminal device.User can also be corresponding by terminal device Peripheral hardware (such as: mouse, keyboard etc.), application program image target mode is chosen in the user interface of terminal device, to terminal Equipment inputs above-mentioned enabled instruction.
S102, pass through first thread, user behavior data of the acquisition for the control of application program.
Specifically, above-mentioned terminal device is after the first thread of starting application program and the second thread, terminal device can With by first thread, during user uses application program, real time monitoring user uses the behavior of application program, in turn When user clicks the control of application program, acquisition is directed to the user behavior data of the control.Wherein, control mentioned here can Think the control where button.User behavior data mentioned here for example may include: the time of the user's operation control, tire out Metering number etc..
Correspondingly, terminal device can be provided by the second thread during user uses application program for user Application program service is in the various functions of user.Function mentioned here can specifically be determined according to application program.With what is called a taxi For application program, above-mentioned described function for example can be function, the payment function etc. for sending order of calling a taxi.
User behavior data acquisition method provided by the invention, by will be used to acquire user behavior data code, with, The code of executing application function can decouple, so that developer is arranged in the application for acquiring user behavior number According to code when, do not need again according to burying semantic understanding yet, and, the cognition to code logic is avoided because to burying Point semantic understanding mistake, to code logic cognitive presence deviation the problems such as, lead to bury a mistake and/or bury the problem of omitting. Therefore, the accuracy of application program user behavior data collected can be improved in method through this embodiment.
Fig. 2 is the flow diagram of user behavior data acquisition method embodiment two provided by the invention.The present embodiment relates to And be terminal device by first thread, how to acquire the detailed process of user behavior data.As shown in Fig. 2, above-mentioned S102 May include:
S201, capture user are directed to the operating gesture of application program.
Wherein, terminal device passes through first thread, mode of the capture user for the operating gesture of application program, Ke Yican See the prior art, this is repeated no more.
S202, the type according to operating gesture, determine operating gesture whether be operational controls gesture.
Specifically, on the terminal device, the corresponding operation of different types of manipulation gesture is different.Wherein, above-mentioned described The type of operating gesture may include any one of following: click, long-pressing, sliding etc..Corresponding to each type of operating gesture Operation can specifically be determined according to the configuration of terminal device.For example, generalling use the operating gesture for clicking type for button. Duplication and stickup for text generally use long operating gesture by type.Message is deleted, sliding type is generallyd use Operating gesture.
Therefore, above-mentioned terminal device is by first thread, capture user in real time for application program operating gesture it Afterwards, the screen of terminal device can be touched according to the track and the operating gesture that the operating gesture is formed on the screen of terminal device The duration etc. of curtain, determines the type of the operating gesture, and then can determine that the operating gesture is according to the type of the operating gesture The no gesture for operational controls.
S203, operating gesture be operational controls gesture when, acquisition for application program control user behavior number According to.
Specifically, above-mentioned terminal device determines that captured operating gesture is the hand of operational controls by first thread When gesture, the user behavior data of the control of operating gesture position can be acquired by first thread, realizes user behavior The acquisition of data.
For clicking the operating gesture of type as the gesture of operational controls, above-mentioned terminal device by first thread, When capturing the operating gesture for clicking type, it can determine that the operating gesture is the gesture of operational controls.In this way, terminal device can To acquire the user behavior data of the control of the operating gesture position by first thread.
Since the corresponding operation of different types of manipulation gesture is different, by the user's operation hand captured in real time The identification of the type of gesture, can accurately know whether user currently operates the control of application program, and then apply in operation When program control, the user behavior data of the control is acquired.In this way, it can be ensured that the standard of user behavior data acquisition True property.
User behavior data acquisition method provided by the invention, terminal device, can be by right when running first thread The identification of the type of the user's operation gesture captured in real time, accurately knows whether user currently operates the control of application program Part, and then only in user's operation application program control, acquire the user behavior data of the control, it is ensured that user behavior data The accuracy of acquisition.
Optionally, in some embodiments, for above-mentioned terminal device by first thread, acquisition user is directed to a certain control User behavior data when, control mark can be generated for the control, and carry in user behavior data.I.e. above-mentioned use Family behavioral data may include: the mark of the control of user's current operation.Wherein, the mark of above-mentioned control may include: the control Position of the title, the control of the class of the page in the page where the title of class belonging to part, the control.It is with list control Example, position of the control in the page for example can be which column of which row)
When specific implementation, above-mentioned terminal device by first thread, can obtain the title of class belonging to the control, the control Position of the title, the control of the class of the page where part in the page, so can by the title of class belonging to the control, should The title of the class of the page, the control input in preset mark format in the position in the page where control, generate control Mark.Wherein, the present embodiment is to above-mentioned preset format without limiting.For example, above-mentioned preset mark format can be with are as follows: should Title+position of the control in the page of the class of the page where the title of class belonging to the control+control.
In this way, different terminal equipment can be made in the user behavior data of the same control of acquisition applications program When, identical mark can be carried.In this way, after the user behavior data is uploaded to server.Data analyst When analyzing the user behavior data of a certain control, all terminals can be obtained on the server and are set by the mark of the control The standby user behavior data for the control uploaded, improves the user behavior data that data analyst obtains same control Efficiency.
Further, on the basis of the above embodiments, above-mentioned user behavior data can also include: the page where control Page info.The page mentioned here can be understood as a certain user interface of application program.
Specifically, due to the possible control having the same of the different pages, the control of application program is clicked in user When, above-mentioned terminal device, can be with when by first thread, acquiring the above-mentioned described user behavior data for the control The page info of the page where acquiring the space, and the page info is carried in user behavior data.Wherein, the above-mentioned page Information may include at least one of following: control information, the control information of the previous page of the page of the page.Page mentioned here The control information in face can be the title of all controls on the page.The control information of the previous page of the page mentioned here can Think the title of all controls in the previous page of the page.
In this way, data analyst can be according to user behavior number after the user behavior data is uploaded to server According to entrained page info, accurately determine the user behavior data it is corresponding be control under which page so that Data analyst can accurately obtain the user behavior data of the control under each page, analyze for data analyst User behavior provides accurate foundation.
As described in above-described embodiment, above-mentioned terminal device is in the user behavior data for acquiring a certain control by first thread Later, user behavior data collected can be uploaded to server in real time, it can also be periodically by use collected Family behavioral data is uploaded to server.When using periodic mode, user behavior data collected is uploaded to server When, above-mentioned terminal device can also be deposited before user behavior data collected is uploaded to server by first thread Store up user behavior data collected.
Wherein, the present embodiment does not limit the side that user behavior data collected is uploaded to server by above-mentioned terminal device Formula.Optionally, in some embodiments, above-mentioned terminal device can send user behavior number to server by first thread According to.
In this way, allow terminal device be directly realized by by first thread user behavior data acquisition, Storage and transmission, so that data processing can be more convenient and coherent.
Fig. 3 is the flow diagram of user behavior data acquisition method embodiment three provided by the invention.Fig. 4 is the present invention The schematic diagram of the Application Program Interface of offer.This example is to be equipped with calling a taxi in the touch screen terminal equipment of iOS operating system For application program.It is assumed that user is in the user interface of terminal device by clicking the application program image target mode of calling a taxi, Enabled instruction is had input to terminal device, and terminal device has been based on the line that the enabled instruction starts application program of calling a taxi Journey (i.e. first thread and the second thread).Wherein, first thread is used to acquire user's row of the control for application program of calling a taxi For data, the second thread is used to execute the function (such as function, the payment function etc. for sending order of calling a taxi) for application program of calling a taxi, First thread and the second thread are mutually indepedent.Terminal device will be introduced below by first thread, and acquisition, is sent storage The process of user behavior data.It should be noted that if following step is that terminal device passes through first thread without specified otherwise Performed step.As shown in figure 3, this method may include:
S301, capture user are directed to the operating gesture of application program.
Specifically, terminal device can pass through first when user passes through the touch screen operation application program of terminal device The operating gesture of thread capture user.
S302, the type according to operating gesture, determine operating gesture whether be operational controls gesture.If so, executing S303 executes S301 if it is not, then returning.
Specifically, in the present embodiment, terminal device is the terminal device for being equipped with iOS operating system, therefore, at the end Operation corresponding to each type of operating gesture for example can be in end equipment are as follows: for button, generallys use and clicks type Operating gesture.Duplication and stickup for text generally use long operating gesture by type.Message is deleted, is usually adopted With the operating gesture of sliding type.
Therefore, above-mentioned terminal device is by first thread, capture user in real time for application program operating gesture it Afterwards, the screen of terminal device can be touched according to the track and the operating gesture that the operating gesture is formed on the screen of terminal device The duration etc. of curtain determines whether the type of the operating gesture is the operating gesture for clicking type.If so, illustrating the operation for operation The gesture of control can then execute subsequent step.If it is not, then illustrating the operation not is the gesture of operational controls, then can terminate Process.
S303, acquisition are directed to the user behavior data of the control of application program.
Specifically, above-mentioned terminal device by first thread, determines that captured operating gesture is the gesture of operational controls When, the user behavior data of the control of the operating gesture position by first thread, can be acquired.Wherein, user's row Operating gesture when for data may include: the page info of the page, the user's operation control where the mark of control, control Type, the text information of event for operating control triggering etc..
As shown in Figure 4, it is assumed that above-mentioned application program of calling a taxi is provided with the windward driving page, the taxi page, the special train page, fast The vehicle page, generation drive the page, setting page etc..Wherein, the setting page can be jumped in other several pages.This example with For page jump to the setting page is driven from generation in family, when the user clicks when control " account and the safety " of the setting page, eventually After end equipment determines the gesture that the operating gesture is operational controls by above-mentioned first thread, where the operating gesture collected The user behavior data of the control (i.e. account and safety) of position can be as follows:
{
" UILabel_0 ": " logging off ",
" UILabel_0#11 ": " setting ",
" UILabel_0#4 ": " order status will be broadcasted with voice after opening for you ",
" UILabel_0#6 ": " map will show real-time road after opening ",
" UITableViewLabel_0 ": " about application program ",
" UITableViewLabel_0#0 ": " articles of law ",
" UITableViewLabel_0#1 ": " giving application program favorable comment ",
" UITableViewLabel_0#10 ": " account and safety ",
" UITableViewLabel_0#2 ": " users' guidebook ",
" UITableViewLabel_0#3 ": " audio prompt ",
" UITableViewLabel_0#5 ": " real-time road ",
" UITableViewLabel_0#7 ": " safety travel ",
" UITableViewLabel_0#8 ": " emergency contact ",
" UITableViewLabel_0#9 ": " common address ",
" at ": 1,
“g_Bizld”:“car-mate”,
“g_Pageld”:“home”,
" g_Sceneld ": " in daily generation, drives ",
“pn”:“ONESettingViewCOntroller”,
“rn”:“ONESettingTableViewCell_ONESettingViewCOntroller_Cell_More_0_ 0”,
“rpn”:“ONENavigationCOntroller”,
“rt”:“ONESettingTableViewCell”,
" text ": " account and safety "
}
Above-mentioned " UILabel_0 " to " UITableViewLabel_0#9 " and from " g_Bizld " to " g_Sceneld " This two parts content is the page info of the page (i.e. the setting page) where control " account and safety ".Wherein, " UILabel_0 " It is the control information that the page is set to " UITableViewLabel_0#9 ", " g_Bizld " to " g_Sceneld " is the setting page Previous page (i.e. generation drive the page) control information.
The type of operating gesture when above-mentioned " at " is the user's operation control.
Above-mentioned " pn " is the title of the class of the page where " account and safety ".
Above-mentioned " rn " is the mark of control " account and safety ".It by first thread is control that the mark, which can be terminal device, The mark that part " account and safety " generates.Wherein, ONESettingTableViewCell is the class of control " account and safety " Title, ONESettingViewCOntroller are account and safety " where the page class title, Cell_More_0_0 is Position of the control " account and safety " in the setting page, i.e. the 0th column of the 0th row.It should be noted that above-mentioned " rn " is only one Kind signal, the present embodiment does not limit putting in order between each section in above-mentioned composition control mark, as long as in advance The format of mark is set, so that any terminal equipment can be generated when acquisition is directed to the user behavior data of control Identical mark.
Above-mentioned " rpn " is the title of the parent of the page where " account and safety ".
Above-mentioned " rt " is the title of the class of control " account and safety ".
Above-mentioned " text " is the text information for operating the event of control triggering.
It should be noted that the control as cited by this example is " account and safety ", operate control triggering Event text information be control Chinese.If above-mentioned control is, for example, " share-car " control, above-mentioned " text " example It such as may include: the origin of share-car, destination, share-car price, share-car distance, one or more in share-car route , this is no longer limited.
Optionally, in some embodiments, above-mentioned user behavior data can also include;The user's operation control when Between, the cumulative number of the user's operation control, the ID of user, the title of application program, the version number of application program, user is at this The duration etc. that the page where control stops.
S304, the user behavior data is stored.
Specifically, the present embodiment is by periodically to for server report of user behavioral data, therefore, above-mentioned terminal is set It is standby when acquiring the user behavior data of the control by first thread, if not reaching periodical report of user behavioral data also Time point, then above-mentioned terminal device can be stored user behavior data collected by first thread.
S305, the user behavior data that storage is sent to server.
Specifically, above-mentioned terminal device can pass through when reaching the time point of periodical report of user behavioral data The user behavior data stored is sent to server by one thread, so that data analyst can obtain on the server User behavior data.In this way, data analyst can be excavated in server side by the analysis to user behavior data The information such as the use preference of user, behavioural habits, similar users group, for application program optimization and development provide with reference to according to According to.
Optionally, in some embodiments, above-mentioned terminal device can also be by first thread, where intercepting the control The screenshot of the page, and the mark of the position mark control in control in screenshot, the screenshot after generating label.Then, terminal can To establish the corresponding relationship of the mark of screenshot and control, and by first thread, screenshot after sending from label to server and right It should be related to.In this way, developer is when server side analyzes the corresponding user behavior data of the control, it can also be according to control Mark and above-mentioned corresponding relationship, take out the screenshot where the control from server, so that data analyst can To analyze user behavior data in conjunction with actual application scenarios, the efficiency of user behavior data analysis and accurate is improved Property.Wherein, the present embodiment does not limit the time of the screenshot of the page where above-mentioned terminal device screenshot control, for example, above-mentioned end End equipment can be before the method for executing the present embodiment, and lower environment executes above-mentioned movement online.Above-mentioned terminal device can be with While user behavior data of the acquisition for the control of application program, above-mentioned movement is executed, and carry in user behavior number In, it is sent to server etc. together with user behavior data.
Example shown in Fig. 4 is corresponded to, then above-mentioned terminal can intercept control " account and safety " institute by first thread In the screenshot of the page, and the mark of the position mark control " account and safety " in control " account and safety " in the screenshot, Screenshot (screenshot as shown in Figure 4) after generating label.Then, terminal can by after the label screenshot and control " account with The mark of safety " establishes corresponding relationship, and by after the label screenshot and corresponding relationship be sent to server.In this way, data point Analysis personnel, can also will be upper from server in server side analysis component " account with safety " corresponding user behavior data It states page screenshot shown in Fig. 4 to take out, so that data analyst can be in conjunction with actual application scenarios to user's row It is analyzed for data, improves the efficiency and accuracy of user behavior data analysis.
After having executed S305, which terminates.
In the present embodiment, by the way that the code for acquiring user behavior data is separately provided in application program of calling a taxi, And these codes are executed by independent thread so that code for acquiring user behavior data, with, executing application The code of function can decouple.That is, code for acquiring user behavior data, with the code of, executing application function being It is identical independent, it can be executed by different threads.In this way, developer is arranged in application program of calling a taxi for acquiring When the code of user behavior data, do not need again according to burying semantic understanding yet, and, the cognition to code logic.Cause This, can to avoid because to bury a semantic understanding mistake, to code logic cognitive presence deviation the problems such as, cause to bury a mistake and/ Or bury the problem of omitting.
User behavior data acquisition method provided by the invention, by will be used to acquire user behavior data code, with, The code of executing application function can decouple, so that developer is arranged in the application for acquiring user behavior number According to code when, do not need again according to burying semantic understanding yet, and, the cognition to code logic is avoided because to burying Point semantic understanding mistake, to code logic cognitive presence deviation the problems such as, lead to bury a mistake and/or bury the problem of omitting. Therefore, the accuracy of application program user behavior data collected can be improved in method through this embodiment.
It should be noted that user behavior data acquisition method provided by the present invention, can be adapted for being equipped with any The terminal device of operating system, such as: iOS operating system, Android operation system etc..Correspondingly, user provided by the present invention Behavioral data acquisition method can be adapted for the manual application program buried a little of any needs.
Those of ordinary skill in the art will appreciate that: realize that all or part of the steps of above method embodiment can pass through The relevant hardware of program instruction is completed, and program above-mentioned can be stored in a computer readable storage medium, the program When being executed, step including the steps of the foregoing method embodiments is executed;And storage medium above-mentioned includes: ROM, RAM, magnetic disk or light The various media that can store program code such as disk.
Fig. 5 is the structural schematic diagram of user behavior data acquisition device embodiment one provided by the invention, as shown in figure 5, The user behavior data device can be implemented in combination with some or all of of terminal device by software, hardware or both. The user behavior data acquisition device may include: processing module 11 and acquisition module 12;Wherein,
Processing module 11, for starting the thread of application program, the thread includes first thread and the second thread, described First thread is used to acquire the user behavior data of the control for the application program, and second thread is described for executing The function of application program, the first thread and second thread are mutually indepedent;
Acquisition module 12, for by the first thread, acquisition to be directed to the user behavior data of the control.
Optionally, in some embodiments, above-mentioned acquisition module 12 is specifically used for capture user and is directed to the application program Operating gesture determine whether the operating gesture is the gesture for operating the control and according to the type of the operating gesture, When the operating gesture is to operate the gesture of the control, user behavior number of the acquisition for the control of the application program According to.Illustratively, the type of aforesaid operations gesture may include any one of following: click, long-pressing, sliding.
Optionally, in some embodiments, above-mentioned user behavior data may include: the page of the page where the control Information.Wherein, which may include at least one of following: control information, the previous page of the page of the page Control information.
Optionally, in some embodiments, above-mentioned user behavior data can also include the mark of the control.Wherein, The mark of the control may include: the title of the class of the page, the control where the title of class belonging to the control, the control Position in the page.
Conversation message processing unit provided by the invention, can execute above method embodiment, realization principle and technology Effect is similar, and details are not described herein.
Fig. 6 is the structural schematic diagram of user behavior data acquisition device embodiment two provided by the invention.As shown in fig. 6, On the basis of the block diagram shown in above-mentioned Fig. 5, which can also include:
Memory module 13, for storing the user behavior data by the first thread.
With continued reference to Fig. 6, in some embodiments, above-mentioned apparatus can also include:
Sending module 14, for sending the user behavior data to server by the first thread.
Optionally, in some embodiments, above-mentioned acquisition module 12 is also used to through the first thread, described in interception The screenshot of the page where control;Above-mentioned processing module 11 is also used to through the first thread, in the control at described section The mark of control described in position mark in figure, the screenshot after generating label, and establish the mark of the screenshot Yu the control Corresponding relationship;Then above-mentioned sending module 14, for the screenshot by the first thread, after sending the label to server With the corresponding relationship.
Conversation message processing unit provided by the invention, can execute above method embodiment, realization principle and technology Effect is similar, and details are not described herein.
Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present invention., rather than its limitations;To the greatest extent Pipe present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that: its according to So be possible to modify the technical solutions described in the foregoing embodiments, or to some or all of the technical features into Row equivalent replacement;And these are modified or replaceed, various embodiments of the present invention technology that it does not separate the essence of the corresponding technical solution The range of scheme.

Claims (16)

1. a kind of user behavior data acquisition method, which is characterized in that the described method includes:
Start the thread of application program, the thread includes first thread and the second thread, and the first thread is for acquiring needle To the user behavior data of the control of the application program, second thread is used to execute the function of the application program, institute It states first thread and second thread is mutually indepedent;
By the first thread, acquisition is directed to the user behavior data of the control.
2. the method according to claim 1, wherein the user behavior data includes: page where the control The page info in face;
The page info includes at least one of following: the control of the control information of the page, the previous page of the page Information.
3. according to the method described in claim 2, it is characterized in that, the method also includes:
By the first thread, the user behavior data is stored.
4. according to the method in claim 2 or 3, which is characterized in that the method also includes:
By the first thread, the user behavior data is sent to server.
5. the method according to claim 1, wherein user of the acquisition for the control of the application program Behavioral data, comprising:
Capture the operating gesture that user is directed to the application program;
According to the type of the operating gesture, determine whether the operating gesture is the gesture for operating the control;
When the operating gesture is to operate the gesture of the control, user behavior of the acquisition for the control of the application program Data.
6. according to the method described in claim 5, it is characterized in that, the type of the operating gesture includes any one of following:
Click, long-pressing, sliding.
7. the method according to claim 1, wherein the user behavior data further includes the mark of the control Know;
The mark of the control includes: the title of class belonging to the control, the title of the class of the page where the control, described Position of the control in the page.
8. the method according to the description of claim 7 is characterized in that the method also includes:
By the first thread, the screenshot of the page where the control is intercepted;
Label is generated in the mark of control control described in the position mark in the screenshot by the first thread Screenshot afterwards, and establish the corresponding relationship of the mark of the screenshot and the control;
Screenshot from the label to server and the corresponding relationship by the first thread, after sending.
9. a kind of user behavior data acquisition device, which is characterized in that described device includes:
Processing module, for starting the thread of application program, the thread includes first thread and the second thread, the First Line Journey is used to acquire the user behavior data of the control for the application program, and second thread is described using journey for executing The function of sequence, the first thread and second thread are mutually indepedent;
Acquisition module, for by the first thread, acquisition to be directed to the user behavior data of the control.
10. device according to claim 9, which is characterized in that the user behavior data includes: page where the control The page info in face;
The page info includes at least one of following: the control of the control information of the page, the previous page of the page Information.
11. device according to claim 10, which is characterized in that described device further include:
Memory module, for storing the user behavior data by the first thread.
12. device described in 0 or 11 according to claim 1, which is characterized in that described device further include:
Sending module, for sending the user behavior data to server by the first thread.
13. device according to claim 9, which is characterized in that the acquisition module is specifically used for capture user and is directed to institute The operating gesture of application program is stated, and according to the type of the operating gesture, determines whether the operating gesture is described in operation The gesture of control, when the operating gesture is to operate the gesture of the control, acquisition is directed to the control of the application program User behavior data.
14. device according to claim 13, which is characterized in that the type of the operating gesture includes any one of following:
Click, long-pressing, sliding.
15. device according to claim 9, which is characterized in that the user behavior data further includes the mark of the control Know;
The mark of the control includes: the title of class belonging to the control, the title of the class of the page where the control, described Position of the control in the page.
16. device according to claim 15, which is characterized in that
The acquisition module is also used to intercept the screenshot of the page where the control by the first thread;
The processing module, is also used to through the first thread, in the control described in the position mark in the screenshot The mark of control, the screenshot after generating label, and establish the corresponding relationship of the mark of the screenshot and the control;
Described device further include:
Sending module, for the screenshot and the corresponding relationship by the first thread, after sending the label to server.
CN201710527314.0A 2017-06-30 2017-06-30 User behavior data acquisition method and device Pending CN109213652A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710527314.0A CN109213652A (en) 2017-06-30 2017-06-30 User behavior data acquisition method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710527314.0A CN109213652A (en) 2017-06-30 2017-06-30 User behavior data acquisition method and device

Publications (1)

Publication Number Publication Date
CN109213652A true CN109213652A (en) 2019-01-15

Family

ID=64991569

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710527314.0A Pending CN109213652A (en) 2017-06-30 2017-06-30 User behavior data acquisition method and device

Country Status (1)

Country Link
CN (1) CN109213652A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109871331A (en) * 2019-03-04 2019-06-11 北京车联天下信息技术有限公司 Software function trial and error method of decision analysis and device
CN110413933A (en) * 2019-08-05 2019-11-05 青岛聚好联科技有限公司 The method and device of point data is buried in a kind of server-side acquisition

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103365555A (en) * 2012-03-31 2013-10-23 国际商业机器公司 Data processing method and system and data collecting method and system
CN103455496A (en) * 2012-05-30 2013-12-18 腾讯科技(深圳)有限公司 Interaction method and device based on browser
CN103488793A (en) * 2013-10-09 2014-01-01 韩金倡 User behavior monitoring method based on information retrieval
CN103729166A (en) * 2012-10-10 2014-04-16 华为技术有限公司 Method, device and system for determining thread relation of program
CN104572043A (en) * 2013-10-16 2015-04-29 阿里巴巴集团控股有限公司 Method and device for embedding points for controls of client application in real time
CN104935465A (en) * 2015-06-17 2015-09-23 北京京东尚科信息技术有限公司 Log generating method and log generating device of client application program, and server
CN105119899A (en) * 2015-07-17 2015-12-02 世纪龙信息网络有限责任公司 Non-intrusive client operation data acquisition method and non-intrusive client operation data acquisition system
CN105975351A (en) * 2016-04-25 2016-09-28 乐视控股(北京)有限公司 User behavior message reporting method and apparatus
CN106598868A (en) * 2016-12-24 2017-04-26 上海亿账通互联网科技有限公司 Dynamic point burying method and system for application program of client
CN106776247A (en) * 2016-11-23 2017-05-31 腾云天宇科技(北京)有限公司 Method, server and system for monitoring control in application

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103365555A (en) * 2012-03-31 2013-10-23 国际商业机器公司 Data processing method and system and data collecting method and system
US20150066965A1 (en) * 2012-03-31 2015-03-05 International Business Machines Corporation Data processing, data collection
CN103455496A (en) * 2012-05-30 2013-12-18 腾讯科技(深圳)有限公司 Interaction method and device based on browser
CN103729166A (en) * 2012-10-10 2014-04-16 华为技术有限公司 Method, device and system for determining thread relation of program
CN103488793A (en) * 2013-10-09 2014-01-01 韩金倡 User behavior monitoring method based on information retrieval
CN104572043A (en) * 2013-10-16 2015-04-29 阿里巴巴集团控股有限公司 Method and device for embedding points for controls of client application in real time
CN104935465A (en) * 2015-06-17 2015-09-23 北京京东尚科信息技术有限公司 Log generating method and log generating device of client application program, and server
CN105119899A (en) * 2015-07-17 2015-12-02 世纪龙信息网络有限责任公司 Non-intrusive client operation data acquisition method and non-intrusive client operation data acquisition system
CN105975351A (en) * 2016-04-25 2016-09-28 乐视控股(北京)有限公司 User behavior message reporting method and apparatus
CN106776247A (en) * 2016-11-23 2017-05-31 腾云天宇科技(北京)有限公司 Method, server and system for monitoring control in application
CN106598868A (en) * 2016-12-24 2017-04-26 上海亿账通互联网科技有限公司 Dynamic point burying method and system for application program of client

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109871331A (en) * 2019-03-04 2019-06-11 北京车联天下信息技术有限公司 Software function trial and error method of decision analysis and device
CN110413933A (en) * 2019-08-05 2019-11-05 青岛聚好联科技有限公司 The method and device of point data is buried in a kind of server-side acquisition

Similar Documents

Publication Publication Date Title
CN108182060B (en) Hybrid application point burying method, mobile terminal and system
JP7193059B2 (en) Speech processing method, apparatus, device, program and computer storage medium
WO2018113385A1 (en) Method and system for dynamically tracking application of client, client, and server
US10009304B2 (en) Method and system for correlating conversations in messaging environment
CN102567198B (en) System and method for testing application program in physical system environment
CN110933103B (en) Anti-crawler method, device, equipment and medium
CN103618830B (en) A kind of people of unread information inspection method and device
CN105260082B (en) A kind of test data methods of exhibiting and exploitation terminal
CN103180815A (en) Automated adjustment of input configuration
CN105898456A (en) Multimedia playback interaction method and device
CN107071512B (en) A kind of dubbing method, apparatus and system
CN109165157B (en) Method for testing application program and test platform
CN105471935B (en) Information prompting method and device
CN107798561B (en) Audio playing and sharing method and device, storage medium and electronic equipment
US9684445B2 (en) Mobile gesture reporting and replay with unresponsive gestures identification and analysis
CN106020697A (en) Control method and device for display elements
CN109213652A (en) User behavior data acquisition method and device
CN103826164A (en) Method and device for recording video watching
US20220391058A1 (en) Interaction information processing method and apparatus, electronic device and storage medium
CN107943369A (en) A kind of method, apparatus, medium and the electronic equipment of authority application control management
CN104598133B (en) The specification generation method and device of object
CN112073301A (en) Method, device and computer readable medium for deleting chat group members
US20160283050A1 (en) Adaptive tour interface engine
CN106294132B (en) A kind of method and device managing log
CN111787188B (en) Video playing method and device, terminal equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
AD01 Patent right deemed abandoned

Effective date of abandoning: 20221223

AD01 Patent right deemed abandoned