CN111339387A - Click feedback obtaining method and device based on information template and electronic equipment - Google Patents

Click feedback obtaining method and device based on information template and electronic equipment Download PDF

Info

Publication number
CN111339387A
CN111339387A CN201811551010.9A CN201811551010A CN111339387A CN 111339387 A CN111339387 A CN 111339387A CN 201811551010 A CN201811551010 A CN 201811551010A CN 111339387 A CN111339387 A CN 111339387A
Authority
CN
China
Prior art keywords
click
node
field
template
target information
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
CN201811551010.9A
Other languages
Chinese (zh)
Other versions
CN111339387B (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.)
Alibaba Group Holding Ltd
Original Assignee
Alibaba Group Holding 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 Alibaba Group Holding Ltd filed Critical Alibaba Group Holding Ltd
Priority to CN201811551010.9A priority Critical patent/CN111339387B/en
Publication of CN111339387A publication Critical patent/CN111339387A/en
Application granted granted Critical
Publication of CN111339387B publication Critical patent/CN111339387B/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
    • 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/957Browsing optimisation, e.g. caching or content distillation
    • G06F16/9577Optimising the visualization of content, e.g. distillation of HTML documents

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 click feedback acquisition method based on an information template. The method comprises the following steps: according to the material fields included in the target information template, setting click fields for acquiring click feedback in the target information template; displaying target information according to a target information template provided with a click field; and when the target information is detected to receive the click operation, recording according to the click field corresponding to the click operation so as to obtain click feedback of the target information.

Description

Click feedback obtaining method and device based on information template and electronic equipment
Technical Field
The invention relates to the technical field of internet, in particular to a click feedback acquisition method and device based on an information template and electronic equipment.
Background
With the rapid development of internet technology and the popularization of intelligent terminals, it has become an important means for people to acquire information in daily life by accessing a network to perform searching or browsing operations through an application (for example, a browser or an application similar to a browser and including a search engine) installed on an intelligent terminal such as a mobile phone, a palm computer, and a tablet computer, which provides information searching and browsing services, to acquire information displayed on a page of the application corresponding to an operation result.
At present, when the information is displayed on the page of the application, the page is usually displayed based on an information template. The information template is usually written by HTML (hypertext markup language), CSS (cascading style sheet) and JS (interpreted scripting language), includes independent behaviors and presentation styles, and can completely express the content of one piece of information. For example, the information template may be displayed as shown in fig. 1, and may display a piece of information in the form of an information card.
When a piece of information is displayed, the information usually includes many information elements such as a title, a text, a picture, a link and the like. After the information publisher displays the published information, it is generally desirable to obtain click feedback of the information browsed by the user, where the click feedback includes which information elements the user clicks and page positions of the clicked information elements during display, so as to improve the effect of information display according to the click feedback and obtain greater information display benefits.
At present, a click feedback manner for obtaining information after information is displayed generally includes maintaining a set of unique click fields for each information template, dispersedly setting the click fields in the information template at corresponding positions for receiving click behaviors, and counting the click fields corresponding to the click operations of the recorded users when receiving the click operations of the users after the information is displayed based on the information template, so as to obtain the click feedback.
However, in this way of obtaining click feedback of information, a set of unique click fields needs to be maintained for each information template, and usually, a front-end developer needs to manually add corresponding click fields in each information template, so that the code amount is huge, and the code amount for development is increased; moreover, research and development personnel, project management personnel and front-end development personnel are often required to participate in maintenance, a large amount of labor cost is consumed, and meanwhile, the development period of a new information template is prolonged; when the requirement of the information template changes frequently, the click fields must be correspondingly and frequently added or deleted, and the modification amount is large, so that the risk is easily brought by errors.
Disclosure of Invention
An object of the present invention is to provide a new technical solution for obtaining click feedback.
According to a first aspect of the present invention, there is provided a click feedback acquisition method based on an information template, wherein the method includes:
according to the material fields included in the target information template, setting click fields for acquiring click feedback in the target information template;
displaying target information according to a target information template provided with the click field;
and when the target information is detected to receive the click operation, recording according to the click field corresponding to the click operation so as to obtain click feedback of the target information.
Optionally, the step of setting a click field for obtaining click feedback in the target information template according to the material field included in the target information template includes:
acquiring a template tree of the target information template;
wherein the template tree represents the target information template in a tree structure;
setting the click field on the corresponding node in the template tree according to the node containing the material field in the template tree;
and obtaining a target information template comprising the click field according to the template tree after the click field is set.
Optionally, the step of obtaining the template tree includes:
and compiling the target information template to obtain a template tree which accords with a preset data format.
Optionally, the step of setting the click field on the corresponding node of the template tree according to the node of the template tree including the material field includes:
selecting a node from the top layer of the template tree as a current node according to the tree structure of the template tree;
analyzing the current node, and setting the click field on the node corresponding to the current node when the current node is determined to be the node containing the material field;
and according to the tree structure of the template tree, based on the current node, when the template tree selects a node meeting the condition of continuous analysis as the next current node, continuing to execute the step of analyzing the current node until the template tree can not select the node meeting the condition of continuous analysis.
Optionally, when it is determined that the current node is a node containing a material field, the step of setting the click field on the node corresponding to the current node includes:
setting the click field on the current node according to the material field of the current node;
analyzing the father node of the current node, setting the click field on the father node of the current node according to the material field of the current node when the father node of the current node is determined to be the node not containing the material field, setting the father node of the current node as the current node, and continuing to execute the step of analyzing the father node of the current node until the father node of the current node is the node containing the material field.
Optionally, the conditions for continuing the analysis include:
when the current node and the parent node of the current node are both nodes provided with click fields, the next sibling node of the parent node which is the same as the current node is the next current node;
when the current node is a node not provided with a click field, a child node of the current node or a next sibling node of the parent node having the same parent node as the current node is a next current node.
Optionally, the material field is used as the click field.
According to a second aspect of the present invention, there is provided a click feedback acquisition apparatus, comprising:
the setting unit is used for setting a click field for acquiring click feedback in the target information template according to the material field included in the target information template;
the display unit is used for displaying the target information according to the target information template comprising the click field;
and the recording unit is used for recording according to the click field corresponding to the click operation when the target information is detected to receive the click operation so as to obtain click feedback of the target information.
According to a third aspect of the present invention, there is also provided an electronic apparatus, comprising:
a memory for storing executable instructions;
and the processor is used for operating the electronic equipment to execute the click feedback acquisition method based on the information template according to the control of the executable instruction.
According to one embodiment of the disclosure, according to the material fields included in the information template, the click fields for acquiring click feedback are arranged in the information template, when the click operation of a user is received according to the information displayed by the information template, the click feedback of the user on the information is acquired according to the click fields corresponding to the click operation, a unique set of fields is not required to be maintained with each information template, the click fields for acquiring the click feedback can be adaptively arranged according to the material fields included in different information templates, the labor cost consumed by development and maintenance work related to the acquisition of the click feedback based on the information template is greatly reduced, the development period of the information template is shortened, meanwhile, the risk of modification errors caused by the change of the information template is avoided, and the development and replacement efficiency of the information template is improved.
Other features of the present invention and advantages thereof will become apparent from the following detailed description of exemplary embodiments thereof, which proceeds with reference to the accompanying drawings.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and together with the description, serve to explain the principles of the invention.
Fig. 1 shows a schematic diagram of an example of an information template.
Fig. 2 is a block diagram showing an example of a hardware configuration of a computing system that may be used to implement an embodiment of the invention.
Fig. 3 is a diagram illustrating an example of presenting information based on an information template in an embodiment of the present invention.
FIG. 4 is a flowchart illustrating a click feedback obtaining method based on an information template according to an embodiment of the present invention.
Fig. 5 is a diagram showing an example of a target information template in the embodiment of the present invention.
FIG. 6 is a diagram illustrating an example of nodes of a template tree including material fields in an embodiment of the present invention.
FIG. 7 is a flowchart illustrating an example of setting a click field in a template tree according to an embodiment of the present invention.
FIG. 8 is a diagram illustrating an example of a template tree for setting a click field in the embodiment of the present invention.
Fig. 9 is a diagram illustrating an example of presenting target information according to a target information template provided with a click field in the embodiment of the present invention.
Fig. 10 is a block diagram showing the click feedback acquisition means 3000 according to the embodiment of the present invention.
Fig. 11 shows a block diagram of an electronic device 4000 in an embodiment of the invention.
Detailed Description
Various exemplary embodiments of the present invention will now be described in detail with reference to the accompanying drawings. It should be noted that: the relative arrangement of the components and steps, the numerical expressions and numerical values set forth in these embodiments do not limit the scope of the present invention unless specifically stated otherwise.
The following description of at least one exemplary embodiment is merely illustrative in nature and is in no way intended to limit the invention, its application, or uses.
Techniques, methods, and apparatus known to those of ordinary skill in the relevant art may not be discussed in detail but are intended to be part of the specification where appropriate.
In all examples shown and discussed herein, any particular value should be construed as merely illustrative, and not limiting. Thus, other examples of the exemplary embodiments may have different values.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, further discussion thereof is not required in subsequent figures.
< hardware configuration >
Fig. 2 shows a block diagram of a hardware configuration of an electronic device 1000 that can implement an embodiment of the invention.
The electronic device 1000 may be a laptop, desktop, cell phone, tablet, etc. As shown in fig. 1, the electronic device 1000 may include a processor 1100, a memory 1200, an interface device 1300, a communication device 1400, a display device 1500, an input device 1600, a speaker 1700, a microphone 1800, and the like. The processor 1100 may be a central processing unit CPU, a microprocessor MCU, or the like. The memory 1200 includes, for example, a ROM (read only memory), a RAM (random access memory), a nonvolatile memory such as a hard disk, and the like. The interface device 1300 includes, for example, a USB interface, a headphone interface, and the like. The communication device 1400 is capable of wired or wireless communication, for example, and may specifically include Wifi communication, bluetooth communication, 2G/3G/4G/5G communication, and the like. The display device 1500 is, for example, a liquid crystal display panel, a touch panel, or the like. The input device 1600 may include, for example, a touch screen, a keyboard, a somatosensory input, and the like. A user can input/output voice information through the speaker 1700 and the microphone 1800.
The electronic device shown in fig. 2 is merely illustrative and is in no way meant to limit the invention, its application, or uses. In an embodiment of the present invention, the memory 1200 of the electronic device 1000 is configured to store instructions for controlling the processor 1100 to operate to execute any one of the click feedback obtaining methods based on an information template provided in the embodiment of the present invention. It will be appreciated by those skilled in the art that although a plurality of means are shown for the electronic device 1000 in fig. 2, the present invention may relate to only some of the means therein, e.g. the electronic device 1000 relates to only the processor 1100 and the storage means 1200. The skilled person can design the instructions according to the disclosed solution. How the instructions control the operation of the processor is well known in the art and will not be described in detail herein.
The general idea of the embodiment of the invention is to provide a new technical scheme for obtaining click feedback based on an information template, according to the material fields included in the information template, a click field for obtaining click feedback is arranged in the information template, when the click operation of a user is received according to the information displayed by the information template, the click feedback of the user to the information is obtained according to the click field corresponding to the click operation without maintaining a unique set of fields with each information template, the click field for acquiring the click feedback can be adaptively set according to the material fields included in different information templates, the labor cost consumed by development and maintenance work related to the acquisition of the click feedback based on the information templates is greatly reduced, the development period of the information templates is shortened, meanwhile, the risk of modification errors caused by the change of the information template is avoided, and the development and alternation efficiency of the information template is improved.
< example >
In this embodiment, a method for obtaining click feedback of an information template is provided.
The information template is a template for displaying information, and generally comprises a style used for displaying the information, a material field and the like. Each material field is a data field representing information data. The information displayed based on the information template is generally based on the combination of the information template and the material composition forming specific information data. The material comprises specific information data corresponding to the material field in the information template. The materials and the information template can be combined through the material fields to form an information card containing specific information data and display styles. For example, the information shown in fig. 3 is based on the information template shown in fig. 1 in combination with the material related to the inclusion of "flowers".
As shown in fig. 4, the method for obtaining click feedback of an information template provided in this embodiment includes: steps S2100-S2300.
And step S2100, setting a click field for acquiring click feedback in the target information template according to the material field included in the target information template.
The material fields included in the target information template may be set according to a specific application scenario or application requirements. For example, as shown in fig. 5, the partial content of the target information template includes the material fields "1 _ subpath _ url", "3 _ subpath _ url", etc., and also includes the material field "target _ url", etc. in "< cpc-title > </cpc-title >" of the second row (the material fields may be distributed in various positions in the target information template, the content of the target information template is more, limited to the space, and only part of the content is shown in fig. 5).
In the process of technical research and development, through a series of creative efforts, the applicant discovers that the material fields contained in the information template have the attribute of displaying information by combining the materials forming specific information data with the information template, so that the positions of the material fields and the corresponding specific information data displayed by the material fields are all parts of information which can be concerned and clicked by users when the information is displayed, therefore, the material fields are applied to the click fields for obtaining click feedback, accurate click feedback can be obtained, a set of fields unique to each information template is not required to be maintained, the click fields for obtaining click feedback can be adaptively set according to the material fields contained in different information templates, and the labor cost consumed by development and maintenance work related to the click feedback obtained based on the information template is greatly reduced, the development period of the information template is shortened, meanwhile, the modification error risk caused by the change of the information template is avoided, and the development and alternation efficiency of the information template is improved.
In this embodiment, the click field is set in the target information template according to the material field included in the target information template, and the material field may be used as the click field, or the click field may be used after the material field is changed (for example, a fixed character, a code, and the like are added).
In a specific example, step S2100 may include: steps S2110-S2130.
Step S2110, a template tree of the target information template is obtained.
The template tree of the target information template represents the target information template in the form of a tree structure. A tree structure is a data structure that typically includes a plurality of nodes having a hierarchical relationship, which may be a parent-child relationship (a node at a previous level is a parent node, and a node at a next level of the parent node is a child node), a sibling relationship (two nodes at the same level having the same parent node are siblings of each other), and so on.
In this embodiment, the target information template may be a source code file written in a language such as HTML (hypertext markup language), CSS (cascading style sheets), JS (transliteration script language), and the like, and may have a corresponding syntax structure, and may be represented in a data structure form such as a tree structure.
In this example, the step of obtaining the template tree may include:
and compiling the target information template to obtain a template tree which accords with a preset data format.
The preset data format can be set according to a specific application scene or application requirements, for example, set to JSON (JSON Object Notation) format.
And compiling the target information template, analyzing to obtain a syntax tree of languages such as HTML (hypertext markup language) according to the languages such as HTML (hypertext markup language) for compiling the target information template, and correspondingly obtaining a template tree which accords with a preset data format.
And S2120, according to the nodes containing the material fields in the template tree, setting click fields on the corresponding nodes in the template tree.
The template tree represents the target information template in the form of a tree structure. The tree structure comprises a plurality of nodes in a tree structure, template elements which form the information template, such as style elements, material fields and the like, in the target information template respectively correspond to one or more nodes in the template tree, or the template elements form the node attribute of one node. The target information template comprises material fields, and correspondingly, nodes containing the material fields also exist in a template tree which represents the target information template in a tree structure form.
According to the nodes containing the material fields in the template tree, the click fields are arranged on the corresponding nodes in the template tree, and the click fields are arranged on the corresponding positions of the target information template according to the material fields in the target information template by combining the subsequent steps.
In a specific example, step S2120 may include: steps S21210-S21230.
And S21210, selecting a node from the top layer of the template tree as a current node according to the tree structure of the template tree.
The current node is a node selected in the template tree for which a subsequent node analysis step is to be performed. The nodes are selected from the top level of the template tree as current nodes, and the nodes of the template tree can be analyzed one by one from the top level of the number of templates.
Step S21220, analyzing the current node, and setting a click field on the node corresponding to the current node when the current node is determined to be the node containing the material field.
Analyzing the current node, it can be determined whether the current node is a node containing a material field. Specifically, the node content of the current node may be analyzed, and the determination may be made according to whether the node content includes a material field. In a specific application, a special identifier, such as two braces "{ } }" can be used to identify the material field, so that when the content of a node using "{ } } includes a field, that field is the material field, the corresponding node is the node containing the material field. For example, a node containing a material field "title" and a node including a material field "logo _ img" as shown in fig. 6.
And when the current node is determined to be the node containing the material field, setting a click field on the node corresponding to the current node. And when the current node is determined to be the node containing the material field, the next step can be entered to continue to select the node for analysis.
In a more specific example, upon determining that the current node is a node containing a material field, the step of setting a click field on the node corresponding to the current node may include: S21221-S21222.
And S21221, setting a click field on the current node according to the material field of the current node.
In this example, the material field of the current node may be directly set as the click field, and since the material field has a corresponding position in the target information template (corresponding to the position of the current node in the template tree), the corresponding material field has a corresponding position as the click field; the material field of the current node may also be set as a click field after being changed (for example, adding a fixed character or code), and the position of the click field in the target information template is the corresponding position of the material field (corresponding to the position of the current node in the template tree).
Step S21222, analyzing the father node of the current node, when the father node of the current node is determined to be the node not containing the material field, setting the click field on the father node of the current node according to the material field of the current node, setting the father node of the current node as the current node, and continuing to execute the step of analyzing the father node of the current node until the father node of the current node is the node containing the material field.
The method for analyzing the parent node of the current node is similar to the method for analyzing the current node in step S21210, and is not described herein again.
When determining that the parent node of the current node is the node not containing the material field, setting the click field on the parent node of the current node according to the material field of the current node, similar to the step of setting the material field of the current node, except that the node set with the click field is replaced by the parent node of the current node, and details are not repeated here.
After the click field of the father node of the current node is set, the father node of the current node is taken as the current node, the step S21222 is continuously executed until the father node of the current node contains the material field, and the click field is set upwards step by step, so that the click field can be set by recursively searching the nearest node of the node containing the material field, the click field is ensured to be set with the higher-level node above the father node of the current node, and the accuracy of obtaining click feedback based on the target information template is improved.
After step S21220, the flow proceeds to:
and S21230, based on the current node, when the node meeting the condition of continuous analysis is selected as the next current node in the template tree according to the tree structure of the template tree, continuing to execute the step of analyzing the current node until the node meeting the condition of continuous analysis cannot be selected in the template tree.
The continuous analysis condition is a condition for judging whether the selected node is suitable for being used as the current node for analysis, and can be set according to a specific application scene or an application requirement.
For example, the continued analysis conditions may include:
when the current node and the father node of the current node are both the nodes provided with the click fields, the next brother node of the father node which is the same as the current node is the next current node;
when the current node is a node which is not provided with the click field, the child node of the current node or the next sibling node of the same parent node as the current node is the next current node.
In the scenario of the application of the continuous analysis condition, when the current node is provided with the click field, the parent node of the current node is inevitably provided with the click field, so that the situation that when the current node is provided with the click field, the parent node of the current node is not provided with the click field does not exist.
In addition, when the current node is a node not provided with the click field, a child node of the current node may be selected as a next current node, and when the current node does not have a child node, a next sibling node having the same parent node as the current node may be selected as a next current node.
When the node meeting the continuous analysis condition is selected as the next current node in the template tree, the step S21220 is continuously executed until the step S21220 is finished when the node meeting the continuous analysis condition cannot be selected in the template tree, so that each node in the template data can be recursively analyzed in a traversal manner, and a click field is set on the corresponding node of the template tree according to the node containing the material field.
The implementation of step S2120 is described above with reference to the drawings and examples, and step S2120 will be further specifically described below with reference to fig. 7.
As shown in fig. 7, step S2120 may include: steps S201-S211.
Step S201, in the template tree of the target information template, a node is selected from the top layer of the template tree as a current node according to the tree structure of the template tree.
Specifically, the top node of the template tree may be selected as the current node.
Step S202, whether the current node contains a material field is analyzed, if the current node contains the material field, the step S203 is executed, and if not, the step S206 is executed.
And S203, setting the material field of the current node as a click field on the current node.
Step S204, whether the father node of the current node contains the material field is analyzed, if the father node of the current node contains the material field, the step S205 is executed, and if not, the step S207 is executed.
Step S205, the material field of the current node is used as the click field and is set on the father node of the current node, the father node of the current node is set as the current node, and the step S204 is returned.
Step S206, whether the current node has a child node or not is judged, if not, the step S207 is executed, otherwise, the step S210 is executed.
Step S207, whether the current node has the next brother node of the common parent node, if no brother node exists, the step S208 is executed, otherwise, the step S211 is executed.
Step S208, whether the current node has a parent node or not is judged, if not, the process is ended, otherwise, the process goes to step 209.
In step S209, after returning to the parent node, the process proceeds to step S207 to continuously determine whether a next sibling node exists.
Step S210, taking the child node as the next current node, and returning to step S202 to continue analyzing the current node.
And step S211, taking the next sibling node as the next current node, and returning to step S202 to continue analyzing the current node.
After step S2120, the flow proceeds to:
step 2130, obtaining a target information template comprising the click field according to the template tree after the click field is set.
And in the template tree after the click fields are set, the click fields are set at the positions of the corresponding nodes, and the target information template comprising the click fields can be obtained through decompiling of the template tree.
For example, as shown in fig. 8, the template tree part contents of JSON format of the click field are set, wherein the material fields "target _ url", "1 _ subpath _ url", "3 _ subpath _ url" are set as click fields on the corresponding nodes.
Step S2100 in the present embodiment has been described above with reference to the drawings and examples, and the process proceeds to:
and step S2200, displaying the target information according to the target information template provided with the click field.
The target information is displayed through the target information template provided with the click field, and click feedback can be obtained through the click field when the user clicks the target information in combination with the subsequent steps.
In a specific example, step S2200 may include:
and setting a material field included in the target information template according to the target material corresponding to the target information, and rendering based on the target information template after the material field is set to generate a corresponding information page so as to display the target information.
The specific information data constituting the target information is included in the target material corresponding to the target information, and the specific information data included in the target material includes specific field contents corresponding to the material fields included in the target information template, so that the field contents of the material fields included in the target information template can be set according to the target material. The corresponding information page is generated by rendering based on the target information template after the material field is set so as to display the target information, and the target information can be expressed by combining the material field with the material and the information template.
For example, taking the template tree of JSON format with click field shown in fig. 8 and the corresponding target information template with click field as an example, the source code of the rendering generated page is shown in the right half of fig. 9, and the page display effect of the target information is shown in the left half of fig. 9.
Step S2300, when detecting that the target information receives the click operation, recording according to the click field corresponding to the click operation to obtain the click feedback of the target information.
In this embodiment, whether the target information receives the click operation may be determined by detecting whether the operation received on the interface area displaying the target information conforms to a preset click event.
When the target information receives the clicking operation, the target information is clicked by the user when the target information is browsed by the user. The click field corresponding to the click operation is a click mark at an operation position corresponding to the click operation when the user clicks. For example, in the target information shown in fig. 9, when the user clicks a region where a red box portion is clickable, the correspondence may determine a click field "target _ url", "1 _ subpath _ url", or "3 _ subpath _ url" corresponding to the click operation.
In a specific example, the step of recording according to a click field corresponding to the click operation to obtain click feedback of the target information includes:
and recording the field name of the click field and the position of the click field in the target information template as click feedback.
The click field is set in the target information template according to the corresponding material field, and the position of the material field in the target information template is determined in the target information template, so that the position of the click field can be correspondingly determined.
And the field name of the click field and the position of the click field in the target information template are used as click feedback, so that the information display effect can be improved based on the click feedback, and a distributor of the target information can obtain greater information display income.
< click feedback device >
In this embodiment, there is further provided a click feedback device 3000 implemented based on an information template, as shown in fig. 10, including: the setting unit 3100, the display unit 3200, and the recording unit 3300 are configured to implement the method, the apparatus, and the electronic device for obtaining click feedback based on an information template provided in this embodiment, and details are not repeated herein.
The setting unit 3100 is configured to set a click field for obtaining click feedback in the target information template according to the material field included in the target information template.
Optionally, the setup unit 3100 comprises:
means for obtaining a template tree for the target information template;
wherein the template tree represents the target information template in a tree structure;
means for setting the click field on a corresponding node in the template tree according to the node containing the material field in the template tree;
and the device is used for obtaining a target information template comprising the click field according to the template tree after the click field is set.
Further optionally, the means for obtaining the template tree of the target information template is further configured to:
and compiling the target information template to obtain a template tree which accords with a preset data format.
Further optionally, the click field is set on a corresponding node in the template tree according to a node containing a material field in the template tree, and the click field is further configured to:
selecting a node from the top layer of the template tree as a current node according to the tree structure of the template tree;
analyzing the current node, and setting the click field on the node corresponding to the current node when the current node is determined to be the node containing the material field;
and according to the tree structure of the template tree, based on the current node, when the template tree selects a node meeting the condition of continuous analysis as the next current node, continuing to execute the step of analyzing the current node until the template tree can not select the node meeting the condition of continuous analysis.
Further optionally, when it is determined that the current node is a node including a material field, the step of setting the click field on the node corresponding to the current node includes:
setting the click field on the current node according to the material field of the current node;
analyzing the father node of the current node, setting the click field on the father node of the current node according to the material field of the current node when the father node of the current node is determined to be the node not containing the material field, setting the father node of the current node as the current node, and continuing to execute the step of analyzing the father node of the current node until the father node of the current node is the node containing the material field.
Optionally, the conditions for continuing the analysis include:
when the current node and the parent node of the current node are both nodes provided with click fields, the next sibling node of the parent node which is the same as the current node is the next current node;
when the current node is a node not provided with a click field, a child node of the current node or a next sibling node of the parent node having the same parent node as the current node is a next current node.
Optionally, the material field is used as the click field.
A display unit 3200 for displaying the target information according to the target information template including the click field.
Optionally, the display unit 3200 is further for:
setting field contents of the material fields included in the target information template according to target materials corresponding to the target information, and rendering based on the target information template after the material fields are set to generate corresponding information pages so as to display the target information.
And a recording unit 3300, configured to record according to the click field corresponding to the click operation when it is detected that the target information receives the click operation, so as to obtain click feedback of the target information.
Optionally, the recording unit 3300 is further configured to:
and recording the field name of the click field and the position of the click field in the target information template as the click feedback.
It will be appreciated by those skilled in the art that the click feedback acquisition device 3000 may be implemented in various ways. For example, the click feedback acquisition device 3000 may be implemented by an instruction configuration processor. For example, the click feedback acquisition device 3000 may be implemented by storing instructions in a ROM and reading the instructions from the ROM into a programmable device when the apparatus is started. For example, the click feedback acquisition device 3000 may be solidified into a dedicated device (e.g., ASIC). The click feedback acquisition means 3000 may be divided into units independent of each other, or may be implemented by combining them together. The click feedback acquisition means 3000 may be implemented by one of the various implementations described above, or may be implemented by a combination of two or more of the various implementations described above.
In this embodiment, the click feedback acquiring device 3000 may be disposed in any application that displays information based on an information template, for example, a browser, or an application with a search engine similar to a browser, or the click feedback acquiring device 3000 may be a plug-in, an insert, or a patch for any application that displays information based on an information template.
< electronic apparatus >
In this embodiment, there is also provided an electronic apparatus 4000, as shown in fig. 11, including:
a memory 4100 for storing executable instructions;
the processor 4200 is configured to operate the electronic device 4000 to execute the click feedback obtaining method based on the information template according to the control of the executable instructions.
In this embodiment, the electronic device 4000 may have various physical forms, for example, a mobile phone, a computer, a palm computer, etc. with a memory and a processor, and may also be the electronic device 1000 shown in fig. 1. In a specific example, the electronic device 4000 is a mobile phone installed with a browser or a browser-like application having a search engine, or a part of the electronic device 4000, for example, a part implementing a click mark for setting a target information template, may be set in a server of the browser or browser-like application having a search engine.
The method, the apparatus and the electronic device for obtaining click feedback based on information templates provided in the present embodiment have been described above with reference to the accompanying drawings and examples, in the present embodiment, a click field for obtaining click feedback is set in an information template according to a material field included in the information template, when receiving a click operation of a user according to information displayed by the information template, the click feedback of the user on the information is obtained according to the click field corresponding to the click operation, without maintaining a unique set of fields with each information template, the click field for obtaining click feedback can be adaptively set according to the material field included in different information templates, thereby greatly reducing the labor cost consumed by development and maintenance work related to obtaining click feedback based on the information template, shortening the development cycle of the information template, and avoiding the risk of modification errors caused by changing the information template, the development and alternation efficiency of the information template is improved.
The present invention may be a system, method and/or computer program product. The computer program product may include a computer-readable storage medium having computer-readable program instructions embodied therewith for causing a processor to implement various aspects of the present invention.
The computer readable storage medium may be a tangible device that can hold and store the instructions for use by the instruction execution device. The computer readable storage medium may be, for example, but not limited to, an electronic memory device, a magnetic memory device, an optical memory device, an electromagnetic memory device, a semiconductor memory device, or any suitable combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a Static Random Access Memory (SRAM), a portable compact disc read-only memory (CD-ROM), a Digital Versatile Disc (DVD), a memory stick, a floppy disk, a mechanical coding device, such as punch cards or in-groove projection structures having instructions stored thereon, and any suitable combination of the foregoing. Computer-readable storage media as used herein is not to be construed as transitory signals per se, such as radio waves or other freely propagating electromagnetic waves, electromagnetic waves propagating through a waveguide or other transmission medium (e.g., optical pulses through a fiber optic cable), or electrical signals transmitted through electrical wires.
The computer-readable program instructions described herein may be downloaded from a computer-readable storage medium to a respective computing/processing device, or to an external computer or external storage device via a network, such as the internet, a local area network, a wide area network, and/or a wireless network. The network may include copper transmission cables, fiber optic transmission, wireless transmission, routers, firewalls, switches, gateway computers and/or edge servers. The network adapter card or network interface in each computing/processing device receives computer-readable program instructions from the network and forwards the computer-readable program instructions for storage in a computer-readable storage medium in the respective computing/processing device.
The computer program instructions for carrying out operations of the present invention may be assembler instructions, Instruction Set Architecture (ISA) instructions, machine-related instructions, microcode, firmware instructions, state setting data, or source or object code written in any combination of one or more programming languages, including an object oriented programming language such as Smalltalk, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The computer-readable program instructions may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider). In some embodiments, aspects of the present invention are implemented by personalizing an electronic circuit, such as a programmable logic circuit, a Field Programmable Gate Array (FPGA), or a Programmable Logic Array (PLA), with state information of computer-readable program instructions, which can execute the computer-readable program instructions.
Aspects of the present invention are described herein with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the invention. It will be understood that each block of the flowchart illustrations and/or block diagrams, and combinations of blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer-readable program instructions.
These computer-readable program instructions may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions/acts specified in the flowchart and/or block diagram block or blocks. These computer-readable program instructions may also be stored in a computer-readable storage medium that can direct a computer, programmable data processing apparatus, and/or other devices to function in a particular manner, such that the computer-readable medium storing the instructions comprises an article of manufacture including instructions which implement the function/act specified in the flowchart and/or block diagram block or blocks.
The computer readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other devices to cause a series of operational steps to be performed on the computer, other programmable apparatus or other devices to produce a computer implemented process such that the instructions which execute on the computer, other programmable apparatus or other devices implement the functions/acts specified in the flowchart and/or block diagram block or blocks.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of instructions, which comprises one or more executable instructions for implementing the specified logical function(s). In some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions. It is well known to those skilled in the art that implementation by hardware, by software, and by a combination of software and hardware are equivalent.
Having described embodiments of the present invention, the foregoing description is intended to be exemplary, not exhaustive, and not limited to the embodiments disclosed. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The terminology used herein is chosen in order to best explain the principles of the embodiments, the practical application, or improvements made to the technology in the marketplace, or to enable others of ordinary skill in the art to understand the embodiments disclosed herein. The scope of the invention is defined by the appended claims.

Claims (10)

1. A click feedback obtaining method based on an information template comprises the following steps:
according to the material fields included in the target information template, setting click fields for acquiring click feedback in the target information template;
displaying target information according to a target information template provided with the click field;
and when the target information is detected to receive the click operation, recording according to the click field corresponding to the click operation so as to obtain click feedback of the target information.
2. The method according to claim 1, wherein the step of setting a click field for obtaining click feedback in a target information template according to a material field included in the target information template comprises:
acquiring a template tree of the target information template;
wherein the template tree represents the target information template in a tree structure;
setting the click field on the corresponding node in the template tree according to the node containing the material field in the template tree;
and obtaining a target information template comprising the click field according to the template tree after the click field is set.
3. The method of claim 2, wherein the step of obtaining a template tree comprises:
and compiling the target information template to obtain a template tree which accords with a preset data format.
4. The method of claim 2, wherein the step of setting the click field on the corresponding node of the template tree according to the node of the template tree including the material field comprises:
selecting a node from the top layer of the template tree as a current node according to the tree structure of the template tree;
analyzing the current node, and setting the click field on the node corresponding to the current node when the current node is determined to be the node containing the material field;
and according to the tree structure of the template tree, based on the current node, when the template tree selects a node meeting the condition of continuous analysis as the next current node, continuing to execute the step of analyzing the current node until the template tree can not select the node meeting the condition of continuous analysis.
5. The method of claim 4, wherein,
the step of setting the click field on the node corresponding to the current node when it is determined that the current node is the node containing the material field includes:
setting the click field on the current node according to the material field of the current node;
analyzing the father node of the current node, setting the click field on the father node of the current node according to the material field of the current node when the father node of the current node is determined to be the node not containing the material field, setting the father node of the current node as the current node, and continuing to execute the step of analyzing the father node of the current node until the father node of the current node is the node containing the material field.
6. The method of claim 4, wherein the continued analysis condition comprises:
when the current node and the parent node of the current node are both nodes provided with click fields, the next sibling node of the parent node which is the same as the current node is the next current node;
when the current node is a node not provided with a click field, a child node of the current node or a next sibling node of the parent node having the same parent node as the current node is a next current node.
7. The method of claim 1, wherein the material field is used as the click field.
8. The method of claim 1, wherein,
the step of displaying the target information according to the target information template provided with the click field comprises the following steps:
setting field contents of the material fields included in the target information template according to target materials corresponding to the target information, and rendering based on the target information template after the material fields are set to generate corresponding information pages so as to display the target information;
and/or the presence of a gas in the gas,
the step of recording according to the click field corresponding to the click operation to obtain click feedback of the target information includes:
and recording the field name of the click field and the position of the click field in the target information template as the click feedback.
9. A click feedback acquisition apparatus, comprising:
the setting unit is used for setting a click field for acquiring click feedback in the target information template according to the material field included in the target information template;
the display unit is used for displaying the target information according to the target information template comprising the click field;
and the recording unit is used for recording according to the click field corresponding to the click operation when the target information is detected to receive the click operation so as to obtain click feedback of the target information.
10. An electronic device, comprising:
a memory for storing executable instructions;
a processor for operating the electronic device to execute the click feedback acquisition method based on the information template according to the control of the executable instruction, wherein the click feedback acquisition method is as claimed in claims 1 to 8.
CN201811551010.9A 2018-12-18 2018-12-18 Click feedback acquisition method and device based on information template and electronic equipment Active CN111339387B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811551010.9A CN111339387B (en) 2018-12-18 2018-12-18 Click feedback acquisition method and device based on information template and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811551010.9A CN111339387B (en) 2018-12-18 2018-12-18 Click feedback acquisition method and device based on information template and electronic equipment

Publications (2)

Publication Number Publication Date
CN111339387A true CN111339387A (en) 2020-06-26
CN111339387B CN111339387B (en) 2023-06-09

Family

ID=71185068

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811551010.9A Active CN111339387B (en) 2018-12-18 2018-12-18 Click feedback acquisition method and device based on information template and electronic equipment

Country Status (1)

Country Link
CN (1) CN111339387B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114047999A (en) * 2021-12-17 2022-02-15 携程旅游网络技术(上海)有限公司 Page configuration method, system, electronic equipment and storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2002041097A2 (en) * 2000-11-14 2002-05-23 Feedmeback.Com Ltd. A web-based feedback engine and operating method
CN101297319A (en) * 2005-08-23 2008-10-29 株式会社理光 Embedding hot spots in electronic documents
JP2008287720A (en) * 2007-05-17 2008-11-27 Nhn Corp Method and system for analyzing user behavior
US8589366B1 (en) * 2007-11-01 2013-11-19 Google Inc. Data extraction using templates
CN103748584A (en) * 2011-08-26 2014-04-23 国际商业机器公司 Automatic detection of item lists within a web page
CN107451167A (en) * 2016-05-30 2017-12-08 北京京东尚科信息技术有限公司 The click data acquisition methods and system of position are clicked in standing
CN108228171A (en) * 2017-12-29 2018-06-29 武汉益模科技股份有限公司 A kind of project tree query and display methods based on tree structure

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2002041097A2 (en) * 2000-11-14 2002-05-23 Feedmeback.Com Ltd. A web-based feedback engine and operating method
CN101297319A (en) * 2005-08-23 2008-10-29 株式会社理光 Embedding hot spots in electronic documents
JP2008287720A (en) * 2007-05-17 2008-11-27 Nhn Corp Method and system for analyzing user behavior
US8589366B1 (en) * 2007-11-01 2013-11-19 Google Inc. Data extraction using templates
CN103748584A (en) * 2011-08-26 2014-04-23 国际商业机器公司 Automatic detection of item lists within a web page
CN107451167A (en) * 2016-05-30 2017-12-08 北京京东尚科信息技术有限公司 The click data acquisition methods and system of position are clicked in standing
CN108228171A (en) * 2017-12-29 2018-06-29 武汉益模科技股份有限公司 A kind of project tree query and display methods based on tree structure

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
杨诚: "基于用户实时反馈的点击率预估算法" *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114047999A (en) * 2021-12-17 2022-02-15 携程旅游网络技术(上海)有限公司 Page configuration method, system, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN111339387B (en) 2023-06-09

Similar Documents

Publication Publication Date Title
KR101299670B1 (en) System, method and computer readable recording medium for converting a web page dynamically
US10565293B2 (en) Synchronizing DOM element references
CN108255485B (en) Page construction method and equipment and electronic equipment
US20170052937A1 (en) Previews for Contextual Searches
US10169374B2 (en) Image searches using image frame context
CN107679113B (en) Light application acquisition method and device and electronic device
CN104657451B (en) The processing method and processing device of the page
CN108153848B (en) Method and device for searching light application data and electronic device
CN104077348A (en) Method for controlling dynamically changing contents of web page and electronic device thereof
US10002117B1 (en) Translating annotation tags into suggested markup
CN111368180B (en) Page display method and device and electronic equipment
CN113239672B (en) Target file editing method and device, electronic equipment and storage medium
CN110968314B (en) Page generation method and device
CN111045653A (en) System generation method and device, computer readable medium and electronic equipment
CN113535164A (en) Front-end interface generation method and device, electronic equipment and storage medium
CN108449255B (en) Comment interaction method and equipment, client device and electronic equipment
US11126410B2 (en) Method and apparatus for building pages, apparatus and non-volatile computer storage medium
CN113419711A (en) Page guiding method and device, electronic equipment and storage medium
CN116009863B (en) Front-end page rendering method, device and storage medium
CN111339387B (en) Click feedback acquisition method and device based on information template and electronic equipment
CN115618144B (en) Dynamic layout method, system, equipment and medium based on webpage
CN117389538A (en) Page component content development method, device, equipment and storage medium
CN111506848A (en) Webpage processing method, device, equipment and readable storage medium
CN113282285B (en) Code writing method, device, electronic equipment and storage medium
CN114115855A (en) Code multiplexing method and device, computer readable storage medium and electronic equipment

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
GR01 Patent grant
GR01 Patent grant