[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN112559278B - Method and device for acquiring operation data - Google Patents

Method and device for acquiring operation data Download PDF

Info

Publication number
CN112559278B
CN112559278B CN201910913232.9A CN201910913232A CN112559278B CN 112559278 B CN112559278 B CN 112559278B CN 201910913232 A CN201910913232 A CN 201910913232A CN 112559278 B CN112559278 B CN 112559278B
Authority
CN
China
Prior art keywords
target
reporting
objects
configuration information
page
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910913232.9A
Other languages
Chinese (zh)
Other versions
CN112559278A (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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201910913232.9A priority Critical patent/CN112559278B/en
Publication of CN112559278A publication Critical patent/CN112559278A/en
Application granted granted Critical
Publication of CN112559278B publication Critical patent/CN112559278B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3003Monitoring arrangements specially adapted to the computing system or computing system component being monitored
    • G06F11/302Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system component is a software system
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3051Monitoring arrangements for monitoring the configuration of the computing system or of the computing system component, e.g. monitoring the presence of processing resources, peripherals, I/O links, software programs
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/34Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment
    • G06F11/3438Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment monitoring of user actions
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/34Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment
    • G06F11/3466Performance evaluation by tracing or monitoring
    • G06F11/3476Data logging
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/04Real-time or near real-time messaging, e.g. instant messaging [IM]
    • H04L51/046Interoperability with other network applications or services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Quality & Reliability (AREA)
  • General Physics & Mathematics (AREA)
  • Computing Systems (AREA)
  • Computer Hardware Design (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mathematical Physics (AREA)
  • Information Transfer Between Computers (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The invention discloses a method and a device for acquiring operation data. Wherein the method comprises the following steps: loading the target page according to the page address of the target page; determining a group of objects on the target page, wherein the group of objects comprises interactable elements and/or operation results triggered after the interactable elements are subjected to interaction operation; the method comprises the steps of configuring reporting configuration information for the group of objects, wherein the reporting configuration information is used for obtaining interactive operation data, the interactive operation data are used for representing interactive operation executed on one or more objects in the group of objects in a client, and the technical problems that APP which can only be applied to a mobile terminal exists and is required to be in an operation state in the configuration data reporting rule in a visual circle selection mode in the related technology are solved.

Description

Method and device for acquiring operation data
Technical Field
The present invention relates to the field of computers, and in particular, to a method and apparatus for acquiring operation data.
Background
The scheme without embedded points is a fully embedded point, namely all page operations of a user are reported, such as the user accesses a page, clicks a button, clicks a link and the like; and when analyzing, corresponding data are taken as required. For some frequently triggered events, sampling/throttling needs to be done, so that the report amount is prevented from being too large. The biggest disadvantages are that huge storage space is required, unnecessary data processing is needed, and more waste is caused.
For the above described point-of-burial scheme, there are the following disadvantages: the development cost is high. The developer is required to embed codes in the codes one by one according to the planned nodes, and additional information such as user information and commodity information may be required to be added for reporting.
Aiming at the problems, the related technology provides a visual embedded point, the visual circle selection is the direct application of the embedded point-free technology in the direction of the embedded point, the interface of the mobile phone APP of a developer can be synchronized to a computer end, the embedded point is completed in the computer end in a clicking circle selection mode, and the effect of collecting clicking data of corresponding controls of the APP is achieved. And selectively reporting the user behaviors, selecting the user behaviors needing to be reported through a visual interface, and then issuing the user behaviors to a client for reporting.
However, the visual loop point mode is only applicable to the APP in the mobile terminal, and the APP must be accessed to the mobile terminal, and the APP of the mobile terminal must be kept in an operating state, and interaction with the mobile terminal is required to realize configuration of the data reporting rule.
In view of the above problems, no effective solution has been proposed at present.
Disclosure of Invention
The embodiment of the invention provides a method and a device for acquiring operation data, which at least solve the technical problems that APP which can only be applied to a mobile terminal exists and the APP is required to be in an operation state in the related technology by configuring a data reporting rule in a visual circle selection mode.
According to an aspect of the embodiment of the present invention, there is also provided a method for acquiring operation data, including:
acquiring a page access request from a client, wherein the page access request is used for requesting to access a target page;
acquiring target reporting configuration information, wherein the target reporting configuration information is reporting configuration information configured for a target object in a group of objects on the target page, the target reporting configuration information is used for acquiring interactive operation data, the interactive operation data is used for representing interactive operation executed on the target object, and the group of objects comprises interactable elements and/or operation results triggered after the interactive operation is executed on the interactable elements;
and acquiring target interactive operation data acquired based on the target reporting configuration information, wherein the target interactive operation data is used for representing target interactive operation executed on the target object in the client.
According to another aspect of the embodiment of the present invention, there is also provided a method for acquiring operation data, including:
loading the target page according to the page address of the target page;
determining a group of objects on the target page, wherein the group of objects comprises interactable elements and/or operation results triggered after the interactable elements are subjected to interaction operation;
Reporting configuration information is configured for the set of objects, the reporting configuration information being used to obtain interoperability data representing interactions performed in the client on one or more objects of the set of objects.
According to another aspect of the embodiment of the present invention, there is also provided an apparatus for acquiring operation data, including:
the acquisition request module is used for acquiring a page access request in the client, wherein the page access request is used for requesting to access a target page;
the information acquisition module is used for acquiring target reporting configuration information, wherein the target reporting configuration information is reporting configuration information configured for a target object in a group of objects on the target page, the target reporting configuration information is used for acquiring interactive operation data, the interactive operation data is used for representing interactive operation executed on the target object, and the group of objects comprise interactable elements and/or operation results triggered after the interactive operation is executed on the interactable elements;
and the data acquisition module is used for acquiring target interactive operation data acquired based on the target reporting configuration information, wherein the target interactive operation data is used for representing target interactive operation executed on the target object in the client.
According to another aspect of the embodiment of the present invention, there is also provided an apparatus for acquiring operation data, including:
the second loading module is used for loading the target page according to the page address of the target page;
the second determining module is used for determining a group of objects on the target page, wherein the group of objects comprise interactable elements and/or operation results triggered after the interactable elements are subjected to interaction operation;
and the second configuration information module is used for configuring reporting configuration information for the group of objects, wherein the reporting configuration information is used for acquiring interactive operation data, and the interactive operation data is used for representing interactive operations performed on one or more objects in the group of objects in the client.
According to still another aspect of the embodiments of the present invention, there is also provided a computer-readable storage medium having stored therein a computer program, wherein the computer program is configured to execute the above-described attack operation processing method at runtime.
According to still another aspect of the embodiments of the present invention, there is further provided an electronic device including a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein the processor executes the processing method of the attack operation described above through the computer program.
In the embodiment of the invention, when the target page is accessed, the target interactive operation data is acquired according to the reporting configuration information configured for the target page, the interactive operation data executed on the target object is acquired through the target reporting configuration information, and the interactive operation data of the APP, the webpage, the applet and the like can be acquired, so that the technical problem that the APP which can only be applied to the mobile terminal exists in the configuration data reporting rule in a visual circle selection mode in the related technology and is required to be in an operation state is solved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiments of the invention and together with the description serve to explain the invention and do not constitute a limitation on the invention. In the drawings:
FIG. 1 is an architecture diagram of media asset delivery according to an embodiment of the invention;
FIG. 2 is a schematic diagram of reporting an SDK according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of rule-based reporting of visual buried point statistics in accordance with an embodiment of the present invention;
FIG. 4 is a flowchart I of a method of acquiring operational data according to an embodiment of the present invention;
FIG. 5 is a second flowchart of a method of acquiring operational data according to an embodiment of the present invention;
FIG. 6 is a schematic diagram after page resolution according to an embodiment of the invention;
FIG. 7 is a schematic diagram of reporting rule configuration according to an embodiment of the present invention;
FIG. 8 is a schematic diagram of the acquisition of operational data in a applet, according to an embodiment of the invention;
FIG. 9 is a block diagram I of an operation data acquisition device according to an embodiment of the present invention;
FIG. 10 is a block diagram II of an operation data acquisition device according to an embodiment of the present invention;
FIG. 11 is a schematic diagram of an alternative electronic device according to an embodiment of the invention;
fig. 12 is a schematic diagram of an alternative electronic device according to an embodiment of the invention.
Detailed Description
In order that those skilled in the art will better understand the present invention, a technical solution in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in which it is apparent that the described embodiments are only some embodiments of the present invention, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the present invention without making any inventive effort, shall fall within the scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and the claims of the present invention and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments of the invention described herein may be implemented in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
FIG. 1 is a diagram of an architecture of media asset delivery according to an embodiment of the present invention, as shown in FIG. 1, comprising:
and embedding JS SDK into the page to be reported by the developer through the service code, realizing reporting rule analysis based on JS, reporting rule comparison and reporting interactive operation data.
Where SDKs are software development kits (Software Development Kit, abbreviated SDKs) are typically a collection of development tools used by software engineers to create application software for a particular software package, software framework, hardware platform, operating system, etc. In the embodiment of the invention, the functions required by the application program are simply packaged into one file.
JS, javaScript, an interpreted scripting language, whose interpreter is called JavaScript engine, is a part of a browser, widely used in client-side scripting languages, and was used on HTML web pages at the earliest. It is used by most websites in the world and is also supported by the world's mainstream browser.
HTML is a hypertext markup language (HyperText Markup Language, abbreviated HTML) which is a standard markup language for creating web pages, often used with CSS, javaScript by many websites for designing web pages, web page applications, and user interfaces for mobile applications.
Fig. 2 is a schematic diagram of reporting an SDK according to an embodiment of the present invention, and as shown in fig. 2, a JS-based implementation is embedded in the SDK, which specifically includes:
rule parsing engine: and acquiring a reporting rule issued by the server, capturing the behavior of the node in the page when the specified event occurs, and triggering reporting. The reporting rules contain DOM nodes that need to be monitored, as well as user behavior (events), and context information. The document object model (Document Object Model, DOM for short) is a standard programming interface for processing extensible markup language recommended by W3C organizations. On a web page, the objects that organize the page (or document) are organized in a tree structure, and the standard model used to represent the objects in the document is called the DOM.
Buried point contrast engine: comparing the nodes in the reporting rule with the nodes of the actual user triggering interaction, and triggering reporting if the nodes are matched; if the user behaviors are not matched, storing the user behaviors locally, and storing more client data by means of LocalStorage (5M space limitation) and IndexDB (without explicit upper limit and supporting a large amount of data storage), so that backtracking is convenient when the follow-up needs to be performed; if there is more memory, early data may be retired based on a first-in first-out (First In First Out, abbreviated FIFO) approach. After the page is loaded, the dynamically generated DOM node of the JS may also need to be reported, and a browser interface, namely a MuationObserver, is adopted to discover and monitor the dynamically generated DOM node in the page.
A data reporting engine: user behavior information is reported along with context information (e.g., device information, user information, etc.). To report as successfully as possible, reporting by navigator/sendeacon () method is preferred (browser guarantees success as much as possible, even if successful, the request queue that can be added to the browser); and retrying the failed report next time to avoid the situation of weak network. Meanwhile, in order to reduce reporting requests, improve performance, and support batch reporting in a queue reporting mode.
The report rule is configured by the report marking system, the fixed buried points are configured in a centralized way, the dynamic buried points are automatically extracted, the report rule marking is visualized, the report rule is automatically tested, and the report rule is issued under the condition that the test passes. Because the embodiment of the invention is a scheme without embedded points, the dynamic embedded points and the fixed embedded points in the embodiment of the invention refer to reporting points.
Fig. 3 is a schematic diagram of rule-based reporting of visual buried point statistics, as shown in fig. 3, in a reporting marking system, a page address of a target page to be reported is input, and reporting rules are configured for the target page, including:
after inputting the page address, the reporting marking system analyzes the target page by means of the puppeter to obtain the interactive elements of the page, namely reporting points, and the reporting marking system presents a view after erasing irrelevant elements and highlights the reporting elements. The report configuration personnel set a fixed embedded point of the Page, such as PV (Page View, page browsing or click) report, share report of the entering Page; and simultaneously selecting the reporting elements, and setting parameters to be reported. These will form reporting rules.
After the setting is completed, starting an automatic test, and sequentially triggering events on the page interactable elements by means of a puppeter; and capturing a reporting request in the network request, analyzing the reporting parameters, and outputting an overall test result view.
After passing the automated test, the reporting rule is issued. Once the user accesses the page, the reporting rule is issued to the browser, and after the reporting JS SDK is analyzed, the corresponding user behavior is monitored for reporting.
The above flow can be repeated continuously to make up for missing and erroneous reporting.
Based on the above architecture, an embodiment of the present invention provides a method for acquiring operation data, and fig. 4 is a flowchart of a method for acquiring operation data according to an embodiment of the present invention, as shown in fig. 4, including:
step S402, acquiring a page access request from a client, wherein the page access request is used for requesting to access a target page;
step S404, obtaining target reporting configuration information, wherein the target reporting configuration information is reporting configuration information configured for a target object in a group of objects on the target page, the target reporting configuration information is used for obtaining interactive operation data, the interactive operation data is used for representing interactive operation executed on the target object, and the group of objects comprises interactable elements and/or operation results triggered after the interactive operation is executed on the interactable elements;
Wherein the interactable elements comprise a link element and a button element, the button element being determinable by at least one of: the label indicates a button element, and the attribute value is marked as the button element;
for example: button element, < button >;
2. a linking element;
3. custom attribute names, such as: < div class= "pay_button" >; < view class= "cancel_button" >;
case of button suffix: < div class= "pay_button" >, < view class= "cancel_button" >;
case of link suffix: < div class= "path_link" >, < view class= "cancel_link" >;
meanwhile, the method can also be used as a prefix, such as: < view class= "cancel_button" >, < view data-type= "cancel_button" >;
not necessarily class, but may be an attribute of other tags.
Attribute name: class, data-type, cancel button, button_cancel, ui_button_cancel;
identification of cancel button: a cancel button, a button cancel, a ui button cancel;
identification of the identification button: the pad_button, button_pad, ui_button_pad;
identification of cancel button: a cancel button, a button cancel, a ui button cancel;
identification of payment button: the page_button, button_page, ui_button_page.
The operation result triggered after performing the interactive operation on the interactable element may include: network requests after performing the interactive operations on the interactable elements, invoking a hosting interface (hosting environment, including whether the WeChat on which the applet depends is hosting, such as whether the browser on which the web page depends is hosting) and the like after performing the interactive operations on the interactable elements.
Step S406, obtaining target interaction data obtained based on the target reporting configuration information, where the target interaction data is used to represent a target interaction performed on the target object in the client.
Through the steps S402 to S406, the target interactive operation data is obtained according to the report configuration information configured for the target page, so that the technical problem that only the interactive operation data of the mobile terminal APP can be obtained based on the data report rule configured in the visual circle selection mode in the related art is solved, the interactive operation data executed on the target object is obtained through the target report configuration information, and the interactive operation data of the APP, the web page, the applet and the like can be obtained.
In the embodiment of the present invention, the step S406 may specifically include:
s4061, calling a target SDK to acquire a target reporting rule from the target reporting configuration information;
S4062, in the case where the target interaction that satisfies the target reporting rule is detected that is performed on the target object in the client, the target interaction data is generated.
Further, the step S4062 may specifically include:
acquiring reporting content corresponding to the target object path and the target reporting event under the condition that the target interaction operation is detected to be executed on the target object in the client, the target object is an object on the target object path included in the target reporting rule, and the target interaction operation is an interaction operation in the target reporting event included in the target reporting rule; and generating the target interactive operation data comprising the target object path, the target reporting event and the reporting content.
In an embodiment of the present invention, the obtained target interactive operation data may be stored locally, and the operation of the target page may be locally analyzed in a statistical manner, and in an optional embodiment, after the obtaining the target interactive operation data obtained based on the target report configuration information, the obtained target interactive operation data may also be sent to a processing device on the network side, where the processing device is configured to perform statistics on the operation for the target page according to all the target interactive operation data corresponding to the target page received in a predetermined period of time.
Specifically, the reported target interactive operation data can be divided into two categories, namely client information and server information.
The client information includes:
hardware device information: screen size, cell phone brand, model, etc.;
dynamically collected information: such as current GPS, accelerometer, handset temperature;
networking information: 4G/wifi, operators, etc.;
host environment information: such as client/browser version, etc.
The server information includes:
intrinsic properties of the object: such as merchandise information, price, game information, user personal information, etc.;
dynamic operation result: such as purchase success/failure, send message success/failure.
The server information may be obtained directly when the user interacts with the server information by pulling the variable stored in the client, storing the variable locally, and obtaining the information in an HTML structure.
The interactable element and the operation result triggered after the interactable element is executed can take the two kinds of information as the report content.
The temperature of the mobile phone is too high, which means that the program occupies higher resources and the performance is required to be optimized; the accelerometer is mainly used for judging the data change amplitude, and can judge whether the current equipment is in a relatively static state or a moving state, for example, some products/pages are designed for users in the moving state, and whether the actual situation is counted.
Before a page access request is acquired in a client, the embodiment of the invention reports configuration information for target page configuration, and specifically comprises the following steps:
s1, loading a target page according to a page address of the target page;
s2, determining the group of objects on the target page; specifically, a target interface is called to analyze the target page, the group of objects on the target page is obtained, and the interface containing the marked group of objects is displayed.
S3, configuring the target reporting configuration information for the target object in the group of objects.
In the embodiment of the invention, the binding relation is configured for the target reporting configuration information and the target page, namely, the reporting rule is issued, and the target reporting configuration information is sent to the client when the target page is requested to be accessed by the client.
Further, the step S2 may specifically include:
calling a target interface to analyze the target page to obtain the group of objects on the target page;
an interface is displayed containing the marked set of objects.
Further, a set of objects at the marked location is highlighted, the target page and the interface located over the target page are displayed, wherein the interface has a predetermined transparency, the interface covers an area on the target page other than the set of objects, and the set of objects are marked in the interface.
In another aspect of the embodiment of the present invention, there is further provided a method for acquiring operation data, and fig. 5 is a flowchart second of the method for acquiring operation data according to the embodiment of the present invention, as shown in fig. 5, including:
step S502, loading a target page according to the page address of the target page;
step S504, a group of objects on the target page are determined, wherein the group of objects comprise interactable elements and/or operation results triggered after the interactable elements are interacted;
in step S506, reporting configuration information is configured for the set of objects, where the reporting configuration information is used to obtain interaction data, and the interaction data is used to represent an interaction performed on one or more objects in the set of objects in the client.
Through the steps S502 to S506, the target page is loaded according to the page address of the target page; determining a group of objects on the target page, wherein the group of objects comprises interactable elements and/or operation results triggered after the interactable elements are subjected to interaction operation; the method comprises the steps of configuring reporting configuration information for the group of objects, wherein the reporting configuration information is used for obtaining interactive operation data, the interactive operation data are used for representing interactive operation executed on one or more objects in the group of objects in a client, and the technical problems that APP which can only be applied to a mobile terminal exists and is required to be in an operation state in the configuration data reporting rule in a visual circle selection mode in the related technology are solved.
In the embodiment of the present invention, the step S304 may specifically include: calling a target interface to analyze the target page to obtain the group of objects on the target page; an interface is displayed containing the marked set of objects.
In an embodiment of the present invention, highlighting the object and obscuring other elements, and specifically, displaying the interface containing the marked set of objects may specifically include: and displaying the target page and the interface positioned on the target page, wherein the interface has preset transparency, the interface covers the area of the target page except the group of objects, the group of objects are marked in the interface, the efficiency of reporting rule configuration is improved, and for a user configuring reporting rules, the objects are directly displayed, so that the configuration rules are simpler.
The embodiment of the invention configures a binding relationship between target reporting configuration information and a target page, namely, issues a reporting rule, specifically, configures the binding relationship between the reporting configuration information and the target page, and sends the reporting configuration information to the client when the target page is requested to be accessed by the client.
In the embodiment of the invention, in order to ensure that the configured reporting rule is accurate, the configured reporting rule can be automatically verified, specifically, before the binding relationship is configured for the reporting configuration information and the target page, the object in the target page is triggered by simulation to carry out the test, and the test result is output, wherein the test result comprises the reporting rules of all the objects, and each reporting rule comprises an object path, a reporting event and reporting content; and verifying all reporting rules in the reporting configuration information according to the test result.
Further, each reporting rule in the reporting configuration information is respectively matched with each reporting rule in the test result, wherein when an object path and a reporting event of the reporting rule in the reporting configuration information are respectively the same as an object path and a reporting event of the reporting rule in the test result, the reporting rule in the reporting configuration information is determined to be matched with the reporting rule in the test result, and the reporting rule in the reporting configuration information comprises: object path, reporting event and reporting content;
under the condition that all reporting rules in the reporting configuration information are matched with all reporting rules in the test result one by one, determining that verification is passed;
and determining that verification fails under the condition that one reporting rule in the reporting configuration information is not matched with the reporting rule in the test result and/or at least one reporting rule in the test result is not in the reporting configuration information.
In the embodiment of the invention, when the verification of the reporting configuration information passes, the reporting rule configured before is directly reported, and when the verification passes, the configured reporting rule is revised and then reported, and correspondingly, the configuration binding relation between the reporting configuration information and the target page configuration may specifically include: under the condition that verification is passed, configuring a binding relationship for the reported configuration information and the target page; and correcting the reporting rule in the reporting configuration information according to the reporting rule in the verification result under the condition that the verification is not passed, and configuring a binding relation between the reporting configuration information and the target page.
The following describes embodiments of the present invention in detail.
Fig. 6 is a schematic diagram after page parsing according to an embodiment of the present invention, as shown in fig. 6, after a report marking system inputs a page address to be reported, a page is loaded by a puppeter operating Headless Chrome browser, and interactable elements (reporting points) in the page are parsed, including the following steps:
link element < a >
Button elements < button >, < input type=button >, < input type=subset >, < input type=reset >, < input type=file >
Specific style (depending on the business requirements): elements such as style names with a "-button" suffix
Network request: an asynchronous request of all public gateway interfaces (Common Gateway Interface, simply called CGI) is captured, as identified by URL characteristics, by returned data type JSON, by request type "X-Requested-With: XMLHttpRequest", etc.
After a page address to be reported is input into the reporting marking system, a page is loaded through a puppeter operation Headless Chrome browser, and interactable elements (reporting points) in the page are analyzed, wherein the method comprises the following steps:
link element < a >
Button elements < button >, < input type=button >, < input type=subset >, < input type=reset >, < input type=file >
Specific style (depending on the business requirements): elements such as style names with a "-button" suffix
Network request: an asynchronous request is captured for all common gateway interfaces (Common Gateway Interface, abbreviated as CGI), as identified by a Uniform resource locator (Uniform Resource Locator, abbreviated as URL) feature, by returned data type JSON (JavaScript Object Notation), by request type "X-Requested-With: XMLHttpRequest" identification, etc.
And after the page analysis is completed, entering a configuration stage of reporting rules. FIG. 7 is a schematic diagram of reporting rule configuration according to an embodiment of the present invention, as shown in FIG. 7, the left side is an interface after parsing an interaction point, wherein a dotted frame is a clickable area of a user, that is, a location where a reporting buried point can be made; the right side is corresponding reporting information, wherein the node path indicates the position of the element in the page, the event type corresponds to the user behavior, and the context information is additional parameters to be reported. For example, actionID identifies the category for the user's current behavior, indicating that the "get" button was clicked. Sources of context information include:
URL parameters
Global variable: the value of the global variable is automatically stored such as user information, the acquired gift information and the like;
Node attributes: i.e., HTML attributes;
and (3) local storage: data stored as LocalStorage;
after the configuration is completed, reporting rules are obtained and sent to the webpage end, and the SDK monitors and reports.
Reporting rules are similar to the following structure:
path is located for CSS Selector mode, and if global event, window is fetched.
Several values are as follows:
static value: fixed value, for example, the value of id is 10001;
dynamic value: different pages and values corresponding to the access users can be different;
global variable: i.e., the variables that are mounted under the window global object.
After the marking of the reporting point is completed, the reporting automation test can be performed based on the puppeter. The specific method comprises the following steps: and traversing all interactive elements in the page by using the puppeter, triggering events on the elements, capturing network requests of the page, filtering reporting requests (URL features) in the network requests, and outputting a test result list, so as to verify whether missing exists.
The reporting rule after the test is issued to the online storage. Once the page is accessed by the user, the corresponding reporting rules are loaded.
The embodiment of the invention is also applicable to WebView-based applets, and is characterized in that the simulation of the environment of an applet host is performed in a report marking system. Taking a Headset Chrome as a host, and adapting a WeChat applet:
WXML: can be easily converted into HTML tags;
WXSS: can be easily converted into a web page CSS;
interface referred to in JS: because these capabilities are defined in WAService, depending on the capabilities provided by the client, it is desirable to provide a homonymy interface for the call interface. These typically do not affect the interface presentation, but do affect the normal execution of user interaction behavior.
The SDK is mainly implemented by Event agent and program section providing, namely Event delivery and AOP, on the monitoring of user behavior. Among them, AOP is an abbreviation for cut-plane-oriented programming, which is called Aspect Oriented Programming in its entirety, and OOP (object-oriented programming) is two design ideas for different fields. AOP extracts a slice during business processing, which is faced with a step or stage during processing to obtain isolation effects of low coupling between parts during logic. These two design ideas differ substantially in the purpose. Separating cross-cut points of interest from core points of interest is a core concept of cut-plane oriented programming. The separation focus enables the code for solving the problem in the specific field to be independent from the service logic, the code of the service logic does not contain the call for the code of the problem in the specific field, and the relation between the service logic and the problem in the specific field is packaged and maintained through the tangent plane, so that the variation originally scattered in the whole application program can be well managed.
FIG. 8 is a schematic diagram of the acquisition of operation data in an applet according to an embodiment of the invention, as shown in FIG. 8, where a rich host interface call is provided at a client such as the applet, which can support reporting in this case. For example, in a sharing scenario, when a menu button in the upper right corner is clicked, a sharing option is popped up, and after the sharing option is clicked, sharing to friends or group chat can be selected.
Event agents are the most basic way, some events are global, and need to be monitored on window objects; some are based on a certain element, but eventually bubble to the window, and the event original trigger node is acquired through the event. Event agent refers to adding event monitor to father element or ancestor element by event bubbling principle, when child element corresponding event happens, event will be transferred layer by layer, father element or ancestor element can obtain the event.
The AOP mode is suitable for reporting actions triggered by non-users such as network requests, and needs to judge the return of the network requests so as to report the network requests differently (of course, the network requests can also be reported by a server); AOP is also suitable for the scene that the applet class does not support the event proxy, the invading element method, and the section where the event happens is asynchronously thrown out to judge whether to report.
According to the embodiment of the invention, the buried points in the traditional codes are abandoned, and the buried point planning and setting are directly carried out in the page capable of automatically extracting the buried point elements; the buried point condition can also be automatically tested, so that manual packet grabbing comparison is avoided.
Reporting codes are not scattered to all positions of business logic, and concentrated presentation views can be provided, so that reporting rules can be checked and adjusted at any time, and false reports and missing reports can be found timely.
The code decoupling brings more reasonable labor division. The service codes and the reporting codes are separated, so that a developer is more concentrated in the development of service logic. The threshold is lowered in a visual configuration mode by tedious reporting work, and the threshold is set by data personnel.
An embodiment of the present invention provides an operation data acquisition device, and fig. 9 is a block diagram of a first operation data acquisition device according to an embodiment of the present invention, as shown in fig. 9, including:
an acquisition request module 92, configured to acquire a page access request in a client, where the page access request is used to request access to a target page;
the acquiring information module 94 is configured to acquire target reporting configuration information, where the target reporting configuration information is reporting configuration information configured for a target object in a group of objects on the target page, the target reporting configuration information is used to acquire interactive operation data, the interactive operation data is used to represent an interactive operation performed on the target object, and the group of objects includes an interactable element and/or an operation result triggered after the interactive operation is performed on the interactable element;
And an acquisition data module 96, configured to acquire target interaction data acquired based on the target report configuration information, where the target interaction data is used to represent a target interaction performed on the target object in the client.
Optionally, the acquiring data module 96 includes:
the acquisition sub-module is used for calling a target SDK to acquire a target reporting rule from the target reporting configuration information;
and the generation sub-module is used for generating the target interaction operation data under the condition that the target interaction operation which is executed in the client and meets the target reporting rule is detected.
Optionally, the generating submodule includes:
the acquiring unit is used for acquiring reporting content corresponding to the target object path and the target reporting event under the condition that the target interaction operation is detected to be performed on the target object in the client, the target object is an object on the target object path included in the target reporting rule, and the target interaction operation is an interaction operation in the target reporting event included in the target reporting rule;
and the generating unit is used for generating the target interactive operation data comprising the target object path, the target reporting event and the reporting content.
Optionally, the apparatus further comprises:
and the sending module is used for sending the obtained target interactive operation data to processing equipment of the network side, wherein the processing equipment is used for counting the operation aiming at the target page according to all the target interactive operation data corresponding to the target page received in a preset time period.
Optionally, the apparatus further comprises:
the first loading module is used for loading the target page according to the page address of the target page;
a first determining module for determining the set of objects on the target page;
and the first configuration information module is used for configuring the target reporting configuration information for the target object in the group of objects.
Optionally, the apparatus further comprises:
the first configuration relation module is used for configuring a binding relation between the target reporting configuration information and the target page, wherein the binding relation is used for enabling the target reporting configuration information to be sent to the client when the target page is requested to be accessed by the client.
Optionally, the first determining module includes:
the first analysis submodule is used for calling a target interface to analyze the target page to obtain the group of objects on the target page;
A first display sub-module for displaying an interface containing the marked set of objects.
Optionally, the first display sub-module is further configured to
Displaying the target page and the interface above the target page, wherein the interface has a predetermined transparency, the interface covers an area of the target page other than the set of objects, and the set of objects are marked in the interface.
The embodiment of the invention also discloses a device for acquiring operation data, fig. 10 is a block diagram two of the device for acquiring operation data according to the embodiment of the invention, as shown in fig. 10, including:
a second loading module 102, configured to load a target page according to a page address of the target page;
a second determining module 104, configured to determine a set of objects on the target page, where the set of objects includes an interactable element and/or an operation result triggered after performing an interaction on the interactable element;
a second configuration information module 106, configured to configure reporting configuration information for the set of objects, where the reporting configuration information is used to obtain interaction data, and the interaction data is used to represent an interaction performed on one or more objects in the set of objects in the client.
Optionally, the second determining module 104 includes:
the second analysis submodule is used for calling a target interface to analyze the target page to obtain the group of objects on the target page;
and the second display sub-module is used for displaying the interface containing the marked group of objects.
Optionally, the second display sub-module is further configured to
Displaying the target page and the interface above the target page, wherein the interface has a predetermined transparency, the interface covers an area of the target page other than the set of objects, and the set of objects are marked in the interface.
Optionally, the apparatus further comprises:
and the second configuration relation module is used for configuring a binding relation for the reporting configuration information and the target page, wherein the binding relation is used for enabling the reporting configuration information to be sent to the client when the target page is requested to be accessed by the client.
Optionally, the apparatus further comprises:
the test module is used for testing the objects in the target page through simulation triggering and outputting a test result, wherein the test result comprises reporting rules of all the objects, and each reporting rule comprises an object path, a reporting event and reporting content;
And the verification module is used for verifying all reporting rules in the reporting configuration information according to the test result.
Optionally, the verification module includes:
the matching sub-module is configured to match each reporting rule in the reporting configuration information with each reporting rule in the test result, where, when the object path and the reporting event of the reporting rule in the reporting configuration information are the same as the object path and the reporting event in the reporting rule in the test result, it is determined that the reporting rule in the reporting configuration information is matched with the reporting rule in the test result, and the reporting rule in the reporting configuration information includes: object path, reporting event and reporting content;
the first determining submodule is used for determining that verification is passed under the condition that all reporting rules in the reporting configuration information are matched with all reporting rules in the test result one by one;
and the second determining submodule is used for determining that verification is not passed under the condition that one reporting rule in the reporting configuration information is not matched with the reporting rule in the test result and/or at least one reporting rule in the test result is not in the reporting configuration information.
Optionally, the second configuration module includes:
the configuration sub-module is used for configuring a binding relationship for the reported configuration information and the target page under the condition that verification is passed;
and the correction sub-module is used for correcting the reporting rule in the reporting configuration information according to the reporting rule in the verification result under the condition that verification is not passed, and configuring a binding relationship for the reporting configuration information and the target page.
According to a further aspect of the embodiments of the present invention, there is also provided an electronic device for implementing the above-described method of acquiring operation data, the electronic device comprising a memory 1102 and a processor 1104, as shown in fig. 11, the memory 1102 having stored therein a computer program, the processor 1104 being arranged to perform the steps of any of the method embodiments described above by means of the computer program.
Alternatively, in this embodiment, the electronic apparatus may be located in at least one network device of a plurality of network devices of the computer network.
Alternatively, in the present embodiment, the above-described processor may be configured to execute the following steps by a computer program:
s11, acquiring a page access request from a client, wherein the page access request is used for requesting to access a target page;
S12, acquiring target reporting configuration information, wherein the target reporting configuration information is reporting configuration information configured for a target object in a group of objects on the target page, the target reporting configuration information is used for acquiring interactive operation data, the interactive operation data is used for representing interactive operation executed on the target object, and the group of objects comprises interactable elements and/or operation results triggered after the interactive operation is executed on the interactable elements;
s13, acquiring target interactive operation data acquired based on the target reporting configuration information, wherein the target interactive operation data is used for representing target interactive operation executed on the target object in the client.
Alternatively, it will be understood by those skilled in the art that the structure shown in fig. 11 is only schematic, and the electronic device may also be a smart phone (such as android mobile phone, iOS mobile phone, etc.), a tablet computer, a palmtop computer, a mobile internet device (Mobile Internet Devices, M identifier), a PAD, etc. Fig. 11 is not limited to the structure of the electronic device. For example, the electronic device may also include more or fewer components (e.g., network interfaces, etc.) than shown in FIG. 11, or have a different configuration than shown in FIG. 11.
The memory 1102 may be used to store software programs and modules, such as program instructions/modules corresponding to the method and apparatus for obtaining media resources in the embodiment of the present invention, and the processor 1104 executes the software programs and modules stored in the memory 1102 to perform various functional applications and data processing, that is, implement the method for obtaining media resources described above. Memory 1102 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, memory 1102 may further include memory located remotely from processor 1104, which may be connected to the terminal via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof. The memory 1102 may specifically, but not limited to, information such as an encryption key (including a first encryption key, a second encryption key, etc.) and a decryption key (including a first decryption key, a second decryption key, etc.). As an example, as shown in fig. 11, the memory 1102 may be, but is not limited to, an acquisition request module 92, an acquisition information module 94, and an acquisition data module 96 in an acquisition device including the operation data. In addition, other module units in the first media resource obtaining device may be included, but are not limited to, and are not described in detail in this example.
Optionally, the transmission device 1106 is used to receive or transmit data via a network. Specific examples of the network described above may include wired networks and wireless networks. In one example, the transmission device 1106 includes a network adapter (Network Interface Controller, NIC) that may be connected to other network devices and routers via a network cable to communicate with the internet or a local area network. In one example, the transmission device 1106 is a Radio Frequency (RF) module for communicating wirelessly with the internet.
In addition, the electronic device further includes: a display 1108 for displaying the media assets; and a connection bus 1110 for connecting the respective module parts in the above-described electronic apparatus.
According to a further aspect of the embodiments of the present invention, there is also provided an electronic device for implementing the above-described method of acquiring operation data, the electronic device comprising a memory 1102 and a processor 1104, as shown in fig. 12, the memory 1102 having stored therein a computer program, the processor 1104 being arranged to perform the steps of any of the method embodiments described above by means of the computer program.
Alternatively, in this embodiment, the electronic apparatus may be located in at least one network device of a plurality of network devices of the computer network.
Alternatively, in the present embodiment, the above-described processor may be configured to execute the following steps by a computer program:
s21, loading a target page according to the page address of the target page;
s22, determining a group of objects on the target page, wherein the group of objects comprise interactable elements and/or operation results triggered after the interactable elements are subjected to interaction operation;
s23, configuring reporting configuration information for the group of objects, wherein the reporting configuration information is used for acquiring interactive operation data, and the interactive operation data is used for representing interactive operations executed on one or more objects in the group of objects in the client.
Alternatively, it will be understood by those skilled in the art that the structure shown in fig. 12 is only schematic, and the electronic device may also be a smart phone (such as android mobile phone, iOS mobile phone, etc.), a tablet computer, a palmtop computer, a mobile internet device (Mobile Internet Devices, M identifier), a PAD, etc. Fig. 12 is not limited to the structure of the electronic device. For example, the electronic device may also include more or fewer components (e.g., network interfaces, etc.) than shown in FIG. 12, or have a different configuration than shown in FIG. 12.
The memory 1102 may be used to store software programs and modules, such as program instructions/modules corresponding to the method and apparatus for obtaining media resources in the embodiment of the present invention, and the processor 1104 executes the software programs and modules stored in the memory 1102 to perform various functional applications and data processing, that is, implement the method for obtaining media resources described above. Memory 1102 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, memory 1102 may further include memory located remotely from processor 1104, which may be connected to the terminal via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof. The memory 1102 may specifically, but not limited to, information such as an encryption key (including a first encryption key, a second encryption key, etc.) and a decryption key (including a first decryption key, a second decryption key, etc.). As an example, as shown in fig. 12, the memory 1102 may include, but is not limited to, the second loading module 102, the second determining module 104, and the second configuration information module 106 in the acquiring device of the operation data. In addition, other module units in the first media resource obtaining device may be included, but are not limited to, and are not described in detail in this example.
Optionally, the transmission device 1106 is used to receive or transmit data via a network. Specific examples of the network described above may include wired networks and wireless networks. In one example, the transmission device 1106 includes a network adapter (Network Interface Controller, NIC) that may be connected to other network devices and routers via a network cable to communicate with the internet or a local area network. In one example, the transmission device 1106 is a Radio Frequency (RF) module for communicating wirelessly with the internet.
In addition, the electronic device further includes: a display 1108 for displaying the media assets; and a connection bus 1110 for connecting the respective module parts in the above-described electronic apparatus.
According to a further aspect of embodiments of the present invention, there is also provided a computer readable storage medium having stored therein a computer program, wherein the computer program is arranged to perform the steps of any of the method embodiments described above when run.
Alternatively, in the present embodiment, the above-described storage medium may be configured to store a computer program for performing the steps of:
s11, acquiring a page access request from a client, wherein the page access request is used for requesting to access a target page;
S12, acquiring target reporting configuration information, wherein the target reporting configuration information is reporting configuration information configured for a target object in a group of objects on the target page, the target reporting configuration information is used for acquiring interactive operation data, the interactive operation data is used for representing interactive operation executed on the target object, and the group of objects comprises interactable elements and/or operation results triggered after the interactive operation is executed on the interactable elements;
s13, acquiring target interactive operation data acquired based on the target reporting configuration information, wherein the target interactive operation data is used for representing target interactive operation executed on the target object in the client.
Alternatively, in this embodiment, it will be understood by those skilled in the art that all or part of the steps in the methods of the above embodiments may be performed by a program for instructing a terminal device to execute the steps, where the program may be stored in a computer readable storage medium, and the storage medium may include: flash disk, read-Only Memory (ROM), random-access Memory (Random Access Memory, RAM), magnetic or optical disk, and the like.
According to a further aspect of embodiments of the present invention, there is also provided a computer readable storage medium having stored therein a computer program, wherein the computer program is arranged to perform the steps of any of the method embodiments described above when run.
Alternatively, in the present embodiment, the above-described storage medium may be configured to store a computer program for performing the steps of:
s21, loading a target page according to the page address of the target page;
s22, determining a group of objects on the target page, wherein the group of objects comprise interactable elements and/or operation results triggered after the interactable elements are subjected to interaction operation;
s23, configuring reporting configuration information for the group of objects, wherein the reporting configuration information is used for acquiring interactive operation data, and the interactive operation data is used for representing interactive operations executed on one or more objects in the group of objects in the client.
Alternatively, in this embodiment, it will be understood by those skilled in the art that all or part of the steps in the methods of the above embodiments may be performed by a program for instructing a terminal device to execute the steps, where the program may be stored in a computer readable storage medium, and the storage medium may include: flash disk, read-Only Memory (ROM), random-access Memory (Random Access Memory, RAM), magnetic or optical disk, and the like.
The foregoing embodiment numbers of the present invention are merely for the purpose of description, and do not represent the advantages or disadvantages of the embodiments.
The integrated units in the above embodiments may be stored in the above-described computer-readable storage medium if implemented in the form of software functional units and sold or used as separate products. Based on such understanding, the technical solution of the present invention may be embodied in essence or a part contributing to the prior art or all or part of the technical solution in the form of a software product stored in a storage medium, comprising several instructions for causing one or more computer devices (which may be personal computers, servers or network devices, etc.) to perform all or part of the steps of the method described in the embodiments of the present invention.
In the foregoing embodiments of the present invention, the descriptions of the embodiments are emphasized, and for a portion of this disclosure that is not described in detail in this embodiment, reference is made to the related descriptions of other embodiments.
In several embodiments provided in the present application, it should be understood that the disclosed client may be implemented in other manners. The above-described embodiments of the apparatus are merely exemplary, and the division of the units, such as the division of the units, is merely a logical function division, and may be implemented in another manner, for example, multiple units or components may be combined or may be integrated into another system, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be through some interfaces, units or modules, or may be in electrical or other forms.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in the embodiments of the present invention may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The foregoing is merely a preferred embodiment of the present invention and it should be noted that modifications and adaptations to those skilled in the art may be made without departing from the principles of the present invention, which are intended to be comprehended within the scope of the present invention.

Claims (13)

1. A method for acquiring operation data, comprising:
loading a target page according to a page address of the target page; a target interface is called to analyze the target page, a group of objects are determined according to analysis results, and the group of objects are highlighted in the target page, wherein the group of objects comprise interactable elements and/or operation results triggered after interaction operation is performed on the interactable elements;
Displaying a reporting configuration interface corresponding to the group of objects, and configuring target reporting configuration information for target objects in the group of objects based on the reporting configuration interface, wherein the target reporting configuration information is used for acquiring interactive operation data, and the interactive operation data is used for representing interactive operations executed on the target objects;
acquiring the target reporting configuration information through a client embedded with a target toolkit in advance, and analyzing the target reporting configuration information based on a rule analysis engine included in the target toolkit to obtain a target reporting rule, wherein the target toolkit comprises the rule analysis engine, a buried point comparison engine and a data reporting engine;
acquiring a page access request from the client, and matching the interactive node associated with the interactive operation executed by the embedded point comparison engine on the target object with the target node included in the target reporting rule;
and under the condition that the interactive node is matched with the target node, generating target interactive operation data, and reporting object operation information and operation context information associated with the interactive operation through the data reporting engine.
2. The method of claim 1, wherein generating the target interaction data if the interaction node matches the target node comprises:
acquiring reporting content corresponding to the target object path and the target reporting event under the condition that the target interaction operation is detected to be executed on the target object in the client, the target object is an object on the target object path included in the target reporting rule, and the target interaction operation is an interaction operation in the target reporting event included in the target reporting rule;
and generating the target interactive operation data comprising the target object path, the target reporting event and the reporting content.
3. The method of claim 1, wherein after the generating the target interoperation data, the method further comprises:
and sending the obtained target interactive operation data to processing equipment of a network side, wherein the processing equipment is used for counting the operation aiming at the target page according to all target interactive operation data corresponding to the target page received in a preset time period.
4. The method of claim 1, wherein after configuring target reporting configuration information for a target object in the set of objects based on the reporting configuration interface, the method further comprises:
and configuring a binding relation for the target reporting configuration information and the target page, wherein the binding relation is used for enabling the target reporting configuration information to be sent to the client when the target page is requested to be accessed by the client.
5. A method for acquiring operation data, comprising:
loading a target page according to a page address of the target page; a target interface is called to analyze the target page, a group of objects are determined according to analysis results, and the group of objects are highlighted in the target page, wherein the group of objects comprise interactable elements and/or operation results triggered after interaction operation is performed on the interactable elements;
configuring reporting configuration information for the set of objects, including: displaying a reporting configuration interface corresponding to the group of objects, and configuring target reporting configuration information for target objects in the group of objects based on the reporting configuration interface, wherein the reporting configuration information is used for acquiring interactive operation data, and the interactive operation data is used for representing interactive operations executed on one or more objects in the group of objects in a client;
Acquiring the target reporting configuration information through a client embedded with a target toolkit in advance, and analyzing the target reporting configuration information based on a rule analysis engine included in the target toolkit to obtain a target reporting rule, wherein the target toolkit comprises the rule analysis engine, a buried point comparison engine and a data reporting engine;
acquiring a page access request from the client, and matching the interactive node associated with the interactive operation executed by the embedded point comparison engine on the target object with the target node included in the target reporting rule;
and under the condition that the interactive node is matched with the target node, generating target interactive operation data, and reporting object operation information and operation context information associated with the interactive operation through the data reporting engine.
6. The method of claim 5, wherein highlighting a set of objects in the target page based on the parsing result comprises:
displaying the target page and the interface above the target page, wherein the interface has a predetermined transparency, the interface covers an area of the target page except for the group of objects, and the group of objects are marked in the interface.
7. The method according to any one of claims 5 to 6, wherein after reporting configuration information for the set of object configurations, the method further comprises:
and configuring a binding relation for the reporting configuration information and the target page, wherein the binding relation is used for enabling the reporting configuration information to be sent to the client when the target page is requested to be accessed by the client.
8. The method of claim 7, wherein prior to configuring binding for the reporting configuration information and the target page, the method further comprises:
the method comprises the steps of triggering objects in a target page to test through simulation, and outputting a test result, wherein the test result comprises reporting rules of all objects, and each reporting rule comprises an object path, a reporting event and reporting content;
and verifying all reporting rules in the reporting configuration information according to the test result.
9. The method of claim 8, wherein validating all reporting rules in the reporting configuration information based on the test result comprises:
matching each reporting rule in the reporting configuration information with each reporting rule in the test result, wherein when an object path and a reporting event of the reporting rule in the reporting configuration information are the same as an object path and a reporting event of the reporting rule in the test result, determining that the reporting rule in the reporting configuration information is matched with the reporting rule in the test result, and the reporting rule in the reporting configuration information comprises: object path, reporting event and reporting content;
Under the condition that all reporting rules in the reporting configuration information are matched with all reporting rules in the test result one by one, determining that verification is passed;
and determining that verification is not passed under the condition that one reporting rule in the reporting configuration information is not matched with the reporting rule in the test result and/or at least one reporting rule in the test result is not in the reporting configuration information.
10. An operation data acquisition device, characterized by comprising:
the system comprises an acquisition request module, a target page acquisition module and a target page acquisition module, wherein the acquisition request module is used for acquiring a page access request from a client, and the page access request is used for requesting to access the target page;
the information acquisition module is used for acquiring target reporting configuration information, wherein the target reporting configuration information is reporting configuration information configured for target objects in a group of objects on the target page, the target reporting configuration information is used for acquiring interactive operation data, the interactive operation data is used for representing interactive operations executed on the target objects, and the group of objects comprise interactable elements and/or operation results triggered after the interactive operations are executed on the interactable elements;
the operation data acquisition device is also used for: loading a target page according to a page address of the target page; a target interface is called to analyze the target page, a group of objects are determined according to the analysis result, and highlighting is carried out on the group of objects in the target page; displaying a reporting configuration interface corresponding to the group of objects, and configuring target reporting configuration information for target objects in the group of objects based on the reporting configuration interface; acquiring the target reporting configuration information through a client embedded with a target toolkit in advance, and analyzing the target reporting configuration information based on a rule analysis engine included in the target toolkit to obtain a target reporting rule, wherein the target toolkit comprises the rule analysis engine, a buried point comparison engine and a data reporting engine; acquiring a page access request from the client, and matching the interactive node associated with the interactive operation executed by the embedded point comparison engine on the target object with the target node included in the target reporting rule; and under the condition that the interactive node is matched with the target node, generating target interactive operation data, and reporting object operation information and operation context information associated with the interactive operation through the data reporting engine.
11. An operation data acquisition device, characterized by comprising:
the second loading module is used for loading the target page according to the page address of the target page; a target interface is called to analyze the target page, a group of objects are determined according to analysis results, and the group of objects are highlighted in the target page, wherein the group of objects comprise interactable elements and/or operation results triggered after interaction operation is performed on the interactable elements;
the second configuration information module is configured to report configuration information for the set of objects, and includes: displaying a reporting configuration interface corresponding to the group of objects, and configuring target reporting configuration information for target objects in the group of objects based on the reporting configuration interface, wherein the reporting configuration information is used for acquiring interactive operation data, and the interactive operation data is used for representing interactive operations executed on one or more objects in the group of objects in a client; the target report configuration information is acquired through a client terminal which is embedded with a target tool kit in advance, and the target report configuration information is analyzed based on a rule analysis engine included in the target tool kit to obtain a target report rule, wherein the target tool kit comprises the rule analysis engine, a buried point comparison engine and a data report engine; the method comprises the steps that a page access request is obtained from a client, and an interactive node associated with interactive operation executed on a target object through the embedded point comparison engine is matched with a target node included in the target reporting rule; and generating target interactive operation data under the condition that the interactive node is matched with the target node, and reporting the object operation information and the operation context information associated with the interactive operation through the data reporting engine.
12. A storage medium storing a computer program, characterized in that the computer program when run performs the method of any one of claims 1 to 9.
13. An electronic device comprising a memory and a processor, characterized in that the memory has stored therein a computer program, the processor being arranged to execute the method according to any of the claims 1 to 9 by means of the computer program.
CN201910913232.9A 2019-09-25 2019-09-25 Method and device for acquiring operation data Active CN112559278B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910913232.9A CN112559278B (en) 2019-09-25 2019-09-25 Method and device for acquiring operation data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910913232.9A CN112559278B (en) 2019-09-25 2019-09-25 Method and device for acquiring operation data

Publications (2)

Publication Number Publication Date
CN112559278A CN112559278A (en) 2021-03-26
CN112559278B true CN112559278B (en) 2024-02-09

Family

ID=75029440

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910913232.9A Active CN112559278B (en) 2019-09-25 2019-09-25 Method and device for acquiring operation data

Country Status (1)

Country Link
CN (1) CN112559278B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115063156A (en) * 2022-06-28 2022-09-16 支付宝(杭州)信息技术有限公司 Risk processing method, device and equipment

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105279222A (en) * 2014-07-16 2016-01-27 孟智平 Media editing and playing method and system
CN105868256A (en) * 2015-12-28 2016-08-17 乐视网信息技术(北京)股份有限公司 Method and system for processing user behavior data
CN107992506A (en) * 2016-10-27 2018-05-04 北京京东尚科信息技术有限公司 Information processing method and device
CN108595450A (en) * 2017-11-29 2018-09-28 五八有限公司 One kind burying point data base construction method, bury point data base and buries a querying method
CN108845918A (en) * 2018-04-28 2018-11-20 努比亚技术有限公司 A kind of information collecting method, terminal and computer readable storage medium
WO2019085083A1 (en) * 2017-11-01 2019-05-09 平安科技(深圳)有限公司 Control matching method and apparatus, computer device, and storage medium
CN110059282A (en) * 2019-04-23 2019-07-26 北京奇艺世纪科技有限公司 A kind of acquisition methods and system of interactive class data

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105279222A (en) * 2014-07-16 2016-01-27 孟智平 Media editing and playing method and system
CN105868256A (en) * 2015-12-28 2016-08-17 乐视网信息技术(北京)股份有限公司 Method and system for processing user behavior data
CN107992506A (en) * 2016-10-27 2018-05-04 北京京东尚科信息技术有限公司 Information processing method and device
WO2019085083A1 (en) * 2017-11-01 2019-05-09 平安科技(深圳)有限公司 Control matching method and apparatus, computer device, and storage medium
CN108595450A (en) * 2017-11-29 2018-09-28 五八有限公司 One kind burying point data base construction method, bury point data base and buries a querying method
CN108845918A (en) * 2018-04-28 2018-11-20 努比亚技术有限公司 A kind of information collecting method, terminal and computer readable storage medium
CN110059282A (en) * 2019-04-23 2019-07-26 北京奇艺世纪科技有限公司 A kind of acquisition methods and system of interactive class data

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
苏海海.互联网产品运营教程.中国铁道出版社,2018,第157页. *

Also Published As

Publication number Publication date
CN112559278A (en) 2021-03-26

Similar Documents

Publication Publication Date Title
USRE47896E1 (en) System and method for tracking web interactions with real time analytics
CN112148674B (en) Log data processing method, device, computer equipment and storage medium
US8533532B2 (en) System identifying and inferring web session events
CN108363662A (en) A kind of applied program testing method, storage medium and terminal device
IL275042A (en) Self-adaptive application programming interface level security monitoring
US20220198025A1 (en) Web Attack Simulator
CN107124430B (en) Page hijacking monitoring method, device, system and storage medium
CN108334641A (en) The method of acquisition user behavior data, system, electronic equipment, storage medium
CN110263070A (en) Event report method and device
US10775751B2 (en) Automatic generation of regular expression based on log line data
CN110598135A (en) Network request processing method and device, computer readable medium and electronic equipment
CN117370203B (en) Automatic test method, system, electronic equipment and storage medium
CN110795305A (en) System, apparatus and method for processing and managing WEB traffic data
CN113296653B (en) Simulation interaction model construction method, interaction method and related equipment
EP2973192B1 (en) Online privacy management
US10291492B2 (en) Systems and methods for discovering sources of online content
CN109862074B (en) Data acquisition method and device, readable medium and electronic equipment
CN112559278B (en) Method and device for acquiring operation data
JP5737249B2 (en) Load simulation apparatus, simulation apparatus, load simulation method, simulation method, and program
CN116932370A (en) Fuzzy test method, device, electronic equipment, program product and storage medium
CN109756393B (en) Information processing method, system, medium, and computing device
CN107704491B (en) Message processing method and device
CN113886216A (en) Interface test and tool configuration method, device, electronic equipment and storage medium
CN111414525A (en) Data acquisition method and device for small program, computer equipment and storage medium
CN111767447A (en) Method and device for determining user traffic path

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
REG Reference to a national code

Ref country code: HK

Ref legal event code: DE

Ref document number: 40041131

Country of ref document: HK

SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant