CN108647284B - Method and device for recording user behavior, medium and computing equipment - Google Patents

Method and device for recording user behavior, medium and computing equipment Download PDF

Info

Publication number
CN108647284B
CN108647284B CN201810417093.6A CN201810417093A CN108647284B CN 108647284 B CN108647284 B CN 108647284B CN 201810417093 A CN201810417093 A CN 201810417093A CN 108647284 B CN108647284 B CN 108647284B
Authority
CN
China
Prior art keywords
snapshot
user
access request
session
historical
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
CN201810417093.6A
Other languages
Chinese (zh)
Other versions
CN108647284A (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.)
Wangyibao Co ltd
Original Assignee
Wangyibao 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 Wangyibao Co ltd filed Critical Wangyibao Co ltd
Priority to CN201810417093.6A priority Critical patent/CN108647284B/en
Publication of CN108647284A publication Critical patent/CN108647284A/en
Application granted granted Critical
Publication of CN108647284B publication Critical patent/CN108647284B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

The embodiment of the invention provides a method for recording user behaviors, which comprises the following steps: receiving a first access request of a user, and generating an initial snapshot of a page accessed by the user; receiving at least one second access request of a user, and generating a historical snapshot of a page aiming at the second access request; the initial snapshot and the historical snapshot are saved. By using the page as the state machine, mapping each step of operation of the user to one state of the state machine, and storing the snapshot of each step in the log system, the method of the invention can directly and reversely deduce the current page state according to the log of each step, thereby realizing the playback of the user behavior, and overcoming the defect that the analysis scheme of the user behavior is more focused on the service scene by dotting each action of the user in the related technology, only what the user does can be analyzed, and how the user interface is displayed cannot be analyzed. In addition, the embodiment of the invention provides a device for recording the user behavior, a medium and a computing device.

Description

