A method and device for collecting click data

By monitoring the click events of the page and determining its identification based on the attribute information of the target can be buried, the problem of collecting some click behavior data in operational websites is solved, and click data collection for different types of websites is realized.

CN113761310BActive Publication Date: 2025-02-21BEIJING WODONG TIANJUN INFORMATION TECH CO LTD +1
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202010645881.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-07-07
Publication Date
2025-02-21
Estimated Expiration
2040-07-07

AI Technical Summary

Technical Problem

It is difficult to collect click data for some click behavior in operational websites, especially when the user clicks on the target and does not jump but pops up the pop-up window.

Method used

By listening for click events occurring on the page, the buried-point target corresponding to the click event is determined, and its identification is determined based on the attribute information of the buried-point target, and the click data is determined based on the identification.

Benefits of technology

The click data collection of different types of websites is realized, including operational websites, and the problem of the inability to collect data in the existing technology to be able to collect specific types of click behaviors.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113761310B_ABST
    Figure CN113761310B_ABST
Patent Text Reader

Abstract

The present invention discloses a method and device for collecting click data, and relates to the field of computer technology. A specific implementation of the method includes: a method for collecting click data, including: monitoring a click event occurring on a page; if the click event is monitored, determining a target that can be embedded corresponding to the click event; determining an identifier of the target that can be embedded according to the attribute information of the target that can be embedded; and determining click data according to the identifier of the target that can be embedded. This implementation can be applied to different types of websites.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer technology, and in particular to a method and device for collecting click data. Background Art

[0002] Since click data can reflect user behavior preferences, in actual application scenarios, the layout and display content of the page can be adjusted based on the click data.

[0003] In the prior art, click data of a target that can be embedded is generally determined based on a link corresponding to the target that can be embedded.

[0004] However, this method is not applicable to some click behaviors in operational websites. For example, after a user clicks a target that can be embedded, the page does not jump but a pop-up window pops up. At this time, the click data of the target that can be embedded cannot be determined based on the existing method. Summary of the invention

[0005] In view of this, an embodiment of the present invention provides a method and device for collecting click data, which can be applicable to different types of websites.

[0006] In a first aspect, an embodiment of the present invention provides a method for collecting click data, including:

[0007] Listen for click events on the page;

[0008] If the click event is monitored, determine the embeddable target corresponding to the click event;

[0009] Determine the identifier of the embeddable point target according to the attribute information of the embeddable point target;

[0010] The click data is determined based on the identifier of the embeddable target.

[0011] Preferably,

[0012] The step of determining the embeddable target corresponding to the click event includes:

[0013] Determine whether the click target corresponding to the click event meets the embeddable condition. If so, determine that the click target is the embeddable target.

[0014] Preferably,

[0015] The conditions for embedding points include:

[0016] The click target belongs to an a tag, an input tag or a radio tag.

[0017] Preferably,

[0018] The conditions for embedding points include:

[0019] A click event or a proxy click event is bound to the click target.

[0020] Preferably,

[0021] The conditions for embedding points include:

[0022] The class name of the click target meets the preset naming rules.

[0023] Preferably,

[0024] Determining the identifier of the embeddable target according to the attribute information of the embeddable target includes:

[0025] Determine that the embeddable target is the current node;

[0026] Determining a path of the current node according to the attribute information of the current node;

[0027] Determine whether the parent node of the current node is a root node. If so, determine the identifier of the embeddable target based on the path splicing result of the current node. Otherwise, determine that the parent node of the current node is the updated current node; determine the path of the current node based on the attribute information of the current node; splice the path of the current node and the path splicing result of the child nodes of the current node to obtain the path splicing result of the current node, and execute the steps: determine whether the parent node of the current node is a root node; wherein, if the child node of the current node is the embeddable target, the path splicing result of the child nodes of the current node is the path of the child nodes of the current node.

[0028] Preferably,

[0029] The attribute information includes: node name, class name and node ID;

[0030] The determining the path of the current node according to the attribute information of the current node includes:

[0031] The node name, class name and node ID of the current node are concatenated to obtain the path of the current node.

[0032] Preferably,

[0033] Further including:

[0034] Determine the URL (Uniform Resource Locator) of the page, the text information of the embeddable target, and the business scenario identifier of the embeddable target;

[0035] Determining the identifier of the embeddable target according to the path splicing result of the current node includes:

[0036] The URL, the text information, the business scenario identifier and the path of the current node are concatenated to obtain the identifier of the embeddable target.

[0037] Preferably,

[0038] The splicing of the URL, the text information, the business scenario identifier and the path splicing result of the current node to obtain the identifier of the embeddable target includes:

[0039] Splicing the URL, the text information, the business scenario identifier and the path splicing result of the current node to obtain a path identifier;

