CN111352811B - User behavior data acquisition method, device, equipment and medium - Google Patents

User behavior data acquisition method, device, equipment and medium Download PDF

Info

Publication number
CN111352811B
CN111352811B CN201811584628.5A CN201811584628A CN111352811B CN 111352811 B CN111352811 B CN 111352811B CN 201811584628 A CN201811584628 A CN 201811584628A CN 111352811 B CN111352811 B CN 111352811B
Authority
CN
China
Prior art keywords
user behavior
user
configuration file
acquired
instruction
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
CN201811584628.5A
Other languages
Chinese (zh)
Other versions
CN111352811A (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.)
China Mobile Communications Group Co Ltd
China Mobile Hangzhou Information Technology Co Ltd
Original Assignee
China Mobile Communications Group Co Ltd
China Mobile Hangzhou Information Technology 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 China Mobile Communications Group Co Ltd, China Mobile Hangzhou Information Technology Co Ltd filed Critical China Mobile Communications Group Co Ltd
Priority to CN201811584628.5A priority Critical patent/CN111352811B/en
Publication of CN111352811A publication Critical patent/CN111352811A/en
Application granted granted Critical
Publication of CN111352811B publication Critical patent/CN111352811B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • 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
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses a method, a device, equipment and a medium for collecting user behavior data, which are used for solving the problem that a client is not updated and the user behavior data cannot be accurately collected in the prior art. The method comprises the following steps: after receiving a user instruction and determining a system base class method for responding to the user instruction, converting the system base class method into a user-defined method by using method exchange, calling the user-defined method, and collecting user behavior data corresponding to the current user behavior when the current user behavior represented by the user instruction is determined to be the user behavior to be collected based on the user behavior configuration file. By configuring user behavior configuration files of different versions, flexible configuration of user behaviors to be acquired is realized under the condition that a client is not upgraded, and a system base class method is converted into a user-defined method through method exchange, so that whether the current user behavior is the user behavior to be acquired or not can be accurately determined, and dynamic acquisition of user behavior data is realized.

Description

User behavior data acquisition method, device, equipment and medium
Technical Field
The present invention relates to the field of data processing technologies, and in particular, to a method, an apparatus, a device, and a medium for collecting user behavior data.
Background
With the continuous development of the mobile internet, the user behavior data collection of the client is more and more important. The current user behavior data acquisition scheme mainly comprises the following steps: codes are respectively implanted in each page and operation entrance to be acquired, and the user behavior data of the user in each page and operation entrance are acquired by running the implanted codes.
In the current user behavior data acquisition scheme, if each page to be acquired and an operation entrance are to be reconfigured, a user is required to upgrade the client, however, in practical application, the operation of upgrading the client is generally controlled by the user, if the user does not upgrade the client, the client cannot determine the latest page to be acquired and the operation entrance to be acquired, so that the omission of the user behavior data acquired by the client occurs, and the accuracy of the user behavior data acquired by the client is further affected.
Disclosure of Invention
The embodiment of the invention provides a user behavior data acquisition method, device, equipment and medium, which are used for solving the problem that a client side is not updated and user behavior data cannot be accurately acquired in the user behavior data acquisition method in the prior art.
The specific technical scheme provided by the embodiment of the invention is as follows:
in one aspect, an embodiment of the present invention provides a method for collecting user behavior data, including:
when a user instruction is received, determining a system base class method for responding to the user instruction, wherein the system base class method is used for executing corresponding operation according to the user instruction;
converting the system base class method into a custom method by using method exchange, wherein the custom method is used for acquiring user behavior data based on a user behavior configuration file configured by a server on the basis of executing the system base class method;
the custom method is called to execute the following steps: if the current user behavior characterized by the user instruction is the user behavior to be acquired based on the user behavior configuration file, acquiring user behavior data corresponding to the current user behavior, and executing corresponding operation based on the user instruction; otherwise, executing corresponding operation based on the user instruction.
In one possible implementation manner, before receiving the user instruction, the method further includes:
when the configuration condition is determined to be met, a configuration request is sent to a server, wherein the configuration request carries version information of a local user behavior configuration file; receiving a configuration response returned by the server after performing version check on the local user behavior configuration file according to the version information; if the local user behavior configuration file is determined not to be the latest version based on the configuration response, the address is acquired based on the configuration file, the latest version of the user behavior configuration file is acquired, and the local user behavior configuration file is updated to be the latest version of the user behavior configuration file.
In one possible implementation, the system base class method is converted into a custom method using method exchange, including:
and converting the execution path of the system base class method into the execution path of the custom method.
In a possible implementation manner, the user behavior configuration file is used for recording a to-be-acquired user behavior set corresponding to at least one to-be-acquired user interface, where the to-be-acquired user behavior set corresponding to the to-be-acquired user interface includes any one or a combination of the following: entry behavior, exit behavior, setting operations performed on content displayed on a user interface to be acquired.
In one possible implementation, determining, based on the user behavior profile, that the current user behavior characterized by the user instruction is a user behavior to be collected includes:
determining the interface where the current user is based on the interface identifier carried by the user instruction;
if the interface where the current user is located is found in the user behavior configuration file, determining that the interface where the current user is located is a user interface to be acquired;
screening a user behavior set to be acquired corresponding to a user interface to be acquired from a user behavior configuration file, and determining the current user behavior based on the instruction type carried by a user instruction;
if the current user behavior is found in the user behavior set to be collected, determining that the current user behavior is the user behavior to be collected.
In a possible implementation manner, the method for collecting user behavior data provided by the embodiment of the invention further includes: if a version updating instruction sent by the server is received, an address is acquired based on the configuration file, a user behavior configuration file of the latest version is acquired, and the local user behavior configuration file is updated into the user behavior configuration file of the latest version.
In a possible implementation manner, the method for collecting user behavior data provided by the embodiment of the invention further includes:
and reporting the collected user behavior data to a server according to the reporting strategy.
In another aspect, an embodiment of the present invention provides a user behavior data acquisition device, including:
the receiving unit is used for receiving a user instruction;
the determining unit is used for determining a system base class method for responding to the user instruction when the receiving unit receives the user instruction, wherein the system base class method is used for executing corresponding operation according to the user instruction;
the exchange unit is used for exchanging the methods and converting the system base class method determined by the determination unit into a custom method, wherein the custom method is used for acquiring user behavior data based on a user behavior configuration file configured by the server on the basis of executing the system base class method;
the execution unit is used for calling the custom method to execute the following steps: if the current user behavior characterized by the user instruction is the user behavior to be acquired based on the user behavior configuration file, acquiring user behavior data corresponding to the current user behavior, and executing corresponding operation based on the user instruction; otherwise, executing corresponding operation based on the user instruction.
In a possible implementation manner, the user behavior data acquisition device provided by the embodiment of the present invention further includes: a configuration unit, wherein,
the configuration unit is used for sending a configuration request to the server when the configuration condition is determined to be met before the receiving unit receives the user instruction, wherein the configuration request carries version information of the local user behavior configuration file; receiving a configuration response returned by the server after performing version check on the local user behavior configuration file according to the version information; if the local user behavior configuration file is determined not to be the latest version based on the configuration response, the address is acquired based on the configuration file, the latest version of the user behavior configuration file is acquired, and the local user behavior configuration file is updated to be the latest version of the user behavior configuration file.
In one possible implementation, when the system base class method is converted into the custom method using method exchange, the exchange unit is configured to: and converting the execution path of the system base class method into the execution path of the custom method.
In a possible implementation manner, the user behavior configuration file is used for recording a to-be-acquired user behavior set corresponding to at least one to-be-acquired user interface, where the to-be-acquired user behavior set corresponding to the to-be-acquired user interface includes any one or a combination of the following: entry behavior, exit behavior, setting operations performed on content displayed on a user interface to be acquired.
In one possible implementation manner, when determining, based on the user behavior configuration file, that the current user behavior characterized by the user instruction is a user behavior to be collected, the execution unit is configured to:
determining the interface where the current user is based on the interface identifier carried by the user instruction;
if the interface where the current user is located is found in the user behavior configuration file, determining that the interface where the current user is located is a user interface to be acquired;
screening a user behavior set to be acquired corresponding to a user interface to be acquired from a user behavior configuration file, and determining the current user behavior based on the instruction type carried by a user instruction;
if the current user behavior is found in the user behavior set to be collected, determining that the current user behavior is the user behavior to be collected.
In a possible embodiment, the configuration unit is further configured to:
if a version updating instruction sent by the server is received, an address is acquired based on the configuration file, a user behavior configuration file of the latest version is acquired, and the local user behavior configuration file is updated into the user behavior configuration file of the latest version.
In a possible implementation manner, the user behavior data acquisition device provided by the embodiment of the present invention further includes: a reporting unit, wherein,
and the reporting unit is used for reporting the collected user behavior data to the server according to the reporting strategy.
In a third aspect, an embodiment of the present invention further provides a user behavior data collection device, including: a memory and a processor, wherein the memory is for storing computer instructions; and the processor is used for executing the computer instructions to realize the user behavior data acquisition method provided by the embodiment of the invention.
In a fourth aspect, the embodiment of the present invention further provides a computer readable storage medium, where computer instructions are stored, where the computer instructions, when executed by a processor, implement the user behavior data collection method provided by the embodiment of the present invention.
The embodiment of the invention has the following beneficial effects:
in the embodiment of the invention, the server configures the user behavior configuration files of different versions to the client, so that the flexible configuration of the user behavior to be acquired can be realized without upgrading the client, and after the system base class method for responding to the user instruction is determined, the system base class method is converted into the user-defined method through the method exchange, so that whether the current user behavior represented by the user instruction is the user behavior to be acquired can be accurately determined, and user behavior data corresponding to the current user behavior can be acquired when the current user behavior is determined to be the user behavior to be acquired, and further the dynamic acquisition of the user behavior data is realized.
Drawings
FIG. 1 is a flow chart of a method for collecting user behavior data according to an embodiment of the present invention;
FIG. 2 is a flowchart of a method for collecting user behavior data according to an embodiment of the present invention;
FIG. 3 is a schematic functional structure diagram of a user behavior data acquisition device according to an embodiment of the present invention;
fig. 4 is a schematic hardware structure of a user behavior data acquisition device according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantageous effects of the present invention more apparent, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention, and it is apparent that the described embodiments are only some embodiments, but not all embodiments of the present invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
In a specific practical process, the inventor of the application finds that in the current user behavior data acquisition method, if a user does not upgrade a client, the latest code cannot be embedded into the client, the client can only acquire user behavior data by running an embedded code, so that the client cannot acquire more accurate user behavior data, therefore, the inventor of the application considers that a user behavior set corresponding to a user interface to be acquired is configured to the client in the form of a user behavior configuration file through a server, and configures a custom method for acquiring the user behavior data based on the user behavior configuration file on the client on the basis of executing a system base method, after receiving a user instruction and determining a system base method for responding to the user instruction, the system base method is used for switching the method, and the custom method is called, and based on the user behavior configuration file, when determining that the current user behavior represented by the user instruction is the user behavior to be acquired, the user behavior data corresponding to the current user behavior is acquired, and performs corresponding operation based on the user instruction, so that the user behavior set is configured to the user instruction is different by the server, the user behavior can be converted into the user behavior data when the user instruction is not required to be acquired by the user instruction, the user instruction is accurately acquired by the user instruction, the user behavior can be acquired by the user instruction is determined, the user base method is not required to be switched, and the user behavior can be accurately acquired by the user instruction is determined at the user instruction, and the user behavior is not is required to be converted to be the user instruction at the user instruction is determined, user behavior data corresponding to the current user behavior are collected, and further dynamic collection of the user behavior data is achieved.
The following describes the present invention in detail by way of specific examples, but the present invention is not limited to the following examples.
In the embodiment of the invention, in order to realize flexible configuration of the user behavior to be collected while not upgrading the client, the user behavior set to be collected corresponding to the user interface to be collected can be configured to the client in the form of a user behavior configuration file through the server, and specifically, the following modes can be adopted but are not limited to: after determining the user behavior sets to be acquired corresponding to the user interfaces to be acquired, the server generates user behavior configuration files based on the user behavior sets to be acquired corresponding to the user interfaces to be acquired, stores the user behavior configuration files in a designated storage area, takes storage addresses corresponding to the designated storage area as configuration file acquisition addresses and sends the configuration file acquisition addresses to the client, so that the client can acquire the user behavior configuration files according to the configuration file acquisition addresses carried in the configuration instructions after receiving the configuration instructions sent by the server, and analyzes the acquired user behavior configuration files to obtain the user behavior sets to be acquired corresponding to the user interfaces to be acquired, so that user behavior data can be acquired according to the user behavior sets to be acquired corresponding to the user interfaces to be acquired configured by the server.
In specific implementation, referring to fig. 1, the flow of the user behavior data acquisition method provided by the embodiment of the invention is as follows:
step 101: when a user instruction is received, a system base class method for responding to the user instruction is determined, wherein the system base class method is used for executing corresponding operation according to the user instruction.
In practical application, in order to avoid missing the user behavior to be collected, and improve the accuracy of the collected user behavior data, before executing step 101, the version of the local user behavior configuration file may be further checked, specifically, the following manner may be adopted, but not limited to:
first, when it is determined that a configuration condition is satisfied, a configuration request carrying version information of a local user behavior configuration file is sent to a server, where the configuration condition may be, but is not limited to: receiving a starting instruction initiated by a user, reaching a preset configuration period, and the like.
And then, when the server receives the configuration request, carrying out version check on the local user behavior configuration file of the client according to version information carried by the configuration request, and carrying a check result in a configuration response to return to the client.
And finally, receiving the configuration response by the client, if the local user behavior configuration file is determined not to be the latest version based on the checking result carried in the configuration response, acquiring the address based on the configuration file, acquiring the latest version of the user behavior configuration file, and updating the local user behavior configuration file into the latest version of the user behavior configuration file.
Of course, if the version update instruction sent by the server is received before the user instruction is received, the latest version of the user behavior configuration file can be obtained based on the configuration file obtaining address, and the local user behavior configuration file is updated to the latest version of the user behavior configuration file.
Step 102: and converting the system base class method into a custom method by using method exchange.
The user-defined method may be pre-configured in the client for collecting user behavior data based on a user behavior configuration file configured by the server on the basis of executing the system base class method.
In practical application, the exchange of the system base class method and the custom method can be realized by converting the execution path of the system base class method into the execution path of the custom method, and when the implementation is carried out, the pointer pointing to the system base class method can be changed into the custom method.
For example: the method is characterized in that the system base class method is an A method, the custom method is a B method, and the execution path of the A method can be converted into the execution path of the B method, namely, a pointer pointing to the A method is changed into a pointer to the B method, so that when the client side attempts to execute the A method, the client side finds that the actual execution path points to the B method, and then executes the B method.
Step 103: the custom method is called to execute the following steps: if the current user behavior characterized by the user instruction is the user behavior to be acquired based on the user behavior configuration file, acquiring user behavior data corresponding to the current user behavior, and executing corresponding operation based on the user instruction; otherwise, executing corresponding operation based on the user instruction.
The user behavior configuration file is used for recording a user behavior set to be collected corresponding to at least one user interface to be collected, wherein the user behavior set to be collected corresponding to the user interface to be collected is any one or combination of the following user behavior sets to be collected: entry behavior, exit behavior, setting operations performed on content displayed on a user interface to be acquired. In practical application, the user behavior set to be collected corresponding to the user interface to be collected may be recorded in the user behavior configuration file in the form of a user behavior list to be collected.
In specific implementation, when determining that the current user behavior characterized by the user instruction is the user behavior to be collected based on the user behavior configuration file by calling the custom method, the following modes can be adopted but not salted fish:
firstly, determining the interface where the current user is based on the interface identification carried by the user instruction.
And then, if the interface where the current user is located is found in the user behavior configuration file, determining the interface where the current user is located as the user interface to be acquired.
It is worth noting that if the interface where the current user is located is not found in the user behavior configuration file, it can be determined that the interface where the current user is located is not the user interface to be acquired, and corresponding operation is directly performed based on the user instruction.
And secondly, screening a user behavior set to be acquired corresponding to the user interface to be acquired from the user behavior configuration file, and determining the current user behavior based on the instruction type carried by the user instruction.
And finally, if the current user behavior is found in the user behavior set to be acquired, determining that the current user behavior is the user behavior to be acquired.
It is worth mentioning that if the current user behavior is not found in the user behavior set to be collected, it can be determined that the current user behavior is not the user behavior to be collected, and the corresponding operation is directly performed based on the user instruction.
Furthermore, after the client acquires the user behavior data, the client can report the acquired user behavior data to the server according to a reporting policy. The reporting policy may be, but is not limited to: reporting periodically, reporting in real time, etc.
The following describes the user behavior data acquisition method provided by the embodiment of the present invention further by adopting a specific application scenario, and referring to fig. 2, a specific flow of the user behavior data acquisition method provided by the embodiment of the present invention is as follows:
step 201: when the client determines that the configuration period is reached, a configuration request carrying version information of the local user behavior configuration file is sent to the server.
Step 202: and the server performs version check on the local user behavior configuration file of the client according to the version information carried by the configuration request.
Step 203: the server returns the checking result to the client with the configuration response.
Step 204: and the client side acquires the latest version of the user behavior configuration file based on the configuration file acquisition address when determining that the local user behavior configuration file is not the latest version based on the detection result carried in the configuration response, and updates the local user behavior configuration file into the latest version of the user behavior configuration file.
Of course, the client may directly execute step 205 when determining that the local user behavior configuration file is the latest version based on the checking result carried in the configuration response.
Step 205: and the client analyzes the latest version of the user behavior configuration file to obtain a user behavior list to be acquired, wherein the user behavior list to be acquired corresponds to each user interface to be acquired configured by the server.
Step 206: when the client receives a user instruction initiated by a user, determining a system base class method for responding to the user instruction, changing a pointer pointing to the system base class method into a custom method, and executing steps 207-213 by calling the custom method.
Step 207: and the client determines that the interface where the current user is positioned is a friend circle based on the interface identifier carried by the user instruction.
Step 208: the client searches the interface 'friend circle' where the current user is located in each user interface to be acquired of the user behavior configuration file record.
Step 209: if the client finds that the interface 'friend circle' where the current user is located, the client determines that the interface 'friend circle' where the current user is located is the user interface to be acquired.
It should be noted that, if the client side does not find the interface "friend circle" where the current user is located in the user behavior configuration file, it may be determined that the interface "friend circle" where the current user is located is not the user interface to be acquired, and step 213 may be directly performed.
Step 210: the client screens a to-be-acquired user behavior list corresponding to a to-be-acquired user interface 'friend circle' from the user behavior configuration file, and determines that the current user behavior is a forwarding behavior based on the instruction type carried by the user instruction.
Step 211: the client searches the current user behavior forwarding behavior in a user behavior list to be acquired corresponding to the friend circle of the user interface to be acquired.
Step 212: if the client finds the current user behavior 'forwarding behavior', the client determines that the current user behavior 'forwarding behavior' is the user behavior to be acquired, and acquires user behavior data corresponding to the current user behavior.
It is worth mentioning that, if the client side does not find the current user behavior "forwarding behavior" in the to-be-acquired user behavior list corresponding to the to-be-acquired user interface "friend circle", it may be determined that the current user behavior "forwarding behavior" is not the to-be-acquired user behavior, and step 213 may be directly executed.
Step 213: the client performs the corresponding forwarding operation based on the user instruction.
Step 214: and when the client determines that the reporting period is reached, reporting the collected user behavior data to the server.
Based on the foregoing embodiments, an embodiment of the present invention provides a user behavior data collection device, and referring to fig. 3, the user behavior data collection device 300 at least includes:
a receiving unit 301, configured to receive a user instruction;
a determining unit 302, configured to determine, when the receiving unit 301 receives a user instruction, a system base class method for responding to the user instruction, where the system base class method is used to perform a corresponding operation according to the user instruction;
the exchange unit 303 is configured to use method exchange to convert the system base class method determined by the determining unit 302 into a custom method, where the custom method is used to collect user behavior data based on a user behavior configuration file configured by a server on the basis of executing the system base class method;
the execution unit 304 is configured to call the custom method to execute the following steps: if the current user behavior characterized by the user instruction is the user behavior to be acquired based on the user behavior configuration file, acquiring user behavior data corresponding to the current user behavior, and executing corresponding operation based on the user instruction; otherwise, executing corresponding operation based on the user instruction.
In a possible implementation manner, the user behavior data acquisition device 300 provided by the embodiment of the present invention further includes: the configuration unit 305 is provided with, among other things,
a configuration unit 305, configured to send a configuration request to the server when it is determined that the configuration condition is satisfied before the receiving unit 301 receives the user instruction, where the configuration request carries version information of the local user behavior configuration file; receiving a configuration response returned by the server after performing version check on the local user behavior configuration file according to the version information; if the local user behavior configuration file is determined not to be the latest version based on the configuration response, the address is acquired based on the configuration file, the latest version of the user behavior configuration file is acquired, and the local user behavior configuration file is updated to be the latest version of the user behavior configuration file.
In one possible implementation, when the system base class method is converted into the custom method using method exchange, the exchange unit 303 is configured to: and converting the execution path of the system base class method into the execution path of the custom method.
In a possible implementation manner, the user behavior configuration file is used for recording a to-be-acquired user behavior set corresponding to at least one to-be-acquired user interface, where the to-be-acquired user behavior set corresponding to the to-be-acquired user interface includes any one or a combination of the following: entry behavior, exit behavior, setting operations performed on content displayed on a user interface to be acquired.
In a possible implementation manner, when determining, based on the user behavior profile, that the current user behavior characterized by the user instruction is the user behavior to be collected, the execution unit 304 is configured to:
determining the interface where the current user is based on the interface identifier carried by the user instruction;
if the interface where the current user is located is found in the user behavior configuration file, determining that the interface where the current user is located is a user interface to be acquired;
screening a user behavior set to be acquired corresponding to a user interface to be acquired from a user behavior configuration file, and determining the current user behavior based on the instruction type carried by a user instruction;
if the current user behavior is found in the user behavior set to be collected, determining that the current user behavior is the user behavior to be collected.
In a possible implementation, the configuration unit 305 is further configured to:
if a version updating instruction sent by the server is received, an address is acquired based on the configuration file, a user behavior configuration file of the latest version is acquired, and the local user behavior configuration file is updated into the user behavior configuration file of the latest version.
In a possible implementation manner, the user behavior data acquisition device 300 provided by the embodiment of the present invention further includes: a reporting unit 306, wherein,
and the reporting unit 306 is configured to report the collected user behavior data to the server according to the reporting policy.
It should be noted that, since the principle of the user behavior data acquisition device 300 provided by the embodiment of the present invention for solving the technical problem is similar to that of the user behavior data acquisition method provided by the embodiment of the present invention, the implementation of the user behavior data acquisition device 300 provided by the embodiment of the present invention may refer to the implementation of the user behavior data acquisition method provided by the embodiment of the present invention, and the repetition is omitted.
Having described the user behavior data acquisition method and apparatus of the exemplary embodiment of the present invention, a brief description will be given of the user behavior data acquisition device of the exemplary embodiment of the present invention.
Referring to fig. 4, a user behavior data acquisition device 400 of an exemplary embodiment of the present invention may include a processor 41 and a memory 42, wherein the memory 42 is used to store computer instructions; a processor 41 for executing computer instructions to implement the user behavior data acquisition method of the exemplary embodiment of the present invention.
It should be noted that the user behavior data acquisition device 400 shown in fig. 4 is only an example, and should not impose any limitation on the functions and the application scope of the embodiments of the present invention.
The user behavior data acquisition device 400 of the exemplary embodiments of the present invention may further comprise a bus 43 connecting the different components, including the processor 41 and the memory 42. Where bus 43 represents one or more of several types of bus structures, including a memory bus, a peripheral bus, a local bus, and so forth.
The Memory 42 may include a readable medium in the form of volatile Memory, such as random access Memory (Random Access Memory, RAM) 421 and/or cache Memory 422, and may further include Read Only Memory (ROM) 423.
Memory 42 may also include a program tool 425 having a set (at least one) of program modules 424, program modules 424 including, but not limited to: an operating subsystem, one or more application programs, other program modules, and program data, each or some combination of which may include an implementation of a network environment.
The user behavior data collection device 400 may also be in communication with one or more external devices 44 (e.g., keyboard, remote control, etc.), one or more devices that enable a user to interact with the user behavior data collection device 400, and/or any device (e.g., router, modem, etc.) that enables the user behavior data collection device 400 to communicate with one or more other user behavior data collection devices 400. Such communication may be via an Input/Output (I/O) interface 45. Also, the user behavior data collection device 400 may also communicate with one or more networks (e.g., local area network (Local Area Network, LAN), wide area network (Wide Area Network, WAN) and/or public network, such as the internet) via the network adapter 46. As shown in fig. 4, the network adapter 46 communicates with other modules of the user behavior data acquisition device 400 via the bus 43. It should be appreciated that although not shown in fig. 4, other hardware and/or software modules may be used in connection with user behavior data acquisition device 400, including, but not limited to: microcode, device drivers, redundant processors, external disk drive arrays, disk array (Redundant Arrays of Independent Disks, RAID) subsystems, tape drives, data backup storage subsystems, and the like.
The computer-readable storage medium of the exemplary embodiments of the present invention is described below. Embodiments of the present invention provide a computer readable storage medium storing computer instructions that, when executed by processor 41, implement a user behavior data collection method of an exemplary embodiment of the present invention. Specifically, the computer instructions may be built into the user behavior data acquisition apparatus 400, so that the user behavior data acquisition apparatus 400 may implement the user behavior data acquisition method of the exemplary embodiment of the present invention by executing the built-in computer instructions.
Furthermore, the user behavior data collection method of the exemplary embodiment of the present invention may also be implemented as a program product comprising program code for causing the user behavior data collection device 400 to perform the user behavior data collection method of the exemplary embodiment of the present invention when the program product is run on the user behavior data collection device 400.
The program product provided by the embodiments of the present invention may employ any combination of one or more readable media, where the readable media may be a readable signal medium or a readable storage medium, and the readable storage medium may be, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof, and more specific examples (a non-exhaustive list) of the readable storage medium include: an electrical connection having one or more wires, a portable disk, a hard disk, a RAM, a ROM, an erasable programmable read-Only Memory (Erasable Programmable Read Only Memory, EPROM), an optical fiber, a portable compact disk read-Only Memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
The program product provided by embodiments of the present invention may be implemented as a CD-ROM and include program code that may also be run on a computing device. However, the program product provided by the embodiments of the present invention is not limited thereto, and in the embodiments of the present invention, the readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
The readable signal medium may include a data signal propagated in baseband or as part of a carrier wave with readable program code embodied therein. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A readable signal medium may also be any readable medium that is not a readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, etc., or any suitable combination of the foregoing.
Program code for carrying out operations of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, C++ or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user device, partly on the user device, as a stand-alone software package, partly on the user device, partly on a remote computing device, or entirely on the remote computing device or server. In cases involving remote computing devices, the remote computing devices may be connected to the user computing device through any kind of network, such as through a LAN or WAN; or may be connected to an external computing device (e.g., connected via the internet using an internet service provider).
It should be noted that although several units or sub-units of the apparatus are mentioned in the above detailed description, such a division is merely exemplary and not mandatory. Indeed, the features and functions of two or more of the elements described above may be embodied in one element in accordance with embodiments of the present invention. Conversely, the features and functions of one unit described above may be further divided into a plurality of units to be embodied.
Furthermore, although the operations of the methods of the present invention are depicted in the drawings in a particular order, this is not required to either imply that the operations must be performed in that particular order or that all of the illustrated operations be performed to achieve desirable results. Additionally or alternatively, certain steps may be omitted, multiple steps combined into one step to perform, and/or one step decomposed into multiple steps to perform.
It will be appreciated by those skilled in the art that embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present invention have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. It is therefore intended that the following claims be interpreted as including the preferred embodiments and all such alterations and modifications as fall within the scope of the invention.
It will be apparent to those skilled in the art that various modifications and variations can be made to the embodiments of the present invention without departing from the spirit or scope of the embodiments of the invention. Thus, if such modifications and variations of the embodiments of the present invention fall within the scope of the claims and the equivalents thereof, the present invention is also intended to include such modifications and variations.

Claims (9)

1. A method for collecting user behavior data, comprising:
when a user instruction is received, determining a system base class method for responding to the user instruction, wherein the system base class method is used for executing corresponding operation according to the user instruction;
converting the system base class method into a custom method by using method exchange, wherein the custom method is used for acquiring user behavior data based on a user behavior configuration file configured by a server on the basis of executing the system base class method;
calling the self-defining method to execute the following steps: if the current user behavior characterized by the user instruction is determined to be the user behavior to be collected based on the user behavior configuration file, collecting user behavior data corresponding to the current user behavior, and executing corresponding operation based on the user instruction; otherwise, executing corresponding operation based on the user instruction;
before receiving the user instruction, the method further comprises:
when the configuration condition is determined to be met, a configuration request is sent to the server, wherein the configuration request carries version information of a local user behavior configuration file; receiving a configuration response returned by the server after performing version check on the local user behavior configuration file according to the version information; if the local user behavior configuration file is determined not to be the latest version based on the configuration response, the address is acquired based on the configuration file, the latest version of the user behavior configuration file is acquired, and the local user behavior configuration file is updated to be the latest version of the user behavior configuration file.
2. The method for collecting user behavior data according to claim 1, wherein the system base class method is converted into a custom method using method exchange, comprising:
and converting the execution path of the system base class method into the execution path of the custom method.
3. The method for collecting user behavior data according to claim 1 or 2, wherein the user behavior configuration file is used for recording a set of user behaviors to be collected corresponding to at least one user interface to be collected, and the set of user behaviors to be collected corresponding to the user interface to be collected includes any one or a combination of the following: entering behavior, exiting behavior, setting operation performed on content displayed on the user interface to be acquired.
4. The user behavior data collection method of claim 3, wherein determining, based on the user behavior profile, that the current user behavior characterized by the user instruction is a user behavior to be collected comprises:
determining the interface where the current user is based on the interface identifier carried by the user instruction;
if the interface where the current user is located is found in the user behavior configuration file, determining that the interface where the current user is located is a user interface to be acquired;
screening a user behavior set to be acquired corresponding to the user interface to be acquired from the user behavior configuration file, and determining the current user behavior based on the instruction type carried by the user instruction;
and if the current user behavior is found in the user behavior set to be acquired, determining that the current user behavior is the user behavior to be acquired.
5. The user behavior data collection method according to claim 1 or 2, further comprising:
if a version updating instruction sent by the server is received, an address is acquired based on the configuration file, a latest version of user behavior configuration file is acquired, and a local user behavior configuration file is updated to be the latest version of user behavior configuration file.
6. The user behavior data collection method according to claim 1 or 2, further comprising:
and reporting the collected user behavior data to the server according to the reporting strategy.
7. A user behavior data acquisition device, comprising:
the receiving unit is used for receiving a user instruction;
a determining unit, configured to determine a system base class method for responding to a user instruction when the receiving unit receives the user instruction, where the system base class method is configured to perform a corresponding operation according to the user instruction;
the exchange unit is used for exchanging methods and converting the system base class method determined by the determination unit into a custom method, wherein the custom method is used for acquiring user behavior data based on a user behavior configuration file configured by a server on the basis of executing the system base class method;
the execution unit is used for calling the self-defined method to execute the following steps: if the current user behavior characterized by the user instruction is determined to be the user behavior to be collected based on the user behavior configuration file, collecting user behavior data corresponding to the current user behavior, and executing corresponding operation based on the user instruction; otherwise, executing corresponding operation based on the user instruction;
the device further comprises: the configuration unit is used for sending a configuration request to the server when the configuration condition is determined to be met before the receiving unit receives the user instruction, wherein the configuration request carries version information of the local user behavior configuration file; receiving a configuration response returned by the server after performing version check on the local user behavior configuration file according to the version information; if the local user behavior configuration file is determined not to be the latest version based on the configuration response, the address is acquired based on the configuration file, the latest version of the user behavior configuration file is acquired, and the local user behavior configuration file is updated to be the latest version of the user behavior configuration file.
8. A user behavior data acquisition device, comprising: a memory and a processor, wherein,
the memory is used for storing computer instructions;
the processor for executing the computer instructions to implement the user behavior data collection method of any one of claims 1-6.
9. A computer readable storage medium storing computer instructions which when executed by a processor implement a user behavior data collection method according to any one of claims 1-6.
CN201811584628.5A 2018-12-24 2018-12-24 User behavior data acquisition method, device, equipment and medium Active CN111352811B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811584628.5A CN111352811B (en) 2018-12-24 2018-12-24 User behavior data acquisition method, device, equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811584628.5A CN111352811B (en) 2018-12-24 2018-12-24 User behavior data acquisition method, device, equipment and medium

Publications (2)

Publication Number Publication Date
CN111352811A CN111352811A (en) 2020-06-30
CN111352811B true CN111352811B (en) 2023-04-28

Family

ID=71193933

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811584628.5A Active CN111352811B (en) 2018-12-24 2018-12-24 User behavior data acquisition method, device, equipment and medium

Country Status (1)

Country Link
CN (1) CN111352811B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6763458B1 (en) * 1999-09-27 2004-07-13 Captaris, Inc. System and method for installing and servicing an operating system in a computer or information appliance
CN101504671A (en) * 2009-03-05 2009-08-12 阿里巴巴集团控股有限公司 Visible processing method, apparatus and system for web page access behavior of users
CN105302559A (en) * 2015-11-03 2016-02-03 竞技世界(杭州)网络技术有限公司 User behavior real-time processing method
CN106707783A (en) * 2016-12-30 2017-05-24 中科同德(北京)生态科技有限公司 KNX bus control method and system for recording user behavior habits
CN106844181A (en) * 2017-02-07 2017-06-13 网易(杭州)网络有限公司 Method, system and mobile terminal for recording user behavior
CN107800757A (en) * 2017-03-28 2018-03-13 平安壹钱包电子商务有限公司 User behavior recording method and device
CN107908748A (en) * 2017-11-17 2018-04-13 南京感度信息技术有限责任公司 Website user's behavioral data acquisition method, system and application based on big data

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6763458B1 (en) * 1999-09-27 2004-07-13 Captaris, Inc. System and method for installing and servicing an operating system in a computer or information appliance
CN101504671A (en) * 2009-03-05 2009-08-12 阿里巴巴集团控股有限公司 Visible processing method, apparatus and system for web page access behavior of users
CN105302559A (en) * 2015-11-03 2016-02-03 竞技世界(杭州)网络技术有限公司 User behavior real-time processing method
CN106707783A (en) * 2016-12-30 2017-05-24 中科同德(北京)生态科技有限公司 KNX bus control method and system for recording user behavior habits
CN106844181A (en) * 2017-02-07 2017-06-13 网易(杭州)网络有限公司 Method, system and mobile terminal for recording user behavior
CN107800757A (en) * 2017-03-28 2018-03-13 平安壹钱包电子商务有限公司 User behavior recording method and device
CN107908748A (en) * 2017-11-17 2018-04-13 南京感度信息技术有限责任公司 Website user's behavioral data acquisition method, system and application based on big data

Also Published As

Publication number Publication date
CN111352811A (en) 2020-06-30

Similar Documents

Publication Publication Date Title
US10565442B2 (en) Picture recognition method and apparatus, computer device and computer- readable medium
CN109726763B (en) Information asset identification method, device, equipment and medium
EP3806432A1 (en) Method for changing service on device and service changing system
CN108959059B (en) Test method and test platform
CN105376335B (en) Collected data uploading method and device
CN107957940B (en) Test log processing method, system and terminal
CN110956269B (en) Method, device, equipment and computer storage medium for generating data model
CN109684038B (en) Docker service container log processing method and device and electronic equipment
CN110784374A (en) Method, device, equipment and system for monitoring operation state of service system
US11722371B2 (en) Utilizing unstructured data in self-organized networks
CN109672722B (en) Data deployment method and device, computer storage medium and electronic equipment
CN110851324B (en) Log-based routing inspection processing method and device, electronic equipment and storage medium
CN109408351A (en) A kind of method and apparatus of AI environment measuring and deep learning environment automatic deployment
CN105204986A (en) Automated product testing method, server and mobile equipment
US20230300205A1 (en) Edge resource processing
CN107566480B (en) User activity information acquisition method and device for mobile terminal application and storage medium
CN108255735B (en) Associated environment testing method, electronic device and computer readable storage medium
CN114760180A (en) Method, device, equipment and storage medium for polling network equipment
CN110737655B (en) Method and device for reporting data
CN115812298A (en) Block chain management of supply failure
CN108595178B (en) Hook-based data acquisition method, device and equipment
CN111352811B (en) User behavior data acquisition method, device, equipment and medium
CN112579406A (en) Log call chain generation method and device
CN112740230B (en) Data annotation system, method and data annotation manager
CN114579415A (en) Method, device, equipment and medium for configuring and acquiring buried point data

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