Behavior data collection method, device, electronic device and storage medium

By obtaining page and component names in the mini program, and combining cascade relationships and mark information to generate event behavior identifiers, the problem of poor behavioral data collection accuracy in the mini program is solved, and high-accuracy query of behavioral data is achieved.

CN114690994BActive Publication Date: 2024-09-17TENCENT TECHNOLOGY (SHENZHEN) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210425297.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-04-21
Publication Date
2024-09-17
Estimated Expiration
2042-04-21

AI Technical Summary

Technical Problem

In mini programs, the accuracy of behavioral data collection for user interaction events is low. This is mainly due to the duplication of behavioral data identifiers caused by interaction events of components at different levels within the same page, resulting in poor query accuracy.

Method used

By obtaining the page name of the display page and the component name of the associated component, a unique event behavior identifier is generated, and combined with the cascading relationship and tag information of the component to ensure accurate query of behavioral data.

Benefits of technology

It improves the query accuracy of behavioral data and reduces the difficulty of differentiation, making the behavioral data queried based on event behavior identifiers more accurate.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114690994B
    Figure CN114690994B
Patent Text Reader

Abstract

The present application discloses a method, device, electronic device and storage medium for collecting behavior data. The method includes: in response to an interactive event for a display page, obtaining the page name of the display page and the component name of the associated component corresponding to the interactive event; generating an event behavior identifier according to the component name of the associated component and the page name; and obtaining the behavior data corresponding to the interactive event according to the event behavior identifier, the component name of the associated component and the page name. According to the method of the present application, an event behavior identifier is generated by the component name of the associated component corresponding to the interactive event and the page name of the display page. The event behavior identifier is unique, so that different behavior data can be accurately queried through the corresponding event behavior identifier, thereby making the accuracy of the behavior data queried according to the event behavior identifier higher.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of Internet information processing technology, and more specifically, to a method, device, electronic device and storage medium for collecting behavior data. Background Art

[0002] With the development of the Internet, more and more application software will integrate mini-programs, which are a form of application that does not require installation and can be used immediately after clicking. Usually, a mini-program includes at least one display page, and users can interact with the display page to obtain the desired data, products or files, etc.

[0003] In order to collect user behavior data for the Mini Program, when the user interacts with the Mini Program's display page, the Mini Program will determine the page path, event type, and event processing function of the corresponding interaction event, and then generate behavior data and behavior data identifiers for the corresponding interaction event based on the determined page path, event type, and event processing function. However, when querying the corresponding behavior data based on the behavior data identifier, the accuracy of the queried behavior data is low. Summary of the invention

[0004] In view of this, the embodiments of the present application propose a method, device, electronic device and storage medium for collecting behavior data.

[0005] In a first aspect, an embodiment of the present application provides a method for collecting behavior data, the method comprising: in response to an interaction event for a display page, obtaining the page name of the display page and the component name of an associated component corresponding to the interaction event, wherein the display page includes components of different levels, and components of different levels have a cascading relationship, and the associated components include components corresponding to the interaction event and components having a cascading relationship with the components corresponding to the interaction event; generating an event behavior identifier based on the component name of the associated component and the page name; and obtaining behavior data corresponding to the interaction event based on the event behavior identifier, the component name of the associated component and the page name.

[0006] In a second aspect, an embodiment of the present application provides a device for collecting behavior data, the device comprising: an acquisition module, for acquiring, in response to an interaction event for a display page, a page name of the display page and a component name of an associated component corresponding to the interaction event, wherein the display page comprises components of different levels, and components of different levels have a cascading relationship, and the associated components comprise components corresponding to the interaction event and components having a cascading relationship with the components corresponding to the interaction event; an identification generation module, for generating an event behavior identification according to the component name of the associated component and the page name; a behavior data acquisition module, for obtaining behavior data corresponding to the interaction event according to the event behavior identification, the component name of the associated component and the page name.

[0007] Optionally, when the display page includes components of the same level and type, the device also includes an identification acquisition module, which is used to determine the component marking information corresponding to the associated component in response to the interactive event for the display page, and the component marking information is used to identify the components of the associated components that are of the same level and type; the identification generation module is also used to generate an event behavior identifier based on the component name of the associated component, the page name and the component marking information; the behavior data acquisition module is also used to obtain behavior data corresponding to the interactive event based on the event behavior identifier, the component name of the associated component, the page name and the component marking information.

[0008] Optionally, the device also includes an event-related information acquisition module, which is used to determine the event type and event processing function corresponding to the interactive event in response to the interactive event for the display page; the identifier generation module is also used to generate an event behavior identifier based on the component name of the associated component, the page name, the event type and the event processing function; the behavior data acquisition module is also used to obtain behavior data corresponding to the interactive event based on the event behavior identifier, the component name of the associated component, the page name, the event processing function and the event type.

[0009] Optionally, when the display page includes components of the same level and type, the device also includes a multi-information acquisition module, which is used to determine, in response to an interactive event for the display page, component tag information corresponding to the associated component, an event type corresponding to the interactive event, and an event processing function corresponding to the interactive event, wherein the component tag information is used to identify components of the associated components that are of the same level and type; the identifier generation module is further used to generate an event behavior identifier based on the component name of the associated component, the page name, the component tag information, the event type, and the event processing function; the behavior data acquisition module is further used to obtain behavior data corresponding to the interactive event based on the event behavior identifier, the component name of the associated component, the page name, the component tag information, the event type, and the event processing function.

[0010] Optionally, the identifier generation module is further used to generate an event behavior identifier through a data summary algorithm.

[0011] Optionally, when the display page is in the first mode, the device also includes a first sending module, which is used to display a display control for displaying the behavior data, and the display control includes a confirmation control; in response to a confirmation operation on the confirmation control, the event behavior identifier is sent to the collection center.

[0012] Optionally, when the display page is in the second mode, the device further includes a second sending module, configured to send the behavior data to a collection center, so that the collection center stores the behavior data.

[0013] Optionally, the second sending module is also used to send the behavior data to the collection center when the event behavior identifier hits the event behavior identifier in a preset whitelist, so that the collection center stores the behavior data, wherein the preset whitelist includes at least one preset event behavior identifier, and the at least one event behavior identifier is obtained based on a test interaction event for the display page when the display page is in the first mode.

[0014] Optionally, the device also includes a whitelist acquisition module, which is used to determine the page name and the component name of the test-associated component corresponding to the test interaction event in response to a test interaction event for the display page when the display page is in the second mode, wherein the test-associated component includes a component corresponding to the test interaction event and a component having a cascade relationship with the component corresponding to the test interaction event; generate a test event behavior identifier according to the component name of the test-associated component and the page name; send the test event behavior identifier to the collection center so that the preset whitelist is obtained according to the test event behavior identifier in the data collection; and receive the preset whitelist fed back by the collection center.

[0015] Optionally, the device also includes a third sending module, which is used to send the behavior data to the collection center so that the collection center displays the behavior data.

[0016] Optionally, the device also includes a monitoring module, which is used to determine all interaction events corresponding to all components in the display page; and monitor all interaction events according to a software development kit; the acquisition module is also used to, when an interaction event sent to the display page is monitored through the software development kit, obtain the page name of the display page and the component name of the associated component corresponding to the interaction event in response to the interaction event to the display page.

[0017] In a third aspect, an embodiment of the present application provides an electronic device, including a processor and a memory; one or more programs are stored in the memory and configured to be executed by the processor to implement the above method.

[0018] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, in which a program code is stored, wherein the above method is executed when the program code is executed by a processor.

[0019] In a fifth aspect, an embodiment of the present application provides a computer program product or a computer program, the computer program product or the computer program including computer instructions, the computer instructions being stored in a computer-readable storage medium. A processor of an electronic device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the electronic device performs the above method.

[0020] The embodiments of the present application provide a method, device, electronic device and storage medium for collecting behavior data. An event behavior identifier is generated by the component name of the associated component of the corresponding interactive event and the page name of the display page. The event behavior identifier is unique, so that different behavior data can be accurately queried through the corresponding event behavior identifier, thereby making the accuracy of the behavior data queried according to the event behavior identifier higher. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.

[0022] Figure 1 is a schematic diagram of an application scenario shown according to an embodiment of the present application;

[0023] Figure 2 A flow chart showing a method for collecting behavior data proposed in one embodiment of the present application is shown;

[0024] Figure 3 A schematic diagram of a display page in an embodiment of the present application is shown;

[0025] Figure 4 A flow chart showing a method for collecting behavior data proposed in another embodiment of the present application is shown;

[0026] Figure 5 A schematic diagram showing another display page in an embodiment of the present application is shown;

[0027] Figure 6 A flow chart showing a method for collecting behavior data proposed in another embodiment of the present application is shown;

[0028] Figure 7 A flow chart showing a method for collecting behavior data proposed in another embodiment of the present application is shown;

[0029] Figure 8 A flow chart showing a method for collecting behavior data proposed in another embodiment of the present application is shown;

[0030] Fig. 9 A schematic diagram showing another display page in an embodiment of the present application is shown;

[0031] Fig.10 A flow chart showing a method for collecting behavior data proposed in another embodiment of the present application is shown;

[0032] Fig.11A flowchart of a method for obtaining a preset whitelist in an embodiment of the present application is shown;

[0033] Fig.12 A flowchart of a method for collecting behavior data provided by another embodiment of the present application is shown;

[0034] Fig.13 A block diagram of a behavior data collection device proposed in one embodiment of the present application is shown;

[0035] Fig.14 A structural block diagram of an electronic device for executing a method for collecting behavior data according to an embodiment of the present application is shown. DETAILED DESCRIPTION

[0036] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions 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. According to the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0037] In the following description, the terms "first\second" involved are merely used to distinguish similar objects and do not represent a specific ordering of the objects. It can be understood that "first\second" can be interchanged with a specific order or sequence where permitted, so that the embodiments of the present application described herein can be implemented in an order other than that illustrated or described herein.

[0038] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein are only for the purpose of describing the embodiments of this application and are not intended to limit this application.

[0039] It should be noted that the "multiple" mentioned in this article refers to two or more. "And / or" describes the association relationship of the associated objects, indicating that there can be three relationships. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the associated objects before and after are in an "or" relationship.

[0040] Figure 1 Schematic diagram of an application scenario according to an embodiment of the present application. Figure 1As shown, the application scenario includes a terminal 101 and a server 102, and the terminal 101 and the server 102 are connected through a wired network or a wireless network. The terminal 101 can be a smart phone, a tablet computer, a laptop computer, a desktop computer, a smart home appliance, a vehicle terminal, an aircraft, a wearable device terminal, a virtual reality device, and other terminal devices that can display pages, or run other applications that can call page display applications (such as instant messaging applications, shopping applications, search applications, game applications, forum applications, map traffic applications, etc.).

[0041] The server 102 may be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN (Content Delivery Network), and big data and artificial intelligence platforms. The server 102 may be used to provide services for applications running on the terminal 101.

[0042] Among them, the terminal 101 can send the user's display requirements to the server 102, so that the server 102 can feedback the corresponding display page according to the user's display requirements, or the server 102 directly sends the display page to the terminal 101, or the server 102 sends a user-customized display page or a display page related to the user's interests according to the user information bound to the terminal 101.

[0043] The terminal 101 can collect behavior data on the page displayed by the terminal through the behavior data collection method, and send the collected behavior data to the server 102. The inventor has found through research that when components of different levels in the same page have the same type, when the same interaction event is sent to different components of different levels and the same type in the same page, the behavior data identifiers of the behavior data obtained according to the page path, event type and event processing function of the corresponding interaction event are the same, resulting in poor accuracy of the behavior data queried according to the behavior data identifier.

[0044] For example: the display page includes a product list component, the product list component includes a product component X1 and a product component X2, and both the product component X1 and the product component X2 have a shopping cart component. When a click operation is sent to the shopping cart components in the product component X1 and the product component X2 respectively, the determined page path is the display page, the event type is a click operation, and the event processing function is an add processing function. Since the event behavior identifier is obtained based on the page path, event type and event processing function, at this time, the behavior data identifier obtained according to the above-mentioned sending of click operations to the shopping cart components in the product component X1 and the product component X2 respectively is the same, resulting in different behavior data being queried when the behavior data is queried according to the same behavior data identifier, which in turn results in a lower accuracy rate of the queried behavior data.

[0045] Based on this, the inventor proposed the behavior data collection method, device, electronic device and storage medium provided in the present application, which obtains the page name of the display page and the component name of the associated component corresponding to the interaction event in response to the interaction event for the display page, wherein the display page includes components of different levels, and there is a cascade relationship between the components of different levels, and the associated components include components corresponding to the interaction event and components having a cascade relationship with the components corresponding to the interaction event; according to the component name of the associated component and the page name, an event behavior identifier is generated; according to the event behavior identifier, the component name of the associated component and the page name, the behavior data corresponding to the interaction event is obtained. The event behavior identifier is generated by the component name of the associated component corresponding to the interaction event and the page name of the display page, and the event behavior identifier is unique, so that different behavior data can be accurately queried through the corresponding event behavior identifier, so that the accuracy of the behavior data queried according to the event behavior identifier is high.

[0046] See also Figure 2 , Figure 2 A flowchart of a behavior data collection method proposed in one embodiment of the present application is shown. The method can be applied to an electronic device, which can be Figure 1 The terminal 101 in the method includes:

[0047] S110. In response to an interaction event for a display page, obtain the page name of the display page and the component name of an associated component corresponding to the interaction event, wherein the display page includes components of different levels, and components of different levels have a cascading relationship, and the associated components include components corresponding to the interaction event and components having a cascading relationship with components corresponding to the interaction event.

[0048] In the present application, the display page output by the electronic device may refer to a page in a mini-program, or may refer to a page of a web page, a page of an application, a page of a mini-program, a multimedia playback page, etc.

[0049] The display page may include multiple, and each display page may include multiple components. In the mini program, a component refers to a way of abstract encapsulation of functional modules provided by the mini program. A page is usually composed of multiple components. Multiple components may include components of different levels, and each level may also include multiple components, that is, there may be multiple components at the same level. The cascade relationship may refer to the association relationship between components of different levels, for example, a high-level component and an adjacent low-level component are associated parent-child components, wherein the high-level component is the parent component of the adjacent low-level component; the high-level component may also be referred to as a cascade parent component of the adjacent low-level component. In the present application, the nth level is higher than the (n+1)th level, and n is a positive integer.

[0050] Exemplarily, the display page may include first-level components, second-level components, ...; the first-level components have a cascading relationship with the second-level components, the first-level components are the cascading parent components of the second-level components, the second-level components have a cascading relationship with the third-level components, and the second-level components are the cascading parent components of the third-level components.

[0051] See also Figure 3 , Figure 3 A schematic diagram of a display page in an embodiment of the present application is shown. Figure 3 Two display pages are shown: Figure 3 (a) and Figure 3 (b),Each display page includes components at different levels.

[0052] exist Figure 3 In (a), the display page includes three levels of components, the product list component is the first level component, the product component is the second level component, and the shopping cart component is the third level component. The product list component has a cascading relationship with the product component, and the product list component is the cascading parent component of the product component. Similarly, the product component has a cascading relationship with the shopping cart component, and the product component is the cascading parent component of the shopping cart component.

[0053] exist Figure 3In (b), the display page includes three levels of components, the order list component is the first level component, the header component, the in-page component and the footer component are all the second level components, and the modification component (the component corresponding to the modification button), the copy component (the component corresponding to the copy button) and the repurchase component (the component corresponding to the repurchase button) are all the third level components. The order list component has a cascading relationship with the header component, the in-page component and the footer component, that is, the order list component is the cascading parent component of the header component, the in-page component and the footer component; similarly, the header component is the cascading parent component of the modification component, the in-page component is the cascading parent component of the copy component, and the footer component is the cascading parent component of the repurchase component and the cancel order component.

[0054] exist Figure 3 (a) and Figure 3 In (b), the display page may also include a Tab button. When the display page is displayed, the corresponding Tab button is filled with a color (e.g., green, yellow, etc.) or highlighted. For example, Figure 3 In (a), the display page is a product list page, and the corresponding product Tab button is filled with dark color; the user can also click the Tab button to switch to different display pages. For example, when the display page is Figure 3 When the user clicks on the display page shown in (a) Figure 3 (a) Click the Order Details Tab button to switch to the Order Details page. Figure 3 (b) shows the display page, at this time, the order details Tab button is filled.

[0055] In this embodiment, the interactive event may refer to operations such as clicking, long pressing an icon, selecting a drop-down box, and entering text. The interactive event may be sent by a user or automatically sent by the electronic device based on an automatic control script.

[0056] When the display page receives an interactive event, the corresponding event behavior is triggered. The event behavior refers to the operation output by the display page in response to the interactive event. Figure 3 The shopping cart component in the circle in (a) sends a click operation, and the corresponding event behavior display page adds the power bank to the shopping cart. Figure 3 The product component in (a) sends a long press operation, and the corresponding event behavior can be copying the image of the power bank. Figure 3 (b) The modification component in the header component is clicked, the header component outputs an edit box, and the address information continues to be entered into the edit box. The header component displays the entered address information in real time.

[0057] The component corresponding to the interaction event in the associated component refers to the component that the interaction event targets. For example, Figure 3When the shopping cart component in the circle in (a) sends a click operation, the component corresponding to the interaction event is the shopping cart component. For example, Figure 3 The product component in (a) sends a long press operation, and the component corresponding to the interaction event is the product component.

[0058] The component in the associated components that has a cascading relationship with the component corresponding to the interaction event refers to the cascading parent component of the component corresponding to the interaction event at each level. For example, the component corresponding to the interaction event is taken as the current component, the parent component of the current component is determined, the parent component of the parent component of the current component is determined... until the level of the determined parent component is the highest level, and the cascading parent components of each level are obtained as the component in the associated components that has a cascading relationship with the component corresponding to the interaction event.

[0059] For example, when targeting Figure 3 When the product list component in (a) sends a long press operation, the corresponding cascade parent component only includes the product list component. This is because the product list component is the first-level component. Figure 3 When the shopping cart component in (a) sends a click operation, the cascade parent components include the product component (the cascade parent component of the shopping cart) and the product list component (the cascade parent component of the shopping cart).

[0060] S120: Generate an event behavior identifier according to the component name of the associated component and the page name.

[0061] When the page name of the display page and the component names of the associated components are obtained, a unique event behavior identifier is obtained according to the page name of the display page and the component names of the associated components.

[0062] In some implementations, the event behavior identifier may be obtained by using a data digest algorithm (MD5) according to the page name of the display page and the component names of each associated component, or may be obtained by using a hash algorithm.

[0063] The page name of the display page and the component names of each associated component may be concatenated to obtain a concatenated result, and then the concatenated result may be processed to obtain an event behavior identifier. For example, a user sends an interactive event, and based on the interactive event, the page name of the display page is determined to be page a, and the associated components include component A, component B, the cascade parent component of component A, and component C, the cascade parent component of component B. They are concatenated to obtain the concatenated result: page name of page a + component name of component A + component name of component B + component name of component C, and the concatenated result is subjected to the MD5 algorithm to obtain a behavior event identifier.

[0064] S130. Obtain behavior data corresponding to the interaction event according to the event behavior identifier, the component name of the associated component, and the page name.

[0065] After obtaining the event behavior identifier, the event behavior identifier, the component name of the associated component, and the page name are aggregated to obtain behavior data corresponding to the interaction event. The behavior data corresponding to the interaction event may include the event behavior identifier, the component name of the associated component, and the page name.

[0066] In some implementations, the device type of the electronic device and the occurrence time of the interaction event may also be obtained, and the obtained device type and the occurrence time of the interaction event may be added to the behavior data.

[0067] After obtaining the behavior data corresponding to the multiple interaction events in response to the multiple interaction events, the data with the same event behavior identifier in the multiple behavior data can be divided into a group of data according to the event behavior identifier in the multiple behavior data, and multiple groups of data are obtained. The same behavior data (their occurrence time and device type may be different) corresponds to one group of data. After obtaining multiple groups of data, the amount of behavior data in each group of data can also be counted, and the number of each behavior data can be determined through the obtained data amount, so as to determine the behavior data with the highest or lowest occurrence frequency according to the determined number of each behavior data, and then determine the interaction event with the highest or lowest occurrence frequency.

[0068] In some implementations, the behavior data may be divided according to the occurrence time to obtain different data groups, and then the data in the data group may be divided again according to the event behavior identifier to obtain sub-data groups. In other implementations, the behavior data may be divided according to the device type to obtain different data groups, and then the data in the data group may be divided again according to the event behavior identifier to obtain sub-data groups.

[0069] This embodiment proposes a method for collecting behavior data, which obtains the page name of the display page and the component name of the associated component corresponding to the interaction event in response to an interaction event for a display page, wherein the display page includes components of different levels, and there is a cascading relationship between the components of different levels, and the associated components include components corresponding to the interaction event and components having a cascading relationship with the components corresponding to the interaction event; an event behavior identifier is generated according to the component name of the associated component and the page name; and behavior data corresponding to the interaction event is obtained according to the event behavior identifier, the component name of the associated component and the page name. An event behavior identifier is generated by the component name of the associated component corresponding to the interaction event and the page name of the display page, and the event behavior identifier is unique, so that different behavior data can be accurately queried through the corresponding event behavior identifier, thereby making the accuracy of the behavior data queried according to the event behavior identifier higher.

[0070] See also Figure 4 , Figure 4 A flowchart of a method for collecting behavior data proposed in another embodiment of the present application is shown. The method can be applied to an electronic device, which can be Figure 1 The terminal 101 in the method includes:

[0071] S210. In response to an interaction event for a display page, obtain the page name of the display page and the component name of an associated component corresponding to the interaction event, wherein the display page includes components of different levels, and components of different levels have a cascading relationship, and the associated components include components corresponding to the interaction event and components having a cascading relationship with the components corresponding to the interaction event.

[0072] Among them, the description of S210 is similar to that of S220, so I will not repeat it here.

[0073] S220. In response to an interactive event for a display page, determine component tag information corresponding to the associated component, wherein the component tag information is used to identify components of the same level and type in the associated components.

[0074] It should be noted that S210 and S220 may be executed simultaneously. When an interaction event is received, S210 and S220 may be executed simultaneously, or S210 may be executed first, or S220 may be executed first.

[0075] In this embodiment, the display page may include components of the same level and type, and the component names of the components of the same level and type are the same, for example, Figure 3 The component names of the four product components shown in (a) are all product components.

[0076] Therefore, in order to distinguish different components of the same level and type, when a display page includes components of the same level and type, the component tag information of the different components of the same level and type is needed to distinguish them. The component name or the component index (such as the serial number) can be used as the component tag information of the component.

[0077] like Figure 5 As shown in (a), the list component includes three different product list components of the same type: a product list component sorted by sales volume, a product list component sorted by default, and a product list component sorted by price, wherein: Figure 5 (a) is a product list component sorted by sales volume. Figure 5 (b) is a product list component in a default sort order. The three different product list components are of the same type, all of which are product list components, but belong to different components.

[0078] You can click the "Sales Volume" button to open the corresponding sales volume-sorted product list component, in which case "Sales Volume" will be filled with color or bold. You can click the "Default" button to open the corresponding default-sorted product list component, in which case "Default" will be filled with color or bold. You can click the "Price" button to open the corresponding price-sorted product list component, in which case "Price" will be filled with color or bold.

[0079] "Sales volume" can be used as the component tag information of the product list component sorted by sales volume, "default" can be used as the component tag information of the product list component sorted by default, and "price" can be used as the component tag information of the product list component sorted by price.

[0080] like Figure 5 As shown in (a), the product assembly includes at least four (due to limited space, Figure 5 Only four product components are fully displayed) of different components of the same type: a power bank product component, a glasses product component, a camera product component, and a landline product component, etc. The serial numbers of all the product components when arranged from left to right and from top to bottom can be used as component marking information of the product components. For example, serial number 1 is used as the component marking information of the power bank product component, serial number 2 is used as the component marking information of the glasses product component, and serial number 3 is used as the component marking information of the camera product component.

[0081] For all components in the associated components, the corresponding component tag information needs to be determined for components of the same level and type in each level. Figure 5The shopping cart component in the product component of the power bank in (a) is clicked, and the product list component in the product list component is determined to be the product component of the power bank. At this time, the component marking information of the determined associated component includes the component marking information corresponding to the product list component (default) and the component marking information corresponding to the product component (serial number 1).

[0082] S230: Generate an event behavior identifier according to the component name of the associated component, the page name, and the component tag information.

[0083] When the component name of the associated component, the page name and the component tag information are obtained, a unique event behavior identifier is obtained according to the component name of the associated component, the page name and the component tag information.

[0084] In some implementations, the event behavior identifier may be obtained according to the component name of the associated component, the page name, and the component tag information using a data digest algorithm (MD5), or may be obtained according to a hash algorithm.

[0085] The page name of the display page and the component names of each associated component may be concatenated to obtain a concatenated result, and then the concatenated result is processed to obtain an event behavior identifier.

[0086] S240. Obtain behavior data corresponding to the interaction event according to the event behavior identifier, the component name of the associated component, the page name, and the component tag information.

[0087] After obtaining the event behavior identifier, the event behavior identifier, the component name of the associated component, the page name, and the component tag information are summarized to obtain the behavior data corresponding to the interaction event. The behavior data corresponding to the interaction event may include the above-mentioned four groups of data: the event behavior identifier, the component name of the associated component, the page name, and the component tag information.

[0088] In this embodiment, components of the same level and type are marked by component marking information, so that when the display page includes components of the same level and type, the obtained event behavior identifier is still unique, thereby reducing the difficulty of distinguishing behavior data.

[0089] See also Figure 6 , Figure 6 A flowchart of a method for collecting behavior data proposed in another embodiment of the present application is shown. The method can be applied to an electronic device, which can be Figure 1 The terminal 101 in the method includes:

[0090] S310. In response to an interaction event for a display page, obtain the page name of the display page and the component name of an associated component corresponding to the interaction event, wherein the display page includes components of different levels, and components of different levels have a cascading relationship, and the associated components include components corresponding to the interaction event and components having a cascading relationship with components corresponding to the interaction event.

[0091] Among them, the description of S310 is similar to that of S220, so I will not repeat it here.

[0092] S320: In response to an interaction event on a display page, determine an event type and an event processing function corresponding to the interaction event.

[0093] It should be noted that S310 and S330 may be executed simultaneously. When an interaction event is received, S310 and S330 may be executed simultaneously, or S310 may be executed first, or S330 may be executed first.

[0094] The event type refers to the event type of the interactive event, which can be a click type, a long press icon type, a drop-down box selection type, and a text input type. The event processing function can refer to the function name of the processing function for the interactive event. For example, if the interactive event is a click Figure 3 In the shopping cart component in (a), the corresponding event behavior is adding products to the shopping cart, and the corresponding processing function is the add processing function; the user long presses Figure 3 For the product component in (a), the corresponding event behavior is copying the product image, and the corresponding processing function is the copy processing function; the interaction event is click Figure 3 The cancel order component in (b) has the corresponding event behavior of cancel order and the corresponding processing function of cancel order function.

[0095] S330: Generate an event behavior identifier according to the component name of the associated component, the page name, the event type, and the event processing function.

[0096] When the component name of the associated component, the page name, the event type and the event processing function are obtained, a unique event behavior identifier is obtained according to the component name of the associated component, the page name, the event type and the event processing function.

[0097] In some implementations, the event behavior identifier may be obtained according to the component name of the associated component, the page name, the event type, and the event processing function using a data digest algorithm (MD5), or may be obtained according to a hash algorithm.

[0098] The component name of the associated component, the page name, the event type and the event processing function may be concatenated to obtain a concatenated result, and then the concatenated result is processed to obtain an event behavior identifier.

[0099] S340. Obtain behavior data corresponding to the interactive event according to the event behavior identifier, the component name of the associated component, the page name, the event processing function, and the event type.

[0100] After obtaining the event behavior identifier, the event behavior identifier, the component name of the associated component, the page name, the event processing function, and the event type are summarized to obtain the behavior data corresponding to the interactive event. The behavior data corresponding to the interactive event may include five groups of data: the event behavior identifier, the component name of the associated component, the page name, the event processing function, and the event type.

[0101] In this embodiment, the event type and event processing function are added to the event behavior identifier, so that the event behavior identifier further includes more information, making the information of the event behavior identifier more comprehensive, thereby further reducing the difficulty of distinguishing behavior data.

[0102] See also Figure 7 , Figure 7 A flowchart of a method for collecting behavior data proposed in another embodiment of the present application is shown. The method can be applied to an electronic device, which can be Figure 1 The terminal 101 in the method includes:

[0103] S410. In response to an interaction event for a display page, obtain the page name of the display page and the component name of an associated component corresponding to the interaction event, wherein the display page includes components of different levels, and components of different levels have a cascading relationship, and the associated components include components corresponding to the interaction event and components having a cascading relationship with the components corresponding to the interaction event.

[0104] The description of S410 refers to the description of S110 and will not be repeated here.

[0105] S420. In response to an interactive event for a display page, determine component tag information corresponding to the associated component, an event type corresponding to the interactive event, and an event processing function corresponding to the interactive event, wherein the component tag information is used to identify components of the same level and type in the associated components.

[0106] The description of S420 refers to the description of S220 and S320 above, and will not be repeated here. In this embodiment, the display page includes components of the same level and type.

[0107] S430: Generate an event behavior identifier according to the component name of the associated component, the page name, the component tag information, the event type, and the event processing function.

[0108] When the component name of the associated component, the page name, the component tag information, the event type and the event processing function are obtained, a unique event behavior identifier is obtained based on the component name of the associated component, the page name, the component tag information, the event type and the event processing function.

[0109] In some implementations, the event behavior identifier may be obtained according to the component name of the associated component, the page name, the component tag information, the event type, and the event processing function, using a data digest algorithm (MD5). The event behavior identifier may also be obtained according to a hash algorithm.

[0110] The component name of the associated component, the page name, the component tag information, the event type and the event processing function may be concatenated to obtain a concatenated result, and then the concatenated result is processed to obtain an event behavior identifier.

[0111] S440. Obtain behavior data corresponding to the interactive event according to the event behavior identifier, the component name of the associated component, the page name, the component tag information, the event type, and the event processing function.

[0112] After obtaining the event behavior identifier, the event behavior identifier, the component name of the associated component, the page name, the component tag information, the event type, and the event processing function are summarized to obtain the behavior data corresponding to the interactive event. The behavior data corresponding to the interactive event may include six groups of data: the event behavior identifier, the component name of the associated component, the page name, the component tag information, the event type, and the event processing function.

[0113] In this embodiment, the event behavior identifier, event type and event processing function are added to the event behavior identifier, so that when the display page includes components of the same level and type, the obtained event behavior identifier is still unique, and the event behavior identifier includes more information, making the information of the event behavior identifier more comprehensive, thereby further reducing the difficulty of distinguishing behavior data.

[0114] See also Figure 8 , Figure 8 A flowchart of a method for collecting behavior data proposed in another embodiment of the present application is shown. The method can be applied to an electronic device, which can be Figure 1 The terminal 101 in the method includes:

[0115] S510. In response to an interaction event for a display page, obtain the page name of the display page and the component name of an associated component corresponding to the interaction event, wherein the display page includes components of different levels, and components of different levels have a cascading relationship, and the associated components include components corresponding to the interaction event and components having a cascading relationship with components corresponding to the interaction event.

[0116] S520: Generate an event behavior identifier according to the component name of the associated component and the page name.

[0117] S530: Obtain behavior data corresponding to the interaction event according to the event behavior identifier, the component name of the associated component, and the page name.

[0118] The description of S510-S530 refers to the description of S110-S130 above, which will not be repeated here. In some implementations, the behavior data can also be obtained according to the method of S210-S240, S310-S340 or S410-S430.

[0119] S540: Display a display control for displaying the behavior data, wherein the display control includes a confirmation control.

[0120] In this embodiment, the first mode may refer to a developer mode, which may be a mode for developers so that developers can configure the display page. In the developer mode, after the display page obtains the corresponding behavior data, the behavior data is displayed through a display control, which may be a transparent or opaque control floating on the display page.

[0121] In some implementations, the display page may be a page in the mini-program. The mini-program is in developer mode (first mode), and the display page in the mini-program is also in developer mode.

[0122] like Fig. 9As shown, the display page is the order details page, which includes three levels of components. The order list component is the first level component, the header component, the in-page component and the footer component are all second level components, and the modification component (the component corresponding to the modification button), the copy component (the component corresponding to the copy button) and the repurchase component (the component corresponding to the repurchase button) are all third level components. The order list component has a cascading relationship with the header component, the in-page component and the footer component, that is, the order list component is the cascading parent component of the header component, the in-page component and the footer component; similarly, the header component is the cascading parent component of the modification component, the in-page component is the cascading parent component of the copy component, and the footer component is the cascading parent component of the repurchase component and the cancel order component.

[0123] The user clicks on the cancel order component in the display page. Based on this operation, the display page generates behavior data, which is output to the display control on the display page. The behavior data output by the display control includes: event behavior identifier: 3ac2derfbbcadf444, page name: order details page, occurrence component name: cancel order component, first-level cascade parent component name: footer component, second-level cascade parent component name: order list component, event type: click, event processing function: cancel order function, component tag information: none. Among them, the associated components refer to the cancel order component, the footer component (the cascade parent component of the cancel order component) and the order list component (the cascade parent component of the footer component). The first-level cascade parent component refers to the parent component of the component corresponding to the interactive event, and the second-level cascade parent component refers to the parent component of the first-level cascade parent component. Similarly, the N-level cascade parent component is the parent component of the (N-1)-level cascade parent component, and N is an integer greater than 1.

[0124] S550: In response to a confirmation operation on the confirmation control, the event behavior identifier is sent to the collection center.

[0125] The display control may include a confirmation control and a cancel control. Clicking the confirmation control sends a confirmation operation to the confirmation control, and clicking the cancel control sends a confirmation operation to the cancel control. Figure 8 As shown, the confirmation control refers to the cancel report button, and the cancel control refers to the cancel button.

[0126] When receiving the confirmation operation for the confirmation control, the event behavior identifier is sent to the collection center. The collection center may refer to Figure 1 The server 102 in the middle collects the event behavior identifiers and behavior data stored by the middle platform users.

[0127] In some embodiments, when the display page is in the first mode, event description information corresponding to the interactive event may also be generated, and the event description information may include behavior data, or may include a portion of the behavior data other than the event behavior identifier. After obtaining the event description information, the event description information and the event behavior identifier are sent to the collection center so that the user can distinguish different interactive events based on the event description information.

[0128] In some implementations, in response to a confirmation operation on the confirmation control, the event behavior identifier, behavior data, and event description information may all be sent to the collection center.

[0129] In some embodiments, when the display page is in the first mode, event behavior identifiers and event description information corresponding to the multiple interaction events can be obtained based on multiple interaction events, and the event behavior identifiers can be divided according to the occurrence time of the multiple interaction events to obtain different data groups, so as to determine the interaction events occurring in different time periods.

[0130] In this embodiment, the event behavior identifier corresponding to the interactive event is reported through the display page of the first mode, and the user does not need to manually determine the event behavior identifier corresponding to the interactive event, thereby improving the reporting efficiency of the event behavior identifier.

[0131] See also Fig.10 , Fig.10 A flowchart of a method for collecting behavior data proposed in another embodiment of the present application is shown. The method can be applied to an electronic device, which can be Figure 1 The terminal 101 in the method includes:

[0132] S610. In response to an interaction event for a display page, obtain the page name of the display page and the component name of an associated component corresponding to the interaction event, wherein the display page includes components of different levels, and components of different levels have a cascading relationship, and the associated components include components corresponding to the interaction event and components having a cascading relationship with the components corresponding to the interaction event.

[0133] S620: Generate an event behavior identifier according to the component name of the associated component and the page name.

[0134] S630: Obtain behavior data corresponding to the interaction event according to the event behavior identifier, the component name of the associated component, and the page name.

[0135] The description of S610-S630 refers to the description of S110-S130 above, which will not be repeated here. In some implementations, the behavior data can also be obtained according to the method of S210-S240, S310-S340 or S410-S430.

[0136] S640: Send the behavior data to a collection center, so that the collection center stores the behavior data.

[0137] In this embodiment, the display page is in the second mode, which may be a producer mode. The producer mode may refer to a mode for ordinary users so that the user can directly use the display page.

[0138] In some implementations, the display page may be a page in the mini-program. The mini-program is in producer mode (second mode), and the display page in the mini-program is also in producer mode.

[0139] In the second mode, after the behavior data is obtained, the behavior data is directly sent to the collection center so that the collection center stores the behavior data.

[0140] After obtaining the event behavior identifier, the event behavior identifier, the component name of the associated component, and the page name are aggregated to obtain behavior data corresponding to the interaction event. The behavior data corresponding to the interaction event may include three sets of data: the event behavior identifier, the component name of the associated component, and the page name.

[0141] In some implementations, the device type of the electronic device and the occurrence time of the interaction event may also be obtained, and the obtained device type and the occurrence time of the interaction event may be added to the behavior data.

[0142] Based on multiple interaction events, behavior data corresponding to the multiple interaction events are obtained. According to the event behavior identifiers in the multiple behavior data, the data with the same event behavior identifier in the multiple behavior data can be divided into a group of data to obtain multiple groups of data. The same kind of behavior data (their occurrence time and device type may be different) corresponds to one group of data.

[0143] After obtaining multiple groups of data, the amount of behavioral data in each group of data can also be counted. The amount of data obtained can be used to determine the quantity of each type of behavioral data, so as to determine the behavioral data with the highest or lowest frequency of occurrence based on the quantity of each type of behavioral data, and then determine the interaction events with the highest or lowest frequency of occurrence.

[0144] In some implementations, the behavior data may be divided according to the occurrence time to obtain different data groups, and then the data in the data group may be divided again according to the event behavior identifier to obtain sub-data groups. In other implementations, the behavior data may be divided according to the device type to obtain different data groups, and then the data in the data group may be divided again according to the event behavior identifier to obtain sub-data groups.

[0145] In some implementations, after obtaining the behavior data, the behavior data may be sent to a collection center so that the collection center displays the behavior data, wherein the behavior data may be displayed in a chart or the like.

[0146] In one embodiment, S640 may include: when the event behavior identifier hits an event behavior identifier in a preset whitelist, sending the behavior data to a collection center so that the collection center stores the behavior data, wherein the preset whitelist includes at least one preset event behavior identifier, and the at least one event behavior identifier is obtained based on a test interaction event for the display page when the display page is in the first mode.

[0147] The preset whitelist includes at least one event behavior identifier, and the event behavior identifier in the preset whitelist may refer to an event obtained based on a received test interaction event in accordance with the above-mentioned embodiment of the present application when the display page is in the first mode. The test interaction event may refer to an interaction event sent to the display page when the display page is in the first mode.

[0148] In this embodiment, the acquired behavior data can be sent to the collection center for management and display, which facilitates the unified management of behavior data and improves the efficiency of behavior data management.

[0149] At the same time, by screening the behavioral data to be sent through a preset whitelist, useless data that is not in the preset whitelist is prevented from being sent to the collection center, saving the storage space of the collection center and reducing the pressure of data transmission.

[0150] See also Fig.11 , Fig.11 A flowchart of a method for obtaining a preset whitelist in an embodiment of the present application is shown. The method can be applied to an electronic device, which can be Figure 1 The terminal 101 in the method includes:

[0151] S710. When the display page is in the second mode, in response to a test interaction event for the display page, determine the page name and the component name of the test-associated component corresponding to the test interaction event, wherein the test-associated component includes a component corresponding to the test interaction event and a component having a cascading relationship with the component corresponding to the test interaction event.

[0152] S720: Generate a test event behavior identifier according to the component name of the test-related component and the page name.

[0153] The description of S710 and S720 refers to the description of S110 and S120 above, and will not be repeated here. The test interaction event refers to an interaction event sent to the display page when the display page is in the first mode. Generating a test event behavior identifier refers to an event behavior identifier generated based on the component name of the test-related component and the page name.

[0154] In some embodiments, it is also possible to determine, in response to a test interaction event for the display page, component tag information corresponding to the test-associated component, an event type corresponding to the test interaction event, and an event processing function, and generate a test event behavior identifier based on the component tag information corresponding to the test-associated component, the event type corresponding to the test interaction event, the event processing function corresponding to the test interaction event, the page name, and the component name of the test-associated component.

[0155] S730: Send the test event behavior identifier to the collection center, so that the preset whitelist is obtained according to the test event behavior identifier during the data collection.

[0156] S740: Receive the preset whitelist fed back by the collection center.

[0157] After obtaining the test event behavior identifier, the test event behavior identifier can be sent to the collection center, so that the collection center obtains the preset whitelist based on the test event behavior identifier and feeds back the preset whitelist to the display page in the first mode in the electronic device.

[0158] In some embodiments, the test event behavior identifier is sent to the collection center so that the preset whitelist is obtained according to the test event behavior identifier in the data collection, including: displaying a test display control for displaying the test event behavior identifier, the test display control including a confirmation control; in response to a confirmation operation on the confirmation control in the test display control, the test event behavior identifier is sent to the collection center so that the preset whitelist is obtained according to the test event behavior identifier in the data collection. Among them, the test display control can also display the test behavior data corresponding to the test interaction event, and the generation method of the test behavior data refers to the generation method of the behavior data, which will not be repeated. The test display control may refer to the display control in the above embodiment, which will not be repeated. The test display control may include a confirmation control and a cancel control.

[0159] For each test interaction event, after obtaining the corresponding test event behavior identifier, the corresponding test event behavior identifier is displayed through the test display control. When a confirmation operation is received for the confirmation control in the test display control, the test event behavior identifier is sent to the collection center so that the collection center adds the test event behavior identifier to the preset whitelist.

[0160] For each test interaction event, after obtaining the corresponding test event behavior identifier, the corresponding test event behavior identifier is displayed through the test display control. When a confirmation operation for the cancel control in the test display control is received, no sending processing is performed.

[0161] In some embodiments, when the display page is in the first mode, test event description information corresponding to the test interaction event may also be generated, and the test event description information may include the test behavior data, and may also include the part of the test behavior data other than the test event behavior identifier. After obtaining the test event description information, the event description information and the event behavior identifier are sent to the collection center, so that the user can distinguish different test interaction events based on the test event description information.

[0162] In some embodiments, the display page is a page of a mini-program. When the mini-program is in the first mode, the test event behavior identifiers corresponding to the test interactive events in the first mode are collected, and the corresponding test event behavior identifiers are displayed through the test display control. When a confirmation operation is received for the confirmation control in the test display control, the test event behavior identifier is sent to the collection center so that the collection center adds the test event behavior identifier to a preset whitelist. Afterwards, the preset whitelist can be preset to the mini-program in the first mode. The mini-program in the first mode filters the event behavior identifiers corresponding to the interactive events according to the preset whitelist, and sends the behavior data corresponding to the event behavior identifiers that hit the event behavior identifiers in the preset whitelist to the collection center.

[0163] In this embodiment, a preset whitelist can be automatically obtained so that the behavior data to be sent can be automatically screened through the preset whitelist, without the need for the user to manually screen the behavior data to be sent, thereby improving the efficiency of screening the behavior data.

[0164] See also Fig.12 , Fig.12 A flowchart of a method for collecting behavior data provided by another embodiment of the present application is shown. The method can be applied to an electronic device, which can be Figure 1 The terminal 101 in the method includes:

[0165] S810: Determine all interaction events corresponding to all components in the display page; and monitor all interaction events according to a software development kit.

[0166] All components that can be operated in the display page are regarded as all components, and all interaction events corresponding to each component in all components are regarded as all interaction events. For example, the display page includes a B1 component of the first level, a B2 component of the second level, and a B3 component of the third level, wherein the B1 component corresponds to 2 event types, the B2 component corresponds to 2 event types, and the B3 component corresponds to 2 event types. At this time, all corresponding interaction events include 6.

[0167] The software development kit may refer to an SDK (Software Development Kit) for monitoring interactive events. The software development kit is preset in the display page, and all interactive events of all components in the display page are monitored through the software development kit.

[0168] Among them, the software development kit can also monitor events such as page opening, page closing, page forwarding, dwell time, and page sliding to the bottom.

[0169] When there are multiple display pages, all interaction events include all interaction events of each display page. For example, the display page is the display page of the mini program, and the mini program includes 3 different display pages. At this time, all interaction events corresponding to the display page include the sum of all interaction events corresponding to the 3 display pages.

[0170] S820. When an interaction event sent to the display page is monitored through the software development kit, in response to the interaction event to the display page, obtain the page name of the display page and the component name of the associated component corresponding to the interaction event.

[0171] S830: Generate an event behavior identifier according to the component name of the associated component and the page name.

[0172] S840. Obtain behavior data corresponding to the interaction event according to the event behavior identifier, the component name of the associated component, and the page name.

[0173] The description of S820-S840 refers to the description of S110-S130, which will not be repeated here. In some embodiments, the method for acquiring behavior data may be based on S210-S240, S310-S340 or S410-S440, which will not be repeated here.

[0174] In this embodiment, all interactive events corresponding to all components in the display page are monitored through the software development kit. There is no need to write additional event collection code to perform point-of-entry operations on the display page, thereby realizing point-of-entry behavior data collection, thereby improving the efficiency of behavior data collection.

[0175] In order to make it easier to understand this solution, the following example will be used to illustrate the method for collecting behavior data provided by the embodiment of the present application in combination with a specific application scenario. In this scenario, the display page is a page in the mini program, the first mode is the developer mode, and the second mode is the producer mode.

[0176] 1. The mini program is in the first mode (the display page in the mini program is also in the first mode);

[0177] The mini program is in the first mode. The mini program in this mode is suitable for developers (or product managers). The developer sends multiple test interaction events to the display page of the mini program. For each test interaction event, in response to the test interaction event for the display page, the developer determines the component name of the test-associated component, the page name of the display page, the test component marking information corresponding to the test-associated component, the event type of the corresponding test interaction event, and the event processing function corresponding to the test interaction event. The test-associated components include components corresponding to the test interaction events and components having a cascade relationship with the components corresponding to the test interaction events. The display page includes components at different levels, and components at different levels have a cascade relationship.

[0178] Generate a test event behavior identifier based on the component name of the test-associated component, the page name, the component marking information of the test-associated component, the event type of the test interaction event, and the event processing function of the test interaction event; obtain test behavior data corresponding to the test interaction event based on the test event behavior identifier, the component name of the test-associated component, the page name, the component marking information of the test-associated component, the event type of the test interaction event, and the event processing function of the test interaction event.

[0179] The test behavior data and test event behavior identifier corresponding to each test interaction event are displayed through the test display control; if a confirmation operation is received for the confirmation control in the test display control, the test behavior data and test event behavior identifier corresponding to the test interaction event are sent to the collection center, so that the collection center can obtain the preset whitelist according to the received test event behavior identifier; if a confirmation operation is received for the cancel control in the test display control, the test behavior data and the test event behavior identifier are not sent.

[0180] When a confirmation operation is received for the confirmation control in the test display control, the test behavior data sent and the test interaction events corresponding to the test event behavior identifier are the information of the interaction events that the developer wants to collect; when a confirmation operation is received for the cancel control in the test display control, the test behavior data not sent and the test interaction events corresponding to the test event behavior identifier are the information of the interaction events that the developer does not want to collect.

[0181] 2. The mini program is in the second mode (the display page in the mini program is also in the second mode)

[0182] After the preset whitelist is obtained, the preset whitelist is preset in the mini-program of the second mode, and the mini-program of the second mode is released so that users can use the mini-program.

[0183] The mini program is in the second mode. The mini program in this mode is suitable for producers (ordinary users). The producer sends an interaction event to the display page of the mini program. For each interaction event, in response to the interaction event to the display page, the producer determines the component name of the associated component, the page name of the display page, the component tag information corresponding to the associated component, the event type of the corresponding interaction event, and the event processing function of the corresponding interaction event. The associated components include components corresponding to the interaction events and components that have a cascade relationship with the components corresponding to the interaction events.

[0184] An event behavior identifier is generated based on the component name of the associated component, the page name, the component tag information of the associated component, the event type of the interactive event, and the event processing function of the interactive event; behavior data corresponding to the interactive event is obtained based on the event behavior identifier, the component name of the associated component, the page name, the component tag information of the associated component, the event type of the interactive event, and the event processing function of the interactive event.

[0185] If the event behavior identifier of the behavior data hits the event behavior identifier in the preset whitelist, the behavior data is sent to the collection center so that the collection center stores the behavior data; if the event behavior identifier of the behavior data does not hit the event behavior identifier in the preset whitelist, the behavior data is not sent.

[0186] In some implementations, when the mini program is in the second mode, when obtaining the event behavior identifier, it can be determined whether the event behavior identifier hits the event behavior identifier in the preset whitelist. If it hits, the corresponding behavior data continues to be obtained. If it does not hit, it is not necessary to obtain the corresponding behavior data. Therefore, when it is not necessary to send the behavior data, it is not necessary to obtain the behavior data, which saves the time of obtaining the behavior data and improves the efficiency of obtaining the behavior data.

[0187] By filtering the behavior data through the preset whitelist, there is no need to write additional event collection code to perform point-of-view operations on the display page, thus realizing the collection of behavior data without point-of-view. In developer mode, the event behavior identifiers of the interactive events that the developer wants to collect are automatically collected, and the obtained event behavior identifiers are added to the preset whitelist, which improves the efficiency of obtaining event behavior identifiers. At the same time, the display event behavior identifiers and test behavior data are displayed through visual display controls, which makes it easier for developers to choose whether to send data, thus improving the user experience.

[0188] See also Fig.13 , Fig.13 A block diagram of a behavior data collection device proposed in one embodiment of the present application is shown, and the device 1100 includes:

[0189] An acquisition module 1110 is used to, in response to an interaction event for a display page, acquire a page name of the display page and a component name of an associated component corresponding to the interaction event, wherein the display page includes components of different levels, and components of different levels have a cascading relationship, and the associated components include a component corresponding to the interaction event and a component having a cascading relationship with the component corresponding to the interaction event;

[0190] An identifier generating module 1120, configured to generate an event behavior identifier according to the component name of the associated component and the page name;

[0191] The behavior data acquisition module 1130 is used to obtain the behavior data corresponding to the interaction event according to the event behavior identifier, the component name of the associated component and the page name.

[0192] Optionally, when the display page includes components of the same level and type, the device further includes an identification acquisition module, which is used to determine component tag information corresponding to the associated components in response to an interaction event for the display page, wherein the component tag information is used to identify the components of the same level and type in the associated components;

[0193] The identifier generating module 1120 is further used to generate an event behavior identifier according to the component name of the associated component, the page name and the component tag information;

[0194] The behavior data acquisition module 1130 is further used to obtain the behavior data corresponding to the interaction event according to the event behavior identifier, the component name of the associated component, the page name and the component tag information.

[0195] Optionally, the device further comprises an event-related information acquisition module, which is used to determine, in response to an interaction event for a display page, an event type and an event processing function corresponding to the interaction event;

[0196] The identification generating module 1120 is further used to generate an event behavior identification according to the component name of the associated component, the page name, the event type and the event processing function;

[0197] The behavior data acquisition module 1130 is further used to obtain the behavior data corresponding to the interactive event according to the event behavior identifier, the component name of the associated component, the page name, the event processing function and the event type.

[0198] Optionally, when the display page includes components of the same level and type, the device further includes a multi-information acquisition module, which is used to determine, in response to an interaction event for the display page, component tag information corresponding to the associated component, an event type corresponding to the interaction event, and an event processing function corresponding to the interaction event, wherein the component tag information is used to identify components of the same level and type in the associated components;

[0199] The identifier generating module 1120 is further used to generate an event behavior identifier according to the component name of the associated component, the page name, the component tag information, the event type and the event processing function;

[0200] The behavior data acquisition module 1130 is also used to obtain the behavior data corresponding to the interactive event according to the event behavior identifier, the component name of the associated component, the page name, the component tag information, the event type and the event processing function.

[0201] Optionally, the identifier generation module 1120 is further configured to generate an event behavior identifier through a data summary algorithm.

[0202] Optionally, when the display page is in the first mode, the device also includes a first sending module, which is used to display a display control for displaying the behavior data, and the display control includes a confirmation control; in response to a confirmation operation on the confirmation control, the event behavior identifier is sent to the collection center.

[0203] Optionally, when the display page is in the second mode, the device further includes a second sending module, configured to send the behavior data to a collection center, so that the collection center stores the behavior data.

[0204] Optionally, the second sending module is also used to send the behavior data to the collection center when the event behavior identifier hits the event behavior identifier in a preset whitelist, so that the collection center stores the behavior data, wherein the preset whitelist includes at least one preset event behavior identifier, and the at least one event behavior identifier is obtained based on a test interaction event for the display page when the display page is in the first mode.

[0205] Optionally, the device also includes a whitelist acquisition module, which is used to determine the page name and the component name of the test-associated component corresponding to the test interaction event in response to a test interaction event for the display page when the display page is in the second mode, wherein the test-associated component includes a component corresponding to the test interaction event and a component having a cascade relationship with the component corresponding to the test interaction event; generate a test event behavior identifier according to the component name of the test-associated component and the page name; send the test event behavior identifier to the collection center so that the preset whitelist is obtained according to the test event behavior identifier in the data collection; and receive the preset whitelist fed back by the collection center.

[0206] Optionally, the device also includes a third sending module, which is used to send the behavior data to the collection center so that the collection center displays the behavior data.

[0207] Optionally, the device further comprises a monitoring module, which is used to determine all interaction events corresponding to all components in the display page; and monitor all interaction events according to a software development kit;

[0208] The acquisition module 1110 is also used to acquire the page name of the display page and the component name of the associated component corresponding to the interactive event in response to the interactive event sent to the display page when the interactive event sent to the display page is monitored through the software development kit.

[0209] It should be noted that the device embodiment in the present application corresponds to the aforementioned method embodiment. The specific principles in the device embodiment can be found in the contents of the aforementioned method embodiment and will not be repeated here.

[0210] Fig.14 A structural block diagram of an electronic device for executing a method for collecting behavior data according to an embodiment of the present application is shown. The electronic device may be Figure 1 The terminal in the Fig.14 The computer system 1200 of the electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.

[0211] like Fig.14 As shown, the computer system 1200 includes a central processing unit (CPU) 1201, which can perform various appropriate actions and processes according to the program stored in the read-only memory (ROM) 1202 or the program loaded from the storage part 1208 to the random access memory (RAM) 1203, such as executing the method in the above embodiment. In RAM 1203, various programs and data required for system operation are also stored. CPU 1201, ROM 1202 and RAM 1203 are connected to each other through bus 1204. Input / output (I / O) interface 1205 is also connected to bus 1204.

[0212] The following components are connected to the I / O interface 1205: an input section 1206 including a keyboard, a mouse, etc.; an output section 1207 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 1208 including a hard disk, etc.; and a communication section 1209 including a network interface card such as a LAN (Local Area Network) card, a modem, etc. The communication section 1209 performs communication processing via a network such as the Internet. A drive 1210 is also connected to the I / O interface 1205 as needed. A removable medium 1211, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 1210 as needed so that a computer program read therefrom is installed into the storage section 1208 as needed.

[0213] In particular, according to an embodiment of the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present application includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication section 1209, and / or installed from a removable medium 1211. When the computer program is executed by a central processing unit (CPU) 1201, various functions defined in the system of the present application are executed.

[0214] It should be noted that the computer-readable medium shown in the embodiment of the present application may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, - but not limited to - an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM), a flash memory, an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present application, a computer-readable storage medium may be any tangible medium containing or storing a program, which may be used by an instruction execution system, device or device or used in combination with it. In the present application, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, wherein a computer-readable program code is carried. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than computer-readable storage media, which may send, propagate, or transmit programs for use by or in conjunction with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wired, etc., or any suitable combination of the above.

[0215] The flowchart and block diagram in the accompanying drawings illustrate the possible architecture, functions and operations of the system, method and computer program product according to various embodiments of the present application. Wherein, each box in the flowchart or block diagram can represent a module, a program segment, or a part of the code, and the above-mentioned module, program segment, or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flowchart, and the combination of boxes in the block diagram or flowchart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0216] The units involved in the embodiments described in this application may be implemented by software or hardware, and the units described may also be set in a processor. The names of these units do not, in some cases, constitute limitations on the units themselves.

[0217] As another aspect, the present application further provides a computer-readable storage medium, which may be included in the electronic device described in the above embodiments; or may exist independently without being assembled into the electronic device. The above computer-readable storage medium carries computer-readable instructions, and when the computer-readable storage instructions are executed by a processor, the method in any of the above embodiments is implemented.

[0218] According to one aspect of the embodiments of the present application, a computer program product or a computer program is provided, the computer program product or the computer program includes computer instructions, and the computer instructions are stored in a computer-readable storage medium. A processor of an electronic device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the electronic device executes the method in any of the above embodiments.

[0219] It should be noted that, although several modules or units of the equipment for action execution are mentioned in the above detailed description, this division is not mandatory. In fact, according to the embodiments of the present application, the features and functions of two or more modules or units described above can be embodied in one module or unit. On the contrary, the features and functions of one module or unit described above can be further divided into being embodied by multiple modules or units.

[0220] Through the description of the above implementation methods, it is easy for those skilled in the art to understand that the example implementation methods described here can be implemented by software or by combining software with necessary hardware. Therefore, the technical solution according to the implementation method of the present application can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.) or on a network, including several instructions to enable an electronic device (which can be a personal computer, a server, a touch terminal, or a network device, etc.) to execute the method according to the implementation method of the present application.

[0221] Those skilled in the art will readily appreciate other embodiments of the present application after considering the specification and practicing the embodiments disclosed herein. The present application is intended to cover any variations, uses or adaptations of the present application, which follow the general principles of the present application and include common knowledge or customary techniques in the art that are not disclosed in the present application. It should be understood that the present application is not limited to the precise structures described above and shown in the accompanying drawings, and various modifications and changes can be made without departing from the scope thereof. The scope of the present application is limited only by the appended claims.

[0222] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present application.

Claims

1. A method for collecting behavioral data, characterized in that: The method comprises: In response to an interaction event for a display page, a page name of the display page and a component name of an associated component corresponding to the interaction event are obtained, wherein the display page includes components of different levels, components of different levels have a cascade relationship, and the associated components include a component corresponding to the interaction event and a component having a cascade relationship with the component corresponding to the interaction event; Generate an event behavior identifier according to the component name of the associated component and the page name; Obtaining behavior data corresponding to the interaction event according to the event behavior identifier, the component name of the associated component, and the page name; Wherein, when the display page includes components of the same level and type, before generating the event behavior identifier according to the component name of the associated component and the page name, the method further includes: determining component tag information corresponding to the associated component in response to an interactive event for the display page, wherein the component tag information is used to identify components of the same level and type in the associated components; The generating an event behavior identifier according to the component name of the associated component and the page name; and obtaining behavior data corresponding to the interaction event according to the event behavior identifier, the component name of the associated component and the page name, includes: An event behavior identifier is generated based on the component name of the associated component, the page name and the component tag information; and behavior data corresponding to the interactive event is obtained based on the event behavior identifier, the component name of the associated component, the page name and the component tag information.

2. The method according to claim 1, characterized in that Before generating the event behavior identifier according to the component name of the associated component, the page name and the component tag information, the method further includes: In response to an interaction event for a display page, determine component tag information corresponding to the associated component, an event type corresponding to the interaction event, and an event processing function corresponding to the interaction event, wherein the component tag information is used to identify components of the same level and type in the associated components; The generating an event behavior identifier according to the component name of the associated component, the page name, and the component tag information; obtaining behavior data corresponding to the interaction event according to the event behavior identifier, the component name of the associated component, the page name, and the component tag information, includes: Generate an event behavior identifier according to the component name of the associated component, the page name, the component tag information, the event type and the event processing function; Behavior data corresponding to the interactive event is obtained according to the event behavior identifier, the component name of the associated component, the page name, the component tag information, the event type and the event processing function.

3. The method according to claim 1 or 2, characterized in that: The generating event behavior identifier includes: Generate event behavior identifiers through data summary algorithms.

4. The method according to claim 1 or 2, characterized in that: When the display page is in the first mode, after obtaining the behavior data corresponding to the interaction event, the method further includes: Displaying a display control for displaying the behavior data, wherein the display control includes a confirmation control; In response to a confirmation operation on the confirmation control, the event behavior identifier is sent to a collection center.

5. The method according to claim 1 or 2, characterized in that: When the display page is in the second mode, after obtaining the behavior data corresponding to the interaction event, the method further includes: The behavior data is sent to a collection center so that the collection center stores the behavior data.

6. The method according to claim 5, characterized in that The sending the behavior data to the collection center so that the collection center stores the behavior data includes: When the event behavior identifier hits an event behavior identifier in a preset whitelist, the behavior data is sent to the collection center so that the collection center stores the behavior data, wherein the preset whitelist includes at least one preset event behavior identifier, and the at least one event behavior identifier is obtained based on a test interaction event for the display page when the display page is in the first mode.

7. The method according to claim 6, characterized in that The method for obtaining the preset whitelist includes: When the display page is in the second mode, in response to a test interaction event for the display page, determining the page name and a component name of a test-associated component corresponding to the test interaction event, wherein the test-associated component includes a component corresponding to the test interaction event and a component having a cascade relationship with the component corresponding to the test interaction event; Generate a test event behavior identifier according to the component name of the test-related component and the page name; Sending the test event behavior identifier to the collection center, so that the preset whitelist is obtained according to the test event behavior identifier in the data collection; Receive the preset whitelist fed back by the collection center.

8. The method according to claim 1 or 2, characterized in that: After obtaining the behavior data corresponding to the interaction event, the method further includes: The behavior data is sent to a collection center so that the collection center displays the behavior data.

9. The method according to claim 1, characterized in that: Before determining, in response to an interaction event for a display page, a page name of the display page and a component name of an associated component corresponding to the interaction event, the method further includes: Determine all interaction events corresponding to all components in the display page; Monitoring all interaction events according to the software development kit; In response to an interaction event for a display page, determining a page name of the display page and a component name of an associated component corresponding to the interaction event includes: When an interactive event sent to the display page is monitored through the software development kit, in response to the interactive event to the display page, the page name of the display page and the component name of the associated component corresponding to the interactive event are obtained.

10. A device for collecting behavioral data, characterized in that: The device comprises: an acquisition module, configured to, in response to an interaction event for a display page, acquire a page name of the display page and a component name of an associated component corresponding to the interaction event, wherein the display page includes components of different levels, components of different levels have a cascading relationship, and the associated components include a component corresponding to the interaction event and a component having a cascading relationship with the component corresponding to the interaction event; An identifier generation module, used to generate an event behavior identifier according to the component name of the associated component and the page name; A behavior data acquisition module, used to obtain behavior data corresponding to the interaction event according to the event behavior identifier, the component name of the associated component and the page name; Among them, when the display page includes components of the same level and type, the acquisition module is also used to determine the component tag information corresponding to the associated component in response to the interactive event for the display page, and the component tag information is used to identify the components of the associated components that are of the same level and type; the identification generation module is used to generate an event behavior identification according to the component name of the associated component, the page name and the component tag information; the behavior data acquisition module is used to obtain the behavior data corresponding to the interactive event according to the event behavior identification, the component name of the associated component, the page name and the component tag information.

11. An electronic device, characterized in that: include: one or more processors; Memory; One or more application programs, wherein the one or more application programs are stored in the memory and configured to be executed by the one or more processors, the one or more programs being configured to execute the method according to any one of claims 1-9.

12. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores program codes, which can be called by a processor to execute the method according to any one of claims 1 to 9.