[0040] Encrypt the path identifier to obtain the identifier of the embeddable target.

[0041] Preferably,

[0042] The step of determining click data according to the identifier of the embeddable target includes:

[0043] Determine the business data of the embeddable target;

[0044] The click data is generated according to the business data and the identifier of the embeddable target.

[0045] In a second aspect, an embodiment of the present invention provides a method for displaying an identifier of a target that can be embedded, including:

[0046] If a trigger operation on a page is monitored, the click event occurring on the page is monitored;

[0047] If the click event is monitored, determine the embeddable target corresponding to the click event;

[0048] Determine the identifier of the embeddable point target according to the attribute information of the embeddable point target;

[0049] Display the identification of the target that can be buried.

[0050] In a third aspect, an embodiment of the present invention provides a method for querying click data, including:

[0051] Receive identification of a target that can be buried;

[0052] Query the click data corresponding to the identifier of the embeddable target;

[0053] Among them, the identifier of the embeddable target is determined by the attribute information of the embeddable target, and the click data is determined by the identifier of the embeddable target.

[0054] In a fourth aspect, an embodiment of the present invention provides a device for collecting click data, including:

[0055] A monitoring module, configured to monitor click events occurring on the page;

[0056] A target determination module is configured to determine a target that can be embedded corresponding to the click event if the click event is monitored;

[0057] An identification determination module is configured to determine the identification of the embeddable target according to the attribute information of the embeddable target;

[0058] The data determination module is configured to determine the click data based on the identifier of the embeddable target.

[0059] In a fifth aspect, an embodiment of the present invention provides a device for displaying an identification of a target that can be buried, including:

[0060] The monitoring module is configured to monitor a click event occurring on the page if a trigger operation on the page is monitored;

[0061] A target determination module is configured to determine a target that can be embedded corresponding to the click event if the click event is monitored;

[0062] An identification determination module is configured to determine the identification of the embeddable target according to the attribute information of the embeddable target;

[0063] A display module is configured to display the identification of the embeddable target.

[0064] In a sixth aspect, an embodiment of the present invention provides a device for querying click data, including:

[0065] A receiving module configured to receive an identifier of a target that can be buried;

[0066] A query module configured to query click data corresponding to the identifier of the embeddable target;

[0067] Among them, the identifier of the embeddable target is determined by the attribute information of the embeddable target, and the click data is determined by the identifier of the embeddable target.

[0068] In a seventh aspect, an embodiment of the present invention provides an electronic device, including:

[0069] one or more processors;

[0070] a storage device for storing one or more programs,

[0071] When the one or more programs are executed by the one or more processors, the one or more processors implement the method described in any of the above embodiments.

[0072] In an eighth aspect, an embodiment of the present invention provides a computer-readable medium having a computer program stored thereon, and when the program is executed by a processor, the method described in any of the above embodiments is implemented.

[0073] An embodiment of the above invention has the following advantages or beneficial effects: the identifier of the embeddable target is determined through the attribute information of the embeddable target, and the click data is determined based on the identifier of the embeddable target. Since it does not rely on the link corresponding to the embeddable target, this method is suitable for collecting click data of different types of websites.

[0074] The further effects of the above-mentioned non-conventional optional manner will be described below in conjunction with the specific implementation manner. BRIEF DESCRIPTION OF THE DRAWINGS

[0075] The accompanying drawings are used to better understand the present invention and do not constitute an improper limitation of the present invention.

[0076] Figure 1 is a flow chart of a method for collecting click data provided by an embodiment of the present invention;

[0077] Figure 2 is a flow chart of a method for collecting click data provided by another embodiment of the present invention;

[0078] Figure 3 is a schematic diagram of a node structure provided by an embodiment of the present invention;

[0079] Figure 4 It is a flow chart of a method for displaying identification of embeddable targets provided by an embodiment of the present invention;

[0080] Figure 5 is a flow chart of a method for querying click data provided by an embodiment of the present invention;

[0081] Figure 6 is a schematic diagram of a device for collecting click data provided by an embodiment of the present invention;

[0082] Figure 7 It is a schematic diagram of a device for displaying the identification of a target that can be buried provided by an embodiment of the present invention;

[0083] Figure 8 is a schematic diagram of a device for querying click data provided by an embodiment of the present invention;

[0084] Fig. 9is an exemplary system architecture diagram to which embodiments of the present invention may be applied;

[0085] Fig.10 It is a schematic diagram of the structure of a computer system of a terminal device or a server suitable for implementing an embodiment of the present invention. DETAILED DESCRIPTION

[0086] The following is a description of exemplary embodiments of the present invention in conjunction with the accompanying drawings, including various details of the embodiments of the present invention to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications may be made to the embodiments described herein without departing from the scope and spirit of the present invention. Similarly, for clarity and conciseness, the description of well-known functions and structures is omitted in the following description.

[0087] In the prior art, the click data of a target that can be embedded is generally determined based on the link corresponding to the target that can be embedded. Specifically, in the prior art, the front end generates an identifier of the target that can be embedded based on the DOM element, and when a click behavior is monitored, the identifier of the target that can be embedded is added to the link corresponding to the target that can be embedded. The back-end server determines the click data corresponding to the click behavior based on the link containing the identifier of the target that can be embedded.

[0088] However, this method is not applicable to some click behaviors on operational websites.

[0089] In view of this, if Figure 1 As shown, an embodiment of the present invention provides a method for collecting click data, including:

[0090] Step 101: monitor a click event occurring on a page, and if a click event is monitored, execute step 102.

[0091] This method is applied to the front end and can be implemented by JavaScript. One click behavior corresponds to one click event. The click behavior can be directed to a target that can be embedded or to other targets. The embodiment of the present invention focuses on the click behavior directed to a target that can be embedded. That is, the click behavior directed to a target that can be embedded is a valid click behavior, and the click data collected by the embodiment of the present invention is the click data generated by the valid click behavior.

[0092] Step 102: Determine the embeddable target corresponding to the click event.

[0093] The click target corresponding to the click event can be a embeddable target or a non-embeddable target. How to determine whether the click target is a embeddable target will be explained in subsequent embodiments.

[0094] Step 103: Determine the identifier of the embeddable target based on the attribute information of the embeddable target.

[0095] The attribute information includes: node name (ie, nodeName), class name (ie, className) and ID.

[0096] In actual application scenarios, the identification of the embeddable target can be determined based on one or more of the above-mentioned attribute information, for example, the identification of the embeddable target can be determined based on the node name, or the identification of the embeddable target can be determined based on the node name, class name and ID.

[0097] Step 104: Determine the click data based on the identifier of the embeddable target.

[0098] This method determines the identifier of the embeddable target through the attribute information of the embeddable target, and determines the click data based on the identifier of the embeddable target. Since it does not depend on the link corresponding to the embeddable target, this method is suitable for collecting click data of different types of websites.

[0099] In one embodiment of the present invention, it is possible to determine whether a click target is a embeddable target based on preset embeddable conditions. At this time, determining the embeddable target corresponding to the click event includes: determining whether the click target corresponding to the click event meets the embeddable conditions, and if so, determining that the click target is an embeddable target.

[0100] If the click target does not meet the conditions for embedding, the process is terminated and the subsequent steps are not executed.

[0101] An embodiment of the present invention provides at least seven conditions for embedding points, specifically including:

[0102] (1) The conditions for embedding points include: the click target belongs to the a tag, input tag or radio tag.

[0103] (2) The conditions for embedding points include: a click event or a proxy click event is bound to the click target.

[0104] (3) The conditions for embedding include: the class name of the click target meets the preset naming rules. For example, whether the class name starts with "J_btn".

[0105] (4) A combination of the above (1) and (2).

[0106] (5) A combination of the above (1) and (3).

[0107] (6) A combination of (2) and (3) above.

[0108] (7) A combination of the above (1), (2) and (3).

[0109] In one embodiment of the present invention, determining the identifier of the embeddable target according to the attribute information of the embeddable target includes:

[0110] S1: Determine the embeddable target as the current node;

[0111] S2: Determine the path of the current node based on the attribute information of the current node;

[0112] S3: Determine whether the parent node of the current node is the root node. If so, execute S7; otherwise, execute S4.

[0113] S4: Determine that the parent node of the current node is the updated current node;

[0114] S5: Determine the path of the current node according to the attribute information of the current node;

[0115] S6: Concatenate the path of the current node and the path concatenation result of the child node of the current node to obtain the path concatenation result of the current node, and execute S3; wherein, if the child node of the current node is a target that can be embedded, the path concatenation result of the child node of the current node is the path of the child node of the current node;

[0116] S7: Determine the identification of the target that can be embedded according to the path splicing result of the current node.

[0117] The embodiment of the present invention starts from the embeddable point target, traverses the upper nodes of the embeddable point target in sequence, and then determines the identifier of the embeddable point target. In the actual application scenario, the path of each node can also be determined first, and then the paths of each node are spliced ​​to obtain the identifier of the embeddable point target.

[0118] In one embodiment of the present invention, if the attribute information includes a node name, a class name and a node ID, then S2 specifically includes: concatenating the node name, the class name and the node ID of the current node to obtain the path of the current node.

[0119] Similarly, if the attribute information includes the node name and the node ID, S2 specifically includes: concatenating the node name and the node ID of the current node to obtain the path of the current node. If the attribute information only includes the class name, S2 specifically includes: determining that the path of the current node is the class name.

