CN113761310A - Method and device for collecting click data - Google Patents

Method and device for collecting click data Download PDF

Info

Publication number
CN113761310A
CN113761310A CN202010645881.8A CN202010645881A CN113761310A CN 113761310 A CN113761310 A CN 113761310A CN 202010645881 A CN202010645881 A CN 202010645881A CN 113761310 A CN113761310 A CN 113761310A
Authority
CN
China
Prior art keywords
point target
target
click
determining
current node
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202010645881.8A
Other languages
Chinese (zh)
Inventor
唐谢军
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Jingdong Century Trading Co Ltd
Beijing Wodong Tianjun Information Technology Co Ltd
Original Assignee
Beijing Jingdong Century Trading Co Ltd
Beijing Wodong Tianjun Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Jingdong Century Trading Co Ltd, Beijing Wodong Tianjun Information Technology Co Ltd filed Critical Beijing Jingdong Century Trading Co Ltd
Priority to CN202010645881.8A priority Critical patent/CN113761310A/en
Publication of CN113761310A publication Critical patent/CN113761310A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses a method and a device for collecting click data, and relates to the technical field of computers. One embodiment of the method comprises: a method of collecting click data, comprising: monitoring click events occurring on a page; if the click event is monitored, determining a corresponding burial point target of the click event; determining the identifier of the buried point target according to the attribute information of the buried point target; and determining click data according to the identification of the burial point target. This embodiment can be adapted to different types of websites.

Description

Method and device for collecting click data
Technical Field
The invention relates to the technical field of computers, in particular to a method and a device for collecting click data.
Background
Since the click data can reflect the behavior preference of the user, in an actual application scenario, the layout and the display content of the page can be adjusted based on the click data.
In the prior art, click data of a buriable point target is generally determined according to a link corresponding to the buriable point target.
However, this method is not applicable to partial click behavior in an operation-type website. For example, after the user clicks the buriable point target, the page does not jump but pops up a popup window, and at this time, the click data of the buriable point target cannot be determined according to the existing method.
Disclosure of Invention
In view of this, embodiments of the present invention provide a method and an apparatus for collecting click data, which can be applied to different types of websites.
In a first aspect, an embodiment of the present invention provides a method for collecting click data, including:
monitoring click events occurring on a page;
if the click event is monitored, determining a corresponding burial point target of the click event;
determining the identifier of the buried point target according to the attribute information of the buried point target;
and determining click data according to the identification of the burial point target.
Preferably, the first and second electrodes are formed of a metal,
the determining of the corresponding burial point target of the click event includes:
and determining whether a click target corresponding to the click event meets a buried point condition, and if so, determining that the click target is the buried point target.
Preferably, the first and second electrodes are formed of a metal,
the buried point condition includes:
the click target belongs to an a label, an input label or a radio label.
Preferably, the first and second electrodes are formed of a metal,
the buried point condition includes:
and the click target is bound with a click event or a proxy click event.
Preferably, the first and second electrodes are formed of a metal,
the buried point condition includes:
and the class name of the click target meets a preset naming rule.
Preferably, the first and second electrodes are formed of a metal,
determining the identifier of the buried point target according to the attribute information of the buried point target comprises the following steps:
determining the target of the buriable point as a current node;
determining the path of the current node according to the attribute information of the current node;
determining whether the father node of the current node is a root node, if so, determining the identifier of the buriable point target according to the path splicing result of the current node, otherwise, determining the father node of the current node as 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 following steps: determining whether a parent node of the current node is a root node; and if the child node of the current node is the target of the buriable point, the path splicing result of the child node of the current node is the path of the child node of the current node.
Preferably, the first and second electrodes are formed of a metal,
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:
and splicing the node name, the class name and the node ID of the current node to obtain the path of the current node.
Preferably, the first and second electrodes are formed of a metal,
further comprising:
determining a Uniform Resource Locator (URL) of the page, text information of the buried point target and a service scene identifier of the buried point target;
determining the identifier of the buriable point target according to the path splicing result of the current node, wherein the determining comprises the following steps:
and splicing the URL, the text information, the service scene identification and the path splicing result of the current node to obtain the identification of the target of the buried point.
Preferably, the first and second electrodes are formed of a metal,
the splicing the URL, the text information, the service scene identifier, and the path splicing result of the current node to obtain the identifier of the buriable point target includes:
splicing the URL, the text information, the service scene identification and the path splicing result of the current node to obtain a path identification;
and encrypting the path identification to obtain the identification of the buriable point target.
Preferably, the first and second electrodes are formed of a metal,
determining click data according to the identifier of the burial point target, comprising:
determining the business data of the burial point target;
and generating the click data according to the service data and the identification of the burial point target.
In a second aspect, an embodiment of the present invention provides a method for displaying an identifier of a target with a buried point, including:
if the trigger operation aiming at the page is monitored, monitoring a click event occurring on the page;
if the click event is monitored, determining a corresponding burial point target of the click event;
determining the identifier of the buried point target according to the attribute information of the buried point target;
and displaying the identification of the buriable point target.
In a third aspect, an embodiment of the present invention provides a method for querying click data, including:
receiving an identification of a buriable point target;
inquiring click data corresponding to the identification of the burial point target;
wherein the identity of the buried point target is determined by the attribute information of the buried point target, and the click data is determined by the identity of the buried point target.
In a fourth aspect, an embodiment of the present invention provides an apparatus for collecting click data, including:
the monitoring module is configured to monitor click events occurring on the page;
the target determining module is configured to determine a corresponding burial point target of the click event if the click event is monitored;
the identification determining module is configured to determine the identification of the buried point target according to the attribute information of the buried point target;
and the data determining module is configured to determine click data according to the identification of the burial point target.
In a fifth aspect, an embodiment of the present invention provides an apparatus for displaying an identifier of a target with a buried point, including:
the monitoring module is configured to monitor a page if the triggering operation aiming at the page is monitored; a click event that occurred;
the target determining module is configured to determine a corresponding burial point target of the click event if the click event is monitored;
the identification determining module is configured to determine the identification of the buried point target according to the attribute information of the buried point target;
a presentation module configured to present an identification of the buriable point target.
In a sixth aspect, an embodiment of the present invention provides an apparatus for querying click data, including:
a receiving module configured to receive an identification of a buriable point target;
the query module is configured to query click data corresponding to the identifier of the burial point target;
wherein the identity of the buried point target is determined by the attribute information of the buried point target, and the click data is determined by the identity of the buried point target.
In a seventh aspect, an embodiment of the present invention provides an electronic device, including:
one or more processors;
a storage device for storing one or more programs,
when executed by the one or more processors, cause the one or more processors to implement the method of any of the embodiments described above.
In an eighth aspect, the present invention provides a computer-readable medium, on which a computer program is stored, where the computer program is executed by a processor to implement the method of any one of the above embodiments.
One embodiment of the above invention has the following advantages or benefits: and determining the identifier of the buried point target according to the attribute information of the buried point target, and determining the click data based on the identifier of the buried point target. Because the method does not depend on the link corresponding to the burial point target, the method is suitable for collecting click data of different types of websites.
Further effects of the above-mentioned non-conventional alternatives will be described below in connection with the embodiments.
Drawings
The drawings are included to provide a better understanding of the invention and are not to be construed as unduly limiting the invention. Wherein:
FIG. 1 is a flow chart of a method of collecting click data provided by an embodiment of the present invention;
FIG. 2 is a flow chart of a method for collecting click data according to another embodiment of the present invention;
FIG. 3 is a schematic diagram of a node structure provided by one embodiment of the present invention;
FIG. 4 is a flow chart of a method of presenting an identification of a buriable point target provided by an embodiment of the present invention;
FIG. 5 is a flow diagram of a method for querying click data provided by one embodiment of the invention;
FIG. 6 is a diagram illustrating an apparatus for collecting click data according to an embodiment of the present invention;
FIG. 7 is a schematic diagram of an apparatus for displaying an identification of a buriable point target, according to an embodiment of the present invention;
FIG. 8 is a diagram illustrating an apparatus for querying click data according to an embodiment of the present invention;
FIG. 9 is an exemplary system architecture diagram in which embodiments of the present invention may be employed;
fig. 10 is a schematic block diagram of a computer system suitable for use in implementing a terminal device or server according to an embodiment of the present invention.
Detailed Description
Exemplary embodiments of the present invention are described below with reference to the accompanying drawings, in which various details of embodiments of the invention are included to assist understanding, and which are to be considered as merely exemplary. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the invention. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
In the prior art, click data of a buriable point target is generally determined according to a link corresponding to the buriable point target. Specifically, in the prior art, the front end generates an identifier of the buriable point target according to the DOM element, and when the click behavior is monitored, the identifier of the buriable point target is added to a link corresponding to the buriable point target. And the back-end server determines click data corresponding to the click behavior according to the link containing the identification of the burial point target.
However, this method is not applicable to partial click behavior in an operation-type website.
In view of this, as shown in fig. 1, an embodiment of the present invention provides a method for collecting click data, including:
step 101: and monitoring click events occurring on the page, and executing the step 102 if the click events are monitored.
The method is applied to the front end and can be realized by JavaScript. One click behavior corresponds to one click event. The click behavior may be for a target with a buried point, or for other targets. The click behavior of the target with the embedded point belongs to effective click behavior, and the click data collected by the embodiment of the invention is click data generated by the effective click behavior.
Step 102: and determining a corresponding buried point target of the click event.
The click target corresponding to the click event may be a buried point target or a non-buried point target, and how to determine whether the click target is a buried point target will be described in the following embodiments.
Step 103: and determining the identification of the buried point target according to the attribute information of the buried point target.
The attribute information includes: a node name (i.e., nodeName), a class name (i.e., className), and an ID.
In a practical application scenario, the identifier of the buriable point target may be determined according to one or more items of the attribute information, for example, the identifier of the buriable point target is determined according to the node name, the class name and the ID.
Step 104: and determining click data according to the identification of the target with the buried point.
The method determines the identification of the buried point target through the attribute information of the buried point target, and determines the click data based on the identification of the buried point target. Because the method does not depend on the link corresponding to the burial point target, the method is suitable for collecting click data of different types of websites.
In one embodiment of the present invention, whether the click target is a buried point target may be determined according to a preset buried point condition. At this time, determining a corresponding buriable point target of the click event includes: and determining whether the click target corresponding to the click event meets the buried point condition, and if so, determining that the click target is the buried point target.
And if the click target does not meet the burial point condition, terminating the process and not executing the subsequent steps.
One embodiment of the present invention provides at least seven buriable point conditions, including:
(1) a buried point condition comprising: the click target belongs to an a tag, an input tag or a radio tag.
(2) A buried point condition comprising: the click target is bound with a click event or a proxy click event.
(3) A buried point condition comprising: the class name of the click target meets a preset naming rule. For example, whether the class name begins with "J _ btn".
(4) A combination of (1) and (2) above.
(5) A combination of (1) and (3) above.
(6) A combination of (2) and (3) above.
(7) A combination of (1), (2) and (3) above.
In one embodiment of the present invention, determining an identifier of a buried point target according to attribute information of the buried point target includes:
s1: determining a target of the buriable point as a current node;
s2: determining the path of the current node according to the attribute information of the current node;
s3: determining whether the parent node of the current node is a root node, if so, executing S7, otherwise, executing S4;
s4: determining a father node of the current node as an updated current node;
s5: determining the path of the current node according to the attribute information of the current node;
s6: 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 S3; if the child node of the current node is the target of the buriable point, the path splicing result of the child node of the current node is the path of the child node of the current node;
s7: and determining the identifier of the target of the burial point according to the path splicing result of the current node.
The embodiment of the invention starts from the target of the buried point, sequentially traverses the upper nodes of the target of the buried point, and further determines the identifier of the target of the buried point. In an actual application scenario, the path of each node can be determined first, and then the paths of the nodes are spliced to obtain the identifier of the target with the buried point.
In an embodiment of the present invention, if the attribute information includes a node name, a class name, and a node ID, S2 specifically includes: and splicing the node name, the class name and the node ID of the current node to obtain the path of the current node.
Similarly, if the attribute information includes the node name and the node ID, S2 specifically includes: and splicing 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: and determining the path of the current node as the class name.
In one embodiment of the invention, the method further comprises: determining a URL (uniform resource locator) of a page, text information of a buried point target and a service scene identifier of the buried point target;
s7, including:
and splicing the URL, the text information, the service scene identification and the path splicing result of the current node to obtain the identification of the burial point target.
In an actual application scenario, the path splicing result of the current node can be directly used as the identifier of the target of the burial point. However, in consideration of the fact that different pages may have the same identifier of the buriable point target, the embodiment of the invention further distinguishes the identifiers of different buriable point targets through the URL, the text information and the service scene identifier, thereby reducing the probability that the identifiers of different buriable point targets are the same. Of course, the identifier of the buriable point target can also be obtained according to any one or two of the service scene identifier, the URL and the text information, and the path splicing result of the current node.
In an embodiment of the present invention, the obtaining of the identifier of the buriable point target by splicing the URL, the text information, the service scene identifier, and the path splicing result of the current node includes:
splicing the URL, the text information, the service scene identification and the path splicing result of the current node to obtain a path identification;
and encrypting the path identification to obtain the identification of the buriable point target.
In the embodiment of the invention, the path identifier is obtained by splicing the URL, the text information, the service scene identifier and the path splicing result of the current node, and the specific splicing sequence is not limited. In addition, considering that the path identifier obtained by splicing is possibly longer and inconvenient to store, the embodiment of the invention obtains a shorter identifier of the buriable point target through encryption.
In one embodiment of the present invention, determining click data based on the identity of the buriable point target includes:
determining service data of a burial point target;
and generating click data according to the service data and the mark of the buriable point target.
The service data comprises: name of the business system, number of the business system, user ID, item ID, and the like. And correspondingly storing the service data and the mark of the burial point target to obtain click data.
As shown in fig. 2, an embodiment of the present invention provides a method for collecting click data, including:
step 201: and monitoring click events occurring on the page, and executing the step 202 if the click events are monitored.
The user clicks on "post" in the page.
Step 202: and determining whether the click target corresponding to the click event belongs to an a tag, an input tag or a radio tag, if so, executing the step 203, otherwise, terminating the process.
"issue" belongs to the a-tag.
Step 203: and determining the click target as a buried point target.
Step 204: determining the target of the buried point as the current node.
As shown in fig. 3, the node name (nodeName) corresponding to "publish" is "a", and "a" is the current node, and the nodes are traversed sequentially to the upper node.
Step 205: and splicing the node name, the class name and the node ID of the current node to obtain the path of the current node.
If the node name (nodeName), class name (className), or node ID of the current node does not exist, no concatenation occurs. The node name and the class name are spliced with ". multidata", and the class name and the node ID are spliced with "#".
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 path of the current node obtained through splicing is 'A.cd-btn.J _ publish'.
In a practical application scenario, the concatenation symbols used between the node names, class names and node IDs are not limited to the aforementioned "." and "#", and other symbols, such as "#", may also be used.
Step 206: it is determined whether the parent node of the current node is the root node, if so, step 210 is performed, otherwise, step 207 is performed.
The parent node of the current node is named "DIV" and is not the root node. The root node is the body shown in fig. 3.
Step 207: and determining the father node of the current node as the updated current node.
And taking the DIV as the current node, and continuing to execute the subsequent steps.
Step 208: and splicing the node name, the class name and the node ID of the current node to obtain the path of the current node.
The node name of the current node is ' DIV ', the class name is ' cd-layout ', and the node ID does not exist, so that the node name and the class name are only spliced to obtain the path of the current node which is ' DIV.
Step 209: and 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 step 206.
And if the child node of the current node is the target of the buriable point, the path splicing result of the child node of the current node is the path of the child node of the current node.
The path splicing result of "a" is "a.cd-btn.j _ publish".
The path splicing result of "DIV" is "DIV.cd-layout/A.cd-btn.J _ publishing".
By analogy, the traversal is continued according to fig. 3, and the path splicing result of the top-level "DIV" is obtained as "DIV # J _ container/DIV.
Step 210: and determining the URL of the page, the text information of the buried point target and the service scene identification of the buried point target.
Step 211: and splicing the URL, the text information, the service scene identifier and the path splicing result of the current node to obtain a path identifier.
And (3) splicing the obtained path identifiers: "SYS _ PC _ jshopx.jd.com/pageManage/m _ DI V # J _ container/div.cd-main/div.cd-layout/a.cd-btn.j _ publishing".
Wherein, SYS _ PC is a service scene identifier, jshoopx.jd.com/pageManage/m is URL, and release is text information.
Step 212: and encrypting the path identification to obtain the identification of the buriable point target.
The path identification may be encrypted using the MD5 message digest algorithm.
Step 213: business data of the buriable point target is determined.
Step 214: and generating click data according to the service data and the mark of the buriable point target.
The method can be realized by embedding the bottom code of the embedded point target, the identification of the embedded point target is automatically generated when clicking, the performance of the page is not influenced, extra point embedding work and on-line work are not needed, and the acquisition process of click data becomes more flexible and efficient. The method is suitable for collecting click data of all types of websites including browsing types, operation types and the like.
The embodiment of the invention provides a method for uploading click data, which comprises the following steps:
monitoring click events occurring on a page;
if the click event is monitored, determining a corresponding burial point target of the click event;
determining the identification of the target of the buried point according to the attribute information of the target of the buried point;
determining click data according to the identification of the target with the embedded point;
and uploading the click data to a preset storage position.
In an actual application scenario, a buried point interface can be called to upload click data to a background server or other storage locations.
In order to enable a user to more intuitively obtain the identifier of the buriable point target, an embodiment of the present invention provides a method for displaying the identifier of the buriable point target, as shown in fig. 4, where the method includes:
step 401: and when the triggering operation aiming at the page is monitored, monitoring a click event occurring on the page.
The triggering operation can be URL modification, page clicking and the like, and click data are collected after the triggering operation is monitored. The method for collecting click data provided in the above embodiments is based on the collected click data, and details are not repeated here.
Step 402: and when the click event is monitored, determining a corresponding burial point target of the click event.
Step 403: and determining the identification of the buried point target according to the attribute information of the buried point target.
Step 404: and displaying the identification of the buriable point target.
The identification of the buriable point target can be shown in a page in a display form such as a pop-up window. The user can obtain the identifier of the buried point target through the method, and then click data is inquired based on the identifier of the buried point target.
As shown in fig. 5, an embodiment of the present invention provides a method for querying click data, including:
step 501: an identification of a buriable point target is received.
The method can also obtain the identification of the target with the embedded point by displaying the input box and the like.
Step 502: click data corresponding to the identity of the buriable point target is queried.
The identification of the buried point target is determined by the attribute information of the buried point target, and the click data is determined by the identification of the buried point target.
As shown in fig. 6, an embodiment of the present invention provides an apparatus for collecting click data, including:
the monitoring module 601 is configured to monitor click events occurring on a page;
a target determination module 602, configured to determine a buriable point target corresponding to a click event if the click event is monitored;
an identifier determining module 603 configured to determine an identifier of the buried point target according to the attribute information of the buried point target;
a data determination module 604 configured to determine click data based on the identity of the buriable point target.
In an embodiment of the present invention, the target determining module 602 is configured to determine whether a click target corresponding to the click event satisfies a buried point condition, and if so, determine that the click target is a buried point target.
In one embodiment of the present invention, the buried point conditions include: the click target belongs to an a tag, an input tag or a radio tag.
In one embodiment of the present invention, the buried point conditions include: the click target is bound with a click event or a proxy click event.
In one embodiment of the present invention, the buried point conditions include: the class name of the click target meets a preset naming rule.
In one embodiment of the present invention, the identity determination module 603 is configured to:
s1: determining a target of the buriable point as a current node;
s2: determining the path of the current node according to the attribute information of the current node;
s3: determining whether the parent node of the current node is a root node, if so, executing S7, otherwise, executing S4;
s4: determining a father node of the current node as an updated current node;
s5: determining the path of the current node according to the attribute information of the current node;
s6: 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 S3; if the child node of the current node is the target of the buriable point, the path splicing result of the child node of the current node is the path of the child node of the current node;
s7: and determining the identifier of the target of the burial point according to the path splicing result of the current node.
In one embodiment of the present invention, the attribute information includes: node name, class name and node ID;
the identifier determining module 603 is configured to splice the node name, the class name, and the node ID of the current node to obtain the path of the current node.
In an embodiment of the present invention, the identifier determining module 603 is configured to determine a uniform resource locator URL of a page, text information of a buried point target, and a service scene identifier of the buried point target; and splicing the URL, the text information, the service scene identification and the path splicing result of the current node to obtain the identification of the burial point target.
In an embodiment of the present invention, the identifier determining module 603 is configured to splice the URL, the text information, the service scene identifier, and the path splicing result of the current node to obtain a path identifier; and encrypting the path identification to obtain the identification of the buriable point target.
In one embodiment of the invention, the data determination module 604 is configured to determine business data of a buried point target; and generating click data according to the service data and the mark of the buriable point target.
As shown in fig. 7, an embodiment of the present invention provides an apparatus for displaying an identifier of a target with a buried point, including:
a monitoring module 701 configured to monitor a page if a trigger operation for the page is monitored; a click event that occurred;
a target determination module 702 configured to determine a buriable point target corresponding to a click event if the click event is monitored;
an identifier determining module 703 configured to determine an identifier of the buriable point target according to the attribute information of the buriable point target;
a presentation module 704 configured to present an identification of a buriable point target.
As shown in fig. 8, an embodiment of the present invention provides an apparatus for querying click data, including:
a receiving module 801 configured to receive an identification of a buriable point target;
a query module 802 configured to query click data corresponding to an identifier of a buriable point target;
the identification of the buried point target is determined by the attribute information of the buried point target, and the click data is determined by the identification of the buried point target.
An embodiment of the present invention provides an electronic device, including:
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 are caused to implement the method of any of the embodiments as described above.
FIG. 9 illustrates an exemplary system architecture 900 to which the method of collecting click data or the apparatus for collecting click data of embodiments of the invention may be applied.
As shown in fig. 9, the system architecture 900 may include end devices 901, 902, 903, a network 904, and a server 905. Network 904 is the medium used to provide 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 fiber optic cables, to name a few.
A user may use the terminal devices 901, 902, 903 to interact with a server 905 over a network 904 to receive or send messages and the like. The terminal devices 901, 902, 903 may have installed thereon various messenger client applications such as, for example only, a shopping-like application, a web browser application, a search-like application, an instant messaging tool, a mailbox client, social platform software, etc.
The terminal devices 901, 902, 903 may be various electronic devices having a display screen and supporting web browsing, including but not limited to smart phones, tablet computers, laptop portable computers, desktop computers, and the like.
The server 905 may be a server providing various services, such as a background management server (for example only) providing support for shopping websites browsed by users using the terminal devices 901, 902, 903. The backend management server may analyze and perform other processing on the received data such as the product information query request, and feed back a processing result (for example, target push information, product information — just an example) to the terminal device.
It should be noted that the method for collecting click data provided by the embodiment of the present invention is generally executed by the server 905, and accordingly, the device for collecting click data is generally disposed in the server 905.
It should be understood that the number of terminal devices, networks, and servers in fig. 9 is merely illustrative. There may be any number of terminal devices, networks, and servers, as desired for implementation.
Referring now to FIG. 10, a block diagram of a computer system 1000 suitable for use with a terminal device implementing an embodiment of the invention is shown. The terminal device shown in fig. 10 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present invention.
As shown in fig. 10, the computer system 1000 includes a Central Processing Unit (CPU)1001 that 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 section 1008 into a Random Access Memory (RAM) 1003. In the RAM 1003, various programs and data necessary for the operation of the system 1000 are also stored. The CPU 1001, ROM 1002, and RAM 1003 are connected to each other via a bus 1004. An input/output (I/O) interface 1005 is also connected to bus 1004.
The following components are connected to the I/O interface 1005: an input section 1006 including a keyboard, a mouse, and the like; an output section 1007 including a display such as a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, and a speaker; a storage portion 1008 including a hard disk and the like; and a communication section 1009 including a network interface card such as a LAN card, a modem, or the like. The communication section 1009 performs communication processing via a network such as the internet. The driver 1010 is also connected to the I/O interface 1005 as necessary. A removable medium 1011 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 1010 as necessary, so that a computer program read out therefrom is mounted into the storage section 1008 as necessary.
In particular, according to the embodiments of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method illustrated in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network through the communication part 1009 and/or installed from the removable medium 1011. The computer program executes the above-described functions defined in the system of the present invention when executed by the Central Processing Unit (CPU) 1001.
It should be noted that the computer readable medium shown in the present invention can be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, 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 disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present invention, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In the present invention, however, a computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, fiber optic cable, RF, etc., or any suitable combination of the foregoing.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams or flowchart illustration, and combinations of blocks in the block diagrams or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The modules described in the embodiments of the present invention may be implemented by software or hardware. The described modules may also be provided in a processor, which may be described as: a processor includes a sending module, an obtaining module, a determining module, and a first processing module. The names of these modules do not form a limitation on the modules themselves in some cases, and for example, the sending module may also be described as a "module sending a picture acquisition request to a connected server".
As another aspect, the present invention also provides a computer-readable medium that may be contained in the apparatus described in the above embodiments; or may be separate and not incorporated into the device. The computer readable medium carries one or more programs which, when executed by a device, cause the device to comprise:
monitoring click events occurring on a page;
if the click event is monitored, determining a corresponding burial point target of the click event;
determining the identifier of the buried point target according to the attribute information of the buried point target;
and determining click data according to the identification of the burial point target.
According to the embodiment of the invention, the identifier of the target with the buried point is determined through the attribute information of the target with the buried point, and the click data is determined based on the identifier of the target with the buried point. Because the method does not depend on the link corresponding to the burial point target, the method is suitable for collecting click data of different types of websites.
The above-described embodiments should not be construed as limiting the scope of the invention. Those skilled in the art will appreciate that various modifications, combinations, sub-combinations, and substitutions can occur, depending on design requirements and other factors. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (15)

