CN106933925B - Method and device for acquiring click behavior - Google Patents

Method and device for acquiring click behavior Download PDF

Info

Publication number
CN106933925B
CN106933925B CN201511032689.7A CN201511032689A CN106933925B CN 106933925 B CN106933925 B CN 106933925B CN 201511032689 A CN201511032689 A CN 201511032689A CN 106933925 B CN106933925 B CN 106933925B
Authority
CN
China
Prior art keywords
click
click event
event
coordinate
behavior
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.)
Active
Application number
CN201511032689.7A
Other languages
Chinese (zh)
Other versions
CN106933925A (en
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 Gridsum Technology Co Ltd
Original Assignee
Beijing Gridsum 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 Gridsum Technology Co Ltd filed Critical Beijing Gridsum Technology Co Ltd
Priority to CN201511032689.7A priority Critical patent/CN106933925B/en
Publication of CN106933925A publication Critical patent/CN106933925A/en
Application granted granted Critical
Publication of CN106933925B publication Critical patent/CN106933925B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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
    • G06F16/958Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking

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)
  • User Interface Of Digital Computer (AREA)

Abstract

The invention discloses a method and a device for acquiring a click behavior. Wherein, the method comprises the following steps: monitoring click events for a target webpage, wherein the click events comprise: the effective click event and the touch screen event are triggered by the effective click behavior, and the touch screen event is triggered by the invalid click behavior; when any click event is obtained through monitoring, obtaining the coordinate of the any click event when the any click event occurs in the target webpage; and comparing the coordinate of the any click event with the recorded coordinate of the last click event, acquiring the click behavior triggering the any click event under the condition that the coordinate of the any click event is different from the coordinate of the last click event, and otherwise, ignoring the click behavior triggering the any click event. The invention solves the technical problem of repeated statistics of click behaviors caused by the fact that effective click behaviors trigger both effective click events and touch screen events under the condition of simultaneously capturing touch screen events and effective click events.

Description

Method and device for acquiring click behavior
Technical Field
The invention relates to the field of behavior analysis, in particular to a method and a device for acquiring click behaviors.
Background
In the current network environment, it is very important to analyze the network behavior of the user in time. The behavior habit and the preference of the network user can be obtained by analyzing the network behavior of the user, the adjustment and optimization of the webpage by a network operation terminal are facilitated, and in order to achieve the purpose of analyzing the behavior of the network user, the behavior of the network user needs to be collected and counted firstly.
In the prior art, a mainstream method for collecting and counting access behaviors of a network user at a webpage end is to collect the access behaviors of the user at the webpage end by using a JavaScript Tracker through a WebAnalytics tool, and send a counting result to a data warehouse server. In the process of counting the access behaviors of the network users, the JavaScript Tracker needs to capture all click events of a target webpage to be subjected to the behavior analysis of the network users, so as to obtain click events which can be effectively operated by the users on the target webpage.
In the prior art, only effective click events are captured, however, in the environment of a touch screen device and the like, invalid click behaviors occurring in blank areas do not trigger the effective click events, so that statistical omission can be caused, the click behaviors of a network user and the design defects of a webpage can be known by accurately counting the click behaviors of the blank areas of the webpage, statistics is quite worthy, in order to solve the technical problem of statistical omission of the invalid click behaviors, the click behaviors in the environment of the touch screen device and the like are counted by adopting a method of capturing the effective click events and capturing the touch screen events, however, some effective click behaviors trigger the effective click events and trigger the touch screen events, and some effective click behaviors are repeatedly counted under the conditions of capturing the effective click events and capturing the touch screen events.
Aiming at the problem of repeated statistics of click behaviors caused by the fact that effective click behaviors trigger both effective click events and touch events under the condition that the touch events and the effective click events are captured simultaneously, no effective solution is provided at present.
Disclosure of Invention
The embodiment of the invention provides a method and a device for acquiring a click behavior, which are used for at least solving the technical problem of repeated statistics of the click behavior caused by the fact that an effective click behavior triggers both an effective click event and a touch event under the condition that the touch event and the effective click event are captured simultaneously.
According to an aspect of the embodiments of the present invention, there is provided a method for obtaining click behavior, including: monitoring click events for a target webpage, wherein the click events comprise: the method comprises the following steps that an effective click event and a touch screen event are triggered by an effective click behavior, and a touch screen event is triggered by an invalid click behavior, wherein the effective click behavior triggers the effective click event and triggers the touch screen click event with the same coordinate as the effective click event, and the invalid click behavior only triggers the touch screen event; when any click event is obtained through monitoring, obtaining the coordinate of the any click event when the any click event occurs in the target webpage; and comparing the coordinate of any click event with the recorded coordinate of the last click event, acquiring the click behavior of any trigger click event under the condition that the coordinate of any click event is different from the coordinate of the last click event, and otherwise, ignoring the click behavior triggering any click event.
According to another aspect of the embodiments of the present invention, there is also provided an apparatus for acquiring a click behavior, including: the monitoring module is used for monitoring click events aiming at the target webpage, and the click events comprise: the method comprises the following steps that an effective click event and a touch screen event are triggered by an effective click behavior, and a touch screen event is triggered by an invalid click behavior, wherein the effective click behavior triggers the effective click event and triggers the touch screen click event with the same coordinate as the effective click event, and the invalid click behavior only triggers the touch screen event; the first acquisition module is used for acquiring coordinates of any click event when the any click event occurs in a target webpage when the any click event is monitored; and the second acquisition module is used for comparing the coordinate of any click event with the recorded coordinate of the last click event, acquiring the click behavior of any trigger click event under the condition that the coordinate of any click event is different from the coordinate of the last click event, and otherwise, ignoring the click behavior triggering any click event.
In the embodiment of the invention, the click event aiming at the target webpage is monitored, and the click event comprises the following steps: the method comprises the steps that an effective click event and a touch screen event triggered by an invalid click event are triggered, when any click event is monitored, the coordinate of the any click event occurring in a target webpage is obtained, the click action of the any click event is obtained under the condition that the coordinate of the any click event is different from the coordinate of the last click event recorded, otherwise, the click action of the any click event is ignored, the purpose of avoiding the same effective click action being counted for two times is achieved, the technical effect of accurately counting the click actions of network users is achieved, and further, the problem that under the condition that the touch screen event and the effective click event are captured simultaneously, the effective click action can trigger the effective click event and the touch screen event is solved, the technical problem of repeated statistics on click behaviors is caused.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the invention and together with the description serve to explain the invention without limiting the invention. In the drawings:
FIG. 1 is a flow chart of a method of obtaining click behavior according to an embodiment of the invention;
FIG. 2 is a schematic structural diagram of an alternative apparatus for acquiring click behavior according to an embodiment of the present invention;
FIG. 3 is a schematic structural diagram of an alternative apparatus for acquiring click behavior according to an embodiment of the present invention;
FIG. 4 is a schematic structural diagram of an alternative apparatus for acquiring click behavior according to an embodiment of the present invention;
FIG. 5 is a schematic structural diagram of an alternative apparatus for acquiring click behavior according to an embodiment of the present invention; and
FIG. 6 is a schematic structural diagram of an alternative apparatus for acquiring click behavior according to an embodiment of the present invention.
Detailed Description
In order to make the technical solutions of the present invention better understood, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are capable of operation in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
Example one
In accordance with an embodiment of the present invention, there is provided an embodiment of a method for obtaining click behavior, it being noted that the steps illustrated in the flowchart of the figures may be performed in a computer system, such as a set of computer-executable instructions, and that while a logical order is illustrated in the flowchart, in some cases the steps illustrated or described may be performed in an order different than presented herein.
Fig. 1 is a flowchart of a method for acquiring click behavior according to an embodiment of the present invention, as shown in fig. 1, the method includes the following steps:
step S102, monitoring click events aiming at a target webpage, wherein the click events comprise: the method comprises the steps of an effective click event and a touch screen event triggered by an effective click behavior, and a touch screen event triggered by an invalid click behavior, wherein the effective click behavior triggers the effective click event and triggers the touch screen event with the same coordinate as the effective click event, and the invalid click behavior triggers only the touch screen event.
Specifically, in the above step, the effective click behavior may be a click behavior whose click position is a position where a control having a control function in the target webpage is located, and the effective click behavior may trigger an instruction included in the control of the target webpage, so that the effective click event triggers both an effective click event and a touch event; the invalid click behavior may be a click behavior of clicking in a blank area of the target webpage, where the blank area of the target webpage is an area that does not include a control, that is, an area that does not generate an effect after the click behavior occurs, and after the invalid click behavior occurs in the target webpage, the webpage does not change, so that the invalid click behavior only triggers a touch screen event.
The method has the advantages that the touch screen events are counted, the statistical results of the touch screen events are analyzed, the webpage operation end can be helped to know the condition of the blank area clicked by the user, the webpage operation end can rearrange or adjust the page structure according to the statistical results, the webpage is fully utilized, the control containing the control instruction is placed in the blank area frequently clicked by the network user, and the effect of improving the click rate is achieved.
As an alternative embodiment, in an example that the target webpage is a home page of a certain search website, when a user fills a control box for filling search content and needs to click a "search" control to search, when the user clicks the search control, the network starts to search for the user, and after a buffer time elapses, the webpage changes to show a search result.
As another alternative embodiment, in an example that the target webpage is a home page of a certain search website, when the user fills the control box for filling the search content and needs to click the "search" control to search, but due to an unreasonable webpage design, the range of the picture or text identifying the "search" control is larger than the position of the "search" control in the target webpage that can be really triggered, so that when the user clicks the edge of the picture or text identifying the "search" control, the "search" control is not effectively triggered to issue a search instruction, and therefore the webpage does not change, and the click event of the user can be considered as a touch screen event, and only the touch screen event is triggered.
And step S104, when any click event is obtained through monitoring, obtaining the coordinate of the any click event in the target webpage.
And step S106, comparing the coordinate of any click event with the coordinate of the last click event, acquiring the click behavior triggering the click event under the condition that the coordinate of any click event is different from the coordinate of the last click event, and otherwise, ignoring the click behavior triggering any click event.
As can be seen from the above, in the present application, the above steps are performed to monitor a click event for a target web page, where the click event includes: the method comprises the steps that an effective click event and a touch screen event triggered by an invalid click event are triggered, when any click event is monitored, the coordinate of the any click event occurring in a target webpage is obtained, the click action triggering any click event is obtained by comparing the coordinate of the any click event with the recorded coordinate of the last click event under the condition that the coordinate of the any click event is different from the coordinate of the last click event, otherwise, the click action triggering any click event is ignored, the purpose of avoiding the same effective click action being counted for two times is achieved, the technical effect of accurately counting the click actions of network users is achieved, and further, under the condition that the touch screen event and the effective click event are captured simultaneously, the effective click action can trigger both the effective click event and the touch screen event, the technical problem of repeated statistics on click behaviors is caused.
Optionally, in step S106 of the present application, comparing the coordinate of any click event with the coordinate of the previous click event, and acquiring the click behavior triggering the click event when the coordinate of any click event is different from the coordinate of the previous click event, otherwise, ignoring the click behavior triggering any click event includes:
step S1061, comparing the obtained coordinates of any click event with the coordinates of the previous click event.
Specifically, in the above step, the coordinates of the last click event are stored to be stored in the previously set variables in the previous step.
Step S1063, under the condition that the coordinate of any click event is different from the coordinate of the last click event, confirming that the any click event and the last click event are triggered by different click behaviors, and acquiring the click behavior triggering the any click event.
Specifically, in the above step, when the coordinate of any click event is different from the coordinate of the previous click event, it may be considered that the click event and the previous click event are not triggered by the same effective click behavior, and therefore are triggered by two different click behaviors, and thus the click behavior is obtained.
In an alternative embodiment, in an example where the previous click event is a valid click event, if the click event is a touch screen event, the touch screen event and the previous valid click event have the possibility of being triggered by the same valid click behavior, and if the touch screen event and the previous valid click event are triggered by the same valid click behavior, the touch screen event and the previous valid click event should have the same coordinate, and therefore, in a case where the coordinate of the touch screen event is different from the coordinate of the previous valid click event, it is considered that the click behavior triggering the touch screen event is not the same click behavior as the click behavior triggering the previous valid click event, and therefore, the click behavior triggering the touch screen event is obtained.
Step S1065, under the condition that the coordinate of any click event is the same as the coordinate of the last click event, confirming that the click event and the last click event are triggered by the same effective click behavior, and ignoring the click behavior triggering any click event.
In an alternative embodiment, in an example where the click event is a touch screen event, if the last valid click event is a valid click event, if the coordinates of the touch screen click event and the coordinates of the last valid click event are obtained through comparison and are the same, it may be determined that the touch screen event and the last valid click event are triggered by the same valid click behavior.
It is worth noting that, under the condition that the same effective click behavior triggers both the effective click event and the touch screen event, the time for triggering the effective click event and the time for triggering the touch screen event have a sequence, and the sequence for triggering the effective click event and the sequence for triggering the touch screen event are different according to different touch screen devices, but no matter how the sequence for triggering the effective click event and the sequence for triggering the touch screen event by the effective click behavior is, the scheme provided by the embodiment of the application is not influenced to obtain the click behavior.
According to the above, the obtained coordinates of any click event and the coordinates of the last click event are compared in the above steps, when the coordinates of any click event are different from the coordinates of the last click event, it is determined that the any click event and the last click event are triggered by different click behaviors, the click behavior triggering any click event is obtained, when the coordinates of any click event and the coordinates of the last click event are the same, it is determined that the click event and the last click event are triggered by the same effective click behavior, and the click behavior triggering any click event is ignored. According to the scheme, the obtained coordinates of any click event are compared with the coordinates of the last click event to judge whether the coordinates of any click event are the same as the coordinates of the last click event, if the comparison results are the same, the click event and the last click event can be considered to be triggered by the same effective click behavior, so that the click event is ignored and not recorded, and if the comparison results are different, the click behavior triggering the click event and the click behavior triggering the last click event can be considered not to be the same click event, so that the technical purpose of avoiding repeated statistics of the effective click behavior under the condition that all the click behaviors of the effective click behavior and the ineffective click behavior are clicked is achieved, and the technical effect of more accurate click behavior statistics is achieved.
Optionally, in the foregoing steps of the present application, after comparing the coordinate of any click event with the coordinate of the previous click event, the method further includes:
and step S108, assigning the coordinate of any click event occurring in the target webpage to a preset variable.
In an alternative embodiment, in the example of obtaining coordinates (165.4,13.4) of the click event at the previous time, in the case of obtaining coordinates (459.1,164.3) of the click event, 459.1 instead of 165.4 is assigned to the variable x, and 164.3 instead of 13.4 is assigned to the variable y.
As can be seen from the above, in the above steps of the present application, after the coordinates of any click event are compared with the coordinates of the previous click event, the coordinates of the click event are assigned to the preset variable. According to the scheme, when the click event is monitored again, the click event can be compared with the coordinate of the click event, the technical effect of judging in real time according to the monitored click event is achieved, and the technical purpose of confirming whether to acquire or ignore the coordinate of the monitored click event is achieved.
Optionally, before the step S104, the method further includes:
step S1041, when the previous click event is monitored, obtaining coordinates of the previous click event occurring in the target webpage.
Specifically, in the above step, the coordinate of the click event occurring in the target webpage may be a two-dimensional coordinate with the upper left corner of the screen being a (0,0) point, and the specific position of the click event occurring in the target webpage may be determined by monitoring the obtained coordinate of the click event.
And step S1043, assigning the coordinate of the last click event in the target webpage to a preset variable.
Specifically, in the above step, the preset variable may be a two-dimensional variable (x, y).
As an alternative embodiment, when the coordinate of the click event at the last time obtained is (165.4,13.4), 165.4 may be assigned to x, and 13.4 may be assigned to y.
Therefore, when the previous click event is monitored and obtained in the steps of the method, the coordinates of the previous click event occurring in the target webpage are obtained, and the coordinates of the previous click event occurring in the target webpage are assigned to preset variables. The technical purpose of acquiring the coordinates of the last click event when the click event occurs in the target webpage is achieved through the steps.
Optionally, in the foregoing steps of the present application, in a case that the preset variable is empty, the method further includes:
step S1010, confirming any click event as the first click event, and acquiring the click behavior triggering any click event.
Specifically, in the above step, under the condition that the preset variable is empty, the current click event may be considered as the first click event, and therefore, no matter whether the click behavior triggering the current click event is an effective click behavior or a touch screen behavior, the current click behavior should be obtained.
In an optional embodiment, in an example where an effective click event is triggered first and then a touch screen event is triggered later in an effective click behavior, when a preset variable is null and an obtained click event is an effective click event, after the click behavior triggering the effective click event is obtained, a touch screen event triggered by the effective click behavior is still obtained, but since the coordinates of the touch screen event and the effective click event are the same, the same click behavior is not repeatedly obtained.
In another optional embodiment, in an example where the first obtained click event is a touch screen event, an invalid click behavior triggering the touch screen event is obtained, and the click event of the target screen continues to be monitored.
As can be seen from the above, in the above steps of the present application, under the condition that the preset variable is empty, it is determined that the arbitrary click event is the first click event, and the click behavior that triggers the arbitrary click event is obtained. The embodiment of the application provides a processing method for a click behavior of a multi-trigger click event under the condition that a preset variable is empty and cannot be compared with an obtained variable of the click event, and the technical effect of determining the first click behavior is achieved.
Example two
Fig. 2 is a schematic structural diagram of an alternative apparatus for acquiring click behavior according to an embodiment of the present invention. For descriptive purposes, the architecture portrayed is only one example of a suitable environment and is not intended to suggest any limitation as to the scope of use or functionality of the application. Nor should a device for capturing click behavior be viewed as having any dependency or requirement relating to any one or combination of components illustrated in fig. 2.
As shown in fig. 2, the means for acquiring click behavior may include: a monitoring module 20, a first acquisition module 22, and a second acquisition module 24, wherein,
a monitoring module 20, configured to monitor a click event for a target web page, where the click event includes: the method comprises the steps of an effective click event and a touch screen event triggered by an effective click behavior, and a touch screen event triggered by an invalid click behavior, wherein the effective click behavior triggers the effective click event and triggers the touch screen click event with the same coordinate as the effective click event, and the invalid click behavior triggers only the touch screen event.
Specifically, in the above step, the effective click behavior may be a click behavior whose click position is a position where a control having a control function in the target webpage is located, and the effective click behavior may trigger an instruction included in the control of the target webpage, so that the effective click event triggers both an effective click event and a touch event; the invalid click behavior may be a click behavior of clicking in a blank area of the target webpage, where the blank area of the target webpage is an area that does not include a control, that is, an area that does not generate an effect after the click behavior occurs, and after the invalid click behavior occurs in the target webpage, the webpage does not change, so that the invalid click behavior only triggers a touch screen event.
The method has the advantages that the touch screen events are counted, the statistical results of the touch screen events are analyzed, the webpage operation end can be helped to know the condition of the blank area clicked by the user, the webpage operation end can rearrange or adjust the page structure according to the statistical results, the webpage is fully utilized, the control containing the control instruction is placed in the blank area frequently clicked by the network user, and the effect of improving the click rate is achieved.
The first obtaining module 22 is configured to, when an arbitrary click event is obtained through monitoring, obtain a coordinate of the arbitrary click event occurring in the target webpage;
the second obtaining module 24 is configured to compare the coordinate of any click event with the recorded coordinate of the previous click event, obtain a click behavior that triggers any click event when the coordinate of any click event is different from the coordinate of the previous click event, and otherwise ignore the click behavior that triggers any click event.
Therefore, in the device of the present application, the monitoring module is used to monitor the click event for the target web page, and the click event includes: the method comprises the steps that an effective click event and a touch screen event triggered by an invalid click event are triggered, when any click event is monitored, the first acquisition module is used for acquiring the coordinate of the any click event occurring in a target webpage, the coordinate of the any click event is compared with the coordinate of the last click event, the second acquisition module is used for acquiring the click action of the any click event under the condition that the coordinate of the any click event is different from the recorded coordinate of the last click event, otherwise, the click action triggering the any click event is ignored, the purpose of avoiding the same effective click action from being counted twice is achieved, the technical effect of accurately counting the click actions of network users is achieved, and further, under the condition that the touch screen event and the effective click event are captured simultaneously, the effective click event can trigger the effective click event and the touch screen event, the technical problem of repeated statistics on click behaviors is caused.
Optionally, as shown in fig. 3, in the apparatus of the present application, the second obtaining module 24 includes:
the comparison module 30 is configured to compare the obtained coordinates of any click event with the coordinates of the previous click event;
a third obtaining module 32, configured to, when the coordinate of any click event is different from the coordinate of the previous click event, confirm that the any click event and the previous click event are triggered by different click behaviors, and obtain a click behavior triggering any click event;
the first confirming module 34 is configured to, when the coordinate of any click event is the same as the coordinate of the previous click event, confirm that the click event and the previous click event are triggered by the same effective click behavior, and ignore the click behavior triggering any click event.
According to the device, the comparison module is adopted to compare the obtained coordinates of any click event with the coordinates of the previous click event, under the condition that the coordinates of any click event are different from the coordinates of the previous click event, the fact that the any click event and the previous click event are triggered by different click behaviors is confirmed, the fourth acquisition module is adopted to obtain the click behavior triggering any click event, under the condition that the coordinates of any click event are the same as the coordinates of the previous click event, the first confirmation module is adopted to confirm that the click event and the previous click event are triggered by the same effective click behavior, and the click behavior triggering any click event is ignored. According to the device, the obtained coordinates of any click event are compared with the coordinates of the last click event to judge whether the coordinates of any click event are the same as the coordinates of the last click event, if the comparison results are the same, the click event and the last click event can be considered to be triggered by the same effective click behavior, so that the click event is ignored and not recorded, and if the comparison results are different, the click behavior triggering the click event and the click behavior triggering the last click event can be considered not to be the same click event, so that the technical purpose of avoiding repeated statistics of the effective click behavior under the condition that all the click behaviors of the effective click behavior and the ineffective click behavior are clicked is achieved, and the technical effect of more accurate click behavior statistics is achieved.
Optionally, as shown in fig. 4, in the apparatus of the present application, the apparatus further includes:
and the first assignment module 40 is configured to assign coordinates of any click event occurring in the target webpage to a preset variable.
In the device, after the coordinates of any click event are compared with the coordinates of the previous click event, the coordinates of the click event are assigned to the preset variable through the second assignment module. By the device, when the click event is monitored again, the click event can be compared with the coordinate of the click event, the technical effect of real-time judgment according to the monitored click event is achieved, and the technical purpose of confirming whether to acquire or ignore the coordinate of the monitored click event is achieved.
Optionally, as shown in fig. 5, in the apparatus of the present application, the apparatus further includes:
a fourth obtaining module 50, configured to, when a previous click event is obtained through monitoring, obtain coordinates of the previous click event occurring in the target web page;
and a second assigning module 52, configured to assign coordinates of the last click event occurring in the target webpage to a preset variable.
According to the device, when the previous click event is monitored, the coordinate of the previous click event occurring in the target webpage is obtained through the third obtaining module, and the coordinate of the previous click event occurring in the target webpage is assigned to the preset variable through the first assignment module. The device achieves the technical purpose of obtaining the coordinates of the last click event when the click event occurs in the target webpage.
Optionally, as shown in fig. 6, in the apparatus of the present application, when the preset variable is empty, the apparatus further includes:
the second confirming module 60 is configured to confirm that the arbitrary click event is the first click event, and acquire a click behavior triggering the arbitrary click event.
As can be seen from the above, in the device of the present application, under the condition that the preset variable is empty, the second confirmation module confirms that the arbitrary click event is the first click event, and acquires the click behavior triggering the arbitrary click event. The embodiment of the application provides the processing device for the click behavior of the multi-trigger click event under the condition that the preset variable is empty and cannot be compared with the acquired variable of the click event, and the technical effect of determining the first click behavior is achieved.
The device for acquiring the clicking behavior comprises a processor and a memory, wherein the monitoring module, the first acquiring module, the second acquiring module and the like are stored in the memory as program units, and the processor executes the program units stored in the memory.
The processor comprises a kernel, and the kernel calls the corresponding program unit from the memory. The kernel can be set to one or more than one, and the text content is analyzed by adjusting the kernel parameters.
The memory may include volatile memory in a computer readable medium, Random Access Memory (RAM) and/or nonvolatile memory such as Read Only Memory (ROM) or flash memory (flash RAM), and the memory includes at least one memory chip.
The present application further provides an embodiment of a computer program product, which, when being executed on a data processing device, is adapted to carry out program code for initializing the following method steps: monitoring a click event of a target webpage under the condition of simultaneously acquiring an effective click behavior and an invalid click behavior; when any click event is obtained through monitoring, obtaining the coordinate of the any click event when the any click event occurs in the target webpage; and comparing the coordinate of any click event with the coordinate of the last click event, acquiring the click behavior triggering the click event under the condition that the coordinate of any click event is different from the coordinate of the last click event, and otherwise, ignoring the click behavior triggering any click event.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
In the above embodiments of the present invention, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the embodiments provided in the present application, it should be understood that the disclosed technology can be implemented in other ways. The above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units may be a logical division, and in actual implementation, there may be another division, for example, multiple units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, units or modules, and may be in an electrical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and other various media capable of storing program codes.
The foregoing is only a preferred embodiment of the present invention, and it should be noted that, for those skilled in the art, various modifications and decorations can be made without departing from the principle of the present invention, and these modifications and decorations should also be regarded as the protection scope of the present invention.

Claims (10)

1. A method for acquiring click behavior, comprising:
monitoring a click event for a target webpage, wherein the click event comprises: the method comprises the steps that an effective clicking event and a touch screen event are triggered by an effective clicking behavior, and a touch screen event is triggered by an invalid clicking behavior, wherein the effective clicking behavior triggers the effective clicking event and triggers the touch screen event with the same coordinate as the effective clicking event;
when any click event is obtained through monitoring, obtaining the coordinate of the any click event when the any click event occurs in the target webpage;
and comparing the coordinate of the any click event with the coordinate of the recorded last click event, acquiring the click behavior triggering the any click event under the condition that the coordinate of the any click event is different from the coordinate of the last click event, and otherwise, ignoring the click behavior triggering the any click event.
2. The method according to claim 1, wherein comparing the coordinate of the arbitrary click event with the coordinate of the recorded previous click event, and acquiring a click behavior triggering the arbitrary click event when the coordinate of the arbitrary click event is not the same as the coordinate of the previous click event, otherwise ignoring the click behavior triggering the arbitrary click event, comprises:
comparing the obtained coordinates of any click event with the coordinates of the previous click event;
under the condition that the coordinate of the any click event is different from the coordinate of the last click event, confirming that the any click event and the last click event are triggered by different click behaviors, and acquiring the click behavior triggering the any click event;
and under the condition that the coordinate of the any click event is the same as the coordinate of the last click event, confirming that the any click event and the last click event are triggered by the same effective click behavior, and ignoring the click behavior triggering the any click event.
3. The method of claim 1 or 2, wherein after comparing the coordinates of the arbitrary click event with the coordinates of the last click event recorded, the method further comprises:
and assigning the coordinate of the any click event when the any click event occurs in the target webpage to a preset variable.
4. The method of claim 1, wherein prior to obtaining the coordinates of when the arbitrary click event occurred in the target web page, the method further comprises:
when a previous click event is obtained through monitoring, obtaining coordinates of the previous click event occurring in the target webpage;
and assigning the coordinate of the last click event when the last click event occurs in the target webpage to a preset variable.
5. The method according to claim 4, wherein after the random click event is detected, whether the preset variable is empty is determined, and when the preset variable is empty, the random click event is determined as a first click event, and a click behavior triggering the random click event is obtained.
6. An apparatus for obtaining click behavior, comprising:
the monitoring module is used for monitoring click events aiming at a target webpage, and the click events comprise: the method comprises the steps that an effective clicking event and a touch screen event are triggered by an effective clicking behavior, and a touch screen event is triggered by an invalid clicking behavior, wherein the effective clicking behavior triggers the effective clicking event and triggers the touch screen event with the same coordinate as the effective clicking event;
the first acquisition module is used for acquiring coordinates of any click event when the click event occurs in the target webpage when the click event is monitored and obtained;
and the second acquisition module is used for comparing the coordinate of the any click event with the coordinate of the recorded last click event, acquiring the click behavior triggering the any click event under the condition that the coordinate of the any click event is different from the coordinate of the last click event, and otherwise, ignoring the click behavior triggering the any click event.
7. The apparatus of claim 6, wherein the second obtaining module comprises:
the comparison module is used for comparing the obtained coordinates of the any click event with the coordinates of the previous click event;
a third obtaining module, configured to, when the coordinate of the arbitrary click event is different from the coordinate of the previous click event, confirm that the arbitrary click event and the previous click event are triggered by different click behaviors, and obtain a click behavior that triggers the arbitrary click event;
and the first confirmation module is used for confirming that the click event and the previous click event are triggered by the same effective click behavior under the condition that the coordinate of the any click event is the same as the coordinate of the previous click event, and ignoring the click behavior triggering the any click event.
8. The apparatus of claim 6 or 7, further comprising:
and the first assignment module is used for assigning the coordinates of the any click event when the any click event occurs in the target webpage to a preset variable.
9. The apparatus of claim 6, further comprising:
the fourth acquisition module is used for acquiring coordinates of the last click event when the last click event occurs in the target webpage when the last click event is monitored;
and the second assignment module is used for assigning the coordinate of the last click event when the click event occurs in the target webpage to a preset variable.
10. The apparatus of claim 9, wherein in case the preset variable is empty, the apparatus further comprises:
and the second confirmation module is used for confirming that the any click event is the first click event and acquiring the click behavior triggering the any click event.
CN201511032689.7A 2015-12-31 2015-12-31 Method and device for acquiring click behavior Active CN106933925B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201511032689.7A CN106933925B (en) 2015-12-31 2015-12-31 Method and device for acquiring click behavior

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201511032689.7A CN106933925B (en) 2015-12-31 2015-12-31 Method and device for acquiring click behavior

Publications (2)

Publication Number Publication Date
CN106933925A CN106933925A (en) 2017-07-07
CN106933925B true CN106933925B (en) 2020-10-13

Family

ID=59444252

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201511032689.7A Active CN106933925B (en) 2015-12-31 2015-12-31 Method and device for acquiring click behavior

Country Status (1)

Country Link
CN (1) CN106933925B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102455848A (en) * 2010-10-26 2012-05-16 宏碁股份有限公司 Input control method for screen touch type keyboard, and electronic device
CN103412763A (en) * 2013-08-30 2013-11-27 广东欧珀移动通信有限公司 Background program management method of mobile terminal and mobile terminal
CN103699327A (en) * 2013-12-27 2014-04-02 深圳天珑无线科技有限公司 Terminal equipment and selection method and selection device for touch screen terminal
CN103793132A (en) * 2013-11-05 2014-05-14 刘雪英 Desktop switching method and system for touch screen mobile terminals
CN104881408A (en) * 2014-02-27 2015-09-02 腾讯科技(深圳)有限公司 Method, device and system for counting number of clicks on page and displaying result

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101299688B (en) * 2008-06-13 2010-12-22 北京缔元信互联网数据技术有限公司 Method for acquiring touching quantity of web page area
CN100590603C (en) * 2008-08-12 2010-02-17 杭州华三通信技术有限公司 Method and device for processing log file
CN103488465B (en) * 2012-06-08 2017-10-17 北京搜狗科技发展有限公司 Functional configuration recommends method and system
CN103019592B (en) * 2012-11-30 2017-04-05 北京小米科技有限责任公司 A kind of method of selection interface mark, device and mobile terminal

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102455848A (en) * 2010-10-26 2012-05-16 宏碁股份有限公司 Input control method for screen touch type keyboard, and electronic device
CN103412763A (en) * 2013-08-30 2013-11-27 广东欧珀移动通信有限公司 Background program management method of mobile terminal and mobile terminal
CN103793132A (en) * 2013-11-05 2014-05-14 刘雪英 Desktop switching method and system for touch screen mobile terminals
CN103699327A (en) * 2013-12-27 2014-04-02 深圳天珑无线科技有限公司 Terminal equipment and selection method and selection device for touch screen terminal
CN104881408A (en) * 2014-02-27 2015-09-02 腾讯科技(深圳)有限公司 Method, device and system for counting number of clicks on page and displaying result

Also Published As

Publication number Publication date
CN106933925A (en) 2017-07-07

Similar Documents

Publication Publication Date Title
CN106649063B (en) Method and system for monitoring time-consuming data during program operation
CN106610993B (en) Video preview display method and device
CN107797894B (en) APP user behavior analysis method and device
CN107092544B (en) Monitoring method and device
CN110020339B (en) Webpage data acquisition method and device based on non-buried point
CN105868256A (en) Method and system for processing user behavior data
CN104111836A (en) Method for collecting and processing asynchronous loading data by network
CN106776615B (en) Thermodynamic diagram generation method and device
CN106202101B (en) Advertisement identification method and device
CN110263070B (en) Event reporting method and device
US20190197071A1 (en) System and method for evaluating nodes of funnel model
CN110674507A (en) Method and system for detecting web application override
US20190385030A1 (en) Page analysis method and apparatus
CN107483622A (en) Browser operation behavioral data acquisition method based on component
CN107070873B (en) Webpage illegal data screening method and system, data screening server and browser
CN102880695A (en) Method and device for determining click location in website
CN103455600A (en) Video URL (Uniform Resource Locator) grabbing method and device and server equipment
CN108073597A (en) The page clicks on behavior methods of exhibiting, device and system
CN104166741B (en) Web page browsing analysis and processing method and device
CN110659188B (en) Page portrait data processing method and device, computer equipment and storage medium
CN111090593A (en) Method, device, electronic equipment and storage medium for determining crash attribution
CN112989162A (en) Buried point reporting method, device, equipment and storage medium
CN106933925B (en) Method and device for acquiring click behavior
CN108459936B (en) Accurate statistical method and device based on content modularization
CN110275998B (en) Method and device for determining webpage attribute data

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
CB02 Change of applicant information
CB02 Change of applicant information

Address after: 100083 No. 401, 4th Floor, Haitai Building, 229 North Fourth Ring Road, Haidian District, Beijing

Applicant after: Beijing Guoshuang Technology Co.,Ltd.

Address before: 100086 Cuigong Hotel, 76 Zhichun Road, Shuangyushu District, Haidian District, Beijing

Applicant before: Beijing Guoshuang Technology Co.,Ltd.

GR01 Patent grant
GR01 Patent grant