[0120] In one embodiment of the present invention, the method further includes: determining the URL of the page, text information of the embeddable target, and a business scenario identifier of the embeddable target;

[0121] S7, including:

[0122] Concatenate the URL, text information, business scenario identifier, and the path of the current node to obtain the identifier of the target that can be embedded.

[0123] In actual application scenarios, the path splicing result of the current node can be directly used as the identifier of the embeddable target. However, considering that different pages may have the same identifier of the embeddable target, the embodiment of the present invention further distinguishes the identifiers of different embeddable targets through URL, text information, and business scenario identifier, thereby reducing the probability that the identifiers of different embeddable targets are the same. Of course, the identifier of the embeddable target can also be obtained based on the business scenario identifier, any one or two of the URL and text information, as well as the path splicing result of the current node.

[0124] In one embodiment of the present invention, the URL, text information, business scenario identifier and the path of the current node are concatenated to obtain the identifier of the embeddable target, including:

[0125] Concatenate the URL, text information, business scenario identifier, and the path concatenation result of the current node to obtain a path identifier;

[0126] Encrypt the path identifier to obtain the identifier of the target where the embedding point can be found.

[0127] In the embodiment of the present invention, the path identifier is obtained by splicing the URL, text information, business scenario identifier and the path splicing result of the current node, and the specific splicing order is not limited. In addition, considering that the spliced ​​path identifier may be long and inconvenient to store, the embodiment of the present invention obtains a shorter identifier of the embeddable target through encryption.

[0128] In one embodiment of the present invention, determining click data according to the identifier of the embeddable target includes:

[0129] Determine the business data that can be used as a target;

[0130] Generate click data based on business data and the identification of embeddable targets.

[0131] Business data includes: business system name, business system number, user ID, project ID, etc. Business data and identifiers of embeddable targets are stored correspondingly to obtain click data.

[0132] like Figure 2 As shown, an embodiment of the present invention provides a method for collecting click data, including:

[0133] Step 201: monitor a click event occurring on a page, and if a click event is monitored, execute step 202.

[0134] The user clicks "Publish" on the page.

[0135] Step 202: Determine whether the click target corresponding to the click event belongs to the a tag, input tag or radio tag. If yes, execute step 203; otherwise, terminate the process.

[0136] "Publish" belongs to the a tag.

[0137] Step 203: Determine that the click target is a embeddable target.

[0138] Step 204: Determine that the embeddable target is the current node.

[0139] like Figure 3 As shown, the node name (nodeName) corresponding to "publish" is "A", and "A" is taken as the current node, and the nodes in the upper layer are traversed in sequence.

[0140] Step 205: Concatenate the node name, class name and node ID of the current node to obtain the path of the current node.

[0141] If the node name (nodeName), class name (className) or node ID of the current node does not exist, it will not be concatenated. The node name and class name are concatenated with ".", and the class name and node ID are concatenated with "#".

[0142] The node name of the current node is "A", the class name is "cd-btn.J_publish", the node ID does not exist, and the concatenated path of the current node is "A.cd-btn.J_publish".

[0143] In actual application scenarios, the concatenation symbols used between the node name, class name and node ID are not limited to the above-mentioned "." and "#", and other symbols, such as "*", may also be used.

[0144] Step 206: Determine whether the parent node of the current node is a root node, if so, execute step 210, otherwise, execute step 207.

[0145] The parent node of the current node is named "DIV", which is not the root node. The root node is Figure 3 The body shown.

[0146] Step 207: Determine that the parent node of the current node is the updated current node.

[0147] Take "DIV" as the current node and continue to execute subsequent steps.

[0148] Step 208: Concatenate the node name, class name and node ID of the current node to obtain the path of the current node.

[0149] The node name of the current node is "DIV", the class name is "cd-layout", and the node ID does not exist. Therefore, only the node name and the class name are concatenated to obtain the path of the current node as "DIV.cd-layout".

[0150] Step 209: concatenate the path of the current node and the path concatenation result of the child nodes of the current node to obtain the path concatenation result of the current node, and execute step 206.

[0151] Among them, if the child node of the current node is a target that can be embedded, the path concatenation result of the child node of the current node is the path of the child node of the current node.

[0152] The path concatenation result of "A" is "A.cd-btn.J_publish".

[0153] The path concatenation result of "DIV" is "DIV.cd-layout / A.cd-btn.J_publish".

[0154] By analogy, according to Figure 3 Continue traversing and get the path concatenation result of the top layer "DIV" is "DIV#J_container / DIV.cd-main / DIV.cd-layout / A.cd-btn.J_publish".

[0155] Step 210: Determine the URL of the page, the text information of the embeddable target, and the business scenario identifier of the embeddable target.

[0156] Step 211: Concatenate the URL, text information, business scenario identifier and the path concatenation result of the current node to obtain a path identifier.

[0157] The concatenated path identifier is: "SYS_PC*jshopx.jd.com / pageManage / m*DI V#J_container / DIV.cd-main / DIV.cd-layout / A.cd-btn.J_publish*Publish".

[0158] Among them, "SYS_PC" is the business scenario identifier, "jshopx.jd.com / pageManage / m" is the URL, and "Publish" is text information.

[0159] Step 212: Encrypt the path identifier to obtain the identifier of the target that can be embedded.

[0160] The path identifier may be encrypted using the MD5 information digest algorithm.

[0161] Step 213: Determine the business data of the target that can be embedded.

[0162] Step 214: Generate click data based on the business data and the identifier of the embeddable target.

[0163] This method can be implemented by embedding the underlying code of the embeddable target. The identifier of the embeddable target is automatically generated when it is clicked, which has no impact on the performance of the page and does not require additional embedding and online work, making the collection process of click data more flexible and efficient. This method is suitable for collecting click data from all types of websites, including browsing and operation types.

[0164] An embodiment of the present invention provides a method for uploading click data, including:

[0165] Listen for click events on the page;

[0166] If a click event is detected, the target corresponding to the click event is determined;

[0167] Determine the identification of the embeddable point target according to the attribute information of the embeddable point target;

[0168] Determine the click data based on the identification of the embeddable target;

[0169] Upload click data to a preset storage location.

[0170] In actual application scenarios, you can call the embedding interface to upload click data to the background server or other storage location.

[0171] When querying click data, users need to know the identifiers of embeddable targets. In order to enable users to obtain the identifiers of embeddable targets more intuitively, an embodiment of the present invention provides a method for displaying the identifiers of embeddable targets, such as Figure 4 As shown, the method includes:

[0172] Step 401: When a trigger operation for a page is monitored, a click event occurring on the page is monitored.

[0173] The trigger operation may be modifying a URL, clicking a page, etc. When the trigger operation is monitored, click data is collected. The click data is collected based on the method for collecting click data provided in the above embodiment, which will not be described in detail here.

[0174] Step 402: When a click event is monitored, determine the embeddable target corresponding to the click event.

[0175] Step 403: Determine the identifier of the embeddable target based on the attribute information of the embeddable target.

[0176] Step 404: Display the identification of the target that can be buried.

[0177] The identifier of the embeddable target can be displayed in the page through a pop-up window or other display forms. The user can obtain the identifier of the embeddable target through this method, and then query the click data based on the identifier of the embeddable target.

[0178] like Figure 5 As shown, an embodiment of the present invention provides a method for querying click data, including:

[0179] Step 501: Receive the identifier of a target that can be buried.

[0180] This method can also obtain the identifier of the target that can be embedded by displaying an input box, etc.

[0181] Step 502: Query the click data corresponding to the identifier of the embeddable target.

[0182] Among them, the identification of the embeddable target is determined by the attribute information of the embeddable target, and the click data is determined by the identification of the embeddable target.

[0183] like Figure 6 As shown, an embodiment of the present invention provides a device for collecting click data, including:

[0184] Monitoring module 601, configured to monitor click events occurring on a page;

[0185] The target determination module 602 is configured to determine the embeddable target corresponding to the click event if a click event is monitored;

[0186] The identification determination module 603 is configured to determine the identification of the embeddable point target according to the attribute information of the embeddable point target;

[0187] The data determination module 604 is configured to determine the click data based on the identifier of the embeddable target.

[0188] In one embodiment of the present invention, the target determination module 602 is configured to determine whether the click target corresponding to the click event meets the embeddable condition, and if so, determine that the click target is an embeddable target.

[0189] In one embodiment of the present invention, the conditions for embedding a click include: the click target belongs to an a tag, an input tag or a radio tag.

[0190] In one embodiment of the present invention, the conditions for embedding a click point include: a click event or a proxy click event is bound to the click target.

[0191] In one embodiment of the present invention, the conditions for embedding a point include: the class name of the click target meets a preset naming rule.

[0192] In one embodiment of the present invention, the identification determination module 603 is configured as follows:

[0193] S1: Determine the embeddable target as the current node;

[0194] S2: Determine the path of the current node based on the attribute information of the current node;

[0195] S3: Determine whether the parent node of the current node is the root node. If so, execute S7; otherwise, execute S4.

[0196] S4: Determine that the parent node of the current node is the updated current node;

[0197] S5: Determine the path of the current node according to the attribute information of the current node;

[0198] S6: Concatenate the path of the current node and the path concatenation result of the child node of the current node to obtain the path concatenation result of the current node, and execute S3; wherein, if the child node of the current node is a target that can be embedded, the path concatenation result of the child node of the current node is the path of the child node of the current node;

[0199] S7: Determine the identification of the target that can be embedded according to the path splicing result of the current node.

[0200] In one embodiment of the present invention, the attribute information includes: a node name, a class name, and a node ID;

[0201] The identification determination module 603 is configured to concatenate the node name, class name and node ID of the current node to obtain the path of the current node.

[0202] In one embodiment of the present invention, the identification determination module 603 is configured to determine the uniform resource locator URL of the page, the text information of the embeddable target and the business scenario identification of the embeddable target; and to concatenate the URL, text information, business scenario identification and the path concatenation result of the current node to obtain the identification of the embeddable target.

[0203] In one embodiment of the present invention, the identification determination module 603 is configured to concatenate the URL, text information, business scenario identification and the path concatenation result of the current node to obtain a path identification; encrypt the path identification to obtain an identification of a target that can be embedded.

[0204] In one embodiment of the present invention, the data determination module 604 is configured to determine the business data of the embeddable target; and generate click data based on the business data and the identifier of the embeddable target.

[0205] like Figure 7 As shown, an embodiment of the present invention provides a device for displaying the identification of a target that can be buried, including:

[0206] The monitoring module 701 is configured to monitor a click event occurring on the page if a trigger operation on the page is monitored;

[0207] The target determination module 702 is configured to determine the embeddable target corresponding to the click event if a click event is monitored;

[0208] The identification determination module 703 is configured to determine the identification of the embeddable point target according to the attribute information of the embeddable point target;

[0209] The display module 704 is configured to display the identification of the embeddable target.

[0210] like Figure 8 As shown, an embodiment of the present invention provides a device for querying click data, including:

[0211] The receiving module 801 is configured to receive an identifier of a target that can be buried;

[0212] A query module 802 is configured to query click data corresponding to the identifier of the embeddable target;

[0213] Among them, the identification of the embeddable target is determined by the attribute information of the embeddable target, and the click data is determined by the identification of the embeddable target.

[0214] An embodiment of the present invention provides an electronic device, including:

[0215] one or more processors;

[0216] a storage device for storing one or more programs,

[0217] When one or more programs are executed by one or more processors, the one or more processors implement the method of any of the above embodiments.

[0218] Fig. 9 An exemplary system architecture 900 is shown to which the method for collecting click data or the apparatus for collecting click data according to an embodiment of the present invention can be applied.

[0219] like Fig. 9 As shown, system architecture 900 may include terminal devices 901, 902, 903, network 904 and server 905. Network 904 is used to provide a medium for communication links between terminal devices 901, 902, 903 and server 905. Network 904 may include various connection types, such as wired, wireless communication links or optical fiber cables, etc.

[0220] Users can use terminal devices 901, 902, 903 to interact with server 905 through network 904 to receive or send messages, etc. Various communication client applications can be installed on terminal devices 901, 902, 903, such as shopping applications, web browser applications, search applications, instant messaging tools, email clients, social platform software, etc. (only examples).

[0221] The terminal devices 901 , 902 , and 903 may be various electronic devices having a display screen and supporting web browsing, including but not limited to smart phones, tablet computers, laptop computers, and desktop computers, etc.

[0222] The server 905 may be a server that provides various services, such as a backend management server (only an example) that provides support for shopping websites browsed by users using the terminal devices 901, 902, and 903. The backend management server may analyze and process the received data such as product information query requests, and feed back the processing results (such as target push information, product information - only an example) to the terminal device.

[0223] It should be noted that the method for collecting click data provided in the embodiment of the present invention is generally executed by the server 905 , and accordingly, the device for collecting click data is generally set in the server 905 .

[0224] It should be understood that Fig. 9 The number of terminal devices, networks and servers in the embodiment is only for illustration. Any number of terminal devices, networks and servers may be provided according to implementation requirements.

[0225] Reference below Fig.10 , which shows a schematic diagram of the structure of a computer system 1000 of a terminal device suitable for implementing an embodiment of the present invention. Fig.10 The terminal 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 invention.

[0226] like Fig.10 As shown, the computer system 1000 includes a central processing unit (CPU) 1001, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 1002 or a program loaded from a storage part 1008 into a random access memory (RAM) 1003. In the RAM 1003, various programs and data required for the operation of the system 1000 are also stored. The CPU 1001, the ROM 1002, and the RAM 1003 are connected to each other via a bus 1004. An input / output (I / O) interface 1005 is also connected to the bus 1004.

[0227] The following components are connected to the I / O interface 1005: an input section 1006 including a keyboard, a mouse, etc.; an output section 1007 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 1008 including a hard disk, etc.; and a communication section 1009 including a network interface card such as a LAN card, a modem, etc. The communication section 1009 performs communication processing via a network such as the Internet. A drive 1010 is also connected to the I / O interface 1005 as needed. A removable medium 1011, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 1010 as needed, so that a computer program read therefrom is installed into the storage section 1008 as needed.

[0228] In particular, according to the embodiments disclosed in the present invention, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present invention include 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 the network through the communication part 1009, and / or installed from the removable medium 1011. When the computer program is executed by the central processing unit (CPU) 1001, the above-mentioned functions defined in the system of the present invention are executed.

[0229] It should be noted that the computer-readable medium shown in the present invention 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 or 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 invention, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device. In the present invention, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. This propagated data signal 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 a program 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, wire, optical cable, RF, etc., or any suitable combination of the above.

[0230] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present invention. In this regard, each box in the flow chart or block diagram can represent a module, a program segment, or a part of a code, and the above-mentioned module, program segment, or a part of a 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 flow chart, and the combination of the boxes in the block diagram or flow chart 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.

[0231] The modules involved in the embodiments of the present invention may be implemented in software or hardware. The modules described may also be set in a processor. For example, they may be described as: a processor includes a sending module, an acquisition module, a determination module, and a first processing module. The names of these modules do not, in some cases, constitute limitations on the modules themselves. For example, the sending module may also be described as a "module for sending a picture acquisition request to the connected server."

[0232] As another aspect, the present invention further provides a computer-readable medium, which may be included in the device described in the above embodiment; or may exist independently without being assembled into the device. The above computer-readable medium carries one or more programs, and when the above one or more programs are executed by a device, the device includes:

[0233] Listen for click events on the page;

[0234] If the click event is monitored, determine the embeddable target corresponding to the click event;

[0235] Determine the identifier of the embeddable point target according to the attribute information of the embeddable point target;

[0236] The click data is determined based on the identifier of the embeddable target.

[0237] The embodiment of the present invention determines the identifier of the embeddable target through the attribute information of the embeddable target, and determines the click data based on the identifier of the embeddable target. Since it does not depend on the link corresponding to the embeddable target, the method is suitable for collecting click data of different types of websites.

[0238] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may occur depending on design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.

Claims

1. A method for collecting click data, characterized in that: include: Listen for click events on the page; If the click event is monitored, determine the embeddable target corresponding to the click event; Determine the identifier of the embeddable target according to the attribute information of the embeddable target, including: determine that the embeddable target is the current node; determine the path of the current node according to the attribute information of the current node; determine whether the parent node of the current node is the root node, if so, determine the identifier of the embeddable target according to the path splicing result of the current node, otherwise, determine that the parent node of the current node is the updated current node; determine the path of the current node according to the attribute information of the current node; splice the path of the current node and the path splicing result of the child node of the current node to obtain the path splicing result of the current node, and execute the steps: determine whether the parent node of the current node is the root node; wherein, if the child node of the current node is the embeddable target, the path splicing result of the child node of the current node is the path of the child node of the current node; The click data is determined based on the identifier of the embeddable target.

2. The method according to claim 1, characterized in that The step of determining the embeddable target corresponding to the click event includes: Determine whether the click target corresponding to the click event meets the embeddable condition. If so, determine that the click target is the embeddable target.

3. The method according to claim 2, characterized in that The conditions for embedding points include: The click target belongs to an a tag, an input tag or a radio tag; and / or, The conditions for embedding points include: A click event or a proxy click event is bound to the click target; and / or, The conditions for embedding points include: The class name of the click target meets the preset naming rules.

4. The method according to claim 1, characterized in that The attribute information includes: node name, class name and node ID; The determining the path of the current node according to the attribute information of the current node includes: The node name, class name and node ID of the current node are concatenated to obtain the path of the current node.

5. The method according to claim 1, characterized in that Further including: Determine the uniform resource locator URL of the page, the text information of the embeddable target, and the business scenario identifier of the embeddable target; Determining the identifier of the embeddable target according to the path splicing result of the current node includes: The URL, the text information, the business scenario identifier and the path of the current node are concatenated to obtain the identifier of the embeddable target.

6. The method according to claim 5, characterized in that The splicing of the URL, the text information, the business scenario identifier and the path splicing result of the current node to obtain the identifier of the embeddable target includes: Splicing the URL, the text information, the business scenario identifier and the path splicing result of the current node to obtain a path identifier; Encrypt the path identifier to obtain the identifier of the embeddable target.

7. The method according to claim 1, characterized in that The step of determining click data according to the identifier of the embeddable target includes: Determine the business data of the embeddable target; The click data is generated according to the business data and the identifier of the embeddable target.

8. A method for displaying the identification of a target that can be buried, characterized in that: include: If a trigger operation on a page is monitored, the click event occurring on the page is monitored; If the click event is monitored, determine the embeddable target corresponding to the click event; Determine the identifier of the embeddable target according to the attribute information of the embeddable target, including: determine that the embeddable target is the current node; determine the path of the current node according to the attribute information of the current node; determine whether the parent node of the current node is the root node, if so, determine the identifier of the embeddable target according to the path splicing result of the current node, otherwise, determine that the parent node of the current node is the updated current node; determine the path of the current node according to the attribute information of the current node; splice the path of the current node and the path splicing result of the child node of the current node to obtain the path splicing result of the current node, and execute the steps: determine whether the parent node of the current node is the root node; wherein, if the child node of the current node is the embeddable target, the path splicing result of the child node of the current node is the path of the child node of the current node; Display the identification of the target that can be buried.

9. A method for querying click data, characterized in that: include: Receive identification of a target that can be buried; Query the click data corresponding to the identifier of the embeddable target; Among them, the identification of the embeddable target is determined by the attribute information of the embeddable target, including: determining that the embeddable target is the current node; determining the path of the current node according to the attribute information of the current node; determining whether the parent node of the current node is the root node, if so, determining the identification of the embeddable target according to the path splicing result of the current node, otherwise, determining that the parent node of the current node is the updated current node; determining the path of the current node according to the attribute information of the current node; splicing the path of the current node and the path splicing result of the child node of the current node to obtain the path splicing result of the current node, and executing the steps: determining whether the parent node of the current node is the root node; among them, if the child node of the current node is the embeddable target, the path splicing result of the child node of the current node is the path of the child node of the current node; the click data is determined by the identification of the embeddable target.

10. A device for collecting click data, characterized in that: include: A monitoring module, configured to monitor click events occurring on the page; A target determination module is configured to determine a target that can be embedded corresponding to the click event if the click event is monitored; An identification determination module is configured to determine the identification of the embeddable target according to the attribute information of the embeddable target, including: determining that the embeddable target is the current node; determining the path of the current node according to the attribute information of the current node; determining whether the parent node of the current node is the root node, if so, determining the identification of the embeddable target according to the path splicing result of the current node, otherwise, determining that the parent node of the current node is the updated current node; determining the path of the current node according to the attribute information of the current node; splicing the path of the current node and the path splicing result of the child node of the current node to obtain the path splicing result of the current node, and executing the steps: determining whether the parent node of the current node is the root node; wherein, if the child node of the current node is the embeddable target, the path splicing result of the child node of the current node is the path of the child node of the current node; The data determination module is configured to determine the click data based on the identifier of the embeddable target.

11. A device for displaying the identification of a target that can be buried, characterized in that: include: A monitoring module, configured to monitor the page if a trigger operation for the page is monitored; The click event that occurred; A target determination module is configured to determine a target that can be embedded corresponding to the click event if the click event is monitored; An identification determination module is configured to determine the identification of the embeddable target according to the attribute information of the embeddable target, including: determining that the embeddable target is the current node; determining the path of the current node according to the attribute information of the current node; determining whether the parent node of the current node is the root node, if so, determining the identification of the embeddable target according to the path splicing result of the current node, otherwise, determining that the parent node of the current node is the updated current node; determining the path of the current node according to the attribute information of the current node; splicing the path of the current node and the path splicing result of the child node of the current node to obtain the path splicing result of the current node, and executing the steps: determining whether the parent node of the current node is the root node; wherein, if the child node of the current node is the embeddable target, the path splicing result of the child node of the current node is the path of the child node of the current node; A display module is configured to display the identification of the embeddable target.

12. A device for querying click data, characterized in that: include: A receiving module configured to receive an identifier of a target that can be buried; A query module configured to query click data corresponding to the identifier of the embeddable target; Among them, the identification of the embeddable target is determined by the attribute information of the embeddable target, including: determining that the embeddable target is the current node; determining the path of the current node according to the attribute information of the current node; determining whether the parent node of the current node is the root node, if so, determining the identification of the embeddable target according to the path splicing result of the current node, otherwise, determining that the parent node of the current node is the updated current node; determining the path of the current node according to the attribute information of the current node; splicing the path of the current node and the path splicing result of the child node of the current node to obtain the path splicing result of the current node, and executing the steps: determining whether the parent node of the current node is the root node; among them, if the child node of the current node is the embeddable target, the path splicing result of the child node of the current node is the path of the child node of the current node; the click data is determined by the identification of the embeddable target.

13. An electronic device, characterized in that: include: one or more processors; a storage device for storing one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1 to 9.

14. A computer readable medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method according to any one of claims 1 to 9 is implemented.

Citation Information

Patent Citations

  • Automatic burying point setting method and device

    CN107562620A