CN107800757B - User behavior recording method and device - Google Patents

User behavior recording method and device Download PDF

Info

Publication number
CN107800757B
CN107800757B CN201710193625.8A CN201710193625A CN107800757B CN 107800757 B CN107800757 B CN 107800757B CN 201710193625 A CN201710193625 A CN 201710193625A CN 107800757 B CN107800757 B CN 107800757B
Authority
CN
China
Prior art keywords
control
page
event
user behavior
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
Application number
CN201710193625.8A
Other languages
Chinese (zh)
Other versions
CN107800757A (en
Inventor
刘啸
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ping An One Wallet E Commerce Co Ltd
Original Assignee
Ping An One Wallet E Commerce 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 Ping An One Wallet E Commerce Co Ltd filed Critical Ping An One Wallet E Commerce Co Ltd
Priority to CN201710193625.8A priority Critical patent/CN107800757B/en
Publication of CN107800757A publication Critical patent/CN107800757A/en
Application granted granted Critical
Publication of CN107800757B publication Critical patent/CN107800757B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/535Tracking the activity of the user
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/34Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment
    • G06F11/3438Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment monitoring of user actions
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/958Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Computer Hardware Design (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Quality & Reliability (AREA)
  • Data Mining & Analysis (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Transfer Between Computers (AREA)
  • Stored Programmes (AREA)

Abstract

The invention relates to a user behavior recording method and device. The method comprises the steps of detecting whether a page is opened or not, when the page is detected to be opened, traversing controls on the current page according to a page control detection request, finding out the controls to which business click response events are hung, replacing the business click response events hung by the controls with user behavior recording events, receiving a control hanging event execution instruction through the controls, and executing the user behavior recording events according to the control hanging event execution instruction. The user behavior recording method and the device reduce the development workload and have better universality on different applications and application versions.

Description

User behavior recording method and device
Technical Field
The invention relates to the technical field of computer application, in particular to a user behavior recording method and device.
Background
In the field of client application, the operation behavior of a user needs to be monitored and user behavior data is collected and recorded in many times, so that a data analyst can analyze the user behavior according to the recorded data, and can conveniently master user group, platform information, user operation habit information and the like of application.
Conventionally, a manual point burying method is adopted to write statistical codes into codes corresponding to relevant controls of an application program, and user behavior data is collected through information returned by the statistical codes when a user uses the application. Generally, manual embedding is to embed a designated control related to a service according to service requirements. Therefore, only a record of the user's manipulation behavior of the specified control can be obtained. However, with the continuous development and change of the service requirements, the analysis requirements of the users of the service are also continuously changed, and the way of embedding points in the specified control in advance cannot meet the later-added analysis requirements, so that the situation of missing embedding points often occurs. When new analysis requirements appear, developers are required to modify development codes again, development workload of each service is increased additionally, and errors are prone to occur. Therefore, the conventional user behavior recording method is poor in generality and time-consuming and labor-consuming.
Disclosure of Invention
In view of the above, it is necessary to provide a user behavior recording method and apparatus for solving the problems of poor versatility and large development workload of the user behavior recording method.
A user behavior recording method, the method comprising:
detecting whether a page is opened;
when the page is detected to be opened, traversing the control on the current page and finding out the control which is hung with the service click response event;
replacing the business click response event hooked by the control by a user behavior recording event;
receiving a control hooking event execution instruction through a control;
and executing the user behavior recording event according to the control hooking event execution instruction.
In one embodiment, the method further comprises: storing the mapping relation between the control hung with the service click response event and the corresponding service click response event;
the method also comprises the following steps after the step of executing the user behavior recording event according to the control hanging event execution instruction or before the step of executing the user behavior recording event according to the control hanging event execution instruction:
searching a business click response event corresponding to the control according to the mapping relation;
a service click response event is executed.
In one embodiment, the step of traversing the control on the current page and finding the control with the business click response event hung thereon further includes: marking the current page as a detected state;
the step of detecting the page opening further comprises the following steps:
and judging whether the current page is in a detected state, if not, executing the steps of traversing the control on the current page and finding out the control which is hung with the service click response event.
In one embodiment, the control is uniquely identified by a control character string and a page number of a page to which the control belongs, and the step of executing the user behavior recording event includes:
and acquiring a control character string of the control and a page code of the current page, and sending the control character string and the page code to a server.
In one embodiment, the method further comprises:
acquiring user information, wherein the user information comprises at least one of user account information, client information and application version information;
and sending the user information to the server so that the server analyzes the user behavior according to the user information.
A user behavior recording apparatus, the apparatus comprising:
the opening detection module is used for detecting whether the page is opened or not;
the traversal searching module is used for traversing the control on the current page and searching the control which is hung with the service click response event when the page is detected to be opened;
the replacing module is used for replacing the business click response event hooked by the control by a user behavior recording event;
the instruction receiving module is used for receiving a control hooking event execution instruction through a control;
and the instruction execution module is used for executing the user behavior recording event according to the control hooking event execution instruction.
In one embodiment, the apparatus further comprises:
the mapping storage module is used for storing the mapping relation between the control hung with the service click response event and the corresponding service click response event;
the searching module is used for searching the business click response event corresponding to the control according to the mapping relation table;
and the response execution module is used for executing the service click response event.
In one embodiment, the apparatus further comprises:
the state marking module is used for marking the current page as a detected state;
and the state judgment module is used for judging whether the current page is in a detected state.
In one embodiment, the control is uniquely identified by the control character string and the page number of the page to which the control belongs, and the instruction execution module is further configured to obtain the control character string of the control and the page code of the current page, and send the control character string and the page code to the server.
In one embodiment, the apparatus further comprises:
the system comprises a user information acquisition module, a client information acquisition module and a user information processing module, wherein the user information acquisition module is used for acquiring user information which comprises at least one of user account information, client information and application version information;
and the user information sending module is used for sending the user information to the server so that the server analyzes the user behavior according to the user information.
According to the user behavior recording method and device, the page control detection request is responded, all controls which are connected with the service click response events on the current page in a traversing mode are searched, the service click response events connected with the controls are uniformly replaced by the user behavior recording events, and the user behavior recording events are executed after the control connection event execution instruction is received, so that the behavior recording of the controls operated by a user once is completed, all the controls which possibly have the embedded point requirement are automatically embedded, the universality on different applications and application versions is good, manual intervention is not needed, and the development workload is greatly reduced.
Drawings
FIG. 1 is a diagram of an application environment of a user behavior recording method in one embodiment;
FIG. 2 is a flow diagram of a method for user behavior logging, under an embodiment;
FIG. 3 is a diagram illustrating a structure of an application home page in one embodiment;
FIG. 4 is a diagram illustrating a structure of an application top-up center page in an embodiment;
FIG. 5 is a schematic diagram of an embodiment of a user behavior recording apparatus;
FIG. 6 is a schematic diagram showing the structure of a user behavior recording apparatus according to another embodiment;
FIG. 7 is a schematic diagram showing the structure of a user behavior recording apparatus in another embodiment;
FIG. 8 is a schematic diagram showing the structure of a user behavior recording apparatus according to still another embodiment;
fig. 9 is a schematic structural diagram of a terminal in one embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
The user behavior recording method provided in the embodiment of the present invention may be applied to an application environment as shown in fig. 1. The server 102 and the terminal 104 are connected via a network. The server 102 has stored thereon page information for all pages of the application and control information for all controls on each page. The terminal 104 sends control information of the control and page information of a page to which the control belongs to the server 102 when executing the user behavior recording event, and after receiving the control information and the page information of the page to which the control belongs, the server 102 matches the control information received from the terminal 104 with the control information stored by the server, positions the control operated by the user and records the control information, thereby completing the recording of the user on the control operation behavior. In addition, the terminal 104 may also send user information to the server 102, the server 102 receives the user information, stores the received user information and the control information in an associated manner, and the server 102 analyzes the record of the operation behavior of the user on the control according to the user information.
The following embodiment describes the application of the user behavior recording method to the terminal in fig. 1, and the terminal is a mobile phone installed with an Android system as an example, but it should be noted that the method is not limited to be applied to the terminal in practical applications.
Referring to fig. 2, fig. 2 is a flowchart of a user behavior recording method in an embodiment, where the method specifically includes the following steps:
step 210, detecting whether the page is opened.
The page is a display page of the application on the terminal, each application comprises a plurality of pages, the pages can jump, and a plurality of controls are deployed on each application page. The terminal detects whether an application page is started or not through the application, and the detection includes detecting the page started when the application is started for the first time and the page started after jumping.
Step 220, traversing the controls on the current page and finding out the controls with the business click response events hung.
When the terminal detects that the application page is opened, the terminal detects the controls deployed in the currently opened application page, traverses all the controls deployed in the page, and finds out the controls with the service click response events hung. And the service click response event is a response event executed by the terminal after the user clicks the control. The clicking operation of the user comprises clicking, touching, gesture, pressing and other operations on the control. The fact that the control is connected with the service click response event means that the control points to a function entry address of the service click response event, when the terminal detects that a user clicks the control, the terminal acquires and accesses the function entry address of the response event, and executes the response event.
Each control with a service click response event hung corresponds to a service operation, for example, as shown in fig. 3, a plurality of controls such as a "transfer" control 301, a "credit card payment" control 302, a "recharging center" control 303, a "life payment" control 304, and the like are provided on the home page 300 of the application, and these controls respectively correspond to a transfer service, a credit card payment service, a life payment service, a recharging service, and the like. The user clicks the "recharge center" control 303 to hope to perform the operation of recharging service, and after the user clicks the "recharge center" control 303, the application page jumps to the recharge center page 400 shown in fig. 4. The process of jumping from the application home page 300 to the recharging center 400 page is a service click response event for executing the hooking of the control of the recharging center, so that the user can perform the operation of recharging the service.
And step 230, replacing the service click response event hooked by the control with a user behavior recording event.
The user behavior recording event refers to that when a user clicks a control, the terminal sends the operated control information to the server, so that the server records the operation behavior of the user on the control. And after finding the control hung with the service click response event, the terminal replaces the function entry address pointing to the service click response event by the function entry address of the user behavior recording event. When the terminal detects that the user clicks the control, the terminal acquires and accesses the function entry address of the user behavior recording event.
In one embodiment, the application of the Android system is based on Activity (life cycle), Activity is typically designed to inherit to a common base class, all controls in the Activity are traversed in an onResume event of the base class in a recursive search mode, a reflection mechanism is used for detecting the control to which a service click response event is connected, and the service click response event connected with each control is replaced by a user behavior recording event.
And 240, receiving a control hooking event execution instruction through the control.
When a user clicks a control on a current page, a control hooking event execution instruction is sent, the control hooking event execution instruction is an event instruction sent to a terminal to execute hooking of the control, and the terminal receives the control hooking event execution instruction sent by the user through detection of the operation of the user on the control. And after receiving the instruction, the terminal acquires and accesses the function entry address of the event pointed by the control and responds to the event.
And step 250, executing the user behavior recording event according to the control hooking event execution instruction.
And the terminal receives the control hooking event execution instruction and executes the hooking event corresponding to the control according to the instruction. The event hooked by the control is a user behavior recording event, the terminal accesses the function entry address of the user behavior recording event, responds to the user behavior recording event, and sends the information of the control clicked by the user to the server, so that the server records the operation behavior of the user on the control.
In the user behavior recording method in the above embodiment, the terminal automatically buries the points of all the controls which may have the demand for burying points on the open page by traversing the controls of the application page, and executes the user behavior recording event after the terminal receives the control hooking event execution instruction sent by the user, so that the behavior recording of the user operation control can be completed once. When a new service is required to be buried, the development code does not need to be modified again manually, so that the development workload is greatly reduced, and the automatic point burying mode has better universality for different applications and application versions.
In one embodiment, after the step of traversing the control on the current page according to the control detection request and finding the control on which the business click response event is hung, the method further comprises the following steps: storing the mapping relation between the control hung with the service click response event and the corresponding service click response event; the method also comprises the following steps before executing the step of executing the user behavior recording event according to the control hanging event execution instruction or after executing the step of executing the user behavior recording event according to the control hanging event execution instruction: searching a business click response event corresponding to the control according to the mapping relation; a service click response event is executed.
In this embodiment, the control has a corresponding mapping relationship with the attached service click response event, and the pointer of the control and the function entry address of the service click response event are stored in a one-to-one correspondence manner. After the terminal detects a control hooking event execution instruction sent by a user through the control, the terminal acquires the pointer of the control, searches a service click response event corresponding to the control in the mapping relation according to the pointer of the control, and calls and executes the service click response event.
The searching and executing of the service click response event corresponding to the control can be performed before the user behavior recording event is executed or after the user behavior recording event is executed. Preferably, the execution of the service click response event is called before the execution of the user behavior recording event, so that the service operation corresponding to the control can be responded preferentially.
Specifically, in an embodiment, the function entry address corresponding to the pointer of the control and the service click response event hooked by the pointer are correspondingly stored in a HashMap mapping table in the Activity where the control is located, after the terminal receives a control hooking event execution instruction, the pointer of the control is obtained, the function entry address corresponding to the service click response event is found in the HashMap mapping table according to the pointer, the terminal jumps to the function entry address of the service click response event, jumps to the function entry address of the user behavior recording event after the service click response event is executed, and executes the user behavior recording event.
In the embodiment, the mapping relationship between the control and the service click response event hooked thereto is stored, after the terminal detects that the user operates the control, the service click response event corresponding to the control can be searched and called according to the stored mapping relationship, and when the control is recorded in a buried point, normal service response can be ensured.
In one embodiment, the step of traversing the controls on the current page and finding the controls on which the business click response event is posted further comprises marking the current page as a detected state. And after the step of detecting the page opening, judging whether the current page is in a detected state, if not, executing the steps of traversing the control on the current page and finding out the control which is hung with the service click response event.
In this embodiment, the application page subjected to the control traversal detection is marked as a detected state, the detected state indicates that the mapping relationship between the control and the service click operation event hooked thereto is stored, and the terminal has completed the embedded point operation on all the controls on the application page. The method for marking the current page may record and store the page number of the current page, add an identifier to the current page, or mark the current page in other forms.
When a user operates a control, after the terminal executes a service click response event corresponding to the control, the terminal usually jumps from one application page to another application page, the terminal detects the state of the application page after the jump and judges whether the application page is in a detected state, if the application page is in the detected state, the application page is not an application page started for the first time, the control deployed in the application page is subjected to traversal detection, the traversal detection of the control on the application page is not needed, and the terminal continues to detect the click operation of the user on the control on the application page.
If the application page is judged to be in a non-detection state, the application page is indicated to be started for the first time, the control on the page is not subjected to the embedded point operation of hooking event replacement, and the terminal conducts traversal detection on the control on the page.
For example, please refer to fig. 3 and 4 at the same time, the application jumps from the home page 300 to the recharge center page 400, the recharge center page 400 has multiple controls such as a "10-element telephone charge recharge" control 401 and a "50-element telephone charge recharge" control 402, the recharge center page 400 is a page opened for the first time, the terminal detects that the page is in a non-detection state, traverses all the controls on the recharge center page 400 and replaces the hooking events of the controls with the user behavior recording events, and the recharge center page 400 is subjected to a point-burying operation. Meanwhile, the recharging center page 400 is provided with a "home page return" control 403, when a user clicks the "home page return" control 403, the user jumps to the home page 300, the home page 300 is restarted, but the home page 300 is not started for the first time, the control on the page is subjected to traversal detection, the terminal detects that the state of the home page 300 is a detected state, and the terminal does not repeatedly execute control detection operation.
In the embodiment, the control detection state of the application page is marked, when the page jumps, the judgment is carried out through the page state, only the control detection and the point burying operation are carried out on the page which is started for the first time, and the control detection is not required to be carried out on each jump page, so that a large amount of repetitive point burying operations are avoided, and the operation time is saved.
In one embodiment, the control is uniquely identified by a control character string and a page number of a page to which the control belongs, and the step of executing the user behavior recording event includes: and acquiring a control character string of the control and a page code of the current page, and sending the control character string and the page code to a server.
The control character string is a string of characters capable of representing the business operation corresponding to the control, for example, the control character string corresponding to the "transfer" control is "transfer", and the control character string corresponding to the "credit card repayment" control is "credit card repayment". Controls corresponding to the same business operation may exist between different application pages, and in order to record user behaviors, control character strings corresponding to the controls of the same business operation are the same under normal conditions, and the controls cannot be accurately positioned by the control character strings alone. However, the control character strings of the deployed controls on the same application page are different, so that the controls can be uniquely identified by the control character strings and the page numbers of the pages to which the controls belong, the controls which are clicked by users can be accurately positioned, and the accuracy of user behavior records is improved.
After a terminal detects a user clicks a control, a control character string of the control and a page number of a current page are obtained and sent to a server, control information of the deployed control on each application page is stored in the server in advance, the control information comprises the control character string and the page number corresponding to the control character string, the server receives the control character string and the page number and then matches the control information stored in advance, the control clicked by the user is positioned and the control character string is recorded, and therefore recording of one-time user service clicking operation is completed.
In one embodiment, the method of the user behavior recording method further comprises the steps of: acquiring user information, wherein the user information comprises at least one of user account information, client information and application version information; and sending the user information to the server so that the server analyzes the user behavior according to the user information.
The user information refers to multidimensional information related to a user who operates the application, the user information includes user account information, client information, application version information and the like, the user account information includes a user name and user registration data and the like associated with the user name, the client information includes an equipment model of client equipment, an operating system version number and the like, and the application version information includes an application version number, an application download channel number and the like. The terminal at least obtains at least one information in the user information.
And the terminal executes the user behavior recording event, and before or after the step of sending the control character string and the page code to the server, the terminal acquires the user information and sends the user information to the server. And the server records the control character string and simultaneously records the user information operated by the user. In one embodiment, the server also records the time the control string was received. And the server performs associated record storage on the user information, the operation event and the control character string.
The server carries out associated recording on the control operation time and the corresponding user information and the control character string, so that a plurality of dimensionality analysis statistics can be conveniently carried out on the recorded user business operation behavior data by a data analysis personnel at a later stage, and the operation behavior habit of a user can be comprehensively known.
In one embodiment, as shown in fig. 5, a user behavior recording apparatus is provided, which includes an opening detection module 503, a traversal search module 504, a replacement module 506, an instruction receiving module 508, and an instruction execution module 510, where:
an open detection module 503, configured to detect whether a page is open;
a traversal search module 504, configured to traverse a control on a current page when it is detected that the page is opened, and find out a control to which a service click response event is attached;
a replacing module 506, configured to replace the service click response event hooked by the control with a user behavior recording event;
an instruction receiving module 508, configured to receive a control hooking event execution instruction through a control;
and the instruction execution module 510 is configured to execute the user behavior recording event according to the control hooking event execution instruction.
In one embodiment, as shown in fig. 6, the apparatus further comprises: a mapping storage module 507, a lookup module 509 and a response execution module 511, wherein:
the mapping storage module 507 is used for storing the mapping relationship between the control hung with the service click response event and the corresponding service click response event;
the searching module 509 is configured to search, according to the mapping relationship table, a service click response event corresponding to the control;
the response execution module 511 is configured to execute the service click response event.
In one embodiment, as shown in fig. 7, the apparatus further comprises: a status marking module 505 and a status judging module 501, wherein:
a state marking module 505, configured to mark the current page as a detected state;
a state judgment module 501, configured to judge whether a current page is in a detected state;
in an embodiment, the control is uniquely identified by a control character string and a page number of a page to which the control belongs, and the instruction execution module 510 is further configured to obtain the control character string of the control and a page code of a current page, and send the control character string and the page code to the server.
In one embodiment, as shown in fig. 8, the apparatus further comprises: a user information obtaining module 512 and a user information sending module 514, wherein:
a user information obtaining module 512, configured to obtain user information, where the user information includes at least one of user account information, client information, and application version information;
and a user information sending module 514, configured to send the user information to the server, so that the server analyzes the user behavior according to the user information.
In one embodiment, as shown in fig. 9, a terminal 900 is provided that includes a processor 910, an internal memory 920, a non-volatile storage medium 940 and a network interface 930 connected by a system bus. An operating system 942 and a user behavior recording device 944 are stored in the nonvolatile storage medium 940 of the terminal 900, and the user behavior recording device 944 is configured to record a click operation behavior of a user. The processor 910 of the terminal 900 is configured to provide computing and control capabilities and is configured to perform a user behavior recording method. The internal memory 920 provides an environment for the operation of the user behavior recording device 944 in the non-volatile storage medium 940, and the internal memory 920 may store computer readable instructions, which when executed by the processor, may cause the processor to perform a user behavior recording method. The network interface 930 is used to communicate with an external server via a network connection. Those skilled in the art will appreciate that the configuration shown in fig. 9 is a block diagram of only a portion of the configuration associated with the present application and does not constitute a limitation on the terminal to which the present application is applied, and that a particular terminal may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
The technical features of the embodiments described above may be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the embodiments described above are not described, but should be considered as being within the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present invention, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the inventive concept, which falls within the scope of the present invention. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (10)

1. A method for recording user behavior, the method comprising the steps of:
detecting whether a page is opened;
when the page is detected to be opened, traversing the control on the current page and finding out the control of the function entry address where the service click response event is hung;
replacing the function entry address of the service click response event hooked by the control with the function entry address of the user behavior recording event;
receiving a control hooking event execution instruction through the control;
and accessing a function entry address of a user behavior recording event pointed by the control according to the control hooking event execution instruction, and executing the user behavior recording event.
2. The user behavior recording method according to claim 1, further comprising: storing the mapping relation between the control hung with the service click response event and the corresponding service click response event;
the following steps are further included after the step of executing the user behavior recording event according to the control hooking event execution instruction or before the step of executing the user behavior recording event according to the control hooking event execution instruction:
searching a business click response event corresponding to the control according to the mapping relation;
and executing the service click response event.
3. The method of claim 1, wherein the step of traversing the controls on the current page and finding the control with the business click response event posted thereto further comprises: marking the current page as a detected state;
the step of detecting that the page is opened further comprises the following steps:
and judging whether the current page is in a detected state, if not, executing the steps of traversing the control on the current page and finding out the control which is hung with the service click response event.
4. The method according to claim 1, wherein the control is uniquely identified by a control string and a page number of a page to which the control belongs, and the step of executing the user behavior recording event includes:
and acquiring a control character string of the control and the page code of the current page, and sending the control character string and the page code to a server.
5. The user behavior recording method according to claim 1, further comprising:
acquiring user information, wherein the user information comprises at least one of user account information, client information and application version information;
and sending the user information to a server so that the server analyzes the user behavior according to the user information.
6. A user behavior recording apparatus, characterized in that the apparatus comprises:
the opening detection module is used for detecting whether the page is opened or not;
the traversal searching module is used for traversing the control on the current page and searching the control of the function entry address where the service click response event is hung when the page is detected to be opened;
the replacing module is used for replacing the function entry address of the business click response event hooked by the control with the function entry address of the user behavior recording event;
the instruction receiving module is used for receiving a control hooking event execution instruction through the control;
and the instruction execution module is used for executing the function entry address of the user behavior recording event pointed by the instruction access control according to the control hooking event and executing the user behavior recording event.
7. The user behavior recording device according to claim 6, wherein the device further comprises:
the mapping storage module is used for storing the mapping relation between the control hung with the service click response event and the corresponding service click response event;
the searching module is used for searching the business click response event corresponding to the control according to the mapping relation;
and the response execution module is used for executing the service click response event.
8. The user behavior recording device according to claim 6, wherein the device further comprises:
the state marking module is used for marking the current page as a detected state;
and the state judgment module is used for judging whether the current page is in a detected state.
9. The user behavior recording device according to claim 6, wherein the control is uniquely identified by a control character string and a page number of a page to which the control belongs, and the instruction execution module is further configured to obtain the control character string of the control and a page code of the current page, and send the control character string and the page code to a server.
10. The user behavior recording device according to claim 6, wherein the device further comprises:
the system comprises a user information acquisition module, a client information acquisition module and a user information processing module, wherein the user information acquisition module is used for acquiring user information which comprises at least one of user account information, client information and application version information;
and the user information sending module is used for sending the user information to a server so that the server analyzes the user behavior according to the user information.
CN201710193625.8A 2017-03-28 2017-03-28 User behavior recording method and device Active CN107800757B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710193625.8A CN107800757B (en) 2017-03-28 2017-03-28 User behavior recording method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710193625.8A CN107800757B (en) 2017-03-28 2017-03-28 User behavior recording method and device

Publications (2)

Publication Number Publication Date
CN107800757A CN107800757A (en) 2018-03-13
CN107800757B true CN107800757B (en) 2020-10-27

Family

ID=61530220

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710193625.8A Active CN107800757B (en) 2017-03-28 2017-03-28 User behavior recording method and device

Country Status (1)

Country Link
CN (1) CN107800757B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108595168A (en) * 2018-03-30 2018-09-28 武汉斗鱼网络科技有限公司 Automatically dotting method, apparatus, readable storage medium storing program for executing and equipment
CN109739717B (en) * 2018-04-12 2021-01-26 京东方科技集团股份有限公司 Page data acquisition method and device and server
CN109189654A (en) * 2018-08-02 2019-01-11 山东浪潮通软信息科技有限公司 A kind of mobile terminal user behavior track recording method
CN109948077B (en) * 2018-08-20 2023-09-01 中国印刷有限公司 User behavior data acquisition method, device, equipment and computer storage medium
CN109542594B (en) * 2018-11-27 2024-05-17 努比亚技术有限公司 Event response method and device, mobile terminal and computer readable storage medium
CN111352811B (en) * 2018-12-24 2023-04-28 中移(杭州)信息技术有限公司 User behavior data acquisition method, device, equipment and medium
CN110046317A (en) * 2019-03-13 2019-07-23 平安城市建设科技(深圳)有限公司 Page info recording method, terminal and the storage medium of IOS application

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104572043B (en) * 2013-10-16 2018-01-19 阿里巴巴集团控股有限公司 A kind of control to client application carries out burying method and device a little in real time
US20160217156A1 (en) * 2015-01-22 2016-07-28 Blanca AIicia Arriola Nunez Relationship Status Website
CN105138263A (en) * 2015-08-17 2015-12-09 百度在线网络技术(北京)有限公司 Method and device for jumping to specific page in application
CN106020907B (en) * 2016-05-31 2019-12-03 Oppo广东移动通信有限公司 A kind of method for closing and device of application program
CN106250404A (en) * 2016-07-21 2016-12-21 柳州龙辉科技有限公司 A kind of method that user operation is analyzed
CN106598868B (en) * 2016-12-24 2018-03-02 上海壹账通金融科技有限公司 Method and system a little are buried to the application program of client dynamic

Also Published As

Publication number Publication date
CN107800757A (en) 2018-03-13

Similar Documents

Publication Publication Date Title
CN107800757B (en) User behavior recording method and device
CN106844217B (en) Method and device for embedding point of applied control and readable storage medium
CN107193750B (en) Script recording method and device
CN109240886B (en) Exception handling method, exception handling device, computer equipment and storage medium
US8756593B2 (en) Map generator for representing interrelationships between app features forged by dynamic pointers
US20150134913A1 (en) Method and apparatus for cleaning files in a mobile terminal and associated mobile terminal
US20130276000A1 (en) Central registry for binding features using dynamic pointers
US20130318496A1 (en) Detection of central-registry events influencing dynamic pointers and app feature dependencies
CN104598380A (en) Method and system for automatic testing based on control
CN109947635B (en) Data reporting method, device, storage medium and terminal equipment
US11436133B2 (en) Comparable user interface object identifications
CN105512044A (en) Method and system for updating object base used for keyword drive test
CN110362479B (en) System upgrade test method and system
CN112817866A (en) Recording playback method, device, system, computer equipment and storage medium
CN106843947B (en) Method and device for processing code defects
CN108446224B (en) Performance analysis method of application program on mobile terminal and storage medium
CN110955598A (en) Breakpoint processing method and device of kernel mode program
CN112199284A (en) Program automation testing method and corresponding device, equipment and medium
EP2951680B1 (en) Acquiring identification of an application lifecycle management entity associated with similar code
CN112615758A (en) Application identification method, device, equipment and storage medium
US11422917B2 (en) Deriving software application dependency trees for white-box testing
CN110990346A (en) File data processing method, device, equipment and storage medium based on block chain
CN113934758A (en) Vehicle fault repairing method and device, vehicle-mounted terminal, server and storage medium
CN113268236A (en) UI element picking method and system based on function enhancement technology in RPA system
CN112162954B (en) User operation log generation and path positioning method, device, equipment and 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
GR01 Patent grant
GR01 Patent grant