Method and device for recording user behavior, medium and computing equipment
Technical Field
The embodiment of the invention relates to the field of computers, in particular to a method and device for recording user behaviors, a medium and a computing device.
Background
This section is intended to provide a background or context to the embodiments of the invention that are recited in the claims. The description herein is not admitted to be prior art by inclusion in this section.
User behavior generally consists of the simplest five elements: time, place, people, interactions, content of interactions. By means of the user behavior analysis, not only can the user operation errors and program response errors be analyzed and checked, but also the user portrait can be known, and the business truth behind various browsing, clicking and purchasing of the user on the website can be known.
Currently, some user behavior analysis methods have appeared, for example, a client records what actions a user has done by dotting, and sends the actions directly to a server, and the server analyzes the user behavior according to the dotting logs.
Disclosure of Invention
However, the existing user behavior analysis scheme focuses on a service scenario, and only what the user does can be analyzed, and how the user interface is displayed cannot be analyzed.
Therefore, in the prior art, it is very annoying to analyze the user behavior without knowing how the user interface is displayed and without playing back the user behavior.
For this reason, an improved method for recording user behavior is needed, so that the page state at that time can be directly deduced from the log of each step, and the playback of the user behavior is realized.
In this context, embodiments of the present invention are intended to provide a method and apparatus for recording user behavior.
In a first aspect of embodiments of the present invention, there is provided a method of recording user behavior, comprising: receiving a first access request of a user, and generating an initial snapshot of a page accessed by the user, wherein the initial snapshot is used for recording an initial state of the page; receiving at least one second access request of the user, and generating a history snapshot of the page aiming at the second access request, wherein the access time of the second access request is later than that of the first access request, and the history snapshot is used for recording the history state of the page after corresponding operation is carried out; and saving the initial snapshot and the historical snapshot.
In another embodiment of the present invention, the saving the initial snapshot and the historical snapshot includes: and locally saving the initial snapshot and the historical snapshot at the client.
In another embodiment of the present invention, the method further includes: marking a session start upon receiving the first access request of the user; when the at least one second access request of the user is received, if the state of the page corresponding to the second access request after operation meets a preset state, marking that the session is ended; and storing the initial snapshot and the historical snapshot which are subordinate to the session locally at the client.
In yet another embodiment of the present invention, the method further includes: and sending the initial snapshot and the historical snapshot which are stored locally at the client and belong to the session to a server, wherein the server can analyze the behavior of the user according to the initial snapshot and the historical snapshot which belong to the session.
In still another embodiment of the present invention, wherein the method further comprises: analyzing the user behavior locally at the client according to the stored initial snapshot and the historical snapshot which are subordinate to the session; and sending the analysis result to a server.
In yet another embodiment of the present invention, the predetermined state is an error state.
In yet another embodiment of the present invention, the method further includes: marking a session start upon receiving the first access request of the user; and when the at least one second access request of the user is received, if a history snapshot representing that the current state of the page is an alarm state appears, marking the history snapshot of the alarm state and storing the history snapshot in the local session of the client.
In yet another embodiment of the present invention, the method further includes: marking a session start upon receiving the first access request of the user; and when the at least one second access request of the user is received, if the historical snapshot representing that the current state of the page is the error state or the warning state does not appear until the session is ended, only locally saving the initial snapshot and the historical snapshot belonging to the session at the client side without uploading the initial snapshot and the historical snapshot to a server.
In yet another embodiment of the present invention, the saving the initial snapshot and the historical snapshot includes: and sending the initial snapshot and the historical snapshot to a server for storage.
In a second aspect of embodiments of the present invention, there is provided an apparatus for recording user behavior, comprising: a first receiving module, configured to receive a first access request of a user, and generate an initial snapshot of a page accessed by the user, where the initial snapshot is used to record an initial state of the page; a second receiving module, configured to receive at least one second access request of the user, and generate a history snapshot of the page for the second access request, where an access time of the second access request is later than an access time of the first access request, and the history snapshot is used to record a history state of the page after a corresponding operation is performed on the page; and the first storage module is used for storing the initial snapshot and the historical snapshot.
In another embodiment of the present invention, the first saving module is configured to save the initial snapshot and the historical snapshot locally at the client.
In another embodiment of the present invention, the apparatus further includes: a first marking module, configured to mark a session start when the first access request of the user is received; a second marking module, configured to mark, when the at least one second access request of the user is received, that the session is ended if a state of the page corresponding to the second access request after the operation is performed satisfies a preset state; and the second storage module is used for storing the initial snapshot and the historical snapshot which are subordinate to the session in the local part of the client.
In yet another embodiment of the present invention, the apparatus further includes: and the first sending module is used for sending the initial snapshot and the historical snapshot which are stored in the local client and are subordinate to the session to a server, wherein the server can analyze the behavior of the user according to the initial snapshot and the historical snapshot which are subordinate to the session.
In yet another embodiment of the present invention, wherein the apparatus further comprises: an analysis module, configured to analyze, at the client, a behavior of the user locally according to the stored initial snapshot and the historical snapshot, which are subordinate to the session; and the second sending module is used for sending the analysis result to the server.
In yet another embodiment of the present invention, the predetermined state is an error state.
In yet another embodiment of the present invention, the apparatus further includes: a third marking module, configured to mark a session start when the first access request of the user is received; and a fourth marking module, configured to mark a history snapshot of the warning state and store the history snapshot in the session local to the client if a history snapshot representing that a current state of the page is a warning state appears when the at least one second access request of the user is received.
In yet another embodiment of the present invention, the apparatus further includes: a fifth marking module, configured to mark a session start when the first access request of the user is received; and a third saving module, configured to, when the at least one second access request of the user is received, if no history snapshot representing that the current state of the page is an error state or an alert state appears until the session is ended, locally save, at the client, the initial snapshot and the history snapshot belonging to the session without uploading to the server.
In yet another embodiment of the present invention, the first saving module includes: and the sending unit is used for sending the initial snapshot and the historical snapshot to a server for storage.
In a third aspect of embodiments of the present invention, there is provided a medium storing computer-executable instructions for implementing a method of recording user behavior as described above when executed by a processing unit.
In a fourth aspect of embodiments of the present invention, there is provided a computing device comprising: a processing unit; and a storage unit storing computer executable instructions for implementing the method of recording user behavior as described above when executed by the processing unit.
According to the embodiment of the invention, the page is taken as the state machine, each step of operation of the user is mapped to one state of the state machine, and the snapshot of each step is stored in the log system.
Drawings
The above and other objects, features and advantages of exemplary embodiments of the present invention will become readily apparent from the following detailed description read in conjunction with the accompanying drawings. Several embodiments of the invention are illustrated by way of example, and not by way of limitation, in the figures of the accompanying drawings and in which:
fig. 1 is a schematic application scenario diagram schematically illustrating a method and apparatus for recording user behavior according to an embodiment of the present invention;
FIG. 2 schematically shows a flow diagram of a method of recording user behavior according to an embodiment of the invention;
3-7 schematically illustrate flow charts of methods of recording user behavior according to other embodiments of the invention;
FIG. 8 schematically shows a block diagram of an apparatus for recording user behavior according to an embodiment of the present invention;
FIG. 9 schematically shows a block diagram of an apparatus for recording user behavior according to further embodiments of the present invention;
FIG. 10 schematically illustrates a program product for implementing a method of recording user behavior according to an embodiment of the invention; and
FIG. 11 schematically shows a block diagram of a computing device for implementing a method of recording user behavior in accordance with an embodiment of the present invention.
In the drawings, the same or corresponding reference numerals indicate the same or corresponding parts.
Detailed Description
The principles and spirit of the present invention will be described with reference to a number of exemplary embodiments. It is understood that these embodiments are given solely for the purpose of enabling those skilled in the art to better understand and to practice the invention, and are not intended to limit the scope of the invention in any way. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
As will be appreciated by one skilled in the art, embodiments of the present invention may be embodied as a system, apparatus, device, method, or computer program product. Accordingly, the present disclosure may be embodied in the form of: entirely hardware, entirely software (including firmware, resident software, micro-code, etc.), or a combination of hardware and software.
According to the embodiment of the invention, a method, a medium, a device and a computing device for recording user behaviors are provided.
In this context, it is to be understood that the term session as referred to means an uninterrupted sequence of request responses between a client and a server, and in particular that for each request of a client, the server is able to recognize that the request is from the same client, starts a session when an unknown client sends a first request to the Web application, and ends the session when the client explicitly ends the session or the server no longer receives any request from the client within a predefined time limit. Moreover, any number of elements in the drawings are by way of example and not by way of limitation, and any nomenclature is used solely for differentiation and not by way of limitation.
The principles and spirit of the present invention are explained in detail below with reference to several representative embodiments of the invention.
Summary of The Invention
The inventors have found that user behavior is generally composed of the simplest five elements: time, place, people, interactions, content of interactions. By means of the user behavior analysis, not only can the user operation errors and program response errors be analyzed and checked, but also the user portrait can be known, and the business truth behind various browsing, clicking and purchasing of the user on the website can be known. Currently, some user behavior analysis methods have appeared, for example, a client records what actions a user has done by dotting, and sends the actions directly to a server, and the server analyzes the user behavior according to the dotting logs. However, the existing user behavior analysis scheme focuses on the service scenario, and only what the user does can be analyzed, and how the user interface is displayed cannot be analyzed, so that the user behavior cannot be played back.
Based on the above analysis, the inventor envisions generating an initial snapshot of a page visited by a user by receiving a first access request of the user by regarding the page as a state machine, mapping each step of operation of the user to a state of the state machine, and storing the snapshot of each step in a log system, wherein the initial snapshot is used for recording the initial state of the page; receiving at least one second access request of the user, and generating a historical snapshot of the page aiming at the second access request, wherein the access time of the second access request is later than that of the first access request, and the historical snapshot is used for recording the historical state of the page after corresponding operation is carried out; and storing the initial snapshot and the historical snapshot, and directly and reversely deducing the current page state according to the log of each step to realize the playback of the user behavior, thereby overcoming the defects that in the related technology, the user behavior analysis scheme is more focused on a service scene due to dotting each action of the user, only what the user does can be analyzed, how the user interface is displayed cannot be analyzed, and the user behavior cannot be played back, and bringing better experience to the user.
Having described the general principles of the invention, various non-limiting embodiments of the invention are described in detail below.
Application scene overview
First, referring to fig. 1, an application scenario of the method and the apparatus for recording user behavior according to the embodiment of the present invention is described in detail.
Fig. 1 schematically shows an application scenario diagram of a method and an apparatus for recording user behavior according to an embodiment of the present invention.
As shown in fig. 1, with the development of network technology, various browsing, clicking and purchasing on a website by accessing a server 12 through a terminal device 11 have become an indispensable part of the daily life of a user. However, regardless of the development of network technology, the occurrence of user operation errors and program response errors is inevitable.
Therefore, by taking the page accessed by the user as the state machine, mapping each step of operation of the user to one state of the state machine, and storing the snapshot of each step in the log system, the current page state can be directly and reversely deduced according to the log of each step, the playback of the user behavior is realized, the user operation error, the program response error and the reason thereof are analyzed, and better experience can be brought to the user.
Exemplary method
In the following, in connection with the application scenario of fig. 1, a method of recording user behavior according to an exemplary embodiment of the invention is described with reference to fig. 2. It should be noted that the above application scenarios are merely illustrated for the convenience of understanding the spirit and principles of the present invention, and the embodiments of the present invention are not limited in this respect. Rather, embodiments of the present invention may be applied to any scenario where applicable.
Fig. 2 schematically shows a flow chart of a method of recording user behavior according to an embodiment of the invention.
As shown in fig. 2, the method of recording user behavior according to an embodiment of the present invention includes operations S201 to S203.
In operation S201, a first access request of a user is received, and an initial snapshot of a page accessed by the user is generated, where the initial snapshot is used to record an initial state of the page.
In the embodiment of the present disclosure, the first access request includes a first access request issued when a user initiates a session.
In operation S202, at least one second access request of the user is received, and for the second access request, a history snapshot of the page is generated, where an access time of the second access request is later than an access time of the first access request, and the history snapshot is used to record a history state of the page after the corresponding operation is performed.
In the embodiment of the present disclosure, after the user issues the first access request, the user generally continues to issue one or more access requests for deep access, and for each of the access requests, a history snapshot is generated, which records the user action and the user interface.
In operation S203, the initial snapshot and the historical snapshot are saved.
By taking the page visited by the user as a state machine, mapping each step of operation of the user to one state of the state machine, and storing the snapshot of each step in a log system, the current page state can be directly and reversely deduced according to the log of each step, so that the playback of the user behavior is realized, the user operation error, the program response error and the reason thereof are analyzed, and better experience can be brought to the user.
It should be noted that, in the embodiment of the present disclosure, the snapshot saving manner may include multiple manners, for example, the snapshot may be saved locally at the client, and uploaded to the server after a certain condition is met; and the data can be directly uploaded to a server for storage, and the like. In particular, the snapshot may be described by a configuration file.
Preferably, saving the initial snapshot and the historical snapshot may include saving the initial snapshot and the historical snapshot locally at the client.
By the embodiment of the disclosure, if the user operation has errors or the server responds to the user, the logs with the errors of the user can be located only in the logs of the client, and the logs of the client are not matched with the logs of the client, so that the time can be saved and the efficiency can be improved.
In the related art, the user behavior logs are uploaded to the server for storage, and if the user operation is wrong or the server responds to the user, the logs with the user errors are required to be located in the massive logs, so that the logs with the user errors are often matched with the front end logs and the rear end logs, and the method is time-consuming and troublesome.
In addition, the snapshot is stored locally at the client, so that the user flow can be saved on one hand, and the pressure of the server can be relieved on the other hand.
The method shown in fig. 2 is further described with reference to fig. 3-7 in conjunction with specific embodiments.
Fig. 3 schematically shows a flow chart of a method of recording user behavior according to another embodiment of the invention.
As shown in fig. 3, the method for recording user behavior according to the embodiment of the present invention may further include operations S204 to S206, in addition to the related operations in the foregoing embodiment, where:
in operation S204, upon receiving a first access request of a user, a marking session starts.
In operation S205, when at least one second access request of the user is received, if a state of a page corresponding to the second access request after being operated satisfies a preset state, the session is marked to be ended.
In operation S206, the initial snapshot and the historical snapshot affiliated with the session are saved locally at the client.
In the embodiment of the present disclosure, for a session, the first time a user initiates an access request may be defined as a session start, and when the page state satisfies a preset state, the session end.
For example, when a first access request initiated by a user is received, sessionStart is marked to indicate that a session starts, so as to locate a first log of the user at the start of the session, and in the session process, if a page state meets a certain condition, such as a page fault, sessionEnd is marked to indicate that the session ends, and all snapshots belonging to the session are stored locally at a client.
By the embodiment of the disclosure, the user behavior logs are divided in the session layer, so that the complete session flow of each user with errors can be traced back only by the front-end logs of the browser, and the analysis and the troubleshooting of the error logs are facilitated.
According to an embodiment of the present disclosure, the predetermined state is an error state. Further, the preset state may also be an error state.
Fig. 4 schematically shows a flow chart of a method of recording user behavior according to further embodiments of the present invention.
As shown in fig. 4, the method for recording user behavior according to the embodiment of the present invention may further include operation S207, in addition to the operations in the foregoing implementation, where:
in operation S207, the initial snapshot and the historical snapshot, which are saved locally at the client and are subordinate to the session, are transmitted to the server. Wherein the server is capable of analyzing the user's behavior based on the initial snapshot and the historical snapshots affiliated with the session.
In the embodiment of the disclosure, the error grade of the log is graded at the client, and the log is sent to the server in the form of a complete session when an error occurs, so that the complete session flow of each user with the error can be traced back only by the front-end log, and the analysis and the investigation of the error log are facilitated.
Because the first log of the user at the beginning of the session and the last log of the user at the end of the session can be positioned through the recorded session starting mark and the session ending mark, and the first log to the last log, such as the log with the error grade of error, are found out and are sent to the server together, all logs can be ensured to be sent to the server in a complete session mode, and the technical effect of facilitating analysis and troubleshooting of the error logs is achieved.
In addition, the user behavior analysis may be implemented on a server side, and may be implemented on a client side, which is not limited herein. The disclosed embodiments are implemented on a server side.
Fig. 5 schematically shows a flow chart of a method of recording user behavior according to further embodiments of the present invention.
As shown in fig. 5, the method for recording user behavior according to the embodiment of the present invention may include, in addition to the operations of the related embodiment described above, operations S208 to S209, where:
in operation S208, the user' S behavior is analyzed locally at the client from the initial snapshot and the historical snapshots that are saved and affiliated with the session.
In operation S209, the analysis result is transmitted to the server.
The disclosed embodiments implement user analytics locally at the client. Further, after completing the user behavior analysis, the client may send the analysis result to the server for the user to query and use. Moreover, the burden of the server side can be relieved by analyzing the user behaviors at the client side.
Fig. 6 schematically shows a flow chart of a method of recording user behavior according to another embodiment of the invention.
As shown in fig. 6, the method of recording user behavior according to an embodiment of the present invention further includes operations S210 to S211.
In operation S210, upon receiving a first access request of a user, a marking session starts.
In operation S211, when at least one second access request of the user is received, if a history snapshot representing that the current state of the page is the warning state appears, the history snapshot of the warning state is marked and stored in the session local to the client.
For example, when a first access request initiated by a user is received, sessionStart is marked to indicate that a session starts, so as to locate a first log of the user starting the session, and if the page state is an alert state in the session process, for example, the user performs an illegal operation, the snapshot is subjected to alert marking, and the snapshot with the alert marking is stored locally at the client.
It should be noted that when a snapshot of the alert state occurs during the session, the session may also be marked as ended.
Because the warning is a point which is relatively concerned by user behavior analysis, the corresponding snapshot is specially marked when the warning occurs, and the user can be helped to quickly and accurately locate the illegal operation of the user. The method has the advantages that the logs are graded in warning level at the client, and the logs are sent to the server in the form of a session part when warning occurs, so that the session flow of each warning user can be traced back only by the front-end logs, and the warning logs are convenient to analyze and investigate.
Fig. 7 schematically shows a flow chart of a method of recording user behavior according to another embodiment of the invention.
As shown in fig. 7, the method of recording user behavior according to an embodiment of the present invention further includes operations S212 to S213.
In operation S212, upon receiving a first access request of a user, a marking session starts.
In operation S213, when at least one second access request of the user is received, if no historical snapshot characterizing that the current state of the page is an error state or a warning state appears until the session is ended, the initial snapshot and the historical snapshot belonging to the session are only saved locally at the client without being uploaded to the server.
In addition to ending a session in the case of a page fault or a warning in the embodiments of the present disclosure, it is also defined that ending a session in another case, that is, ending a session in a normal state, is also possible. Specifically, a predetermined time may be defined, and for any session, if no other user access request is received within the predetermined time from the last received user access request, the session may be marked as ended.
In the disclosed embodiment, since no warning or error occurs during the entire session, the snapshot related to the session can be saved locally without reporting to the server.
Compared with the prior art that the user behavior logs are uploaded to the server in a full number mode whether errors or warnings occur or not, the method and the system perform error level grading on the logs at the front end of the browser, only send the logs of the sessions with errors, and reduce the loss of user flow and the pressure of the server.
According to an embodiment of the present disclosure, saving the initial snapshot and the historical snapshot may include: and sending the initial snapshot and the historical snapshot to a server for saving. Therefore, the user behavior logs of a plurality of clients can be collected and managed through one server, and the purpose of centralized management is achieved.
Exemplary devices
Having introduced the method of an exemplary embodiment of the present invention, an apparatus for recording user behavior of an exemplary embodiment of the present invention will next be described with reference to fig. 10.
Fig. 8 schematically shows a block diagram of an apparatus for recording user behavior according to an embodiment of the present invention.
As shown in fig. 8, the apparatus 800 for recording user behavior includes a first receiving module 801, a second receiving module 802, and a first saving module 803.
The first receiving module 801 is configured to receive a first access request of a user, and generate an initial snapshot of a page accessed by the user, where the initial snapshot is used to record an initial state of the page.
The second receiving module 802 is configured to receive at least one second access request of the user, and generate a historical snapshot of the page for the second access request, where an access time of the second access request is later than an access time of the first access request, and the historical snapshot is used to record a historical state of the page after a corresponding operation is performed on the page.
The first saving module 803 is used to save the initial snapshot and the historical snapshot.
By taking the page visited by the user as a state machine, mapping each step of operation of the user to one state of the state machine, and storing the snapshot of each step in a log system, the current page state can be directly and reversely deduced according to the log of each step, so that the playback of the user behavior is realized, the user operation error, the program response error and the reason thereof are analyzed, and better experience can be brought to the user.
According to an embodiment of the present disclosure, the first saving module 803 is configured to save the initial snapshot and the historical snapshot locally at the client.
Fig. 9 schematically shows a block diagram of an apparatus for recording user behavior according to other embodiments of the present invention.
As shown in fig. 9, the apparatus 800 for recording user behavior further includes a first marking module 804, a second marking module 805, and a second saving module 806. The first tagging module 804 is configured to tag a session start upon receiving a first access request from a user. The second marking module 805 is configured to mark, when at least one second access request of the user is received, that the session is ended if a state of a page corresponding to the second access request after the page is operated meets a preset state. The second saving module 806 is used to save the initial snapshot and the historical snapshot affiliated with the session locally at the client.
According to an embodiment of the present disclosure, the apparatus 800 for recording user behavior further comprises a first sending module 807. The first sending module 807 is configured to send the initial snapshot and the historical snapshot, which are stored locally at the client and belong to the session, to the server, where the server is capable of analyzing the behavior of the user according to the initial snapshot and the historical snapshot which belong to the session.
According to an embodiment of the present disclosure, the apparatus 800 for recording user behavior further includes an analysis module 808 and a second sending module 809. The analysis module 808 is configured to analyze the user's behavior locally at the client according to the stored initial snapshot and the historical snapshot that are subordinate to the session. The second sending module 809 is configured to send the analysis result to the server.
According to an embodiment of the present disclosure, the predetermined state is an error state.
According to an embodiment of the present disclosure, the apparatus 800 for recording user behavior further includes a third tagging module 810 and a fourth tagging module 811. The third tagging module 810 is configured to tag a session start when a first access request of a user is received; and the fourth marking module 811 is configured to mark the historical snapshot of the warning state and store the historical snapshot in the session local to the client if a historical snapshot representing that the current state of the page is the warning state appears when at least one second access request of the user is received.
According to an embodiment of the present disclosure, the apparatus 800 for recording user behavior further includes a fifth marking module 812 and a third saving module 813. The fifth tagging module 812 is configured to tag the session start upon receiving a first access request from a user. The third saving module 813 is configured to, when at least one second access request of the user is received, save the initial snapshot and the historical snapshot belonging to the session only locally at the client without uploading to the server if no historical snapshot characterizing that the current state of the page is an error state or an alert state appears until the session is ended.
According to an embodiment of the present disclosure, the first saving module 803 includes a sending unit, configured to send the initial snapshot and the historical snapshot to the server for saving.
It should be noted that the embodiments of the apparatus part and the embodiments of the method part are the same or similar in terms of the functions implemented, the technical effects achieved, and the technical means used, and are not described herein again.
Exemplary Medium
Having described the apparatus of an exemplary embodiment of the present invention, a medium of an exemplary embodiment of the present invention for storing computer-executable instructions, which when executed by a processing unit, implement the method of recording user behavior of fig. 2 to 7, is described next with reference to fig. 10.
In some possible embodiments, the various aspects of the present invention may also be implemented in a program product including program code for causing a computing device to perform the steps of the method for recording user behavior according to various exemplary embodiments of the present invention described in the section "exemplary method" above in this specification when the program product is run on the computing device, for example, the computing device may perform operation S201 as shown in fig. 2, receive a first access request of a user, and generate an initial snapshot of a page accessed by the user, where the initial snapshot is used for recording an initial state of the page. Operation S202, receiving at least one second access request of the user, and generating a historical snapshot of the page for the second access request, where the access time of the second access request is later than the access time of the first access request, and the historical snapshot is used to record a historical state of the page after a corresponding operation is performed. Operation S203 saves the initial snapshot and the historical snapshot.
The program product may employ any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. A readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. 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 Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
An embodiment of the present invention further provides a medium storing computer-executable instructions, where the instructions, when executed by a processing unit, are configured to implement the method for recording a user behavior as described above.
Fig. 10 schematically shows a program product for implementing a data processing method according to an embodiment of the present invention.
As shown in fig. 10, a program product 40 for recording user behavior according to an embodiment of the present invention is depicted, which may employ a portable compact disc read only memory (CD-ROM) and include program code, and may be run on a computing device, such as a personal computer. However, the program product of the present invention is not limited in this regard and, in the present document, a 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.
A readable signal medium may include a propagated data signal with readable program code embodied therein, for example, in baseband or as part of a carrier wave. 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 thereof. 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, RF, etc., or any suitable combination of the foregoing.
Program code for carrying out operations for aspects 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 computing device, partly on the user device, partly on a remote computing device, or entirely on the remote computing device or server. In the case of a remote computing device, the remote computing device may be connected to the user computing device over any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computing device (e.g., over the internet using an internet service provider).
Exemplary computing device
Having described the method, medium, and apparatus of exemplary embodiments of the present invention, a computing device of exemplary embodiments of the present invention is described next with reference to fig. 11, and includes a processing unit and a storage unit, the storage unit storing computer-executable instructions, which when executed by the processing unit, implement the method of recording user behavior of fig. 2-7.
The embodiment of the invention also provides the computing equipment. As will be appreciated by one skilled in the art, aspects of the present invention may be embodied as a system, method or program product. Thus, various aspects of the invention may be embodied in the form of: an entirely hardware embodiment, an entirely software embodiment (including firmware, microcode, etc.) or an embodiment combining hardware and software aspects that may all generally be referred to herein as a "circuit," module "or" system.
In some possible embodiments, a computing device according to the present invention may include at least one processing unit, and at least one memory unit. Wherein the storage unit stores program code which, when executed by the processing unit, causes the processing unit to perform the steps of the method of recording user behavior according to various exemplary embodiments of the present invention described in the above section "exemplary methods" of the present specification. For example, the processing unit may perform operations S201 to S203 as shown in fig. 2. In operation S201, a first access request of a user is received, and an initial snapshot of a page accessed by the user is generated, where the initial snapshot is used to record an initial state of the page. In operation S202, at least one second access request of the user is received, and for the second access request, a history snapshot of the page is generated, where an access time of the second access request is later than an access time of the first access request, and the history snapshot is used to record a history state of the page after the corresponding operation is performed. In operation S203, the initial snapshot and the historical snapshot are saved.
An embodiment of the present invention further provides a computing device, including: a processing unit; and a storage unit storing computer executable instructions for implementing the method of recording user behavior as described above when executed by the processing unit.
FIG. 11 schematically shows a block diagram of a computing device for implementing a method of recording user behavior in accordance with an embodiment of the present invention.
A computing device 50 that records user behavior according to this embodiment of the invention is described below with reference to fig. 11. The computing device 50 shown in FIG. 11 is only one example and should not impose any limitations on the functionality or scope of use of embodiments of the present invention.
As shown in fig. 5, computing device 50 is embodied in the form of a general purpose computing device. Components of computing device 50 may include, but are not limited to: the at least one processing unit 501, the at least one memory unit 502, and a bus 503 connecting the various system components (including the memory unit 502 and the processing unit 501).
Bus 503 represents one or more of any of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processor, or a local bus using any of a variety of bus architectures.
The storage unit 502 may include readable media in the form of volatile memory, such as Random Access Memory (RAM)5021 and/or cache memory 5022, and may further include Read Only Memory (ROM) 5023.
The storage unit 502 may also include a program/utility 5025 having a set (at least one) of program modules 5024, such program modules 5024 including, but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which, or some combination thereof, may comprise an implementation of a network environment.
Computing device 50 may also communicate with one or more external devices 504 (e.g., keyboard, pointing device, bluetooth device, etc.), with one or more devices that enable a user to interact with computing device 50, and/or with any devices (e.g., router, modem, etc.) that enable computing device 50 to communicate with one or more other computing devices. Such communication may be through input/output (I/O) interfaces 505. Moreover, computing device 50 may also communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network, such as the internet) via network adapter 506. As shown, network adapter 506 communicates with the other modules of computing device 50 over bus 503. It should be appreciated that although not shown in the figures, other hardware and/or software modules may be used in conjunction with computing device 50, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, among others.
It should be noted that although in the above detailed description several units/modules or sub-units/modules of the apparatus are mentioned, such a division is merely exemplary and not mandatory. Indeed, the features and functionality of two or more of the units/modules described above may be embodied in one unit/module according to embodiments of the invention. Conversely, the features and functions of one unit/module described above may be further divided into embodiments by a plurality of units/modules.
Moreover, while the operations of the method of the invention are depicted in the drawings in a particular order, this does not require or imply that the operations must be performed in this particular order, or that all of the illustrated operations must be performed, to achieve desirable results. Additionally or alternatively, certain steps may be omitted, multiple steps combined into one step execution, and/or one step broken down into multiple step executions.
While the spirit and principles of the invention have been described with reference to several particular embodiments, it is to be understood that the invention is not limited to the disclosed embodiments, nor is the division of aspects, which is for convenience only as the features in such aspects may not be combined to benefit. The invention is intended to cover various modifications and equivalent arrangements included within the spirit and scope of the appended claims.

Claims (18)

1. A method of recording user behavior, comprising:
receiving a first access request of a user, and generating an initial snapshot of a page accessed by the user, wherein the initial snapshot is used for recording an initial state of the page;
receiving at least one second access request of the user, and generating a historical snapshot of the page aiming at the second access request, wherein the access time of the second access request is later than that of the first access request, and the historical snapshot is used for recording user operation actions and historical states of the page after corresponding operations are carried out; and
and locally saving the initial snapshot and the historical snapshot at a client.
2. The method of claim 1, wherein the method further comprises:
upon receiving the first access request of the user, marking a session start;
when the at least one second access request of the user is received, if the state of the page corresponding to the second access request after operation meets a preset state, marking that the session is ended; and
and storing the initial snapshot and the historical snapshot which are subordinate to the session locally at the client.
3. The method of claim 2, wherein the method further comprises:
sending an initial snapshot and a historical snapshot saved locally at the client and affiliated with the session to a server,
wherein the server is capable of analyzing the user's behavior from the initial snapshot and the historical snapshots affiliated with the session.
4. The method of claim 2, wherein the method further comprises:
analyzing the user's behavior locally at the client based on the stored initial snapshot and historical snapshots affiliated with the session; and
and sending the analysis result to a server.
5. The method of claim 2, wherein the predetermined state is an error state.
6. The method of claim 1, wherein the method further comprises:
upon receiving the first access request of the user, marking a session start; and
when the at least one second access request of the user is received, if a historical snapshot representing that the current state of the page is the warning state appears, marking the historical snapshot of the warning state, and storing the historical snapshot in the session local to the client.
7. The method of claim 1, wherein the method further comprises:
upon receiving the first access request of the user, marking a session start; and
and when the at least one second access request of the user is received, if the historical snapshot representing that the current state of the page is an error state or a warning state does not appear until the session is ended, only locally saving the initial snapshot and the historical snapshot which are subordinate to the session at the client side without uploading the initial snapshot and the historical snapshot to a server.
8. The method of claim 1, wherein saving the initial snapshot and the historical snapshot comprises:
and sending the initial snapshot and the historical snapshot to a server for storage.
9. An apparatus to record user behavior, comprising:
the system comprises a first receiving module, a first sending module and a second receiving module, wherein the first receiving module is used for receiving a first access request of a user and generating an initial snapshot of a page accessed by the user, and the initial snapshot is used for recording an initial state of the page;
a second receiving module, configured to receive at least one second access request of the user, and generate a history snapshot of the page for the second access request, where an access time of the second access request is later than an access time of the first access request, and the history snapshot is used to record a user operation action and a history state of the page after a corresponding operation is performed; and
and the first storage module is used for locally storing the initial snapshot and the historical snapshot at a client.
10. The apparatus of claim 9, wherein the apparatus further comprises:
a first tagging module for tagging a session start when the first access request of the user is received;
the second marking module is used for marking the end of the session when the at least one second access request of the user is received and the state of the page corresponding to the second access request after the operation is carried out meets the preset state; and
and the second storage module is used for storing the initial snapshot and the historical snapshot which are subordinate to the session in the local client.
11. The apparatus of claim 10, wherein the apparatus further comprises:
a first sending module, configured to send an initial snapshot and a historical snapshot, which are stored locally at the client and belong to the session, to a server,
wherein the server is capable of analyzing the user's behavior from the initial snapshot and the historical snapshots affiliated with the session.
12. The apparatus of claim 10, wherein the apparatus further comprises:
the analysis module is used for analyzing the user behavior locally at the client according to the stored initial snapshot and the historical snapshot which are subordinate to the session; and
and the second sending module is used for sending the analysis result to the server.
13. The apparatus of claim 10, wherein the predetermined state is an error state.
14. The apparatus of claim 9, wherein the apparatus further comprises:
a third tagging module for tagging a session start when the first access request of the user is received; and
and the fourth marking module is used for marking the historical snapshot of the warning state and storing the historical snapshot in the local session of the client if a historical snapshot representing that the current state of the page is the warning state appears when the at least one second access request of the user is received.
15. The apparatus of claim 9, wherein the apparatus further comprises:
a fifth tagging module for tagging a session start when the first access request of the user is received; and
and the third saving module is used for saving the initial snapshot and the historical snapshot which belong to the session only in the local place of the client side without uploading the initial snapshot and the historical snapshot to a server if the historical snapshot which represents that the current state of the page is an error state or a warning state does not appear until the session is ended when the at least one second access request of the user is received.
16. The apparatus of claim 9, wherein the first preservation module comprises:
and the sending unit is used for sending the initial snapshot and the historical snapshot to a server for storage.
17. A medium storing computer executable instructions for implementing a method of recording user behavior as claimed in any one of claims 1 to 8 when executed by a processing unit.
18. A computing device, comprising:
a processing unit; and
a storage unit storing computer executable instructions for implementing the method of recording user behavior of any of claims 1 to 8 when executed by the processing unit.
CN201810417093.6A 2018-05-03 2018-05-03 Method and device for recording user behavior, medium and computing equipment Active CN108647284B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810417093.6A CN108647284B (en) 2018-05-03 2018-05-03 Method and device for recording user behavior, medium and computing equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810417093.6A CN108647284B (en) 2018-05-03 2018-05-03 Method and device for recording user behavior, medium and computing equipment

Publications (2)

Publication Number Publication Date
CN108647284A CN108647284A (en) 2018-10-12
CN108647284B true CN108647284B (en) 2021-07-23

Family

ID=63749216

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810417093.6A Active CN108647284B (en) 2018-05-03 2018-05-03 Method and device for recording user behavior, medium and computing equipment

Country Status (1)

Country Link
CN (1) CN108647284B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110347906A (en) * 2019-05-20 2019-10-18 拉扎斯网络科技(上海)有限公司 User behavior display method and device, electronic equipment and storage medium
CN111090565B (en) * 2019-12-20 2021-09-28 上海有个机器人有限公司 Robot historical behavior playback method and system
CN111818123B (en) * 2020-05-28 2023-10-20 中国平安财产保险股份有限公司 Network front-end remote playback method, device, equipment and storage medium

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102012925A (en) * 2010-11-30 2011-04-13 中国工商银行股份有限公司 Page data generation method, data reviewing method and data exchange entry system
CN102437969A (en) * 2011-09-03 2012-05-02 上海量明科技发展有限公司 Method and system for loading hyperlink data in instant messaging tool
CN103646086A (en) * 2013-12-13 2014-03-19 北京奇虎科技有限公司 Junk file cleaning method and device
CN104346397A (en) * 2013-08-06 2015-02-11 中国银联股份有限公司 Switchover method and system based on asynchronous request page
CN105589905A (en) * 2014-12-26 2016-05-18 中国银联股份有限公司 User interest data analysis and collection system and method
CN105721427A (en) * 2016-01-14 2016-06-29 湖南大学 Method for mining attack frequent sequence mode from Web log
CN106599107A (en) * 2016-11-28 2017-04-26 北京小米移动软件有限公司 Method, device and server for obtaining user behavior
CN106649058A (en) * 2015-10-29 2017-05-10 北京国双科技有限公司 Log processing method and device
CN107196788A (en) * 2017-05-02 2017-09-22 阿里巴巴集团控股有限公司 A kind of processing method for burying point data, device, server and client
CN107483443A (en) * 2017-08-22 2017-12-15 北京京东尚科信息技术有限公司 advertisement information processing method, client, storage medium and electronic equipment
CN107844486A (en) * 2016-09-18 2018-03-27 腾讯科技(深圳)有限公司 A kind of method and system of analysis webpage problem for client

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100476828C (en) * 2007-04-28 2009-04-08 华中科技大学 Safety search engine system based on accessing control
CN103902422B (en) * 2012-12-25 2017-05-10 中国电信股份有限公司 Method and device for monitoring user operation behaviors and cloud computer system
US9846634B2 (en) * 2014-06-25 2017-12-19 Vmware, Inc. Visual graphical user interface verification
US20170147159A1 (en) * 2015-11-19 2017-05-25 International Business Machines Corporation Capturing and storing dynamic page state data
US10990507B2 (en) * 2016-02-25 2021-04-27 Dell Products L.P. System and method for provisioning a virtual machine test environment
CN107870712B (en) * 2016-09-23 2021-11-09 北京搜狗科技发展有限公司 Screenshot processing method and device
CN107301197B (en) * 2017-05-12 2020-12-01 上海瀚银信息技术有限公司 Service data tracking processing system and method
CN107291883B (en) * 2017-06-20 2020-09-18 苏州浪潮智能科技有限公司 Snapshot method and device of distributed storage system
CN107809649B (en) * 2017-11-03 2019-10-29 中广热点云科技有限公司 A kind of switching of smart television program and prebrowsing system

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102012925A (en) * 2010-11-30 2011-04-13 中国工商银行股份有限公司 Page data generation method, data reviewing method and data exchange entry system
CN102437969A (en) * 2011-09-03 2012-05-02 上海量明科技发展有限公司 Method and system for loading hyperlink data in instant messaging tool
CN104346397A (en) * 2013-08-06 2015-02-11 中国银联股份有限公司 Switchover method and system based on asynchronous request page
CN103646086A (en) * 2013-12-13 2014-03-19 北京奇虎科技有限公司 Junk file cleaning method and device
CN105589905A (en) * 2014-12-26 2016-05-18 中国银联股份有限公司 User interest data analysis and collection system and method
CN106649058A (en) * 2015-10-29 2017-05-10 北京国双科技有限公司 Log processing method and device
CN105721427A (en) * 2016-01-14 2016-06-29 湖南大学 Method for mining attack frequent sequence mode from Web log
CN107844486A (en) * 2016-09-18 2018-03-27 腾讯科技(深圳)有限公司 A kind of method and system of analysis webpage problem for client
CN106599107A (en) * 2016-11-28 2017-04-26 北京小米移动软件有限公司 Method, device and server for obtaining user behavior
CN107196788A (en) * 2017-05-02 2017-09-22 阿里巴巴集团控股有限公司 A kind of processing method for burying point data, device, server and client
CN107483443A (en) * 2017-08-22 2017-12-15 北京京东尚科信息技术有限公司 advertisement information processing method, client, storage medium and electronic equipment

Also Published As

Publication number Publication date
CN108647284A (en) 2018-10-12

Similar Documents

Publication Publication Date Title
US11023355B2 (en) Dynamic tracing using ranking and rating
US11243973B2 (en) Automated scalable contextual data collection and extraction system
CN111522703B (en) Method, apparatus and computer program product for monitoring access requests
CN108667855B (en) Network flow abnormity monitoring method and device, electronic equipment and storage medium
CN108647284B (en) Method and device for recording user behavior, medium and computing equipment
CN103544095A (en) Server program monitoring method and system of server program
CN113448795B (en) Method, apparatus and computer program product for obtaining system diagnostic information
CN111930703A (en) Automatic log file capturing method and device and computer equipment
US10365998B2 (en) Modifying monitoring configurations that support analytics programs
US10171329B2 (en) Optimizing log analysis in SaaS environments
US11785115B2 (en) Request tracing
US10241855B2 (en) Recovery of first failure data capture logs
US11593205B2 (en) Servicing data storage devices in a data storage array
US11200138B1 (en) Policy-based request tracing using a computer
CN110602162B (en) Terminal evidence obtaining method, device, equipment and storage medium
CN110806981B (en) Application program testing method, device, equipment and storage medium
CN110825599A (en) Information management system monitoring method, device, medium, electronic equipment and system
US20200065162A1 (en) Transparent, event-driven provenance collection and aggregation
CN111858782A (en) Database construction method, device, medium and equipment based on information security
CN114443660A (en) Abnormity positioning method, abnormity positioning device, storage medium and computing equipment
CN117785850A (en) Data acquisition method, device, equipment and medium
CN115858267A (en) Circuit testing method and device, electronic equipment and storage medium
CN116881079A (en) Data processing method, device, electronic equipment and storage medium
CN115657949A (en) Method and device for clearing local storage data, storage medium and electronic equipment
CN113037588A (en) Terminal number determination method and device, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant