CN116842241A - Buried point data acquisition method and device and related equipment - Google Patents

Buried point data acquisition method and device and related equipment Download PDF

Info

Publication number
CN116842241A
CN116842241A CN202310801001.5A CN202310801001A CN116842241A CN 116842241 A CN116842241 A CN 116842241A CN 202310801001 A CN202310801001 A CN 202310801001A CN 116842241 A CN116842241 A CN 116842241A
Authority
CN
China
Prior art keywords
point
buried
buried point
configuration
embedded
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202310801001.5A
Other languages
Chinese (zh)
Inventor
殷晓婷
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Mobile Communications Group Co Ltd
China Mobile Suzhou Software Technology Co Ltd
Original Assignee
China Mobile Communications Group Co Ltd
China Mobile Suzhou Software 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 China Mobile Communications Group Co Ltd, China Mobile Suzhou Software Technology Co Ltd filed Critical China Mobile Communications Group Co Ltd
Priority to CN202310801001.5A priority Critical patent/CN116842241A/en
Publication of CN116842241A publication Critical patent/CN116842241A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/951Indexing; Web crawling techniques
    • 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/955Retrieval from the web using information identifiers, e.g. uniform resource locators [URL]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/958Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Geophysics And Detection Of Objects (AREA)

Abstract

The invention provides a buried point data acquisition method, a buried point data acquisition device and related equipment, wherein the method comprises the following steps: determining a plurality of static pages of the to-be-buried point page based on the buried point requirement; generating buried point configuration information according to the plurality of static pages, the snapshot configuration template and the buried point object configuration template, wherein the buried point configuration information corresponds to the plurality of static pages, the snapshot configuration template comprises buried point objects to be filled in, and the buried point object configuration template contains buried point contents to be filled in; and collecting buried point data based on the buried point configuration information. According to the invention, the plurality of static pages are obtained by the to-be-buried point page, the plurality of static pages are buried according to the buried point requirement, and the buried point configuration tree is generated, so that the acquisition of buried point data is carried out according to the buried point configuration tree, and the accuracy of obtaining the buried point data is improved.

Description

Buried point data acquisition method and device and related equipment
Technical Field
The embodiment of the invention relates to the technical field of communication, in particular to a buried point data acquisition method, a buried point data acquisition device and related equipment.
Background
The front-end embedded point is a monitoring mode for acquiring user behaviors and service conditions, user behavior data can be acquired through the embedded point, real-time, flexible and multidimensional user behavior analysis and insight are realized by means of the data, and accurate digital marketing is realized through user labels and portrait analysis. In the prior art, the current point embedding method is to visually embed points, and the embedded point data is converted into a visual interface for management personnel to operate. However, this approach cannot obtain service buried data of invisible elements even more complicated, resulting in the problem of inaccurate buried data acquisition.
Disclosure of Invention
The embodiment of the invention provides a method, a device and related equipment for collecting buried point data, which are used for solving the problem that the obtained buried point data are inaccurate.
To solve the above problems, the present invention is achieved as follows:
in a first aspect, an embodiment of the present invention provides a method for collecting buried point data, where the method includes:
determining a plurality of static pages of a point to be buried page based on point burying requirements, wherein the plurality of static pages are pages of the point to be buried page in various different trigger states, the plurality of static pages are in one-to-one correspondence with the various different trigger states, and the point burying requirements comprise point burying objects needing point burying in the point to be buried page and point burying contents corresponding to the point burying objects;
generating buried point configuration information according to the plurality of static pages, the snapshot configuration template and the buried point object configuration template, wherein the buried point configuration information corresponds to the plurality of static pages, the snapshot configuration template comprises buried point objects to be filled in, and the buried point object configuration template contains buried point contents to be filled in;
and collecting buried point data based on the buried point configuration information.
Optionally, the generating buried point configuration information according to the plurality of static pages, the snapshot configuration template and the buried point object configuration template includes:
Determining a plurality of buried point objects of the plurality of static pages according to the buried point requirements;
determining buried point object identifiers of each buried point object, wherein the buried point object identifiers corresponding to different buried point objects in the plurality of buried point objects are different;
and generating buried point configuration information based on the buried point object identification of each buried point object, the snapshot configuration template and the buried point object configuration template.
Optionally, the generating buried point configuration information based on the buried point object identifier, the snapshot configuration template and the buried point object configuration template of each buried point object includes:
sequentially generating a plurality of first configuration information based on the embedded point object identification of each embedded point object and the snapshot configuration template, wherein the plurality of first configuration information corresponds to the plurality of embedded point objects one by one, and the first configuration information is used for including the corresponding embedded point objects and the embedded point identifications corresponding to the embedded point objects;
generating a plurality of second configuration information sequentially based on the embedded point object identification of each embedded point object and the embedded point object configuration template, wherein the plurality of second configuration information corresponds to the plurality of embedded point objects one by one, and the second configuration information comprises embedded point events and embedded point contents corresponding to the corresponding embedded point objects;
And generating buried point configuration information according to the plurality of first configuration information and the plurality of second configuration information.
Optionally, the embedded point content includes at least one of: the embedded point event, whether the embedded point event starts a message monitoring switch, attribute information of a trigger event corresponding to the embedded point event and a formula for compiling a request message corresponding to the embedded point event;
the attribute information includes a request mode and a request name, the request mode is a generation mode of the trigger event, the request name is a name of the trigger event, and the formula is used for indicating a logical relationship between one or more request messages corresponding to the buried point event.
Alternatively to this, the method may comprise,
the collecting buried point data based on the buried point configuration information includes:
generating a buried point configuration tree based on the buried point configuration information, wherein the buried point configuration tree is used for burying points of the plurality of static pages;
and collecting buried point data based on the buried point configuration tree.
Optionally, the collecting the buried point data based on the buried point configuration tree includes:
monitoring the buried data in a preset time period, and acquiring a message request corresponding to the buried data, wherein the message request is a trigger event corresponding to the buried data;
Under the condition that the number of the message requests acquired in the preset time period is matched with the target number, determining that the message requests are not missing;
and acquiring the buried point data based on the buried point configuration tree under the condition that the message request is not missing.
Optionally, after the generating the buried point configuration tree based on the buried point configuration information, the method further includes:
acquiring configuration updating information, wherein the configuration updating information comprises updating contents for updating the to-be-buried point page;
and updating the buried point configuration tree based on the configuration updating information.
In a second aspect, an embodiment of the present invention provides a device for collecting buried point data, where the device includes:
the system comprises a determining module, a determining module and a processing module, wherein the determining module is used for determining a plurality of static pages of a point to be buried page based on point burying requirements, the plurality of static pages are pages of the point to be buried page in a plurality of different trigger states, the plurality of static pages are in one-to-one correspondence with the plurality of different trigger states, and the point burying requirements comprise point burying objects needing point burying in the point to be buried page and point burying contents corresponding to the point burying objects;
the configuration module is used for generating buried point configuration information according to the plurality of static pages, the snapshot configuration template and the buried point object configuration template, the buried point configuration information corresponds to the plurality of static pages, the snapshot configuration template comprises buried point objects to be filled in, and the buried point object configuration template contains buried point contents to be filled in;
The generation module is used for generating a buried point configuration tree based on the buried point configuration information, and the buried point configuration tree is used for burying points on the plurality of static pages;
and the acquisition module is used for acquiring the buried point data based on the buried point configuration tree.
In a third aspect, an embodiment of the present invention further provides an electronic device, including a processor, a memory, and a program or an instruction stored in the memory and capable of running on the processor, where the program or the instruction, when executed by the processor, implement the steps of the method for collecting buried point data according to any one of the first aspects.
In a fourth aspect, an embodiment of the present invention further provides a computer readable storage medium, where a program or an instruction is stored, the program or the instruction implementing the steps of the method for collecting buried point data according to any one of the first aspects when executed by a processor.
The invention provides a buried point data acquisition method, a buried point data acquisition device and related equipment, wherein the method comprises the following steps: determining a plurality of static pages of a point to be buried page based on point burying requirements, wherein the plurality of static pages are pages of the point to be buried page in various different trigger states, the plurality of static pages are in one-to-one correspondence with the various different trigger states, and the point burying requirements comprise point burying objects needing point burying in the point to be buried page and point burying contents corresponding to the point burying objects; generating buried point configuration information according to the plurality of static pages, the snapshot configuration template and the buried point object configuration template, wherein the buried point configuration information corresponds to the plurality of static pages, the snapshot configuration template comprises buried point objects to be filled in, and the buried point object configuration template contains buried point contents to be filled in; and collecting buried point data based on the buried point configuration information. According to the invention, the plurality of static pages are obtained by the to-be-buried point page, the plurality of static pages are buried according to the buried point requirement, and the buried point configuration tree is generated, so that the acquisition of buried point data is carried out according to the buried point configuration tree, and the accuracy of obtaining the buried point data is improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings that are needed in the description of the embodiments of the present invention will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and other drawings may be obtained according to these drawings without inventive effort to a person of ordinary skill in the art.
FIG. 1 is a flow chart of a method for collecting buried point data in an embodiment of the invention;
FIG. 2 is a schematic diagram of a snapshot configuration template in an embodiment of the present invention;
FIG. 3 is a schematic diagram of a buried object configuration template according to an embodiment of the present invention;
FIG. 4 is a schematic diagram illustrating generation of a buried point configuration tree according to an embodiment of the present invention;
FIG. 5 is a second schematic diagram illustrating the generation of a buried point configuration tree according to an embodiment of the present invention;
FIG. 6 is a schematic diagram of a flow of data reporting in an embodiment of the present invention;
FIG. 7 is a schematic structural diagram of a buried point data acquisition device according to an embodiment of the present invention;
fig. 8 is a schematic structural diagram of an electronic device according to an embodiment of the invention.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are some, but not all embodiments of the invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
The terms "first," "second," and the like in embodiments of the present application are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus. Furthermore, the use of "and/or" in the present application means at least one of the connected objects, such as a and/or B and/or C, means 7 cases including a alone a, B alone, C alone, and both a and B, both B and C, both a and C, and both A, B and C.
The embodiment of the application provides a method for collecting buried point data, which comprises the following steps of:
and step 101, determining a plurality of static pages of the to-be-buried point page based on the buried point requirement.
The plurality of static pages are pages of the to-be-buried point page under various different trigger states, the plurality of static pages are in one-to-one correspondence with the various different trigger states, and the buried point requirement comprises a buried point object which needs to be buried in the to-be-buried point page and buried point content corresponding to the buried point object.
In this embodiment, the to-be-buried point page generally includes a plurality of contents capable of performing interaction, that is, includes a plurality of visible elements, and also includes a plurality of invisible elements, for example, clicking a certain key or the like, then popup or jump to another page, and at this time, reveal more contents. The embedded point requirement is generally determined according to the content of the embedded point required, and specifically, the event related data is mainly obtained through the embedded point requirement, for example, the event related data may include: what (the user Who participated in this event), what (the actual time When the event occurred), what (the place Where the event occurred), how (the way the user performed the event), what (the specific content describing the event that the user did), where the first three ws can be used as public event association attributes, and How and What can be set as custom event association attributes. The proposal mainly relates to the collection of the associated data of the custom event, wherein, the information such as process type information (such as browsing, clicking, inputting) and the like is mainly used.
It should be noted that, in this embodiment, different renderings of the to-be-buried point page are converted into a plurality of static images, and invisible elements are converted into visible elements in a page snapshot-like manner, so as to implement configuration of the fully buried point. The configuration manager can use the open source frame to record the page operation to obtain the page snapshot, and the page snapshot is used as a page source for arranging the visual embedded points in the subsequent steps to carry out the subsequent embedded point configuration.
Different renderings of the same page are converted into a plurality of static pictures, and compared with the visual embedded point by using screen shots in the prior art, the prior art determines a target page snapshot from the page snapshots of the embedded point pages, and the embedded mode can be a mode of introducing embedded point software in advance, and the like, and has the following problems: the snapshot source is deeply coupled with the embedded point, and the flexibility of the snapshot acquisition mode is low; the target snapshot is based on a static page, only visible elements can be buried, the capturing strength of the user behavior is insufficient, and the user footprint statistics is easy to miss. The proposal realizes page interaction by taking the customized embedded point requirement as a drive, and has the following advantages compared with the prior art: the requirements are used as drivers to realize page interaction, so that the user behavior habit is more fitted; exposing invisible elements through different states of a page in interactive operation and converting the invisible elements into visible elements, so as to mine more complex service burial points; the target snapshot is based on different renderings of the same page, the snapshot configuration range is enlarged from a single page to multiple views derived from the single page, the whole page is focused to a local view, and page snapshot samples with wider range and finer granularity are provided; providing a basis for more accurate localization to specific areas where page views and interface factors change in subsequent buried point updates. Therefore, the proposal has more advantages in the aspects of attaching the behavior habit of the user, obtaining the flexibility of the page snapshot, mining the business embedded point data and the like.
And 102, generating buried point configuration information according to the static pages, the snapshot configuration templates and the buried point object configuration templates.
The embedded point configuration information corresponds to the plurality of static pages, the snapshot configuration template comprises embedded point objects to be filled in, and the embedded point objects configure embedded point contents to be filled in of the template.
In this embodiment, as shown in fig. 2 and fig. 3, fig. 2 is a schematic diagram of a snapshot configuration template in this embodiment, fig. 3 is a schematic diagram of a buried point object configuration template in this embodiment, and buried point configuration information is used for burying points on a plurality of static pages, where the snapshot configuration template and the buried point object configuration template are templates generated in advance. Firstly, a buried point configuration manager inputs page snapshots into a visual configuration platform, edits information for the page snapshots sequentially through a snapshot configuration template, each page snapshot automatically generates a unique snapshot code according to a certain rule, and the manager can briefly describe the snapshot. Then, a configuration manager automatically generates buried point objects in a snapshot configuration template in a component dragging mode according to preset acquisition points and endows unique buried point object codes, and one acquisition point corresponds to the unique buried point object codes. Finally, the configuration manager clicks and releases to complete the preliminary arrangement of the snapshot.
The embedded point manager edits the embedded point objects created in the steps through the embedded point object configuration template, wherein the main content comprises the selection of a matched event type from a group of preset event types, the input of current event related data, and the message arrangement is needed if an event matched with the embedded point objects triggers a request.
And step 103, collecting buried point data based on the buried point configuration information.
In this embodiment, the created buried point configuration tree configures the preset buried points in the form of a multi-way tree, and establishes the relationship between the buried point configuration and the buried point event type, the buried point object, and the page snapshot. And sequentially searching out the root node, the intermediate node and the leaf node according to the characteristic values of the embedded point reporting parameters, so as to match the embedded point configuration corresponding to the leaf node.
It should be noted that, compared with the DOM tree in the prior art, the buried point configuration tree has the following advantages: unlike the DOM tree with a large number of nodes irrelevant to the embedded points, the embedded point configuration tree is driven by the customized embedded point requirement, and a multi-way tree with the embedded points configured as leaf nodes is constructed, so that the limitation of the complexity of the page is avoided; the time complexity of O (n) can be realized through multi-level indexing, and a search method with better performance is provided; the embedded point configuration tree is dynamically generated by depending on the embedded point configuration process, and operations of adding, modifying and deleting the embedded point configuration are synchronized to updating of the embedded point configuration tree in real time, so that the embedded point configuration tree has good adaptability and expansibility with embedded point requirements; by analyzing the matching result of the configuration tree of each buried point, the method has better accuracy in the aspects of positioning the change area of the page and measuring the change degree.
In this embodiment, the configured buried point configuration tree is used to collect buried point data, and the collected buried point data may be uploaded to a server for storage.
The invention provides a buried point data acquisition method, which comprises the following steps: determining a plurality of static pages of a point to be buried page based on point burying requirements, wherein the plurality of static pages are pages of the point to be buried page in various different trigger states, the plurality of static pages are in one-to-one correspondence with the various different trigger states, and the point burying requirements comprise point burying objects needing point burying in the point to be buried page and point burying contents corresponding to the point burying objects; generating buried point configuration information according to the plurality of static pages, the snapshot configuration template and the buried point object configuration template, wherein the buried point configuration information corresponds to the plurality of static pages, the snapshot configuration template comprises buried point objects to be filled in, and the buried point object configuration template contains buried point contents to be filled in; and collecting buried point data based on the buried point configuration information. According to the invention, the plurality of static pages are obtained by the to-be-buried point page, the plurality of static pages are buried according to the buried point requirement, and the buried point configuration tree is generated, so that the acquisition of buried point data is carried out according to the buried point configuration tree, and the accuracy of obtaining the buried point data is improved.
In some optional embodiments, optionally, the generating the embedded point configuration information according to the plurality of static pages, the snapshot configuration template and the embedded point object configuration template includes:
determining a plurality of buried point objects of the plurality of static pages according to the buried point requirements;
determining buried point object identifiers of each buried point object, wherein the buried point object identifiers corresponding to different buried point objects in the plurality of buried point objects are different;
and generating buried point configuration information based on the buried point object identification of each buried point object, the snapshot configuration template and the buried point object configuration template.
In this embodiment, the buried point is configured to create a unique buried point object identifier, i.e., a snapshot code, for each buried point object, where the snapshot code is created synchronously as the root node of the tree. Based on the snapshot configuration template, a buried point object is automatically generated in the snapshot configuration template in a component dragging mode according to a preset acquisition point position, unique buried point object codes are given, the buried point object is further associated with the buried point object based on the buried point object configuration template, current event associated data are recorded, the complement of delay associated data is realized through message arrangement means such as message monitoring switch configuration, request message formula creation and the like, and the method has advantages in the aspects of configuration visualization and acquisition completeness of the event associated data.
Optionally, the generating buried point configuration information based on the buried point object identifier, the snapshot configuration template and the buried point object configuration template of each buried point object includes:
sequentially generating a plurality of first configuration information based on the embedded point object identification of each embedded point object and the snapshot configuration template, wherein the plurality of first configuration information corresponds to the plurality of embedded point objects one by one, and the first configuration information is used for including the corresponding embedded point objects and the embedded point identifications corresponding to the embedded point objects;
generating a plurality of second configuration information sequentially based on the embedded point object identification of each embedded point object and the embedded point object configuration template, wherein the plurality of second configuration information corresponds to the plurality of embedded point objects one by one, and the second configuration information comprises embedded point events and embedded point contents corresponding to the corresponding embedded point objects;
and generating buried point configuration information according to the plurality of first configuration information and the plurality of second configuration information.
In this embodiment, the first configuration information and the second configuration information are corresponding to the plurality of buried point objects one by one, and the configuration information is different for different buried point objects. And automatically generating a buried point object in the snapshot configuration template according to a preset acquisition point position in a component dragging mode, and endowing the unique buried point object with codes, wherein the buried point object codes are synchronously created as second-layer child nodes of the tree. Each time a buried point configuration template code is generated, a child node is created under the corresponding buried point object code node in synchronization. Because unique buried point event types are associated in the buried point configuration template, the buried point configuration can be classified according to the buried point types, and if no associated buried point event node exists, the buried point event node is firstly established as a father node.
Optionally, the embedded point content includes at least one of: the embedded point event, whether the embedded point event starts a message monitoring switch, attribute information of a trigger event corresponding to the embedded point event and a formula for compiling a request message corresponding to the embedded point event;
the attribute information includes a request mode and a request name, the request mode is a generation mode of the trigger event, the request name is a name of the trigger event, and the formula is used for indicating a logical relationship between one or more request messages corresponding to the buried point event.
In this embodiment, the buried point content needs to be configured with the following four parts: embedding a point event, enabling a message monitoring switch; filling in a request mode and a request name; the request message formula is arranged. Event association data is divided into two categories: respectively real-time associated data and delay associated data. Real-time associated data, as the name implies, refers to data that can be collected in real-time when an event is triggered, while delayed associated data needs to meet certain conditions to be collected. For example:
the "confirm" button in the "order_confirm page" is used as a preset acquisition point, and the matching event type is selected according to the newly created embedded point object configuration template shown in fig. 4, and event-related data such as "configuration content name (content_name)", "content code (content_id)", "button name (button_name)", "whether or not successful (is_success)", and "failure_reason" are filled in. Wherein the two event-related data of "success" and "failure cause" need to wait for the asynchronous request to end, and the request response result is obtained, and such data can be classified as delay-related data. The delay association data and the message arrangement have strong binding relationship, and the relationship between the delay association data and the message arrangement can be understood as follows:
Firstly, whether a switch is started in the message arrangement is directly determined whether a data acquisition module starts a message monitoring program in the information acquisition process reported by a buried point, secondly, the monitoring object of the message monitoring program depends on a filling request mode and a request name in the message arrangement, and finally, the filling of delay associated data is needed to be obtained by a computing party for monitoring results through a formula in the message arrangement. The request message formula describes the relationship between requests in the message orchestration mainly by the AND, OR, NOT logical operators.
The acquisition of delay associated data depends on the message arrangement in the object configuration template, and if delay associated data exists in the event associated data, the message arrangement must be performed to realize the replenishment of the delay associated data. A buried object may publish multiple configuration templates, each publication of which may generate a unique configuration template code.
Based on the snapshot configuration template, a buried point object is automatically generated in the snapshot configuration template in a component dragging mode according to a preset acquisition point position, unique buried point object codes are given, the buried point object is further associated with the buried point object based on the buried point object configuration template, current event associated data are recorded, the complement of delay associated data is realized through message arrangement means such as message monitoring switch configuration, request message formula creation and the like, and the method has advantages in the aspects of configuration visualization and acquisition completeness of the event associated data.
Optionally, the collecting the buried point data based on the buried point configuration information includes:
generating a buried point configuration tree based on the buried point configuration information, wherein the buried point configuration tree is used for burying points of the plurality of static pages;
and collecting buried point data based on the buried point configuration tree.
In this embodiment, the created buried point configuration tree configures the preset buried points in the form of a multi-way tree, and establishes the relationship between the buried point configuration and the buried point event type, the buried point object, and the page snapshot. And sequentially searching out the root node, the intermediate node and the leaf node according to the characteristic values of the embedded point reporting parameters, so as to match the embedded point configuration corresponding to the leaf node.
In this embodiment, the configured buried point configuration tree is used to collect buried point data, and the collected buried point data may be uploaded to a server for storage.
Optionally, the generating a buried point configuration tree based on the buried point configuration information includes:
determining a first-level node, a second-level node, a third-level node and a fourth-level node based on the embedded point configuration information, wherein the first-level node is used for indicating a corresponding static page, and the static pages corresponding to different first-level nodes are different; the secondary node is used for indicating a buried point object identifier corresponding to a primary node connected with the secondary node, the tertiary node is used for indicating a buried point event corresponding to a secondary node connected with the tertiary node, and the quaternary node is used for indicating buried point content corresponding to a tertiary node connected with the quaternary node;
Generating a buried point configuration tree according to the primary node, the secondary node, the tertiary node and the quaternary node, wherein the primary node is connected with the secondary node, the secondary node is connected with the tertiary node, and the tertiary node is connected with the quaternary node.
In this embodiment, as shown in fig. 4-5, fig. 4 is one of the generation diagrams of the buried point configuration tree, fig. 5 is the second generation diagram of the buried point configuration tree, and the buried point configuration process is also the process of dynamically generating the buried point configuration tree. The process is described as follows:
a unique snapshot code is created for the page snapshot, where the snapshot code is created synchronously as the root node of the tree. And automatically generating a buried point object in the snapshot configuration template according to a preset acquisition point position in a component dragging mode, and endowing the unique buried point object with codes, wherein the buried point object codes are synchronously created as second-layer child nodes of the tree. Each time a buried point configuration template code is generated, a child node is created under the corresponding buried point object code node in synchronization. Because unique buried point event types are associated in the buried point configuration template, the buried point configuration can be classified according to the buried point types, and if no associated buried point event node exists, the buried point event node is firstly established as a father node.
Optionally, the collecting the buried point data based on the buried point configuration tree includes:
monitoring the buried data in a preset time period, and acquiring a message request corresponding to the buried data, wherein the message request is a trigger event corresponding to the buried data;
under the condition that the number of the message requests acquired in the preset time period is matched with the target number, determining that the message requests are not missing;
and acquiring the buried point data based on the buried point configuration tree under the condition that the message request is not missing.
In this embodiment, when the user performs an operation on the page, the data acquisition module starts to perform the buried point related data acquisition. If the matched buried point configuration enables the message monitoring switch, a message monitoring program is started, a message request sequence arranged in the buried point configuration is used as a monitoring object, all message requests are not captured within a preset time, if the message request sequence exceeds the preset time, the response is considered to be failed, otherwise, monitoring is continued until all messages in the message request sequence are matched, the message monitoring is closed, a request response result is calculated through a request message formula in the buried point configuration, the content of delay associated data is obtained, and then a buried point reporting program is started; if not, immediately starting the embedded point reporting program.
And calling a log printing module in the embedded point reporting program, and synchronously printing embedded point reporting data by an embedded point configurator when various interactive behaviors are carried out on a page according to the embedded point list, so that the configurator can rapidly and conveniently finish the completeness verification of the reporting data.
Optionally, after the generating the buried point configuration tree based on the buried point configuration information, the method further includes:
acquiring configuration updating information, wherein the configuration updating information comprises updating contents for updating the to-be-buried point page;
and updating the buried point configuration tree based on the configuration updating information.
In this embodiment, since product development is a continuous iterative update process, page views and interface factors also change more or less, and embedding point update is required to avoid statistical loss of user footprints. In the scheme for updating the buried point in the prior art, the change of the DOM tree on the page is monitored, the node list before and after the change of the collected DOM node is compared, and buried point data needing to be re-hung or removed is calculated. The scheme can only monitor visible nodes on the page, and has the problems of low efficiency, low analysis speed, high memory occupation and the like in monitoring and traversing DOM.
The invention replaces the DOM tree with a buried point configuration tree structure, the DOM tree is a tree structure which represents HTML as a mark, and all contents in the HTML, even comments, become a part of the DOM. The buried point configuration tree structure is dynamically generated in the buried point configuration process, so that a four-level index is formed. The complexity of the DOM tree depends on the complexity of the page, the complexity of the embedded point configuration tree depends on the embedded point requirement, and the embedded point requirement is the extraction of the elements with embedded point value in the page, so that the complexity of the embedded point configuration tree is lower than that of the DOM tree, the traversing efficiency is higher, and the embedded point updating speed is higher. In addition, the DOM can only monitor the change of visible nodes on the page, the comparison result is extremely easy to have errors, the embedded point configuration tree is completely matched with the customized embedded point requirement, no matter whether visible or invisible embedded point elements are changed, the collected embedded point data cannot find a matched path in the embedded point configuration tree, and the comparison result is more accurate.
The embedded point updating is driven by an event, analysis is carried out on embedded point report data collected through a log printing module, reporting parameters with characteristics, namely snapshot numbers, embedded point object numbers, event types and embedded point configuration numbers, are obtained from massive report data, and the embedded point configuration tree is traversed in a multi-level index mode, so that quick matching is realized. When the hit rate is lower than a certain threshold value, the interface factor or customization requirement is considered to change greatly, and as one page snapshot corresponds to one tree, the hit rate of different trees can be positioned to a specific area where the change occurs more accurately.
According to the invention, the plurality of static pages are obtained by the to-be-buried point page, the plurality of static pages are buried according to the buried point requirement, and the buried point configuration tree is generated, so that the acquisition of buried point data is carried out according to the buried point configuration tree, and the accuracy of obtaining the buried point data is improved.
Referring to fig. 7, fig. 7 is a block diagram of a buried point data acquisition device according to an embodiment of the present invention. As shown in fig. 7, the buried point data acquisition apparatus 700 includes:
the determining module 710 is configured to determine a plurality of static pages of a to-be-buried point page based on a buried point requirement, where the plurality of static pages are pages of the to-be-buried point page in a plurality of different trigger states, and the plurality of static pages are in one-to-one correspondence with the plurality of different trigger states, and the buried point requirement includes a buried point object to be buried in the to-be-buried point page and a buried point content corresponding to the buried point object;
the configuration module 720 is configured to generate buried point configuration information according to the plurality of static pages, the snapshot configuration template and the buried point object configuration template, where the buried point configuration information corresponds to the plurality of static pages, the snapshot configuration template includes buried point objects to be filled in, and the buried point object configuration template includes buried point contents to be filled in;
And an acquisition module 730, configured to acquire buried point data based on the buried point configuration information.
Optionally, the configuration module 720 includes:
the first determining submodule is used for determining a plurality of buried point objects of the plurality of static pages according to the buried point requirements;
a second determining submodule, configured to determine a buried point object identifier of each buried point object, where the buried point object identifiers corresponding to different buried point objects in the plurality of buried point objects are different;
the first generation sub-module is used for generating buried point configuration information based on the buried point object identification, the snapshot configuration template and the buried point object configuration template of each buried point object.
Optionally, the first generating sub-module includes:
the first generation unit is used for sequentially generating a plurality of first configuration information based on the embedded point object identification of each embedded point object and the snapshot configuration template, wherein the plurality of first configuration information corresponds to the plurality of embedded point objects one by one, and the first configuration information is used for comprising the corresponding embedded point objects and the embedded point identification corresponding to the embedded point objects;
the second generating unit is used for sequentially generating a plurality of second configuration information based on the buried point object identification of each buried point object and the buried point object configuration template, wherein the plurality of second configuration information corresponds to the plurality of buried point objects one by one, and the second configuration information comprises buried point events and buried point contents corresponding to the corresponding buried point objects;
And the third generating unit is used for generating buried point configuration information according to the plurality of first configuration information and the plurality of second configuration information.
Optionally, the embedded point content includes at least one of: the embedded point event, whether the embedded point event starts a message monitoring switch, attribute information of a trigger event corresponding to the embedded point event and a formula for compiling a request message corresponding to the embedded point event;
the attribute information includes a request mode and a request name, the request mode is a generation mode of the trigger event, the request name is a name of the trigger event, and the formula is used for indicating a logical relationship between one or more request messages corresponding to the buried point event.
Optionally, the acquisition module 730 includes:
the configuration tree generation module is used for generating a buried point configuration tree based on the buried point configuration information, and the buried point configuration tree is used for burying points on the plurality of static pages;
and the configuration tree acquisition module is used for acquiring the buried point data based on the buried point configuration tree.
Optionally, the method further comprises:
the monitoring sub-module is used for monitoring the buried data in a preset time period, and acquiring a message request corresponding to the buried data, wherein the message request is a trigger event corresponding to the buried data;
An obtaining sub-module, configured to determine that the message request is not missing when the number of the message requests obtained in the preset time period matches the target number;
and the acquisition sub-module is used for acquiring the buried point data based on the buried point configuration tree under the condition that the message request is not missing.
Optionally, the method further comprises:
the configuration acquisition sub-module is used for acquiring configuration update information, wherein the configuration update information comprises update contents for updating the to-be-buried point page;
and the configuration updating sub-module is used for updating the buried point configuration tree based on the configuration updating information.
According to the invention, the plurality of static pages are obtained by the to-be-buried point page, the plurality of static pages are buried according to the buried point requirement, and the buried point configuration tree is generated, so that the acquisition of buried point data is carried out according to the buried point configuration tree, and the accuracy of obtaining the buried point data is improved.
Fig. 8 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure, where, as shown in fig. 8, the electronic device 800 includes a memory 801 and a processor 802, and the number of the processors 802 in the electronic device 800 may be one or more, and one processor 802 is taken as an example in fig. 8; the memory 801, the processor 802 in the server may be connected by a bus or other means, for example in fig. 8.
The memory 801 is a computer readable storage medium, and may be used to store a software program, a computer executable program, and a module, such as program instructions/modules corresponding to the method for generating a header in the embodiment of the present disclosure, and the processor 802 executes the software program, instructions, and modules stored in the memory 801, thereby executing various functional applications and data processing of the server/terminal/server, that is, implementing the above-mentioned method for collecting buried point data.
The processor 802 is configured to execute a computer program stored in the memory 801, and implement the following steps:
determining a plurality of static pages of a point to be buried page based on point burying requirements, wherein the plurality of static pages are pages of the point to be buried page in various different trigger states, the plurality of static pages are in one-to-one correspondence with the various different trigger states, and the point burying requirements comprise point burying objects needing point burying in the point to be buried page and point burying contents corresponding to the point burying objects;
generating buried point configuration information according to the plurality of static pages, the snapshot configuration template and the buried point object configuration template, wherein the buried point configuration information corresponds to the plurality of static pages, the snapshot configuration template comprises buried point objects to be filled in, and the buried point object configuration template contains buried point contents to be filled in;
And collecting buried point data based on the buried point configuration information.
Optionally, the generating buried point configuration information according to the plurality of static pages, the snapshot configuration template and the buried point object configuration template includes:
determining a plurality of buried point objects of the plurality of static pages according to the buried point requirements;
determining buried point object identifiers of each buried point object, wherein the buried point object identifiers corresponding to different buried point objects in the plurality of buried point objects are different;
and generating buried point configuration information based on the buried point object identification of each buried point object, the snapshot configuration template and the buried point object configuration template.
Optionally, the generating buried point configuration information based on the buried point object identifier, the snapshot configuration template and the buried point object configuration template of each buried point object includes:
sequentially generating a plurality of first configuration information based on the embedded point object identification of each embedded point object and the snapshot configuration template, wherein the plurality of first configuration information corresponds to the plurality of embedded point objects one by one, and the first configuration information is used for including the corresponding embedded point objects and the embedded point identifications corresponding to the embedded point objects;
generating a plurality of second configuration information sequentially based on the embedded point object identification of each embedded point object and the embedded point object configuration template, wherein the plurality of second configuration information corresponds to the plurality of embedded point objects one by one, and the second configuration information comprises embedded point events and embedded point contents corresponding to the corresponding embedded point objects;
And generating buried point configuration information according to the plurality of first configuration information and the plurality of second configuration information.
Optionally, the embedded point content includes at least one of: the embedded point event, whether the embedded point event starts a message monitoring switch, attribute information of a trigger event corresponding to the embedded point event and a formula for compiling a request message corresponding to the embedded point event;
the attribute information includes a request mode and a request name, the request mode is a generation mode of the trigger event, the request name is a name of the trigger event, and the formula is used for indicating a logical relationship between one or more request messages corresponding to the buried point event.
Optionally, the collecting the buried point data based on the buried point configuration information includes:
generating a buried point configuration tree based on the buried point configuration information, wherein the buried point configuration tree is used for burying points of the plurality of static pages;
and collecting buried point data based on the buried point configuration tree.
Optionally, the collecting the buried point data based on the buried point configuration tree includes:
monitoring the buried data in a preset time period, and acquiring a message request corresponding to the buried data, wherein the message request is a trigger event corresponding to the buried data;
Under the condition that the number of the message requests acquired in the preset time period is matched with the target number, determining that the message requests are not missing;
and acquiring the buried point data based on the buried point configuration tree under the condition that the message request is not missing.
Optionally, after the generating the buried point configuration tree based on the buried point configuration information, the method further includes:
acquiring configuration updating information, wherein the configuration updating information comprises updating contents for updating the to-be-buried point page;
and updating the buried point configuration tree based on the configuration updating information.
According to the invention, the plurality of static pages are obtained by the to-be-buried point page, the plurality of static pages are buried according to the buried point requirement, and the buried point configuration tree is generated, so that the acquisition of buried point data is carried out according to the buried point configuration tree, and the accuracy of obtaining the buried point data is improved.
Those of ordinary skill in the art will appreciate that all or a portion of the steps of implementing the methods of the embodiments described above may be implemented by hardware associated with program instructions, where the program may be stored on a readable medium.
The embodiment of the present disclosure further provides a readable storage medium, where a computer program is stored, where the computer program when executed by a processor may implement any step in the method embodiment corresponding to fig. 1, and may achieve the same technical effect, so that repetition is avoided, and no further description is provided herein.
The computer-readable storage media of the embodiments of the present disclosure may employ any combination of one or more computer-readable media. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. The computer readable storage medium may be, for example, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples (a non-exhaustive list) of the computer-readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
The computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, either in baseband or as part of a carrier wave. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a storage medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations of the present disclosure may be written in one or more programming languages, including an object oriented programming language such as Java, smalltalk, C ++ and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code 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 terminal. In the case of a remote computer, the remote computer may be connected to the user's computer through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computer (for example, through the Internet using an Internet service provider).
While the foregoing is directed to the preferred implementation of the disclosed embodiments, it should be noted that numerous modifications and adaptations to those skilled in the art may be made without departing from the principles of the disclosure, and such modifications and adaptations are intended to be within the scope of the disclosure.

Claims (10)

1. A method for collecting buried point data, the method comprising:
determining a plurality of static pages of a point to be buried page based on point burying requirements, wherein the plurality of static pages are pages of the point to be buried page in various different trigger states, the plurality of static pages are in one-to-one correspondence with the various different trigger states, and the point burying requirements comprise point burying objects needing point burying in the point to be buried page and point burying contents corresponding to the point burying objects;
generating buried point configuration information according to the plurality of static pages, the snapshot configuration template and the buried point object configuration template, wherein the buried point configuration information corresponds to the plurality of static pages, the snapshot configuration template comprises buried point objects to be filled in, and the buried point object configuration template contains buried point contents to be filled in;
and collecting buried point data based on the buried point configuration information.
2. The method of claim 1, wherein generating the embedded point configuration information from the plurality of static pages, snapshot configuration templates, and embedded point object configuration templates comprises:
determining a plurality of buried point objects of the plurality of static pages according to the buried point requirements;
Determining buried point object identifiers of each buried point object, wherein the buried point object identifiers corresponding to different buried point objects in the plurality of buried point objects are different;
and generating buried point configuration information based on the buried point object identification of each buried point object, the snapshot configuration template and the buried point object configuration template.
3. The method of claim 2, wherein generating the embedded point configuration information based on the embedded point object identification, the snapshot configuration template, and the embedded point object configuration template for each embedded point object comprises:
sequentially generating a plurality of first configuration information based on the embedded point object identification of each embedded point object and the snapshot configuration template, wherein the plurality of first configuration information corresponds to the plurality of embedded point objects one by one, and the first configuration information is used for including the corresponding embedded point objects and the embedded point identifications corresponding to the embedded point objects;
generating a plurality of second configuration information sequentially based on the embedded point object identification of each embedded point object and the embedded point object configuration template, wherein the plurality of second configuration information corresponds to the plurality of embedded point objects one by one, and the second configuration information comprises embedded point events and embedded point contents corresponding to the corresponding embedded point objects;
And generating buried point configuration information according to the plurality of first configuration information and the plurality of second configuration information.
4. A method as claimed in claim 3, wherein the embedded point content comprises at least one of: the embedded point event, whether the embedded point event starts a message monitoring switch, attribute information of a trigger event corresponding to the embedded point event and a formula for compiling a request message corresponding to the embedded point event;
the attribute information includes a request mode and a request name, the request mode is a generation mode of the trigger event, the request name is a name of the trigger event, and the formula is used for indicating a logical relationship between one or more request messages corresponding to the buried point event.
5. A method as claimed in claim 3, wherein said collecting buried point data based on said buried point configuration information comprises:
generating a buried point configuration tree based on the buried point configuration information, wherein the buried point configuration tree is used for burying points of the plurality of static pages;
and collecting buried point data based on the buried point configuration tree.
6. The method of claim 5, wherein the collecting the buried data based on the buried configuration tree comprises:
Monitoring the buried data in a preset time period, and acquiring a message request corresponding to the buried data, wherein the message request is a trigger event corresponding to the buried data;
under the condition that the number of the message requests acquired in the preset time period is matched with the target number, determining that the message requests are not missing;
and acquiring the buried point data based on the buried point configuration tree under the condition that the message request is not missing.
7. The method of claim 5, wherein after generating the buried point configuration tree based on the buried point configuration information, the method further comprises:
acquiring configuration updating information, wherein the configuration updating information comprises updating contents for updating the to-be-buried point page;
and updating the buried point configuration tree based on the configuration updating information.
8. A buried point data acquisition device, the device comprising:
the system comprises a determining module, a determining module and a processing module, wherein the determining module is used for determining a plurality of static pages of a point to be buried page based on point burying requirements, the plurality of static pages are pages of the point to be buried page in a plurality of different trigger states, the plurality of static pages are in one-to-one correspondence with the plurality of different trigger states, and the point burying requirements comprise point burying objects needing point burying in the point to be buried page and point burying contents corresponding to the point burying objects;
The configuration module is used for generating buried point configuration information according to the plurality of static pages, the snapshot configuration template and the buried point object configuration template, the buried point configuration information corresponds to the plurality of static pages, the snapshot configuration template comprises buried point objects to be filled in, and the buried point object configuration template contains buried point contents to be filled in;
and the acquisition module is used for acquiring the buried point data based on the buried point configuration information.
9. An electronic device comprising a processor, a memory and a program or instruction stored on the memory and executable on the processor, the program or instruction when executed by the processor implementing the steps of the method of collecting buried point data according to any one of claims 1 to 7.
10. A computer-readable storage medium, wherein a program or instructions is stored on the readable storage medium, which when executed by a processor, implements the steps of the buried point data acquisition method according to any one of claims 1 to 7.
CN202310801001.5A 2023-07-03 2023-07-03 Buried point data acquisition method and device and related equipment Pending CN116842241A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310801001.5A CN116842241A (en) 2023-07-03 2023-07-03 Buried point data acquisition method and device and related equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310801001.5A CN116842241A (en) 2023-07-03 2023-07-03 Buried point data acquisition method and device and related equipment

Publications (1)

Publication Number Publication Date
CN116842241A true CN116842241A (en) 2023-10-03

Family

ID=88170131

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310801001.5A Pending CN116842241A (en) 2023-07-03 2023-07-03 Buried point data acquisition method and device and related equipment

Country Status (1)

Country Link
CN (1) CN116842241A (en)

Similar Documents

Publication Publication Date Title
CN106844217B (en) Method and device for embedding point of applied control and readable storage medium
CN110928772B (en) Test method and device
US8819642B2 (en) Method and system for generating and processing black box test cases
CN103646086B (en) Junk file cleaning method and device
CN107562620A (en) One kind buries an automatic setting method and device
CN112363943B (en) Buried point setting method and device, computer equipment and storage medium
CN106407429A (en) File tracking method, device and system
CN112394908A (en) Method and device for automatically generating embedded point page, computer equipment and storage medium
CN111352969B (en) Buried point data analysis method and device and electronic equipment
CN112559538A (en) Incidence relation generation method and device, computer equipment and storage medium
CN114511353A (en) Data analysis method and device
CN110554951A (en) Method and device for managing embedded points
CN112667795B (en) Dialogue tree construction method and device, dialogue tree operation method, device and system
CN113779261B (en) Quality evaluation method and device of knowledge graph, computer equipment and storage medium
CN107330031B (en) Data storage method and device and electronic equipment
JP2019101889A (en) Test execution device and program
CN112650963A (en) Webpage point burying method and device, electronic equipment and computer readable storage medium
CN116578497A (en) Automatic interface testing method, system, computer equipment and storage medium
CN116842241A (en) Buried point data acquisition method and device and related equipment
CN115563423A (en) Data acquisition method and device, computer equipment and storage medium
CN115767601A (en) 5GC network element automatic nanotube method and device based on multidimensional data
CN113190458A (en) Method and device for automatically analyzing buried point data, computer equipment and storage medium
CN114706738A (en) Method and device for automatically burying point at client
CN113961835A (en) Data processing method and device, electronic equipment and storage medium
Foganholi et al. Supporting technical debt cataloging with TD-Tracker tool

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