1. A method of collecting click data, comprising:
monitoring click events occurring on a page;
if the click event is monitored, determining a corresponding burial point target of the click event;
determining the identifier of the buried point target according to the attribute information of the buried point target;
and determining click data according to the identification of the burial point target.
2. The method of claim 1,
the determining of the corresponding burial point target of the click event includes:
and determining whether a click target corresponding to the click event meets a buried point condition, and if so, determining that the click target is the buried point target.
3. The method of claim 2,
the buried point condition includes:
the click target belongs to an a label, an input label or a radio label;
and/or the presence of a gas in the gas,
the buried point condition includes:
the click target is bound with a click event or a proxy click event;
and/or the presence of a gas in the gas,
the buried point condition includes:
and the class name of the click target meets a preset naming rule.
4. The method of claim 1,
determining the identifier of the buried point target according to the attribute information of the buried point target comprises the following steps:
determining the target of the buriable point as a current node;
determining the path of the current node according to the attribute information of the current node;
determining whether the father node of the current node is a root node, if so, determining the identifier of the buriable point target according to the path splicing result of the current node, otherwise, determining the father node of the current node as 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 following steps: determining whether a parent node of the current node is a root node; and if the child node of the current node is the target of the buriable point, the path splicing result of the child node of the current node is the path of the child node of the current node.
5. The method of claim 4,
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:
and splicing the node name, the class name and the node ID of the current node to obtain the path of the current node.
6. The method of claim 4, further comprising:
determining a Uniform Resource Locator (URL) of the page, text information of the buried point target and a service scene identifier of the buried point target;
determining the identifier of the buriable point target according to the path splicing result of the current node, wherein the determining comprises the following steps:
and splicing the URL, the text information, the service scene identification and the path splicing result of the current node to obtain the identification of the target of the buried point.
7. The method of claim 6,
the splicing the URL, the text information, the service scene identifier, and the path splicing result of the current node to obtain the identifier of the buriable point target includes:
splicing the URL, the text information, the service scene identification and the path splicing result of the current node to obtain a path identification;
and encrypting the path identification to obtain the identification of the buriable point target.
8. The method of claim 1,
determining click data according to the identifier of the burial point target, comprising:
determining the business data of the burial point target;
and generating the click data according to the service data and the identification of the burial point target.
9. A method of displaying an identification of a buriable point target, comprising:
if the trigger operation aiming at the page is monitored, monitoring a click event occurring on the page;
if the click event is monitored, determining a corresponding burial point target of the click event;
determining the identifier of the buried point target according to the attribute information of the buried point target;
and displaying the identification of the buriable point target.
10. A method for querying click data, comprising:
receiving an identification of a buriable point target;
inquiring click data corresponding to the identification of the burial point target;
wherein the identity of the buried point target is determined by the attribute information of the buried point target, and the click data is determined by the identity of the buried point target.
11. An apparatus for collecting click data, comprising:
the monitoring module is configured to monitor click events occurring on the page;
the target determining module is configured to determine a corresponding burial point target of the click event if the click event is monitored;
the identification determining module is configured to determine the identification of the buried point target according to the attribute information of the buried point target;
and the data determining module is configured to determine click data according to the identification of the burial point target.
12. An apparatus for displaying an identification of a buriable point target, comprising:
the monitoring module is configured to monitor a page if the triggering operation aiming at the page is monitored; a click event that occurred;
the target determining module is configured to determine a corresponding burial point target of the click event if the click event is monitored;
the identification determining module is configured to determine the identification of the buried point target according to the attribute information of the buried point target;
a presentation module configured to present an identification of the buriable point target.
13. An apparatus for querying click data, comprising:
a receiving module configured to receive an identification of a buriable point target;
the query module is configured to query click data corresponding to the identifier of the burial point target;
wherein the identity of the buried point target is determined by the attribute information of the buried point target, and the click data is determined by the identity of the buried point target.
14. An electronic device, comprising:
one or more processors;
a storage device for storing one or more programs,
when executed by the one or more processors, cause the one or more processors to implement the method of any one of claims 1-10.
15. A computer-readable medium, on which a computer program is stored, which, when being executed by a processor, carries out the method according to any one of claims 1-10.
CN202010645881.8A 2020-07-07 2020-07-07 Method and device for collecting click data Pending CN113761310A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010645881.8A CN113761310A (en) 2020-07-07 2020-07-07 Method and device for collecting click data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010645881.8A CN113761310A (en) 2020-07-07 2020-07-07 Method and device for collecting click data

Publications (1)

Publication Number Publication Date
CN113761310A true CN113761310A (en) 2021-12-07

Family

ID=78785516

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010645881.8A Pending CN113761310A (en) 2020-07-07 2020-07-07 Method and device for collecting click data

Country Status (1)

Country Link
CN (1) CN113761310A (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107491488A (en) * 2017-07-18 2017-12-19 北京京东尚科信息技术有限公司 The method and apparatus of page data collection
CN107562620A (en) * 2017-08-24 2018-01-09 阿里巴巴集团控股有限公司 One kind buries an automatic setting method and device
CN107633019A (en) * 2017-08-24 2018-01-26 阿里巴巴集团控股有限公司 A kind of page events acquisition method and device
WO2019085083A1 (en) * 2017-11-01 2019-05-09 平安科技(深圳)有限公司 Control matching method and apparatus, computer device, and storage medium
CN110059282A (en) * 2019-04-23 2019-07-26 北京奇艺世纪科技有限公司 A kind of acquisition methods and system of interactive class data
CN110362767A (en) * 2018-04-09 2019-10-22 北京京东尚科信息技术有限公司 Bury a processing method, device, system and computer readable storage medium
CN110472175A (en) * 2019-07-03 2019-11-19 平安证券股份有限公司 User behavior analysis method and terminal device
CN110750431A (en) * 2019-10-24 2020-02-04 阿里巴巴(中国)有限公司 Data buried point configuration method and device
CN111046317A (en) * 2019-12-27 2020-04-21 北京奇艺世纪科技有限公司 Page data acquisition method, device, equipment and computer readable storage medium

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107491488A (en) * 2017-07-18 2017-12-19 北京京东尚科信息技术有限公司 The method and apparatus of page data collection
CN107562620A (en) * 2017-08-24 2018-01-09 阿里巴巴集团控股有限公司 One kind buries an automatic setting method and device
CN107633019A (en) * 2017-08-24 2018-01-26 阿里巴巴集团控股有限公司 A kind of page events acquisition method and device
WO2019085083A1 (en) * 2017-11-01 2019-05-09 平安科技(深圳)有限公司 Control matching method and apparatus, computer device, and storage medium
CN110362767A (en) * 2018-04-09 2019-10-22 北京京东尚科信息技术有限公司 Bury a processing method, device, system and computer readable storage medium
CN110059282A (en) * 2019-04-23 2019-07-26 北京奇艺世纪科技有限公司 A kind of acquisition methods and system of interactive class data
CN110472175A (en) * 2019-07-03 2019-11-19 平安证券股份有限公司 User behavior analysis method and terminal device
CN110750431A (en) * 2019-10-24 2020-02-04 阿里巴巴(中国)有限公司 Data buried point configuration method and device
CN111046317A (en) * 2019-12-27 2020-04-21 北京奇艺世纪科技有限公司 Page data acquisition method, device, equipment and computer readable storage medium

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
PRAJAKS JITNGERNMADAN等: "Research Trends of Online Marketing in Social Media Research", 《2018 INTERNATIONAL CONFERENCE ON INFORMATION TECHNOLOGY (INCIT)》, 23 December 2018 (2018-12-23) *
房勇;李银胜;: "基于DOM状态转换的隐网页信息抽取算法", 计算机应用与软件, no. 09, 15 September 2015 (2015-09-15) *

Similar Documents

Publication Publication Date Title
CN110708346B (en) Information processing system and method
CN113987074A (en) Distributed service full-link monitoring method and device, electronic equipment and storage medium
CN111427701A (en) Workflow engine system and business processing method
US10671686B2 (en) Processing webpage data
CN111461754A (en) Method and device for determining flow source of order
CN115470432A (en) Page rendering method and device, electronic equipment and computer readable medium
US10931771B2 (en) Method and apparatus for pushing information
CN114840379A (en) Log generation method, device, server and storage medium
CN107634942B (en) Method and device for identifying malicious request
CN110716956A (en) Data request intercepting method and device
CN112948138A (en) Method and device for processing message
CN113032702A (en) Page loading method and device
CN113220381A (en) Click data display method and device
CN113761310A (en) Method and device for collecting click data
CN113762910A (en) Document monitoring method and device
CN111767447A (en) Method and device for determining user traffic path
CN113722193A (en) Method and device for detecting page abnormity
CN113449230A (en) Method and system for determining exposure element, client and server
CN113760695A (en) Method and device for positioning problem code
CN112835609A (en) Method and device for modifying dependent package download address
CN112448931B (en) Network hijacking monitoring method and device
CN112799863A (en) Method and apparatus for outputting information
CN110874302A (en) Method and device for determining buried point configuration information
CN111597485A (en) Information presentation method and device
CN113420037B (en) Asset data real-time changing method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination