CN110109814B - User behavior data correction method and device - Google Patents

User behavior data correction method and device Download PDF

Info

Publication number
CN110109814B
CN110109814B CN201910402295.8A CN201910402295A CN110109814B CN 110109814 B CN110109814 B CN 110109814B CN 201910402295 A CN201910402295 A CN 201910402295A CN 110109814 B CN110109814 B CN 110109814B
Authority
CN
China
Prior art keywords
behavior data
user behavior
user
corrected
data record
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
CN201910402295.8A
Other languages
Chinese (zh)
Other versions
CN110109814A (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.)
Hundsun Technologies Inc
Original Assignee
Hundsun Technologies Inc
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 Hundsun Technologies Inc filed Critical Hundsun Technologies Inc
Priority to CN201910402295.8A priority Critical patent/CN110109814B/en
Publication of CN110109814A publication Critical patent/CN110109814A/en
Application granted granted Critical
Publication of CN110109814B publication Critical patent/CN110109814B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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
    • 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/3452Performance evaluation by statistical analysis
    • 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/3466Performance evaluation by tracing or monitoring
    • G06F11/3476Data logging

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Quality & Reliability (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Bioinformatics & Cheminformatics (AREA)
  • Bioinformatics & Computational Biology (AREA)
  • Evolutionary Biology (AREA)
  • Probability & Statistics with Applications (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses a user behavior data correction method and device, the proposal can be provided for a server of a client side such as an application program, a webpage and the like for use, the server corrects the acquired user behavior data in the running process, specifically, user identifications corresponding to the user behavior data generated in the whole process of using the client side such as the application program, the webpage and the like by the same user are unified, big data analysis is carried out based on the corrected user behavior data, and the accuracy of analysis results can be improved.

Description

User behavior data correction method and device
Technical Field
The present invention relates to the field of data processing technologies, and in particular, to a method and an apparatus for correcting user behavior data.
Background
With the wide Application and more powerful functions of the intelligent mobile terminal, various APPs (Application programs) are greatly emerging.
In the prior art, in the same session, when a user uses an APP in an unregistered state, an APP server allocates a temporary user identifier to the user, where the temporary user identifier is different from a user identifier when the user uses the APP in a logged state, so that user identifiers corresponding to user behavior data acquired by the APP server before and after the user logs in the APP are different. In addition, when a user uses the APP in an unregistered state, which may be caused by some faults, a server of the APP allocates a plurality of temporary user identities to the user. Therefore, the user identifications corresponding to the user behavior data acquired by the servers of the APP in the same session are different.
At present, when large data technology is adopted to analyze user behavior data using APP, user behavior data corresponding to different user identifications are considered to belong to different users, so that the user behavior data of the same user in the whole process of using APP cannot be connected in series, the obtained user behavior data lack of consistency and integrity, and the accuracy of analysis results is affected.
Disclosure of Invention
The present invention has been made in view of the above-mentioned problems, and it is an object of the present invention to provide a user behavior data modification method and apparatus that overcomes or at least partially solves the above-mentioned problems. The specific scheme is as follows:
a method of user behavior data modification, the method comprising:
determining a target session identifier;
determining a plurality of user behavior data records to be corrected, wherein each user behavior data record to be corrected contains the target session identifier;
determining a target user behavior data record from the plurality of user behavior data records to be corrected, wherein a user identifier contained in the target user behavior data record is a target user identifier;
and correcting the user identification which is inconsistent with the target user identification and contained in the user behavior data record to be corrected into the target user identification.
Optionally, the determining a target user behavior data record from the plurality of user behavior data records to be corrected specifically includes:
and when the user login information is not contained in the plurality of user behavior data records to be corrected, determining one user behavior data record with the earliest recording time in the plurality of user behavior data records to be corrected as the target user behavior data record.
Alternatively, the process may be carried out in a single-stage,
the determining a target user behavior data record from the plurality of user behavior data records to be corrected specifically includes:
and when one of the plurality of user behavior data records to be corrected contains user login information, determining the user behavior data record containing the user login information as the target user behavior record.
Alternatively, the process may be carried out in a single-stage,
the determining a target user behavior data record from the plurality of user behavior data records to be corrected specifically includes:
when a plurality of user behavior data records containing user login information exist in the plurality of user behavior data records to be corrected, determining one user behavior data record with the earliest recording time in the plurality of user behavior data records containing the user login information as the target user behavior data record.
Alternatively, the process may be carried out in a single-stage,
before said determining a plurality of user behavior data records to be modified, the method further comprises:
receiving user behavior data sent by a client, wherein the user behavior data comprises a session identifier and a user identifier;
and storing the user behavior data into a user behavior data table to generate a plurality of user behavior data records.
Alternatively, the process may be carried out in a single-stage,
the determining a plurality of user behavior data records to be corrected includes:
and searching a plurality of user behavior data records with the session identification consistent with the target session identification from the user behavior data table to serve as a plurality of user behavior data records to be corrected.
Alternatively, the process may be carried out in a single-stage,
after said determining a target user behavior data record from said plurality of user behavior data records to be corrected, the method further comprises:
judging whether the target user behavior data record contains user login information or not;
if so, identifying the user behavior data record to be corrected as a behavior data record of the registered user;
and if the user behavior data record to be corrected does not contain the behavior data record, identifying the user behavior data record to be corrected as a behavior data record of a non-registered user.
A user behavior data modification apparatus, the apparatus comprising:
a first determining unit, configured to determine a target session identifier;
the second determining unit is used for determining a plurality of user behavior data records to be corrected, and each user behavior data record to be corrected contains the target session identifier;
a third determining unit, configured to determine a target user behavior data record from the plurality of user behavior data records to be corrected, where a user identifier included in the target user behavior data record is a target user identifier;
and the correction unit is used for correcting the user identifier which is contained in the user behavior data record to be corrected and is inconsistent with the target user identifier into the target user identifier.
Optionally, the third determining unit is specifically configured to:
and when the user login information is not contained in the plurality of user behavior data records to be corrected, determining one user behavior data record with the earliest recording time in the plurality of user behavior data records to be corrected as the target user behavior data record.
Optionally, the third determining unit is specifically configured to:
and when one of the plurality of user behavior data records to be corrected contains user login information, determining the user behavior data record containing the user login information as the target user behavior record.
Optionally, the third determining unit is specifically configured to:
when a plurality of user behavior data records containing user login information exist in the plurality of user behavior data records to be corrected, determining one user behavior data record with the earliest recording time in the plurality of user behavior data records containing the user login information as the target user behavior data record.
Optionally, the apparatus further comprises:
the receiving unit is used for receiving user behavior data sent by the client before the plurality of pieces of user behavior data records to be corrected are determined, wherein the user behavior data comprise session identifications and user identifications;
and the storage unit is used for storing the user behavior data into a user behavior data table and generating a plurality of user behavior data records.
Optionally, the second determining unit is specifically configured to:
and searching a plurality of user behavior data records with the session identification consistent with the target session identification from the user behavior data table to serve as a plurality of user behavior data records to be corrected.
Optionally, the apparatus further comprises:
the judging unit is used for judging whether the target user behavior data record contains user login information or not after the target user behavior data record is determined from the plurality of user behavior data records to be corrected; if so, identifying the user behavior data record to be corrected as a behavior data record of the registered user; and if the user behavior data record to be corrected does not contain the behavior data record, identifying the user behavior data record to be corrected as a behavior data record of a non-registered user.
A storage medium having stored thereon a program which, when executed by a processor, implements a user behavior data modification method as described above.
An electronic device comprising a memory for storing a program and a processor for running the program, wherein the program is run to perform a user behavior data modification method as described above.
By means of the technical scheme, the user behavior data correction method and device can be provided for the servers of the clients such as the application programs and the web pages to use, the servers correct the acquired user behavior data in the running process, specifically, user identifications corresponding to the user behavior data generated in the whole process of using the clients such as the application programs and the web pages by the same user are unified, big data analysis is carried out based on the corrected user behavior data, and accuracy of analysis results can be improved.
The foregoing description is only an overview of the present invention, and is intended to be implemented in accordance with the teachings of the present invention in order that the same may be more clearly understood and to make the same and other objects, features and advantages of the present invention more readily apparent.
Drawings
Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are only for purposes of illustrating the preferred embodiments and are not to be construed as limiting the invention. Also, like reference numerals are used to designate like parts throughout the figures. In the drawings:
fig. 1 is a flowchart of a user behavior data correction method according to an embodiment of the present application;
fig. 2 is a flow chart of a user behavior data correction method according to a second embodiment of the present application;
fig. 3 is a schematic structural diagram of a user behavior data correction device according to a third embodiment of the present application.
Detailed Description
Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited to the embodiments set forth herein. 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.
The applicant finds that when the big data technology is adopted to analyze the user behavior data of the client using the application program, the webpage and the like, the user behavior data corresponding to different user identifications are considered to belong to different users, so that the user behavior data of the same user in the whole process of using the client using the application program, the webpage and the like cannot be connected in series, the acquired user behavior data lacks consistency and integrity, and the accuracy of an analysis result is affected.
The embodiment of the application provides a corresponding improvement scheme aiming at the situation. The scheme can be provided for the servers of the clients such as the application programs and the web pages to use, the servers correct the acquired user behavior data in the operation process, specifically, the user identifications corresponding to the user behavior data generated in the whole process of using the clients such as the application programs and the web pages by the same user are unified, and big data analysis is performed based on the corrected user behavior data, so that the accuracy of analysis results can be improved.
Specific embodiments provided in the embodiments of the present application are described in detail below.
Example 1
In one aspect of this embodiment, a method for correcting user behavior data is provided from a server perspective, specifically, referring to fig. 1, the method specifically may include:
s101: determining a target session identifier;
when the user uses the application program, the webpage and other clients based on the session, the server allocates a session identifier for the user. In this embodiment of the present application, the target session identifier may be a specific session identifier, and the user behavior data correction method of the present application corrects the user behavior data record generated under the session corresponding to the target session identifier.
S102: determining a plurality of user behavior data records to be corrected, wherein each user behavior data record to be corrected contains the target session identifier;
user behavior data records generated under different sessions are differentiated based on session identification. After determining the target session identifier, determining the user behavior data record containing the target session identifier as the user behavior data record to be corrected, wherein a plurality of user behavior data records are generally generated in one session, so that a plurality of user behavior data records to be corrected are recorded in the method.
S103: determining a target user behavior data record from the plurality of user behavior data records to be corrected, wherein a user identifier contained in the target user behavior data record is a target user identifier;
in the present application, the target user behavior data record may be determined from the plurality of user behavior data records to be corrected in various manners, and the specific manner will be described in detail in the following embodiments.
S104: and correcting the user identification which is inconsistent with the target user identification and contained in the user behavior data record to be corrected into the target user identification.
Specifically, the user identifier which is not consistent with the target user identifier and is included in the user behavior data record to be corrected may be deleted first, and then the target user identifier is added.
The user behavior data correction method disclosed by the embodiment can be provided for servers of clients such as application programs and webpages to use, the servers correct the acquired user behavior data in the running process, specifically, user identifications corresponding to the user behavior data generated in the whole process of using the clients such as the application programs and the webpages by the same user are unified, big data analysis is performed based on the corrected user behavior data, and accuracy of analysis results can be improved.
Example two
The second embodiment is based on the first embodiment, and from the perspective of the server, another method for modifying user behavior data is provided, specifically, referring to fig. 2, the method may specifically include:
s201: receiving user behavior data sent by a client, wherein the user behavior data comprises a session identifier and a user identifier;
the user behavior data are behavior data generated by a user at a client side such as an application program, a webpage and the like through the mobile terminal. At present, in order to collect user behavior data, a method is often adopted in which a buried point is set in a client, and when a user performs various operations based on the client, the buried point captures user behavior data corresponding to the various operations and transmits the user behavior data to a server. The user behavior data includes event data and user data, wherein the user opens a page at the client, clicks a button, and defines the event data, and the information of the user is defined as the user data.
It should be noted that, the user may generate user behavior data when logging in or not logging in the application program, the web page, and other clients through the mobile terminal. It should be noted that, one user behavior data record includes a plurality of fields, as shown in table 1, an example of one user behavior data record is shown in the embodiment of the present application.
TABLE 1
S202: and storing the user behavior data into a user behavior data table to generate a plurality of user behavior data records.
After receiving user behavior data sent by a client, a server side stores the user behavior data into a user behavior data table, wherein the user behavior data table comprises an event table and a user table, and the event data is stored into the event table; and storing the user data into a user table.
S203: determining a target session identifier;
as an example, the target session identifier may specifically be 089810f932f2476189fa8309e6229307 shown in table 1.
S204: and searching a plurality of user behavior data records with the session identification consistent with the target session identification from the user behavior data table to serve as a plurality of user behavior data records to be corrected.
The user behavior data generated under a plurality of conversations is stored in the same user behavior data table, namely, the event data generated under a plurality of conversations is stored in the same event table, and the user data generated under a plurality of conversations is stored in the same user table.
S205: determining a target user behavior data record from the plurality of user behavior data records to be corrected, wherein a user identifier contained in the target user behavior data record is a target user identifier;
as can be seen from table 1, there are two types of user behavior data records, one of which includes user login information such as a user name, an age, and a sex, specifically as shown in the "not-logged-in" column of table 1, and the other of which does not include user login information such as a user name, an age, and a sex, specifically as shown in the "logged-in" column of table 1. In the embodiment of the application, the target user behavior data record can be determined according to different modes of selecting whether the user login information is included in the plurality of pieces of user behavior data records to be corrected.
As an implementation manner, when none of the plurality of user behavior data records to be corrected contains user login information, determining one of the plurality of user behavior data records to be corrected, which has the earliest recording time, as the target user behavior data record.
As still another embodiment, when one of the plurality of user behavior data records to be corrected includes a user behavior data record including user login information, the user behavior data record including user login information is determined to be the target user behavior record.
As an implementation manner, when a plurality of user behavior data records containing user login information exist in the plurality of user behavior data records to be corrected, determining one user behavior data record with the earliest recording time in the plurality of user behavior data records containing user login information as the target user behavior data record.
S206: and correcting the user identification which is inconsistent with the target user identification and contained in the user behavior data record to be corrected into the target user identification.
As an exemplary description, assuming that the user behavior data record shown in the "unregistered" column of table 1 is the target user behavior data record, the user identification that is inconsistent with the target user identification, which is included in the user behavior data record to be corrected, is finally corrected to "0e8eeb6c62df05928673c491b88f79fa".
As another exemplary description, assuming that the user behavior data record shown in the "login" column of table 1 is used as the target user behavior data record, the user identifier that is not consistent with the target user identifier and included in the user behavior data record to be corrected is finally corrected to "zhangsan".
S207: judging whether the target user behavior data record contains user login information or not; if so, S208 is performed, and if not, S209 is performed;
s208: identifying the user behavior data record to be corrected as a behavior data record of a registered user;
as an exemplary description, assuming that a user behavior data record shown in a column of "login" of table 1 is used as the target user behavior data record, the correction that "guest identification" contained in the user behavior data record to be corrected is 0 is finally set to 1.
S209: and identifying the user behavior data record to be corrected as a behavior data record of a non-registered user.
As an exemplary description, assuming that the user behavior data record shown in the "unregistered" column of table 1 is used as the target user behavior data record, the correction that "guest identification" is empty in the user behavior data record to be corrected is finally set to 0.
Example III
The third embodiment corresponds to the first embodiment, and from the perspective of the server, there is provided a user behavior data correction device, specifically, referring to fig. 3, the device may specifically include:
a first determining unit 31, configured to determine a target session identifier;
a second determining unit 32, configured to determine a plurality of user behavior data records to be corrected, where each user behavior data record to be corrected includes the target session identifier;
a third determining unit 33, configured to determine a target user behavior data record from the plurality of user behavior data records to be corrected, where a user identifier included in the target user behavior data record is a target user identifier;
and the correction unit is used for correcting the user identifier which is contained in the user behavior data record to be corrected and is inconsistent with the target user identifier into the target user identifier.
Optionally, the third determining unit is specifically configured to:
and when the user login information is not contained in the plurality of user behavior data records to be corrected, determining one user behavior data record with the earliest recording time in the plurality of user behavior data records to be corrected as the target user behavior data record.
Optionally, the third determining unit is specifically configured to:
and when one of the plurality of user behavior data records to be corrected contains user login information, determining the user behavior data record containing the user login information as the target user behavior record.
Optionally, the third determining unit is specifically configured to:
when a plurality of user behavior data records containing user login information exist in the plurality of user behavior data records to be corrected, determining one user behavior data record with the earliest recording time in the plurality of user behavior data records containing the user login information as the target user behavior data record.
Optionally, the apparatus further comprises:
the receiving unit is used for receiving user behavior data sent by the client before the plurality of pieces of user behavior data records to be corrected are determined, wherein the user behavior data comprise session identifications and user identifications;
and the storage unit is used for storing the user behavior data into a user behavior data table and generating a plurality of user behavior data records.
Optionally, the second determining unit is specifically configured to:
and searching a plurality of user behavior data records with the session identification consistent with the target session identification from the user behavior data table to serve as a plurality of user behavior data records to be corrected.
Optionally, the apparatus further comprises:
the judging unit is used for judging whether the target user behavior data record contains user login information or not after the target user behavior data record is determined from the plurality of user behavior data records to be corrected; if so, identifying the user behavior data record to be corrected as a behavior data record of the registered user; and if the user behavior data record to be corrected does not contain the behavior data record, identifying the user behavior data record to be corrected as a behavior data record of a non-registered user.
It should be noted that, the specific implementation of each unit is described in detail in the method embodiment, please refer to the related content in the method embodiment specifically, and this embodiment is not repeated.
The user behavior data correction device comprises a processor and a memory, wherein each unit is stored in the memory as a program unit, and the processor executes the program unit stored in the memory to realize corresponding functions.
The processor includes a kernel, and the kernel fetches the corresponding program unit from the memory. The kernel can be provided with one or more, and the correction of the user behavior data is realized by adjusting the kernel parameters.
The memory may include volatile memory, random Access Memory (RAM), and/or nonvolatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM), among other forms in computer readable media, the memory including at least one memory chip.
The embodiment of the application provides a storage medium, on which a program is stored, which when executed by a processor, implements the user behavior data correction method.
The embodiment of the application provides a processor which is used for running a program, wherein the program executes the user behavior data correction method when running.
The embodiment of the application provides an electronic device, which comprises a processor, a memory and a program stored on the memory and capable of running on the processor, wherein the following steps are realized when the processor executes the program:
determining a target session identifier;
determining a plurality of user behavior data records to be corrected, wherein each user behavior data record to be corrected contains the target session identifier;
determining a target user behavior data record from the plurality of user behavior data records to be corrected, wherein a user identifier contained in the target user behavior data record is a target user identifier;
and correcting the user identification which is inconsistent with the target user identification and contained in the user behavior data record to be corrected into the target user identification.
Optionally, the determining a target user behavior data record from the plurality of user behavior data records to be corrected specifically includes:
and when the user login information is not contained in the plurality of user behavior data records to be corrected, determining one user behavior data record with the earliest recording time in the plurality of user behavior data records to be corrected as the target user behavior data record.
Alternatively, the process may be carried out in a single-stage,
the determining a target user behavior data record from the plurality of user behavior data records to be corrected specifically includes:
and when one of the plurality of user behavior data records to be corrected contains user login information, determining the user behavior data record containing the user login information as the target user behavior record.
Alternatively, the process may be carried out in a single-stage,
the determining a target user behavior data record from the plurality of user behavior data records to be corrected specifically includes:
when a plurality of user behavior data records containing user login information exist in the plurality of user behavior data records to be corrected, determining one user behavior data record with the earliest recording time in the plurality of user behavior data records containing the user login information as the target user behavior data record.
Alternatively, the process may be carried out in a single-stage,
before said determining a plurality of user behavior data records to be modified, the method further comprises:
receiving user behavior data sent by a client, wherein the user behavior data comprises a session identifier and a user identifier;
and storing the user behavior data into a user behavior data table to generate a plurality of user behavior data records.
Alternatively, the process may be carried out in a single-stage,
the determining a plurality of user behavior data records to be corrected includes:
and searching a plurality of user behavior data records with the session identification consistent with the target session identification from the user behavior data table to serve as a plurality of user behavior data records to be corrected.
Alternatively, the process may be carried out in a single-stage,
after said determining a target user behavior data record from said plurality of user behavior data records to be corrected, the method further comprises:
judging whether the target user behavior data record contains user login information or not;
if so, identifying the user behavior data record to be corrected as a behavior data record of the registered user;
and if the user behavior data record to be corrected does not contain the behavior data record, identifying the user behavior data record to be corrected as a behavior data record of a non-registered user.
The electronic device herein may be a server, a PC, a PAD, a mobile phone, etc.
The present application also provides a computer program product adapted to perform, when executed on a data processing device, a program initialized with the method steps of:
determining a target session identifier;
determining a plurality of user behavior data records to be corrected, wherein each user behavior data record to be corrected contains the target session identifier;
determining a target user behavior data record from the plurality of user behavior data records to be corrected, wherein a user identifier contained in the target user behavior data record is a target user identifier;
and correcting the user identification which is inconsistent with the target user identification and contained in the user behavior data record to be corrected into the target user identification.
Optionally, the determining a target user behavior data record from the plurality of user behavior data records to be corrected specifically includes:
and when the user login information is not contained in the plurality of user behavior data records to be corrected, determining one user behavior data record with the earliest recording time in the plurality of user behavior data records to be corrected as the target user behavior data record.
Alternatively, the process may be carried out in a single-stage,
the determining a target user behavior data record from the plurality of user behavior data records to be corrected specifically includes:
and when one of the plurality of user behavior data records to be corrected contains user login information, determining the user behavior data record containing the user login information as the target user behavior record.
Alternatively, the process may be carried out in a single-stage,
the determining a target user behavior data record from the plurality of user behavior data records to be corrected specifically includes:
when a plurality of user behavior data records containing user login information exist in the plurality of user behavior data records to be corrected, determining one user behavior data record with the earliest recording time in the plurality of user behavior data records containing the user login information as the target user behavior data record.
Alternatively, the process may be carried out in a single-stage,
before said determining a plurality of user behavior data records to be modified, the method further comprises:
receiving user behavior data sent by a client, wherein the user behavior data comprises a session identifier and a user identifier;
and storing the user behavior data into a user behavior data table to generate a plurality of user behavior data records.
Alternatively, the process may be carried out in a single-stage,
the determining a plurality of user behavior data records to be corrected includes:
and searching a plurality of user behavior data records with the session identification consistent with the target session identification from the user behavior data table to serve as a plurality of user behavior data records to be corrected.
Alternatively, the process may be carried out in a single-stage,
after said determining a target user behavior data record from said plurality of user behavior data records to be corrected, the method further comprises:
judging whether the target user behavior data record contains user login information or not;
if so, identifying the user behavior data record to be corrected as a behavior data record of the registered user;
and if the user behavior data record to be corrected does not contain the behavior data record, identifying the user behavior data record to be corrected as a behavior data record of a non-registered user.
It will be appreciated by those skilled in the art that embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present application 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 application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the application. 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.
In one typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include volatile memory in a computer-readable medium, random Access Memory (RAM) and/or nonvolatile memory, etc., such as Read Only Memory (ROM) or flash RAM. Memory is an example of a computer-readable medium.
Computer readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of storage media for a computer include, but are not limited to, phase change memory (PRAM), static Random Access Memory (SRAM), dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), read Only Memory (ROM), electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium, which can be used to store information that can be accessed by a computing device. Computer-readable media, as defined herein, does not include transitory computer-readable media (transmission media), such as modulated data signals and carrier waves.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article or apparatus that comprises an element.
It will be appreciated by those skilled in the art that embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application 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 foregoing is merely exemplary of the present application and is not intended to limit the present application. Various modifications and changes may be made to the present application by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc. which are within the spirit and principles of the present application are intended to be included within the scope of the claims of the present application.

Claims (12)

1. A method for modifying user behavior data, the method comprising:
receiving user behavior data sent by a client, wherein the user behavior data comprises a session identifier and a user identifier; when a user uses an application program and a client of a webpage based on a session, a server allocates a session identifier for the session;
storing the user behavior data into a user behavior data table to generate a plurality of user behavior data records;
determining a target session identifier;
searching a plurality of user behavior data records with session identifications consistent with the target session identifications from the user behavior data table to serve as a plurality of user behavior data records to be corrected, wherein each user behavior data record to be corrected contains the target session identifications;
determining a target user behavior data record from the plurality of user behavior data records to be corrected, wherein a user identifier contained in the target user behavior data record is a target user identifier;
and correcting the user identification which is inconsistent with the target user identification and contained in the user behavior data record to be corrected into the target user identification.
2. The method of claim 1, wherein the step of determining the position of the substrate comprises,
the determining a target user behavior data record from the plurality of user behavior data records to be corrected specifically includes:
and when the user login information is not contained in the plurality of user behavior data records to be corrected, determining one user behavior data record with the earliest recording time in the plurality of user behavior data records to be corrected as the target user behavior data record.
3. The method of claim 1, wherein the step of determining the position of the substrate comprises,
the determining a target user behavior data record from the plurality of user behavior data records to be corrected specifically includes:
and when one of the plurality of user behavior data records to be corrected contains user login information, determining the user behavior data record containing the user login information as the target user behavior record.
4. The method of claim 1, wherein the step of determining the position of the substrate comprises,
the determining a target user behavior data record from the plurality of user behavior data records to be corrected specifically includes:
when a plurality of user behavior data records containing user login information exist in the plurality of user behavior data records to be corrected, determining one user behavior data record with the earliest recording time in the plurality of user behavior data records containing the user login information as the target user behavior data record.
5. A method according to any one of claims 1 to 4,
after said determining a target user behavior data record from said plurality of user behavior data records to be corrected, the method further comprises:
judging whether the target user behavior data record contains user login information or not;
if so, identifying the user behavior data record to be corrected as a behavior data record of the registered user;
and if the user behavior data record to be corrected does not contain the behavior data record, identifying the user behavior data record to be corrected as a behavior data record of a non-registered user.
6. A user behavior data correction apparatus, the apparatus comprising:
the receiving unit is used for receiving user behavior data sent by the client before determining a plurality of pieces of user behavior data records to be corrected, wherein the user behavior data comprises a session identifier and a user identifier; when a user uses an application program and a client of a webpage based on a session, a server allocates a session identifier for the session;
the storage unit is used for storing the user behavior data into a user behavior data table and generating a plurality of user behavior data records;
a first determining unit, configured to determine a target session identifier;
a second determining unit, configured to search, from the user behavior data table, a plurality of user behavior data records whose session identifiers are consistent with the target session identifier, as a plurality of user behavior data records to be corrected, where each user behavior data record to be corrected includes the target session identifier;
a third determining unit, configured to determine a target user behavior data record from the plurality of user behavior data records to be corrected, where a user identifier included in the target user behavior data record is a target user identifier;
and the correction unit is used for correcting the user identifier which is contained in the user behavior data record to be corrected and is inconsistent with the target user identifier into the target user identifier.
7. The apparatus according to claim 6, wherein the third determining unit is specifically configured to:
and when the user login information is not contained in the plurality of user behavior data records to be corrected, determining one user behavior data record with the earliest recording time in the plurality of user behavior data records to be corrected as the target user behavior data record.
8. The apparatus according to claim 6, wherein the third determining unit is specifically configured to:
and when one of the plurality of user behavior data records to be corrected contains user login information, determining the user behavior data record containing the user login information as the target user behavior record.
9. The apparatus according to claim 6, wherein the third determining unit is specifically configured to:
when a plurality of user behavior data records containing user login information exist in the plurality of user behavior data records to be corrected, determining one user behavior data record with the earliest recording time in the plurality of user behavior data records containing the user login information as the target user behavior data record.
10. The apparatus according to any one of claims 6 to 9, further comprising:
the judging unit is used for judging whether the target user behavior data record contains user login information or not after the target user behavior data record is determined from the plurality of user behavior data records to be corrected; if so, identifying the user behavior data record to be corrected as a behavior data record of the registered user; and if the user behavior data record to be corrected does not contain the behavior data record, identifying the user behavior data record to be corrected as a behavior data record of a non-registered user.
11. A storage medium having stored thereon a program which, when executed by a processor, implements the user behavior data correction method according to any one of claims 1 to 5.
12. An electronic device comprising a memory for storing a program and a processor for running the program, wherein the program is run to perform the user behavior data modification method of any one of claims 1 to 5.
CN201910402295.8A 2019-05-15 2019-05-15 User behavior data correction method and device Active CN110109814B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910402295.8A CN110109814B (en) 2019-05-15 2019-05-15 User behavior data correction method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910402295.8A CN110109814B (en) 2019-05-15 2019-05-15 User behavior data correction method and device

Publications (2)

Publication Number Publication Date
CN110109814A CN110109814A (en) 2019-08-09
CN110109814B true CN110109814B (en) 2023-07-21

Family

ID=67490161

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910402295.8A Active CN110109814B (en) 2019-05-15 2019-05-15 User behavior data correction method and device

Country Status (1)

Country Link
CN (1) CN110109814B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101316194A (en) * 2007-05-31 2008-12-03 华为技术有限公司 Method and device for improving reporting reliability of monitor user interface data
CN104426713A (en) * 2013-08-28 2015-03-18 腾讯科技(北京)有限公司 Method and device for monitoring network site access effect data

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100912177B1 (en) * 2007-05-17 2009-08-14 엔에이치엔(주) User behavior analysis method and system
CN104090888B (en) * 2013-12-10 2016-05-11 深圳市腾讯计算机系统有限公司 A kind of analytical method of user behavior data and device
CN104394118B (en) * 2014-07-29 2016-12-14 焦点科技股份有限公司 A kind of method for identifying ID and system
CN104834674B (en) * 2015-03-31 2018-11-02 北京奇艺世纪科技有限公司 Collect user behavior data, information recommendation method and device
EP3829197A1 (en) * 2017-01-16 2021-06-02 Huawei Technologies Co., Ltd. Call record synchronization method, cloud platform, and terminal
CN107357903B (en) * 2017-07-14 2020-03-17 泰康保险集团股份有限公司 User behavior data integration method and device and electronic equipment
CN107767168A (en) * 2017-09-19 2018-03-06 神策网络科技(北京)有限公司 User behavior data processing method and processing device, electronic equipment and storage medium

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101316194A (en) * 2007-05-31 2008-12-03 华为技术有限公司 Method and device for improving reporting reliability of monitor user interface data
CN104426713A (en) * 2013-08-28 2015-03-18 腾讯科技(北京)有限公司 Method and device for monitoring network site access effect data

Also Published As

Publication number Publication date
CN110109814A (en) 2019-08-09

Similar Documents

Publication Publication Date Title
CN106547784B (en) Data splitting and storing method and device
US20150074660A1 (en) Method and apparatus of downloading and installing a client
CN111163072B (en) Method and device for determining characteristic value in machine learning model and electronic equipment
CN109598526B (en) Method and device for analyzing media contribution
CN114519156A (en) Webpage display method, operation event recording method and device
CN107423037B (en) Application program interface positioning method and device
CN105528218A (en) Data diagram cascaded method and data diagram cascaded system
CN109600272B (en) Crawler detection method and device
CN111125087B (en) Data storage method and device
CN110109814B (en) User behavior data correction method and device
US20150363428A1 (en) Location-based ranking
CN107948234B (en) Data processing method and device
CN112256696A (en) Form data processing method, device, equipment and storage medium
CN106911636B (en) Method and device for detecting whether backdoor program exists in website
CN110889065B (en) Page stay time determination method, device and equipment
CN112749352A (en) Webpage skipping method and device, electronic equipment and readable storage medium
CN109542401B (en) Web development method and device, storage medium and processor
CN108171559B (en) User level processing and target object pushing method and device
CN110971578B (en) User identity confirmation method and device
CN110968580B (en) Method and device for creating data storage structure
CN109413176B (en) Report downloading method and device
CN110858852B (en) Method and device for acquiring registered domain name
CN106992958B (en) Method and system for positioning malicious account through lost account
CN109561121B (en) Method and device for monitoring deployment
CN109426540B (en) Element click condition detection method and device, storage medium and processor

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