CN109426540A - The click condition detection method and device of element, storage medium, processor - Google Patents

The click condition detection method and device of element, storage medium, processor Download PDF

Info

Publication number
CN109426540A
CN109426540A CN201710760925.XA CN201710760925A CN109426540A CN 109426540 A CN109426540 A CN 109426540A CN 201710760925 A CN201710760925 A CN 201710760925A CN 109426540 A CN109426540 A CN 109426540A
Authority
CN
China
Prior art keywords
path
page
display state
click
destination
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.)
Granted
Application number
CN201710760925.XA
Other languages
Chinese (zh)
Other versions
CN109426540B (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 CN201710760925.XA priority Critical patent/CN109426540B/en
Publication of CN109426540A publication Critical patent/CN109426540A/en
Application granted granted Critical
Publication of CN109426540B publication Critical patent/CN109426540B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • User Interface Of Digital Computer (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

This application discloses the click condition detection method and device of a kind of element, storage medium, processors.This method comprises: in the case where receiving objective function, object element is obtained from objective function, wherein, object element is the changed element of display state on the page, wherein, the display state of element, which changes, refers to that element becomes display state from hidden state on the page or becomes hidden state from display state;Path of the object element on the dom structure tree of HTML is obtained, destination path is obtained;First path is matched with destination path, using with the first path of destination path successful match as the second path, wherein first path be on the page click element path;The click condition of object element is determined according to the second path.By the application, solve the problems, such as to link the click condition that thermodynamic chart can not detect the hiding element of the page in the related technology.

Description

The click condition detection method and device of element, storage medium, processor
Technical field
This application involves internet area, in particular to a kind of element click condition detection method and device, deposit Storage media, processor.
Background technique
Thermodynamic chart (thermodynamic diagram) is the page area being keen to special highlighted form display visitor With the diagram of the geographic area where visitor.
The characteristics of thermodynamic chart, mainly has following:
(i) thermodynamic chart can show can not click on area occur thing.By thermodynamic chart, it can be found that visitor is often Clicking those not is the place of link, perhaps should place a resource link in that place.Such as: if it find that people are total It is to click some product picture, thinkable to be, perhaps they want to see big figure, or is intended to understand more letters of the product Breath.Equally, it is exactly navigation link that they, which may be mistakenly considered special picture,.
(ii) thermodynamic chart can also illustrate simultaneously, and which of the page has partially attracted the attention of most of visitors.This is to those It is highly useful without the head of a station of what experience or administrator to web analysis data.
(iii) if there is multiple links to be directed toward the same URL on one page, such as: if there is 3 of different location Link points to the same specific product page, then thermodynamic chart will show that visitor most likes which link clicked, this will It helps the design for promoting webpage and makes it more friendly to user.
Link thermodynamic chart is one kind of thermodynamic chart.Link thermodynamic chart is able to detect the click feelings of all visual elements on webpage Condition.But having much hiding element in webpage, these points for hiding element can not be detected by linking thermodynamic chart in the prior art Hit situation.
Aiming at the problem that link thermodynamic chart can not detect the click condition of hiding element of the page in the related technology, at present still It does not put forward effective solutions.
Summary of the invention
The main purpose of the application is to provide click condition detection method and device, storage medium, the place of a kind of element Manage device, with solves the problems, such as in the related technology link thermodynamic chart can not detect the page hiding element click condition.
To achieve the goals above, according to the one aspect of the application, a kind of click condition detection side of element is provided Method.This method comprises: obtaining object element from the objective function, wherein described in the case where receiving objective function Object element is the changed element of display state on the page, wherein the display state of element, which changes, refers to element in page Display state is become from hidden state on face or hidden state is become from display state;The object element is obtained HTML's Path on dom structure tree, obtains destination path;First path is matched with the destination path, it will be with the target Route matching successfully the first path as the second path, wherein the first path be on the page click element Path;The click condition of the object element is determined according to second path.
Further, first path is matched with the destination path, comprising: judge in the first path whether Include the destination path;In the first path include the destination path in the case where, determine the first path with The destination path successful match;In the case where not including the destination path in the first path, described first is determined It fails to match with the destination path in path.
Further, from the objective function obtain object element before, the method also includes: in the member of the page Monitor is registered on element, wherein the monitor calls the target letter in the case where the display state of element changes Number.
Further, in the case where receiving objective function, object element is obtained from the objective function, comprising: In the case where receiving the objective function, the changed element of display state is obtained from the objective function, is obtained First element;Judge whether first element is the element for becoming display state from hidden state on the page;If described First element is the element for becoming display state from hidden state on the page, it is determined that first element is the target element Element.
Further, before being matched first path with the destination path, the method also includes: judgement is No produce clicks the click data that element obtains;In the case where producing the click data, the click data is recorded; The first path is determined according to the click data.
Further, click condition is indicated using link accounting and described the mesh is determined according to second path Mark the click condition of element, comprising: according to the link accounting of object element described in second path computing.
To achieve the goals above, according to the another aspect of the application, a kind of click condition detection dress of element is provided It sets.The device includes: first acquisition unit, for being obtained from the objective function in the case where receiving objective function Object element, wherein the object element is the changed element of display state on the page, wherein the display state of element It changes and refers to that element becomes display state from hidden state on the page or becomes hidden state from display state;Second obtains Unit is taken, for obtaining path of the object element on the dom structure tree of HTML, obtains destination path;Matching unit is used In first path is matched with the destination path, using with the first path of the destination path successful match as Second path, wherein the first path is that the path of element is clicked on the page;First determination unit, for according to Second path determines the click condition of the object element.
Further, the matching unit includes: the first judgment sub-unit, for judging whether wrap in the first path Containing the destination path;First determines subelement, in the case where for including the destination path in the first path, really The fixed first path and the destination path successful match;Second determines subelement, for not wrapping in the first path In the case where containing the destination path, determining the first path, it fails to match with the destination path.
Further, described device further include: registering unit, in the first acquisition unit from the objective function Before middle acquisition object element, monitor is registered on the element of the page, wherein the monitor is sent out in the display state of element The objective function is called in the case where changing.
Further, the first acquisition unit includes: acquisition subelement, in the feelings for receiving the objective function Under condition, the changed element of display state is obtained from the objective function, obtains the first element;Second judgment sub-unit, For judging whether first element is the element for becoming display state from hidden state on the page;Third determines that son is single Member, if being the element for becoming display state from hidden state on the page for first element, it is determined that described first Element is the object element.
Further, described device further include: judging unit, in the matching unit by first path and the mesh Before mark path is matched, judges whether to produce and click the click data that element obtains;Recording unit, for producing In the case where the click data, the click data is recorded;Second determination unit, for determining institute according to the click data State first path.
Further, first determination unit includes: computation subunit, for according to second path computing The link accounting of object element.
To achieve the goals above, according to the another aspect of the application, a kind of storage medium, the storage medium are provided Program including storage, wherein described program executes the click condition detection method of above-mentioned element.
To achieve the goals above, according to the another aspect of the application, a kind of processor is provided, the processor is used for Run program, wherein described program executes the click condition detection method of above-mentioned element when running.
In the embodiment of the present application, first path is the path of the element on the visitor's click Website page for access website, Destination path is path of the object element on the dom structure tree of HTML, and object element can be the element hidden on the page, is led to Cross and match first path with destination path, the first path with destination path successful match can be obtained, by these with The first path of destination path successful match determines the click condition of object element according to the second path as the second path, solution It has determined and has linked the technical issues of thermodynamic chart can not detect the click condition of hiding element of the page in the prior art, reached link The technical effect of the click condition of thermodynamic chart detection of concealed element.
Detailed description of the invention
The attached drawing constituted part of this application is used to provide further understanding of the present application, the schematic reality of the application Example and its explanation are applied for explaining the application, is not constituted an undue limitation on the present application.In the accompanying drawings:
Fig. 1 is the flow chart of the click condition detection method of element provided by the embodiments of the present application;And
Fig. 2 is the schematic diagram of the click condition detection device of element provided by the embodiments of the present application.
Specific embodiment
It should be noted that in the absence of conflict, the features in the embodiments and the embodiments of the present application can phase Mutually combination.The application is described in detail below with reference to the accompanying drawings and in conjunction with the embodiments.
In order to make those skilled in the art more fully understand application scheme, below in conjunction in the embodiment of the present application Attached drawing, the technical scheme in the embodiment of the application is clearly and completely described, it is clear that described embodiment is only The embodiment of the application a part, instead of all the embodiments.Based on the embodiment in the application, ordinary skill people Member's every other embodiment obtained without making creative work, all should belong to the model of the application protection It encloses.
It should be noted that the description and claims of this application and term " first " in above-mentioned attached drawing, " Two " etc. be to be used to distinguish similar objects, without being used to describe a particular order or precedence order.It should be understood that using in this way Data be interchangeable under appropriate circumstances, so as to embodiments herein described herein.In addition, term " includes " and " tool Have " and their any deformation, it is intended that cover it is non-exclusive include, for example, containing a series of steps or units Process, method, system, product or equipment those of are not necessarily limited to be clearly listed step or unit, but may include without clear Other step or units listing to Chu or intrinsic for these process, methods, product or equipment.
According to an embodiment of the present application, a kind of click condition detection method of element is provided.
Fig. 1 is the flow chart of the click condition detection method of element provided by the embodiments of the present application.As shown in Figure 1, the party Method the following steps are included:
S102 obtains object element in the case where receiving objective function from objective function, wherein object element It is the changed element of display state on the page, wherein the display state of element, which changes, refers to element on the page by hidden Hiding state becomes display state or becomes hidden state from display state.
S104 obtains path of the object element on the dom structure tree of HTML, obtains destination path.
S106 matches first path with destination path, using with the first path of destination path successful match as Second path, wherein first path is that the path of element is clicked on the page.
S108 determines the click condition of object element according to the second path.
In the embodiment of the present application, first path is the path of the element on the visitor's click Website page for access website, Destination path is path of the object element on the dom structure tree of HTML, and object element can be the element hidden on the page, is led to Cross and match first path with destination path, the first path with destination path successful match can be obtained, by these with The first path of destination path successful match determines the click condition of object element according to the second path as the second path, from And be able to know that the click condition of hiding element, solve in the prior art link thermodynamic chart can not detection of concealed element click The technical issues of situation, has reached the technical effect of the click condition of link thermodynamic chart detection of concealed element.
Optionally, in the click condition detection method of element provided by the embodiments of the present application, by first path and mesh Before mark path is matched, method further include: judge whether to produce and click the click data that element obtains;It is producing a little In the case where hitting data, click data is recorded;First path is determined according to click data.
Visitor clicks the element on the page, can generate click data, is able to know that visitor clicks the page according to click data On element path, i.e., first path is capable of determining that according to click data.
For example, visitor clicks the first path that certain element of the page obtains are as follows:
div.page>div.pagecontent>main#maincontent>div.container-fluid>div.row >div.col-md-10.col-md-offset-1>div.parbase.nav_promo_1>div.mod.modNav_promo_1 >div.row>div.col-xs-12.col-sm-6.col-md-3>div.parbase.nav_promo_tile_1.nav_ promo_tile_4>div.mod.modNav_promo_tile_1>a.ln>div.caption
Optionally, in the click condition detection method of element provided by the embodiments of the present application, by first path and target Whether path is matched, comprising: judge in first path comprising destination path;Include the feelings of destination path in first path Under condition, first path and destination path successful match are determined;In the case where not including destination path in first path, the is determined It fails to match with destination path in one path.
If first path is with destination path, it fails to match, and illustrating first path not is that visitor's click object element generates Path, nor the path that the daughter element of guest access object element generates;If first path and destination path successful match, Illustrate that first path is the daughter element generation that visitor clicks the path either guest access object element that object element generates Path.
Optionally, it in the click condition detection method of element provided by the embodiments of the present application, is being obtained from objective function Before taking object element, method further include: register monitor on the element of the page, wherein displaying shape of the monitor in element Invocation target function in the case that state changes.
After registering monitor on the element of the page, monitor can monitor the display state of element.When the exhibition of element When showing that state becomes hidden state from display state or becomes display state from hidden state, monitor invocation target letter It counts, the information of object element is carried in objective function, in this way, in the case where receiving objective function, it can be from objective function Middle acquisition object element can learn the element that display state is changed.
Optionally, in the click condition detection method of element provided by the embodiments of the present application, objective function is being received In the case where, object element is obtained from objective function, it is specific as follows: in the case where receiving objective function, from target letter The changed element of display state is obtained in number, obtains the first element;Judge whether the first element is on the page by hiding State becomes the element of display state;If the first element is the element for becoming display state from hidden state on the page, Determine that the first element is object element.
The display state of element, which changes, refers to that element becomes display state from hidden state on the page or by showing State becomes hidden state.In embodiments of the present invention, being important to notice that becomes display state from hidden state on the page Element these are therefore become into the element of display state as object element from hidden state on the page.
Optionally, it in the click condition detection method of element provided by the embodiments of the present application, is indicated using link accounting Click condition determines the click condition of object element according to the second path, comprising: according to the chain of the second path computing object element Connect accounting.
Specifically, the number that object element is clicked is arrived divided by the total degree that all elements on the page are clicked The link accounting of object element.
Link accounting can show that the intensity of click behavior.
Link accounting is big, illustrates that the click behavior of visitor is concentrated;Link accounting is small, illustrates the click behavior dispersion of visitor.
By this index of calculating linking accounting, it is able to know that the click condition of object element, and then optimize the page just to have Scientific basis can also dynamically consider the click effect of page adjustment front and back to carry out scientific upgrading to the page.It can be with The pouplarity that each element is understood by linking accounting, the scientific basis as Makeup Optimization.
It should be noted that step shown in the flowchart of the accompanying drawings can be in such as a group of computer-executable instructions It is executed in computer system, although also, logical order is shown in flow charts, and it in some cases, can be with not The sequence being same as herein executes shown or described step.
A complete embodiment is given below:
The page of guest access website clicks the element on the page, the click data of user is collected, according to click data energy Enough know the path for the element that user clicks on webpage, i.e. path of this element on the dom tree of entire HTML, such as:
Assuming that being collected into n such paths, referred to as path1, path2, path3 ... ... pathn altogether.
After the page has loaded, a monitor is registered, the effect of this monitor is monitored under document.body All child nodes then adjust back a letter when child node of these child nodes increases element or reduces element Number.
Will appreciate that it is that the child node of which node is changed in this call back function, then obtains this node and exist Path in the dom structure tree of entire HTML, referred to as pathm.
By pathm and path1, path2, path3 ... ... pathn are matched respectively, using the path of successful match as Second path.According to the link accounting of object element described in second path computing.
Specifically, the quantity in the second path is the number that object element is clicked.The number that object element is clicked The link accounting of object element is arrived divided by the total degree that all elements on the page are clicked.
The embodiment of the present application also provides a kind of click condition detection devices of element, it should be noted that the application is real The click condition detection device for applying the element of example can be used for executing the click feelings that element is used for provided by the embodiment of the present application Condition detection method.The click condition detection device of element provided by the embodiments of the present application is introduced below.
Fig. 2 is the schematic diagram of the click condition detection device of element provided by the embodiments of the present application.As shown in Fig. 2, the dress Set includes: first acquisition unit 10, second acquisition unit 20, matching unit 30, the first determination unit 40.
First acquisition unit 10, for obtaining object element from objective function in the case where receiving objective function, Wherein, object element is the changed element of display state on the page, wherein the display state of element, which changes, refers to element Display state is become from hidden state on the page or hidden state is become from display state.
Second acquisition unit 20 obtains target road for obtaining path of the object element on the dom structure tree of HTML Diameter.
Matching unit 30, for matching first path with destination path, by with destination path successful match One path is as the second path, wherein first path is that the path of element is clicked on the page.
First determination unit 40, for determining the click condition of object element according to the second path.
In the embodiment of the present application, first path is the path of the element on the visitor's click Website page for access website, Destination path is path of the object element on the dom structure tree of HTML, and object element can be the element hidden on the page, is led to Cross and match first path with destination path, the first path with destination path successful match can be obtained, by these with The first path of destination path successful match determines the click condition of object element according to the second path as the second path, solution Determined in the prior art link thermodynamic chart can not detection of concealed element click condition the technical issues of, reached link thermodynamic chart The technical effect of the click condition of detection of concealed element.
Optionally, in the click condition detection device of element provided by the embodiments of the present application, matching unit 30 includes: One judgment sub-unit, first determine that subelement, second determine subelement.First judgment sub-unit, for judging in first path It whether include destination path.First determines subelement, in the case where for including destination path in first path, determines first Path and destination path successful match.Second determines subelement, in the case where for not including destination path in first path, Determining first path, it fails to match with destination path.
Optionally, in the click condition detection device of element provided by the embodiments of the present application, device further include: registration is single Member.Registering unit, for before obtaining object element in objective function, being infused on the element of the page in first acquisition unit 10 Volume monitor, wherein monitor invocation target function in the case where the display state of element changes.
Optionally, in the click condition detection device of element provided by the embodiments of the present application, first acquisition unit 10 is wrapped It includes: obtaining subelement, the second judgment sub-unit, third and determine subelement.Subelement is obtained, for receiving objective function In the case of, the changed element of display state is obtained from objective function, obtains the first element.Second judgment sub-unit is used In judging whether the first element is the element for becoming display state from hidden state on the page.Third determines subelement, is used for If the first element is the element for becoming display state from hidden state on the page, it is determined that the first element is object element.
Optionally, in the click condition detection device of element provided by the embodiments of the present application, device further include: judgement is single Member, recording unit, the second determination unit.Judging unit, for carrying out first path and destination path in matching unit 30 With, judging whether to produce before the click data clicking element and obtaining.Recording unit, in the feelings for producing click data Under condition, click data is recorded.Second determination unit, for determining first path according to click data.
Optionally, in the click condition detection device of element provided by the embodiments of the present application, the first determination unit 40 packet It includes: computation subunit.Computation subunit, for the link accounting according to the second path computing object element.
The click condition detection device includes processor and memory, and above-mentioned first acquisition unit 10, second obtains single Member 20, matching unit 30, first determination unit 40 etc. store in memory as program unit, execute storage by processor Above procedure unit in memory realizes corresponding function.
Include kernel in processor, is gone in memory to transfer corresponding program unit by kernel.Kernel can be set one Or more, the click condition of detection of concealed element is carried out by adjusting kernel parameter.
Memory may include the non-volatile memory in computer-readable medium, random access memory (RAM) and/ Or the forms such as Nonvolatile memory, if read-only memory (ROM) or flash memory (flash RAM), memory include that at least one is deposited Store up chip.
The embodiment of the invention provides a kind of storage mediums, are stored thereon with program, real when which is executed by processor The click condition detection method of the existing element.
The embodiment of the invention provides a kind of processor, the processor is for running program, wherein described program operation The click condition detection method of element described in Shi Zhihang.
The embodiment of the invention provides a kind of equipment, equipment include processor, memory and storage on a memory and can The program run on a processor, processor perform the steps of when executing program
In the case where receiving objective function, object element is obtained from objective function, wherein object element is the page The upper changed element of display state, wherein the display state of element, which changes, refers to element on the page by hidden state Become display state or hidden state is become from display state;Path of the object element on the dom structure tree of HTML is obtained, Obtain destination path;First path is matched with destination path, using with the first path of destination path successful match as Second path, wherein first path is that the path of element is clicked on the page;The click of object element is determined according to the second path Situation.
Optionally, it also performs the steps of and whether is judged in first path comprising destination path when processor executes program; In the case where including destination path in first path, first path and destination path successful match are determined;In first path In the case where not comprising destination path, determining first path, it fails to match with destination path.
Optionally, it is also performed the steps of when processor executes program and registers monitor on the element of the page, wherein Monitor invocation target function in the case where the display state of element changes.
Optionally, it also performs the steps of when processor executes program in the case where receiving objective function, from target The changed element of display state is obtained in function, obtains the first element;Judge whether the first element is on the page by hidden Hiding state becomes the element of display state;If the first element is the element for becoming display state from hidden state on the page, Then determine that the first element is object element.
Optionally, it also performs the steps of to judge whether to produce when processor executes program and clicks the point that element obtains Hit data;In the case where producing click data, click data is recorded;First path is determined according to click data.
Optionally, the link according to the second path computing object element is also performed the steps of when processor executes program Accounting.
Equipment herein can be server, PC, PAD, mobile phone etc..
Present invention also provides a kind of computer program products, when executing on data processing equipment, are adapted for carrying out just The program of beginningization there are as below methods step:
In the case where receiving objective function, object element is obtained from objective function, wherein object element is the page The upper changed element of display state, wherein the display state of element, which changes, refers to element on the page by hidden state Become display state or hidden state is become from display state;Path of the object element on the dom structure tree of HTML is obtained, Obtain destination path;First path is matched with destination path, using with the first path of destination path successful match as Second path, wherein first path is that the path of element is clicked on the page;The click of object element is determined according to the second path Situation;
Whether judge in first path comprising destination path;In the case where including destination path in first path, determine First path and destination path successful match;In first path do not include destination path in the case where, determine first path with It fails to match for destination path;
Monitor is registered on the element of the page, wherein monitor is in the case where the display state of element changes Invocation target function;
In the case where receiving objective function, the changed element of display state is obtained from objective function, is obtained First element;Judge whether the first element is the element for becoming display state from hidden state on the page;If the first element It is the element for becoming display state from hidden state on the page, it is determined that the first element is object element;
Judge whether to produce and clicks the click data that element obtains;In the case where producing click data, point is recorded Hit data;First path is determined according to click data;
According to the link accounting of the second path computing object element.
It should be understood by those skilled in the art that, embodiments herein can provide as method, system or computer program Product.Therefore, complete hardware embodiment, complete software embodiment or reality combining software and hardware aspects can be used in the application Apply the form of example.Moreover, it wherein includes the computer of computer usable program code that the application, which can be used in one or more, The computer program implemented in usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) produces The form of product.
The application is referring to method, the process of equipment (system) and computer program product according to the embodiment of the present application Figure and/or block diagram describe.It should be understood that every one stream in flowchart and/or the block diagram can be realized by computer program instructions The combination of process and/or box in journey and/or box and flowchart and/or the block diagram.It can provide these computer programs Instruct the processor of general purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices to produce A raw machine, so that being generated by the instruction that computer or the processor of other programmable data processing devices execute for real The device for the function of being specified in present one or more flows of the flowchart and/or one or more blocks of the block diagram.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing devices with spy Determine in the computer-readable memory that mode works, so that it includes referring to that instruction stored in the computer readable memory, which generates, Enable the manufacture of device, the command device realize in one box of one or more flows of the flowchart and/or block diagram or The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device, so that counting Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, thus in computer or The instruction executed on other programmable devices is provided for realizing in one or more flows of the flowchart and/or block diagram one The step of function of being specified in a box or multiple boxes.
In a typical configuration, calculating equipment includes one or more processors (CPU), input/output interface, net Network interface and memory.
Memory may include the non-volatile memory in computer-readable medium, random access memory (RAM) and/ Or the forms such as Nonvolatile memory, such as read-only memory (ROM) or flash memory (flash RAM).Memory is computer-readable Jie The example of matter.
Computer-readable medium includes permanent and non-permanent, removable and non-removable media can be by any method Or technology come realize information store.Information can be computer readable instructions, data structure, the module of program or other data. The example of the storage medium of computer includes, but are not limited to phase change memory (PRAM), static random access memory (SRAM), moves State random access memory (DRAM), other kinds of random access memory (RAM), read-only memory (ROM), electric erasable Programmable read only memory (EEPROM), flash memory or other memory techniques, read-only disc read only memory (CD-ROM) (CD-ROM), Digital versatile disc (DVD) or other optical storage, magnetic cassettes, tape magnetic disk storage or other magnetic storage devices Or any other non-transmission medium, can be used for storage can be accessed by a computing device information.As defined in this article, it calculates Machine readable medium does not include temporary computer readable media (transitory media), such as the data-signal and carrier wave of modulation.
It should also be noted that, the terms "include", "comprise" or its any other variant are intended to nonexcludability It include so that the process, method, commodity or the equipment that include a series of elements not only include those elements, but also to wrap Include other elements that are not explicitly listed, or further include for this process, method, commodity or equipment intrinsic want Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including element There is also other identical elements in process, method, commodity or equipment.
It will be understood by those skilled in the art that embodiments herein can provide as method, system or computer program product. Therefore, complete hardware embodiment, complete software embodiment or embodiment combining software and hardware aspects can be used in the application Form.It is deposited moreover, the application can be used to can be used in the computer that one or more wherein includes computer usable program code The shape for the computer program product implemented on storage media (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) Formula.
The above is only embodiments herein, are not intended to limit this application.To those skilled in the art, Various changes and changes are possible in this application.It is all within the spirit and principles of the present application made by any modification, equivalent replacement, Improve etc., it should be included within the scope of the claims of this application.

Claims (10)

1. a kind of click condition detection method of element characterized by comprising
In the case where receiving objective function, object element is obtained from the objective function, wherein the object element is The changed element of display state on the page, wherein the display state of element, which changes, refers to element on the page by hiding State becomes display state or becomes hidden state from display state;
Path of the object element on the dom structure tree of HTML is obtained, destination path is obtained;
First path is matched with the destination path, will be made with the first path of the destination path successful match For the second path, wherein the first path is to click the path of element on the page;
The click condition of the object element is determined according to second path.
2. being wrapped the method according to claim 1, wherein first path is matched with the destination path It includes:
Whether judge in the first path comprising the destination path;
In the case where including the destination path in the first path, the first path and the destination path are determined With success;
In the case where not including the destination path in the first path, the first path and the destination path are determined It fails to match.
3. the method according to claim 1, wherein from the objective function obtain object element before, The method also includes:
Monitor is registered on the element of the page, wherein the monitor is in the case where the display state of element changes Call the objective function.
4. the method according to claim 1, wherein in the case where receiving objective function, from the target Object element is obtained in function, comprising:
In the case where receiving the objective function, the changed element of display state is obtained from the objective function, Obtain the first element;
Judge whether first element is the element for becoming display state from hidden state on the page;
If first element is the element for becoming display state from hidden state on the page, it is determined that first element For the object element.
5. the method according to claim 1, wherein first path is carried out to match it with the destination path Before, the method also includes:
Judge whether to produce and clicks the click data that element obtains;
In the case where producing the click data, the click data is recorded;
The first path is determined according to the click data.
6. the method according to claim 1, wherein indicating click condition and described using link accounting The click condition of the object element is determined according to second path, comprising:
According to the link accounting of object element described in second path computing.
7. a kind of click condition detection device of element characterized by comprising
First acquisition unit, for obtaining object element from the objective function in the case where receiving objective function, In, the object element is the changed element of display state on the page, wherein the display state of element, which changes, refers to member Element becomes display state from hidden state on the page or becomes hidden state from display state;
Second acquisition unit obtains destination path for obtaining path of the object element on the dom structure tree of HTML;
Matching unit, for first path to be matched with the destination path, by with the destination path successful match The first path is as the second path, wherein the first path is that the path of element is clicked on the page;
First determination unit, for determining the click condition of the object element according to second path.
8. device according to claim 7, which is characterized in that the matching unit includes:
First judgment sub-unit, for whether judging in the first path comprising the destination path;
First determines subelement, in the case where for including the destination path in the first path, determines described first Path and the destination path successful match;
Second determines subelement, in the case where for not including the destination path in the first path, determines described the It fails to match with the destination path in one path.
9. a kind of storage medium, which is characterized in that the storage medium includes the program of storage, wherein described program right of execution Benefit require any one of 1 to 6 described in element click condition detection method.
10. a kind of processor, which is characterized in that the processor is for running program, wherein right of execution when described program is run Benefit require any one of 1 to 6 described in element click condition detection method.
CN201710760925.XA 2017-08-29 2017-08-29 Element click condition detection method and device, storage medium and processor Active CN109426540B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710760925.XA CN109426540B (en) 2017-08-29 2017-08-29 Element click condition detection method and device, storage medium and processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710760925.XA CN109426540B (en) 2017-08-29 2017-08-29 Element click condition detection method and device, storage medium and processor

Publications (2)

Publication Number Publication Date
CN109426540A true CN109426540A (en) 2019-03-05
CN109426540B CN109426540B (en) 2021-07-30

Family

ID=65503991

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710760925.XA Active CN109426540B (en) 2017-08-29 2017-08-29 Element click condition detection method and device, storage medium and processor

Country Status (1)

Country Link
CN (1) CN109426540B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113885997A (en) * 2021-10-19 2022-01-04 深圳市元征科技股份有限公司 Dialog box display method and device, electronic equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103365542A (en) * 2013-07-01 2013-10-23 携程计算机技术(上海)有限公司 User click behavior showing method and system
CN104166656A (en) * 2013-05-17 2014-11-26 阿里巴巴集团控股有限公司 Traffic statistic webpage display method and device
CN104408185A (en) * 2014-12-15 2015-03-11 北京国双科技有限公司 Link click rate display method and device of webpage thermodynamic diagram
CN106610994A (en) * 2015-10-23 2017-05-03 北京国双科技有限公司 Method and device for counting click paths

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104166656A (en) * 2013-05-17 2014-11-26 阿里巴巴集团控股有限公司 Traffic statistic webpage display method and device
CN103365542A (en) * 2013-07-01 2013-10-23 携程计算机技术(上海)有限公司 User click behavior showing method and system
CN104408185A (en) * 2014-12-15 2015-03-11 北京国双科技有限公司 Link click rate display method and device of webpage thermodynamic diagram
CN106610994A (en) * 2015-10-23 2017-05-03 北京国双科技有限公司 Method and device for counting click paths

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113885997A (en) * 2021-10-19 2022-01-04 深圳市元征科技股份有限公司 Dialog box display method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN109426540B (en) 2021-07-30

Similar Documents

Publication Publication Date Title
CN106528432B (en) The construction method and device of test scene data bury a test method
CN105224606B (en) A kind of processing method and processing device of user identifier
ES2811704T3 (en) Method and system for extracting user behavior functions to customize recommendations
CN103678321B (en) Page elements determine method and apparatus, user behavior determining method of path and device
Durão et al. Internet of Things process selection: AHP selection method
US20190132359A1 (en) Dynamically Configuring A Honeypot
RU2607621C2 (en) Method, system and computer-readable data medium for grouping in social networks
US8655805B2 (en) Method for classification of objects in a graph data stream
US9104767B2 (en) Identifying web pages that are likely to guide browsing viewers to improve conversion rate
CN105022801B (en) A kind of hot topic video mining method and device
CN107562620A (en) One kind buries an automatic setting method and device
CN105227352B (en) A kind of update method and device of user identifier collection
TW201926084A (en) Method and system for identifying fraudulent publisher networks
CN107003877A (en) The context deep-link of application
CN105023165A (en) Method, device and system for controlling release tasks in social networking platform
US11093565B2 (en) Methods and systems for identifying multiple devices belonging to a single user by merging deterministic and probabilistic data to generate a cross device data structure
WO2012148863A2 (en) Targeting advertising based on tracking content sharing
CN104731869B (en) The page shows method and device
CN110381151A (en) A kind of warping apparatus detection method and device
WO2016039783A1 (en) Auditing of web-based video
CN109428776A (en) A kind of monitoring method and device of website traffic
CN108648009A (en) A kind of advertisement sending method and device
CN108829769A (en) A kind of suspicious group's discovery method and apparatus
CN106357789A (en) Information access control method and server
CN110442502A (en) A kind of method, apparatus buried a little, equipment and storage medium

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

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 Beijing city Haidian District Shuangyushu Area No. 76 Zhichun Road cuigongfandian 8 layer A

Applicant before: Beijing Guoshuang Technology Co.,Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant