Link data writing method and device, storage medium and electronic device

By determining the attribute value and link identifier of the target point in user behavior management, and writing it into the link data, the problem that user behavior management cannot connect user behaviors in series in the existing technology is solved, and the user behavior chain is realized. Clear statistics and analysis of roads.

CN119342089AInactive Publication Date: 2025-01-21QINGDAO HAIER TECH +2
View PDF 8 Cites 0 Cited by

Patent Information

Application Number
CN202411403018.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-09
Publication Date
2025-01-21
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

In the prior art, user behavior management will only record all user behaviors discretely, resulting in the statistical data that can only see the user's behavior trends and cannot connect a series of behaviors of the user.

Method used

When the target object performs a target operation on the target page, the target point corresponding to the target operation is determined, the first attribute value and link identifier of the target point are obtained, and the first attribute value is written to the link identifier through the point interface. In the link data, a link is formed.

Benefits of technology

It realizes writing discrete user behaviors into link data to form links, so that when counting user behavior data, the details of operations under the user's behavior link can be clearly determined.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119342089A_ABST
    Figure CN119342089A_ABST
Patent Text Reader

Abstract

The invention discloses a link data writing method and system, a storage medium and an electronic device, and relates to the technical field of smart home, the method comprises the following steps: under the condition that a target object performs a target operation on a target page, determining target point locations respectively corresponding to the target operation; determining a first attribute value corresponding to the target point location, and determining a link identifier corresponding to the target point location, the first attribute value being used for indicating an attribute value of a point location attribute corresponding to the target point location, and the link identifier being used for indicating a unique identifier of a link corresponding to the target point location; and calling a dotting interface, and writing the first attribute value into link data corresponding to the link identifier through the dotting interface. By means of the method, the problem that in the related technology, user behavior dotting only records all behaviors of the user discretely, so that only the behavior trend of the user can be seen through statistical data can be solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of smart home technology, and more specifically, to a method and device for writing link data, a storage medium, and an electronic device. Background Art

[0002] With the development of Internet technology, the number of mobile application users is increasing. In order to understand the performance of applications in the market and solve user problems in a targeted manner, various solutions for recording user behavior have emerged. The essence of these solutions is to record various user behaviors. However, different applications target different industries, have different user groups, different statistical strategies, and different analysis methods, which leads to different elements such as the definition, method, location, and cache strategy of the points.

[0003] Currently, each management solution provides different software development kits (SDKs) for user convenience, but none of them have the concept of a link, that is, all user behavior points are discrete, resulting in statistical data that can only see trends, and cannot connect a series of behaviors of a certain user.

[0004] Regarding the related technologies, user behavior tracking only records all user behaviors discretely, resulting in the problem that the statistical data can only show the user's behavior trends. No effective solution has been proposed yet. Summary of the invention

[0005] The embodiments of the present application provide a link data writing method and device, a storage medium and an electronic device, so as to at least solve the problem in the related art that user behavior scoring only records all user behaviors discretely, resulting in that the statistical data can only see the user's behavior trends.

[0006] According to an embodiment of the present application, a method for writing link data is provided, including: when a target object performs a target operation on a target page, determining the target points corresponding to the target operations respectively; determining a first attribute value corresponding to the target point, and determining a link identifier corresponding to the target point; calling a dot-marking interface, and writing the first attribute value into the link data corresponding to the link identifier through the dot-marking interface.

[0007] In an exemplary embodiment, determining the link identifier corresponding to the target point includes: determining whether the target point is the starting point of the link; in the case where the target point is determined to be the starting point of the link, creating the link identifier based on the target point, wherein the first attribute value is used to indicate the attribute value of the point attribute corresponding to the target point, and the link identifier is used to indicate the unique identifier of the link corresponding to the target point; in the case where it is determined that the target point is not the starting point of the link, querying the link identifier based on the target point.

[0008] In an exemplary embodiment, creating the link identifier based on the target point includes: determining the target object identifier of the target object, and determining a timestamp corresponding to the target point; inputting the target object identifier and the timestamp into an encryption algorithm to generate a key corresponding to the target point; and determining the key as the link identifier.

[0009] In an exemplary embodiment, querying the link identifier based on the target point includes: determining the point identifier corresponding to the target point; determining the link corresponding to the target point according to the point identifier; and inputting the point identifier into a query statement to query the link identifier corresponding to the target point through the query statement.

[0010] In an exemplary embodiment, determining the first attribute value corresponding to the target point includes: determining the point attribute corresponding to the target point, and determining whether the attribute value corresponding to the point attribute exists in the target cache; when it is determined that the attribute value corresponding to the point attribute exists in the target cache, determining the first attribute value according to the attribute value corresponding to the point attribute; when it is determined that the attribute value corresponding to the point attribute does not exist in the target cache, generating a first attribute value corresponding to the point attribute, and adding the first attribute value to the target cache.

[0011] In an exemplary embodiment, after calling the dot-marking interface to write the target point and the first attribute value into the link data corresponding to the link identifier through the dot-marking interface according to the link identifier, the method further includes: generating an attribute value statistics table according to multiple attribute values ​​in the target cache and each point attribute corresponding to each attribute value; upon receiving a query request sent by the target object, determining the target point attribute corresponding to the query request; and filtering in the attribute value statistics table according to the target point attribute to determine the target attribute value corresponding to the target point attribute.

[0012] In an exemplary embodiment, a dotting interface is called, and the first attribute value is written into the link data corresponding to the link identifier through the dotting interface, including: determining whether there is link data having a corresponding relationship with the link identifier; if it is determined that there is link data having a corresponding relationship with the link identifier, adding the target point to the link corresponding to the link identifier through the dotting interface; and writing the first attribute value into the link data to update the link data; if it is determined that there is no link data having a corresponding relationship with the link identifier, generating a link corresponding to the link identifier according to the target point through the dotting interface; and generating the link data according to the first attribute value, and establishing a corresponding relationship between the link identifier and the link data.

[0013] According to another embodiment of the embodiment of the present application, a link data writing device is also provided, including: a first determination module, used to determine the target points corresponding to the target operations when the target object performs a target operation on the target page; a second determination module, used to determine the first attribute value corresponding to the target point, and determine the link identifier corresponding to the target point, wherein the first attribute value is used to indicate the attribute value of the point attribute corresponding to the target point, and the link identifier is used to indicate the unique identifier of the link corresponding to the target point; a writing module, used to call the dotting interface, and write the first attribute value into the link data corresponding to the link identifier through the dotting interface.

[0014] According to another aspect of the embodiment of the present application, a computer-readable storage medium is provided, in which a computer program is stored, wherein the computer program is configured to execute the above-mentioned link data writing method when running.

[0015] According to another aspect of an embodiment of the present application, an electronic device is provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the link data writing method through the computer program.

[0016] According to another aspect of the embodiments of the present application, a computer program product is provided, including a computer program, wherein the computer program is executed by a processor to implement the link data writing method.

[0017] In an embodiment of the present application, when the target object performs a target operation on the target page, the target points corresponding to the target operation are determined; the first attribute value corresponding to the target point is determined, and the link identifier corresponding to the target point is determined; the dotting interface is called, and the first attribute value is written into the link data corresponding to the link identifier through the dotting interface. In other words, after the embodiment of the present application determines the target points corresponding to the target operation, the link identifier corresponding to the target point is determined, and the first attribute value corresponding to the target point is determined; the link data corresponding to the first attribute value is determined according to the link identifier, and the first attribute value is written into the link data. Through the embodiment of the present application, the problem that the user behavior dotting in the related art will only record all the user's behaviors discretely, resulting in the statistical data can only see the user's behavior trend, is solved. The embodiment of the present application writes discrete user behaviors (i.e., the target points of the present application) into the link data to form a link, and then when counting the user behavior data, the link data corresponding to the same link identifier can be counted, and the operation details under the user's behavior link can be clearly determined. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.

[0019] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0020] Figure 1 It is a hardware environment diagram of a link data writing method according to an embodiment of the present application;

[0021] Figure 2 is a flowchart of a method for writing link data according to an embodiment of the present application;

[0022] Figure 3 It is a timing diagram of a chain-type tracking method of user behavior according to an optional embodiment of the present application;

[0023] Figure 4 It is a flow chart of a method for chain tracking user behavior according to an optional embodiment of the present application;

[0024] Figure 5 It is a structural block diagram of a link data writing device according to an embodiment of the present application. DETAILED DESCRIPTION

[0025] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present application.

[0026] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0027] According to one aspect of the embodiments of the present application, a method for writing link data is provided. The method for writing link data is widely used in smart home, smart home, smart home device ecology, smart residential ecology and other whole-house intelligent digital control application scenarios. Optionally, Figure 1 Schematic diagram of the hardware environment of a link data writing method of an embodiment of the present application. In this embodiment, the link data writing method can be applied to a module in a home appliance. The module can be applied to Figure 1 In the hardware environment composed of the home appliance 102 and the server 104 shown in FIG. Figure 1 As shown, the server 104 is connected to the home appliance 102 via a network, and can be used to provide services (such as application services, etc.) for the node or the client installed on the node. A database can be set on the server or independently of the server to provide data storage services for the server 104. Cloud computing and / or edge computing services can be configured on the server or independently of the server to provide data computing services for the server 104.

[0028] The network may include but is not limited to at least one of the following: wired network, wireless network. The wired network may include but is not limited to at least one of the following: wide area network, metropolitan area network, local area network, and the wireless network may include but is not limited to at least one of the following: WIFI (Wireless Fidelity), Bluetooth. The home appliance 102 may be but is not limited to smart air conditioners, smart range hoods, smart refrigerators, smart ovens, smart stoves, smart washing machines, smart water heaters, smart washing equipment, smart dishwashers, smart projection equipment, smart TVs, smart clothes hangers, smart curtains, smart audio and video, smart sockets, smart speakers, smart speakers, smart fresh air equipment, smart kitchen and bathroom equipment, smart bathroom equipment, smart sweeping robots, smart window cleaning robots, smart mopping robots, smart air purification equipment, smart steamers, smart microwave ovens, smart kitchen treasures, smart purifiers, smart water dispensers, smart door locks, etc.

[0029] In this embodiment, a link data writing method is provided, which is applied to the above module. Figure 2 : is a flowchart of a method for writing link data according to an embodiment of the present application, and the process includes the following steps:

[0030] Step S202, when the target object performs a target operation on the target page, determining the target points corresponding to the target operations respectively;

[0031] The target operation may be any operation of the target object on the target page, such as clicking, scrolling, zooming in and out, deleting, purchasing or placing an order, leaving the page, and the like.

[0032] Step S204, determining a first attribute value corresponding to the target point, and determining a link identifier corresponding to the target point, wherein the first attribute value is used to indicate an attribute value of a point attribute corresponding to the target point, and the link identifier is used to indicate a unique identifier of a link corresponding to the target point;

[0033] The attributes may be location, longitude, latitude, city, temperature, etc., and the attribute value is the specific data corresponding to each attribute.

[0034] Step S206: calling a dot interface, and writing the first attribute value into the link data corresponding to the link identifier through the dot interface.

[0035] Through the above steps, when the target object performs a target operation on the target page, the target points corresponding to the target operation are determined; the first attribute value corresponding to the target point is determined, and the link identifier corresponding to the target point is determined; the dotting interface is called, and the first attribute value is written into the link data corresponding to the link identifier through the dotting interface. That is to say, after the embodiment of the present application determines the target points corresponding to the target operation, the link identifier corresponding to the target point is determined, and the first attribute value corresponding to the target point is determined; the link data corresponding to the first attribute value is determined according to the link identifier, and the first attribute value is written into the link data. Through the embodiment of the present application, the problem that the user behavior dotting in the related art will only record all the user's behaviors discretely, resulting in the statistical data can only see the user's behavior trend, is solved. The embodiment of the present application writes discrete user behaviors (i.e., the target points of the present application) into the link data to form a link, and then when counting the user behavior data, the link data corresponding to the same link identifier can be counted, and the operation details under the user's behavior link can be clearly determined.

[0036] Optionally, the above step S202 of determining the link identifier corresponding to the target point includes: determining whether the target point is the starting point of the link; when it is determined that the target point is the starting point of the link, creating the link identifier based on the target point; when it is determined that the target point is not the starting point of the link, querying the link identifier based on the target point.

[0037] It is understandable that if you want to determine the link identifier corresponding to the target point, you need to determine whether the target point is the starting point of the link. If the target point is determined to be the starting point of the link, it means that the target point cannot be added to any existing link, that is, a new link is generated with the target point as the starting point. At this time, it is necessary to create a link identifier based on the target point. If it is determined that the target point is not the starting point of the link, it means that the target point can be added to one of the existing links, and the link identifier corresponding to the existing link can be obtained. The obtained link identifier is the link identifier corresponding to the target point.

[0038] Specific:

[0039] (1) Creating the link identifier based on the target point, including: determining a target object identifier of the target object, and determining a timestamp corresponding to the target point; inputting the target object identifier and the timestamp into an encryption algorithm to generate a key corresponding to the target point; and determining the key as the link identifier.

[0040] It can be seen from the above technical solution that when the target point is determined to be the starting point of the link, it is necessary to determine the target object identifier of the target object and the timestamp corresponding to the target time point, and input the target object identifier and timestamp into a message digest algorithm (Message Digest Algorithm 5, abbreviated as MD5, that is, the encryption algorithm of this application) to generate a key, which can be used as a link identifier.

[0041] (2) querying the link identifier based on the target point, including: determining the point identifier corresponding to the target point; determining the link corresponding to the target point according to the point identifier; inputting the point identifier into a query statement to query the link identifier corresponding to the target point through the query statement.

[0042] When it is determined that the target point is not the starting point of the link, the point identifier of the target point can be determined. Then, the point identifier is used as a query condition to obtain the link identifier corresponding to the target point through the interface or query statement of the link tracking system.

[0043] Optionally, the above-mentioned step S204 of determining the first attribute value corresponding to the target point includes: determining the point attribute corresponding to the target point, and determining whether the attribute value corresponding to the point attribute exists in the target cache; when it is determined that the attribute value corresponding to the point attribute exists in the target cache, determining the first attribute value according to the attribute value corresponding to the point attribute; when it is determined that the attribute value corresponding to the point attribute does not exist in the target cache, generating a first attribute value corresponding to the point attribute, and adding the first attribute value to the target cache.

[0044] It can be understood that the first attribute value can be determined through the attribute cache (i.e., the target cache of the present application), specifically: determine the point attribute corresponding to the target point, and determine whether there is an attribute value corresponding to the point attribute in the attribute cache; if there is an attribute value corresponding to the point attribute in the attribute cache, determine the first attribute value in the attribute cache; if there is no attribute value corresponding to the point attribute in the attribute cache, automatically generate an attribute value corresponding to the point attribute, determine the automatically generated attribute value as the first attribute value, and add the first attribute value to the attribute cache.

[0045] Optionally, after calling the dot-marking interface in the above step S206 to write the target point and the first attribute value into the link data corresponding to the link identifier through the dot-marking interface according to the link identifier, the method further includes: generating an attribute value statistics table according to multiple attribute values ​​in the target cache and each point attribute corresponding to each attribute value; upon receiving a query request sent by the target object, determining the target point attribute corresponding to the query request; and screening in the attribute value statistics table according to the target point attribute to determine the target attribute value corresponding to the target point attribute.

[0046] It is understandable that after writing the first attribute value into the link data, an attribute value statistical table can be generated according to each attribute value and each point attribute, and then each point attribute can be used as a screening condition to screen data in the attribute value statistical table.

[0047] Optionally, the calling of the dot-marking interface in the above-mentioned step S206, and writing the first attribute value into the link data corresponding to the link identifier through the dot-marking interface, includes: determining whether there is link data having a corresponding relationship with the link identifier; when it is determined that there is link data having a corresponding relationship with the link identifier, adding the target point to the link corresponding to the link identifier through the dot-marking interface; and writing the first attribute value into the link data to update the link data; when it is determined that there is no link data having a corresponding relationship with the link identifier, generating a link corresponding to the link identifier according to the target point through the dot-marking interface; and generating the link data according to the first attribute value, and establishing a correspondence between the link identifier and the link data.

[0048] It can be understood that, when the target point is the starting point of the link, it can be determined that there is no link data corresponding to the link identifier. At this time, the link corresponding to the link identifier can be generated according to the target point through the dot interface, and the link data can be generated according to the first attribute value. At the same time, it is necessary to establish a corresponding relationship between the link identifier and the link data. When the target point is not the starting point of the link, it can be determined that there is link data corresponding to the link identifier. At this time, the target point can be directly added to the link corresponding to the link identifier, and the first attribute value can be written into the link data.

[0049] In order to better understand the process of the above-mentioned link data writing method, the implementation method flow of the above-mentioned link data writing is described below in combination with an optional embodiment, but it is not used to limit the technical solution of the embodiment of the present application.

[0050] At present, all companies that provide management solutions will provide their own SDKs for user convenience, but none of them have the concept of a link, that is, all user behavior points are discrete, resulting in statistical data that can only see trends, and cannot connect a series of behaviors of a certain user.

[0051] For example, a certain software needs to analyze the conversion rate of pages 1, 2, and 3. With the common dotting scheme, PageAppear (page display) can be dotted when entering the three pages. Then the overall conversion rate can be determined by counting the number of users of PageAppear1 (page display 1), PageAppear2 (page display 2), and PageAppear3 (page display 3). However, if you want to see the dotting of PageAppear of a certain user, as well as which other pages this user has entered, from which pages he returned to the current page, what is the reason for not converting in the end, how to calculate the situation where a user's operation in the morning has been converted, but an operation in the afternoon has not been converted, etc., these contents cannot be counted by the methods in the relevant technology. In other words, ordinary user behavior dotting is calculated based on "times" and "users". In the relevant technology, user behavior dotting will only discretely record all user behaviors, resulting in the problem that the statistical data can only see the user's behavior trend.

[0052] Since the best way to analyze conversion rates (not necessarily conversion rates between pages) is to connect the points on the model through links, the points are not independent, but like pearls on a necklace. There is a sequence relationship between the points. The purpose of the optional embodiment of the present application is to define a rope for stringing pearls. That is, the optional embodiment of the present application provides a chain-like method for tracking user behavior, adding a link dimension between the times and the users, that is, a combination of points for a certain continuous operation of a certain user.

[0053] Specifically, Figure 3 is a timing diagram of a chain-type tracking user behavior method according to an optional embodiment of the present application, such as Figure 3 As shown, the timing diagram includes: users, APP locations, APP attribute cache and third-party SDKs.

[0054] Among them, the user can enter the page or click the button to generate an APP point, and then determine whether it is the first point. If it is the first point, it is necessary to create a link ID, and then obtain the attribute value corresponding to the point attribute in the APP attribute cache; the APP attribute cache returns the attribute value of the APP point; if the point attribute value is not obtained in the APP attribute cache, it is necessary to obtain the value by itself and save the attribute value to the APP attribute cache. Furthermore, the third-party SDK point-marking interface can be called for further operations.

[0055] Figure 4 is a flow chart of a method for chain tracking user behavior according to an optional embodiment of the present application, such as Figure 4 As shown:

[0056] Step S401, user enters the page. The user (i.e., the target object of this application) enters the page (i.e., the target page of this application) or clicks a button on the page (i.e., the target operation of this application), and generates an APP point (application point, i.e., the target point of this application).

[0057] Step S402, determine whether it is the starting point of the link.

[0058] Determine whether the APP point is the first point (ie, the starting point of the link). If it is the first point, execute step S403. If it is not the first point, there is no need to create a link ID, and the link ID can be directly obtained.

[0059] Step S403, create a link ID (ie, the link identifier of this application).

[0060] The specific method for creating a link ID is: input the user ID (ie, the target object identifier of this application) + the current timestamp into MD5 for encryption to generate a key, and the generated key is the link ID.

[0061] The link ID of the optional embodiment of the present application is added to the user behavior tracking, which will generate a new strategy for collecting user behavior data, effectively connect the point and the user, and make the point have the characteristics of a life cycle.

[0062] Step S404, read the point attributes. Determine the point attributes of the APP point, that is, Figure 4 In: attribute key1, attribute key2, attribute key3.

[0063] Step S405, determining whether there is an attribute value (ie, attribute value) corresponding to the point attribute in the APP attribute cache.

[0064] APP attribute cache, which is the target cache of this application;

[0065] The attribute value corresponding to the cache attribute is the first attribute value of this application.

[0066] The significance of APP attribute cache is that when the third-party platform collects statistics and uses conditions to filter data, each point needs to have the same attributes, so that the calculated data is more accurate. In addition, APP attribute cache can avoid the interference of point logic on business logic and isolate the data required for point and business data.

[0067] If it exists, execute step S406;

[0068] If not present, execute step S407.

[0069] Step S406, assigning values ​​to APP points, that is, assigning the attribute values ​​in the APP attribute cache to the APP points.

[0070] Step S407, automatically generate attribute values ​​and store the attribute values ​​in the APP attribute cache.

[0071] Step S408, calling the third-party SDK interface (ie, the management interface of this application).

[0072] An optional embodiment of the present application adopts a link system. By collecting data with the same link ID, the operation details of the user under multiple links can be clearly seen.

[0073] Through the description of the above implementation methods, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes a number of instructions for a terminal device (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods of each embodiment of the present application.

[0074] Figure 5 is a structural block diagram of a link data writing device according to an embodiment of the present application; Figure 5 As shown, including:

[0075] A first determination module 52 is used to determine target points corresponding to the target operations respectively when the target object performs a target operation on the target page;

[0076] The target operation may be any operation of the target object on the target page, such as clicking, scrolling, zooming in and out, deleting, purchasing or placing an order, leaving the page, and the like.

[0077] A second determination module 54 is used to determine a first attribute value corresponding to the target point, and to determine a link identifier corresponding to the target point, wherein the first attribute value is used to indicate an attribute value of a point attribute corresponding to the target point, and the link identifier is used to indicate a unique identifier of a link corresponding to the target point;

[0078] The attributes may be location, longitude, latitude, city, temperature, etc., and the attribute value is the specific data corresponding to each attribute.

[0079] The writing module 56 is used to call the dot interface and write the first attribute value into the link data corresponding to the link identifier through the dot interface.

[0080] Through the above-mentioned device, when the target object performs a target operation on the target page, the target points corresponding to the target operation are determined; the first attribute value corresponding to the target point is determined, and the link identifier corresponding to the target point is determined; the dotting interface is called, and the first attribute value is written into the link data corresponding to the link identifier through the dotting interface. That is to say, after the embodiment of the present application determines the target points corresponding to the target operation, the link identifier corresponding to the target point is determined, and the first attribute value corresponding to the target point is determined; the link data corresponding to the first attribute value is determined according to the link identifier, and the first attribute value is written into the link data. Through the embodiment of the present application, the problem that the user behavior dotting in the related art will only record all the user's behaviors discretely, resulting in the statistical data can only see the user's behavior trend, is solved. The embodiment of the present application writes discrete user behaviors (i.e., the target points of the present application) into the link data to form a link, and then when counting the user behavior data, the link data corresponding to the same link identifier can be counted, and the operation details under the user's behavior link can be clearly determined.

[0081] In an exemplary embodiment, the first determination module 52 is further used to determine whether the target point is the starting point of the link; when it is determined that the target point is the starting point of the link, the link identifier is created based on the target point; when it is determined that the target point is not the starting point of the link, the link identifier is queried based on the target point.

[0082] It is understandable that if you want to determine the link identifier corresponding to the target point, you need to determine whether the target point is the starting point of the link. If the target point is determined to be the starting point of the link, it means that the target point cannot be added to any existing link, that is, a new link is generated with the target point as the starting point. At this time, it is necessary to create a link identifier based on the target point. If it is determined that the target point is not the starting point of the link, it means that the target point can be added to one of the existing links, and the link identifier corresponding to the existing link can be obtained. The obtained link identifier is the link identifier corresponding to the target point.

[0083] In an exemplary embodiment, the first determination module 52 is also used to determine the target object identifier of the target object, and determine the timestamp corresponding to the target point; input the target object identifier and the timestamp into the encryption algorithm to generate a key corresponding to the target point; and determine the key as the link identifier.

[0084] It can be seen from the above technical solution that when the target point is determined to be the starting point of the link, it is necessary to determine the target object identifier of the target object and the timestamp corresponding to the target time point, and input the target object identifier and timestamp into a message digest algorithm (Message Digest Algorithm 5, abbreviated as MD5, that is, the encryption algorithm of this application) to generate a key, which can be used as a link identifier.

[0085] In an exemplary embodiment, the first determination module 52 is further used to determine the point identifier corresponding to the target point; determine the link corresponding to the target point according to the point identifier; and input the point identifier into a query statement to query the link identifier corresponding to the target point through the query statement.

[0086] When it is determined that the target point is not the starting point of the link, the point identifier of the target point can be determined. Then, the point identifier is used as a query condition to obtain the link identifier corresponding to the target point through the interface or query statement of the link tracking system.

[0087] In an exemplary embodiment, the second determination module 54 is further used to determine the point attribute corresponding to the target point, and determine whether the attribute value corresponding to the point attribute exists in the target cache; when it is determined that the attribute value corresponding to the point attribute exists in the target cache, determine the first attribute value according to the attribute value corresponding to the point attribute; when it is determined that the attribute value corresponding to the point attribute does not exist in the target cache, generate a first attribute value corresponding to the point attribute, and add the first attribute value to the target cache.

[0088] It can be understood that the first attribute value can be determined through the attribute cache (i.e., the target cache of the present application), specifically: determine the point attribute corresponding to the target point, and determine whether there is an attribute value corresponding to the point attribute in the attribute cache; if there is an attribute value corresponding to the point attribute in the attribute cache, determine the first attribute value in the attribute cache; if there is no attribute value corresponding to the point attribute in the attribute cache, automatically generate an attribute value corresponding to the point attribute, determine the automatically generated attribute value as the first attribute value, and add the first attribute value to the attribute cache.

[0089] In an exemplary embodiment, the writing module 56 is further used to generate an attribute value statistics table based on multiple attribute values ​​in the target cache and each point attribute corresponding to each attribute value; when a query request sent by the target object is received, determine the target point attribute corresponding to the query request; and filter the attribute value statistics table according to the target point attribute to determine the target attribute value corresponding to the target point attribute.

[0090] It is understandable that after writing the first attribute value into the link data, an attribute value statistical table can be generated according to each attribute value and each point attribute, and then each point attribute can be used as a screening condition to screen data in the attribute value statistical table.

[0091] In an exemplary embodiment, the writing module 56 is also used to determine whether there is link data having a corresponding relationship with the link identifier; when it is determined that there is link data having a corresponding relationship with the link identifier, the target point is added to the link corresponding to the link identifier through the dot-marking interface; and the first attribute value is written into the link data to update the link data; when it is determined that there is no link data having a corresponding relationship with the link identifier, the link corresponding to the link identifier is generated according to the target point through the dot-marking interface; and the link data is generated according to the first attribute value, and a correspondence between the link identifier and the link data is established.

[0092] It can be understood that, when the target point is the starting point of the link, it can be determined that there is no link data corresponding to the link identifier. At this time, the link corresponding to the link identifier can be generated according to the target point through the dot interface, and the link data can be generated according to the first attribute value. At the same time, it is necessary to establish a corresponding relationship between the link identifier and the link data. When the target point is not the starting point of the link, it can be determined that there is link data corresponding to the link identifier. At this time, the target point can be directly added to the link corresponding to the link identifier, and the first attribute value can be written into the link data.

[0093] An embodiment of the present application further provides a storage medium, which includes a stored program, wherein the program executes any of the above methods when it is run.

[0094] Optionally, in this embodiment, the storage medium may be configured to store program codes for executing the following steps:

[0095] S1, when a target object performs a target operation on a target page, determining target points corresponding to the target operations respectively;

[0096] S2, determining a first attribute value corresponding to the target point, and determining a link identifier corresponding to the target point, wherein the first attribute value is used to indicate an attribute value of a point attribute corresponding to the target point, and the link identifier is used to indicate a unique identifier of a link corresponding to the target point;

[0097] S3, calling a dot interface, and writing the first attribute value into the link data corresponding to the link identifier through the dot interface.

[0098] An embodiment of the present application further provides an electronic device, including a memory and a processor, wherein a computer program is stored in the memory, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.

[0099] Optionally, the electronic device may further include a transmission device and an input / output device, wherein the transmission device is connected to the processor, and the input / output device is connected to the processor.

[0100] Optionally, in this embodiment, the processor may be configured to perform the following steps through a computer program:

[0101] S1, when a target object performs a target operation on a target page, determining target points corresponding to the target operations respectively;

[0102] S2, determining a first attribute value corresponding to the target point, and determining a link identifier corresponding to the target point, wherein the first attribute value is used to indicate an attribute value of a point attribute corresponding to the target point, and the link identifier is used to indicate a unique identifier of a link corresponding to the target point;

[0103] S3, calling a dot interface, and writing the first attribute value into the link data corresponding to the link identifier through the dot interface.

[0104] An embodiment of the present application further provides a computer program product, including a computer program, which is used by a processor to execute the steps in any of the above method embodiments.

[0105] Optionally, in this embodiment, the computer program product may be executed by a processor to perform the following steps:

[0106] S1, when a target object performs a target operation on a target page, determining target points corresponding to the target operations respectively;

[0107] S2, determining a first attribute value corresponding to the target point, and determining a link identifier corresponding to the target point, wherein the first attribute value is used to indicate an attribute value of a point attribute corresponding to the target point, and the link identifier is used to indicate a unique identifier of a link corresponding to the target point;

[0108] S3, calling a dot interface, and writing the first attribute value into the link data corresponding to the link identifier through the dot interface.

[0109] Optionally, in this embodiment, the above-mentioned storage medium may include but is not limited to: a USB flash drive, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk or an optical disk, and other media that can store program codes.

[0110] Optionally, the specific examples in this embodiment may refer to the examples described in the above embodiments and optional implementation modes, and this embodiment will not be described in detail here.

[0111] Obviously, those skilled in the art should understand that the above modules or steps of the present application can be implemented by a general computing device, they can be concentrated on a single computing device, or distributed on a network composed of multiple computing devices, and optionally, they can be implemented by a program code executable by a computing device, so that they can be stored in a storage device and executed by the computing device, and in some cases, the steps shown or described can be executed in a different order from that herein, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. Thus, the present application is not limited to any specific combination of hardware and software.

[0112] The above is only a preferred implementation of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present application. These improvements and modifications should also be regarded as the scope of protection of the present application.

Claims

1. A method for writing link data, characterized in that: include: When the target object performs a target operation on the target page, determining target points corresponding to the target operations respectively; Determine a first attribute value corresponding to the target point, and determine a link identifier corresponding to the target point, wherein the first attribute value is used to indicate an attribute value of a point attribute corresponding to the target point, and the link identifier is used to indicate a unique identifier of a link corresponding to the target point; The dotting interface is called, and the first attribute value is written into the link data corresponding to the link identifier through the dotting interface.

2. The link data writing method according to claim 1, characterized in that: Determining the target points corresponding to the target operations respectively includes: Determine whether the target point is the starting point of the link; In the case where the target point is determined to be the starting point of the link, creating the link identifier based on the target point; When it is determined that the target point is not the starting point of the link, the link identifier is queried based on the target point.

3. The link data writing method according to claim 2, characterized in that: Creating the link identifier based on the target point includes: Determine the target object identifier of the target object, and determine the timestamp corresponding to the target point; input the target object identifier and the timestamp into an encryption algorithm to generate a key corresponding to the target point; The key is determined as the link identifier.

4. The method for writing link data according to claim 2, characterized in that: Querying the link identifier based on the target point includes: Determine a point identifier corresponding to the target point; Determine the link corresponding to the target point according to the point identifier; The point identifier is input into a query statement to query the link identifier corresponding to the target point through the query statement.

5. The link data writing method according to claim 1, characterized in that: Determining a first attribute value corresponding to the target point includes: Determine a point attribute corresponding to the target point, and determine whether an attribute value corresponding to the point attribute exists in the target cache; In the case where it is determined that the attribute value corresponding to the point attribute exists in the target cache, determining the first attribute value according to the attribute value corresponding to the point attribute; When it is determined that the attribute value corresponding to the point attribute does not exist in the target cache, a first attribute value corresponding to the point attribute is generated, and the first attribute value is added to the target cache.

6. The link data writing method according to claim 5, characterized in that: After calling the dotting interface and writing the first attribute value into the link data corresponding to the link identifier through the dotting interface, the method further includes: Generate an attribute value statistics table according to the multiple attribute values ​​in the target cache and the attribute of each point corresponding to each attribute value; Upon receiving a query request sent by the target object, determining a target point attribute corresponding to the query request; The attribute value statistical table is screened according to the target point attribute to determine the target attribute value corresponding to the target point attribute.

7. The link data writing method according to claim 1, characterized in that: Calling a dot interface, and writing the first attribute value into the link data corresponding to the link identifier through the dot interface, includes: Determining whether there is link data having a corresponding relationship with the link identifier; When it is determined that there is link data corresponding to the link identifier, the target point is added to the link corresponding to the link identifier through the dot-marking interface; and the first attribute value is written into the link data to update the link data; When it is determined that there is no link data corresponding to the link identifier, a link corresponding to the link identifier is generated according to the target point through the dot-marking interface; and the link data is generated according to the first attribute value, and a corresponding relationship between the link identifier and the link data is established.

8. A link data writing device, characterized in that: include: A first determination module is used to determine target points corresponding to the target operations respectively when the target object performs a target operation on the target page; A second determination module is used to determine a first attribute value corresponding to the target point, and to determine a link identifier corresponding to the target point, wherein the first attribute value is used to indicate an attribute value of a point attribute corresponding to the target point, and the link identifier is used to indicate a unique identifier of a link corresponding to the target point; The writing module is used to call the dot interface and write the first attribute value into the link data corresponding to the link identifier through the dot interface.

9. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a stored program, wherein the program executes the method described in any one of claims 1 to 7 when executed.

10. An electronic device comprising a memory and a processor, characterized in that: A computer program is stored in the memory, and the processor is configured to execute the method according to any one of claims 1 to 7 through the computer program.

Citation Information

Patent Citations

  • Method and device for recording user behavior link

    CN110781061A

  • Data writing method and device

    CN112684985A

  • Link tracking method and device, medium and computing equipment

    CN113094166A

  • Buried point data acquisition method and device, storage medium and electronic equipment

    CN114741270A

  • Data acquisition method, device and equipment and readable storage medium

    CN114745295A