A user behavior log acquisition method and device

By generating globally unique identifiers and account-unique identifiers on user devices, and recording and sending user behavior logs to the server, the problem of being unable to analyze user behavior logs without accounts is solved. This enables the merging and analysis of behavior logs of the same user under different account states, thus improving the comprehensiveness of user behavior analysis.

CN114676024BActive Publication Date: 2026-05-29GUANGDONG FLYING ENTERPRISE INTERNET TECH CO LTD

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
GUANGDONG FLYING ENTERPRISE INTERNET TECH CO LTD
Filing Date
2020-12-24
Publication Date
2026-05-29

AI Technical Summary

Technical Problem

Existing technologies cannot analyze the behavior logs of users without accounts when accessing applications, making it impossible to perform unified analysis of the behavior of the same user in both account-enabled and accountless states.

Method used

A globally unique identifier is generated on the user's device, and behavior logs are recorded and sent to the server based on the account status. The globally unique identifier and the account unique identifier are compared and analyzed, and the behavior logs of users with and without accounts are merged.

Benefits of technology

It enables the combined analysis of behavior logs of the same user in both account-less and account-enabled states, providing a complete user behavior trajectory and improving the comprehensiveness of user behavior analysis.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114676024B_ABST
    Figure CN114676024B_ABST
Patent Text Reader

Abstract

The application provides a user behavior log acquisition method and device, the user behavior log acquisition method comprises the following steps: starting an application of a device, generating a global unique identifier, and recording in a cache area of a specified directory address of the device; applying the global unique identifier to the user behavior log recording of an application used by a user without an account, and sending the user behavior log recording to a server; applying an account unique identifier to the user behavior log recording of an application used by a user with an account, and sending the user behavior log recording to the server; and the server analyzes the log behaviors of the application used by the user without an account and the user with an account of the same device according to the global unique identifier and the account unique identifier. The application can simply and effectively identify all log behaviors of a unified user from the state without an account to the state with an account, and more comprehensively analyzes user behaviors.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of data analysis technology, specifically to a method and apparatus for obtaining user behavior logs. Background Technology

[0002] For users who frequently open the application, analyzing their behavior can provide better service. Specifically, the system can analyze the behavior logs of users with accounts when they log in to the application, but it cannot analyze the behavior logs of users without accounts, nor can it analyze the behavior of the same user accessing the application without an account. Summary of the Invention

[0003] The purpose of this invention is to overcome the shortcomings and deficiencies in the prior art and provide a method and apparatus for obtaining user behavior logs, which can analyze the behavior of the same user accessing the application when there is no account and the behavior of accessing the application when there is an account.

[0004] One embodiment of the present invention provides a method for obtaining user behavior logs, including:

[0005] When a user device launches an application, it generates a globally unique identifier, which is then recorded in a cache area at a specified directory address on the device.

[0006] The client device records the user's application behavior logs for users without accounts based on a globally unique identifier and sends the logs to the server.

[0007] The client device records the user's application behavior logs based on the unique identifier of the account and sends them to the server;

[0008] The server analyzes the log behavior of users on the same device using the application in both account-less and account-only states, based on globally unique identifiers and account-unique identifiers.

[0009] In one embodiment, after the user device launches the application, generates a globally unique identifier, and records it in a cache area at a specified directory address on the device, the method further includes:

[0010] When a user device launches the application, it first checks whether the globally unique identifier exists in the cache area of ​​the specified directory. If the globally unique identifier exists, it will not be regenerated. If the globally unique identifier does not exist, a new globally unique identifier will be generated and recorded in the cache area of ​​the specified directory.

[0011] In one embodiment, the user terminal device records the user's application usage behavior logs for users without accounts based on a globally unique identifier, and sends the logs to the server, including:

[0012] When a user without an account accesses the application, the user's device records the user's behavior log to the local cache every 10 seconds or when the user without an account performs a specified operation, based on the corresponding globally unique identifier, and sends the behavior log information with the globally unique identifier to the server.

[0013] In one embodiment, the user terminal device records user application behavior logs for users with accounts based on the unique identifier of the account, and sends the logs to the server, including:

[0014] When a user with an account accesses the application, the user's device receives the unique account identifier returned by the server and records the unique account identifier in the cache area. Every 10 seconds, or when a user without an account performs a specified operation, the user's device records the operation behavior log of the user with an account in the local cache according to the corresponding global unique identifier and the unique account identifier, and sends the log information with the global unique identifier and the unique account identifier to the server.

[0015] In one embodiment, the server analyzes the log behavior of users on the same device in both account-less and account-enabled states based on a globally unique identifier and an account unique identifier, including:

[0016] The server compares the globally unique identifier of logs sent by users with accounts with the globally unique identifier of logs sent by users without accounts. When the globally unique identifiers of logs sent by users with accounts and logs sent by users without accounts are the same, it determines that the user with an account and the user without an account are users of the same device. The server then counts the log behavior of users of the same device to obtain the complete log behavior of the user on the user's device.

[0017] According to another aspect of an embodiment of the present invention, a user behavior log acquisition device is also provided, comprising:

[0018] The identifier generation module is used to generate a globally unique identifier when the application starts and record it in the cache area of ​​a specified directory address on the device;

[0019] The user behavior log recording module without an account is used to record the user behavior logs of users without an account using the application based on a globally unique identifier, and send the logs to the server.

[0020] The user behavior log recording module is used to record the user behavior logs of users with accounts based on the unique account identifier and send them to the server;

[0021] The identifier analysis module is used to analyze the log behavior of users on the same device in both account-less and account-based states, based on globally unique identifiers and account-unique identifiers.

[0022] In one embodiment, the detection unit is used to detect whether the globally unique identifier exists in the cache area of ​​a specified directory;

[0023] The storage unit is used to record a newly generated globally unique identifier in the cache area of ​​a specified directory.

[0024] In one embodiment, the accountless sending unit is used to record the behavior logs of users without accounts to a local cache and send the behavior log information with the globally unique identifier to the server.

[0025] In one embodiment, there is an account sending unit, which is used to record the operation behavior logs of users with accounts to a local cache and send log information with the globally unique identifier and the account unique identifier to the server.

[0026] In one embodiment, the comparison unit is used to compare the behavior log with the globally unique identifier and the log with the globally unique identifier and the account unique identifier.

[0027] Compared to existing technologies, this invention provides a method and apparatus for obtaining user behavior logs. When a user's device first opens an application, a globally unique identifier is generated and stored in the device's cache. When a user uses the application without logging in, the user's application behavior logs are recorded based on the globally unique identifier and sent to the server. When a user logs in, the server returns the account unique identifier to the user's device. Based on the account unique identifier, the user's application behavior logs are recorded for users with an account and sent to the server. The server compares the globally unique identifier and the globally unique identifier with the globally unique identifier in the account unique identifier to analyze the application usage logs of users on the same device in both account-less and account-based states. By generating a globally unique identifier and associating the server-returned account unique identifier with the behavior logs of account-less and account-based users respectively, the behavior logs of account-less and account-based users can be merged and analyzed. This allows for the analysis of the same user's application access behavior when without an account versus when with an account.

[0028] To provide a clearer understanding of the present invention, the specific embodiments of the present invention will be described below in conjunction with the accompanying drawings. Attached Figure Description

[0029] Figure 1 This is a flowchart of a user behavior log acquisition method according to an embodiment of the present invention.

[0030] Figure 2 This is a schematic diagram of a user behavior log acquisition device according to an embodiment of the present invention.

[0031] Figure 3 This is a schematic diagram of the identifier generation module of a user behavior log acquisition device according to an embodiment of the present invention.

[0032] Figure 4 This is a schematic diagram of the user behavior log recording module without an account in a user behavior log acquisition device according to an embodiment of the present invention.

[0033] Figure 5 This is a schematic diagram of an account user behavior log recording module of a user behavior log acquisition device according to an embodiment of the present invention.

[0034] Figure 6 This is a schematic diagram of the identifier analysis module of a user behavior log acquisition device according to an embodiment of the present invention. Detailed Implementation

[0035] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0036] Please see Figure 1 This is a flowchart of an embodiment of the present invention, a method for obtaining user behavior logs, comprising:

[0037] Step S1: The user device starts the application, generates a globally unique identifier, and records it in the cache area of ​​the specified directory address on the device;

[0038] Step S2: The user terminal device records the user's application behavior log for users without accounts based on the globally unique identifier, and sends it to the server;

[0039] Step S3: The user terminal device records the user's application behavior logs based on the unique account identifier and sends them to the server.

[0040] Step S4: The server analyzes the log behavior of users on the same device using the application in both account-less and account-enabled states, based on the globally unique identifier and the account-unique identifier.

[0041] The application is an application program, including a client and a server. The client program can send requests or files to the server application program. In one embodiment, the application is a client program.

[0042] The globally unique identifier is a unique identifier used to indicate uniqueness in a network or system with multiple nodes and multiple computers. In one embodiment, the globally unique identifier is a 128-bit numeric identifier generated by an algorithm. The globally unique identifier is a 128-bit integer of size 16 bytes, which may consist of hexadecimal numbers from 0 to 9 or from a to f.

[0043] When a user device launches the application, it first checks whether the globally unique identifier exists in the cache area of ​​the specified directory. If the globally unique identifier exists, it will not be regenerated. If the globally unique identifier does not exist, a new globally unique identifier will be generated and recorded in the cache area of ​​the specified directory.

[0044] That is, the user terminal device can provide the globally unique identifier to indicate the uniqueness of the application.

[0045] When the user device receives the instruction to launch the application, it determines whether the user has an account or not based on whether the user is logged in. If the user is logged in, they are an accounted user; if the user is not logged in, they are an accountless user.

[0046] The behavior log is the user's behavior trajectory when using the application, and the traffic log; in one embodiment, the behavior log includes the behavior data generated each time the user accesses, browses, searches and clicks on the application.

[0047] The specified operation is a pre-defined triggering operation in the application. When the operation event is triggered, the user's behavior log of using the application is recorded. In one embodiment, the specified operation can be selecting an application page or swiping an application page. By specifying the operation, the user's behavior log of using the application is recorded.

[0048] The server provides a path for applications to send files for user applications to use. It can provide applications with a way to access the server or log in to an account, manage database connections, and collect and process log information. In one embodiment, the server is used to collect and process log information.

[0049] When a user without an account accesses the application, the user's device records the user's behavior log to the local cache every 10 seconds or when the user without an account performs a specified operation, based on the corresponding globally unique identifier, and sends the behavior log information with the globally unique identifier to the server.

[0050] It can record the behavior logs of users without accounts, and make the behavior logs of users without accounts unique through the globally unique identifier.

[0051] The account is composed of user-defined information and serves as the user's login credentials. Users who log in to the application are considered to have an account; users who do not log in to the application are considered to have no account. In one embodiment, the unique identifier of the account is a user ID, which is unique and can be used to identify the user.

[0052] When a user with an account accesses the application, the user's device receives the unique account identifier returned by the server and records the unique account identifier in the cache area. Every 10 seconds, or when a user without an account performs a specified operation, the user's device records the operation behavior log of the user with an account in the local cache according to the corresponding global unique identifier and the unique account identifier, and sends the log information with the global unique identifier and the unique account identifier to the server.

[0053] User behavior logs are recorded using both a unique account identifier and a globally unique identifier, with the globally unique identifier ensuring the uniqueness of the user behavior logs.

[0054] The server compares the globally unique identifier of logs sent by users with accounts with the globally unique identifier of logs sent by users without accounts. When the globally unique identifiers of logs sent by users with accounts and logs sent by users without accounts are the same, it determines that the user with an account and the user without an account are users of the same device. The server then counts the log behavior of users of the same device to obtain the complete log behavior of the user on the user's device.

[0055] The uniqueness of the globally unique identifier is used to statistically merge the user behavior logs of users with and without accounts, and the unique account identifier is used to associate users with and without accounts.

[0056] When a user opens the application for the first time on a user's device, a globally unique identifier is generated and stored in the device's cache. When a user uses the application without logging in, their behavior is logged based on this globally unique identifier and sent to the server. When a user logs in, the server returns the account's unique identifier to the user's device. For users with an account, their behavior is logged based on this account's unique identifier and sent to the server. The server compares the globally unique identifier with the globally unique identifier in the account's unique identifier. If the globally unique identifier in the logs sent by an account user matches that in the logs sent by an accountless user, it is determined that the accounted and accountless users are from the same device. The server then statistically analyzes the log behavior of users on the same device to obtain complete user log behavior data for the user's device.

[0057] It can generate a globally unique identifier and associate the behavior logs of users with and without accounts with the unique account identifier returned by the server, so that the behavior logs of users with and without accounts can be merged and analyzed to analyze the behavior of the same user when accessing the application without an account and when accessing the application with an account.

[0058] According to another aspect of one embodiment of the present invention, please refer to Figure 2 , Figure 3 , Figure 4 , Figure 5 and Figure 6 It also provides a user behavior log acquisition device, including:

[0059] The identifier generation module 100 is used to generate a globally unique identifier when the application starts and record it in the cache area of ​​a specified directory address on the device.

[0060] The user behavior log recording module 200 without an account is used to record the user's application behavior logs based on a globally unique identifier and send them to the server.

[0061] The user behavior log recording module 300 is used to record the user's application behavior logs based on the unique account identifier and send them to the server.

[0062] The identifier analysis module 400 is used to analyze the log behavior of users on the same device in both account-free and account-free states, based on globally unique identifiers and account unique identifiers.

[0063] The identifier generation module 100, the user behavior log recording module without an account 200, the user behavior log recording module with an account 300, and the identifier analysis module 400 can be used to analyze the behavior of the same user when accessing the application without an account and when accessing the application with an account.

[0064] In one embodiment, the detection unit 110 is used to detect whether the globally unique identifier exists in the cache area of ​​a specified directory;

[0065] The storage unit 120 is used to record a newly generated globally unique identifier into the cache area of ​​a specified directory.

[0066] It can retain and store globally unique identifiers and effectively avoid generating multiple globally unique identifiers.

[0067] In one embodiment, the accountless sending unit 210 is used to record the behavior logs of users without accounts to a local cache and send the behavior log information with the globally unique identifier to the server.

[0068] The system can send behavior logs with the globally unique identifier to the server, and the behavior logs with the globally unique identifier are unique.

[0069] In one embodiment, the account sending unit 310 is used to record the operation behavior logs of the accounted user to a local cache and send log information containing the globally unique identifier and the account unique identifier to the server.

[0070] The system can send behavior logs containing the globally unique identifier and the account unique identifier to the server. The behavior logs of an account user containing the globally unique identifier and the account unique identifier are unique. The account unique identifier is unique to an account user.

[0071] In one embodiment, the comparison unit 410 is used to compare the behavior log with the globally unique identifier and the log with the globally unique identifier and the account unique identifier.

[0072] It can compare globally unique identifiers, and the same globally unique identifier can be used to associate users without accounts with users with accounts.

[0073] Although embodiments of the invention have been shown and described, it will be understood by those skilled in the art that various changes, modifications, substitutions and alterations can be made to these embodiments without departing from the principles and spirit of the invention, the scope of which is defined by the appended claims and their equivalents.

Claims

1. A method for obtaining user behavior logs, characterized in that, include: When a user device launches an application, it generates a globally unique identifier, which is then recorded in a cache area at a specified directory address on the device. The client device records the user's application behavior logs for users without accounts based on a globally unique identifier and sends the logs to the server. The client device records the user's application behavior logs based on the unique identifier of the account and sends them to the server; The server analyzes the log behavior of users on the same device using the application in both account-based and account-based states, based on globally unique identifiers and account-specific identifiers. The method of launching an application on a user-end device, generating a globally unique identifier and recording it in a cache area at a specified directory address on the device, also includes: When a user device starts the application, it first checks whether the globally unique identifier exists in the cache area of ​​the specified directory. If the globally unique identifier exists, it will not regenerate the globally unique identifier; if the globally unique identifier does not exist, it will generate a new globally unique identifier and record it in the cache area of ​​the specified directory. The user terminal device records user application behavior logs for users with accounts based on the unique account identifier and sends them to the server, including: When a user with an account accesses the application, the user's device receives the unique account identifier returned by the server and records the unique account identifier in the cache area. Every 10 seconds, or when a user without an account performs a specified operation, the user's device records the operation behavior log of the user with an account in the local cache according to the corresponding global unique identifier and the unique account identifier, and sends the log information with the global unique identifier and the unique account identifier to the server.

2. The user behavior log acquisition method according to claim 1, characterized in that, The client device records the user's application usage behavior logs for users without accounts based on a globally unique identifier, and sends the logs to the server, including: When a user without an account accesses the application, the user's device records the user's behavior log to the local cache every 10 seconds or when the user without an account performs a specified operation, based on the corresponding globally unique identifier, and sends the behavior log information with the globally unique identifier to the server.

3. The method for obtaining user behavior logs according to claim 1, characterized in that, The server analyzes the log behavior of users on the same device using the application in both account-less and account-only states, based on globally unique identifiers and account-unique identifiers. This includes: The server compares the globally unique identifier of logs sent by users with accounts with the globally unique identifier of logs sent by users without accounts. When the globally unique identifiers of logs sent by users with accounts and logs sent by users without accounts are the same, it determines that the user with an account and the user without an account are users of the same device. The server then counts the log behavior of users of the same device to obtain the complete log behavior of the user on the user's device.

4. A user behavior log acquisition device, characterized in that, include: The identifier generation module is used to generate a globally unique identifier when the application is launched and record it in the cache area of ​​a specified directory address on the device. Specifically, when the user device launches the application, it first checks whether the globally unique identifier exists in the cache area of ​​the specified directory. If the globally unique identifier exists, it will not regenerate the globally unique identifier. If the globally unique identifier does not exist, it will generate a new globally unique identifier and record it in the cache area of ​​the specified directory. The user behavior log recording module without an account is used to record the user behavior logs of users without an account using the application based on a globally unique identifier, and send the logs to the server. The user behavior log recording module is used to record the user behavior logs of users with accounts using the application based on the unique account identifier, and send the logs to the server. Specifically, when a user with an account accesses the application, the user receives the unique account identifier returned by the server and records the unique account identifier in the cache area. Every 10 seconds or when a user without an account performs a specified operation, the user's operation behavior logs are recorded in the local cache based on the corresponding global unique identifier and the unique account identifier, and log information with the global unique identifier and the unique account identifier is sent to the server. The identifier analysis module is used to analyze the log behavior of users on the same device in both account-less and account-based states, based on globally unique identifiers and account-unique identifiers.