CN110908884A - Statistical information generation method, device, system, electronic device and storage medium - Google Patents

Statistical information generation method, device, system, electronic device and storage medium Download PDF

Info

Publication number
CN110908884A
CN110908884A CN201911141744.4A CN201911141744A CN110908884A CN 110908884 A CN110908884 A CN 110908884A CN 201911141744 A CN201911141744 A CN 201911141744A CN 110908884 A CN110908884 A CN 110908884A
Authority
CN
China
Prior art keywords
identification information
event stream
captured
statistical
generating
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
CN201911141744.4A
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.)
Beijing Youyi Internet Technology Development Co Ltd
Original Assignee
Beijing Youyi Internet Technology Development Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Youyi Internet Technology Development Co Ltd filed Critical Beijing Youyi Internet Technology Development Co Ltd
Priority to CN201911141744.4A priority Critical patent/CN110908884A/en
Publication of CN110908884A publication Critical patent/CN110908884A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • 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/3452Performance evaluation by statistical analysis

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • General Physics & Mathematics (AREA)
  • Quality & Reliability (AREA)
  • Bioinformatics & Cheminformatics (AREA)
  • Probability & Statistics with Applications (AREA)
  • Evolutionary Biology (AREA)
  • Bioinformatics & Computational Biology (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The embodiment of the application provides a statistical information generation method, a device, a system, electronic equipment and a storage medium, wherein the statistical information generation method, the device, the system, the electronic equipment and the storage medium are used for monitoring a page event capturing stage, generating identification information of each captured event stream, and generating statistical information of specified elements according to the identification information. Monitoring codes do not need to be added to each monitoring point, the workload of technical personnel is reduced, all event streams of the page are reported, and the problems of missing burying, mistaken burying and the like are solved. The monitoring and business process coupling degree is small, the intrusiveness is low, the identification information in the historical data can be stored, and compared with the situation that monitoring codes are added when statistics is needed, the limitation of timeliness is small.

Description

Statistical information generation method, device, system, electronic device and storage medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to a statistical information generating method, apparatus, system, electronic device, and storage medium.
Background
With the development of computer technology, the internet has stepped into the era of big data. In order to provide better service to the user, the operator of the network site will count the number of times a given button or module is clicked/exposed.
In the prior art, when detecting the number of times of clicking/displaying a web page, a technician needs to be coordinated to intervene to add codes, and the technician introduces an SDK (Software Development Kit) which is a basis for acquisition and provides a basic function for acquiring and reporting a website to be detected. The introduced SDK is developed based on javascript language, and in order to not influence the loading of the site, the SDK can use asynchronous loading and does not block the page. When the site introduces the SDK, the SDK has a unique identifier and is used for summarizing subsequent acquired data and the like.
For example, as shown in fig. 1, data collected by the SDK is divided into two categories, namely, active reporting and passive reporting. The active reporting comprises behaviors of opening and closing a webpage and the like, and the passive reporting comprises behaviors of clicking, inputting and the like. The active reporting means that the SDK actively reports data when a behavior occurs. For example, when monitoring points in a certain page need to be monitored, the passive reporting of the SDK is involved, and a technician needs to add a monitoring code for the monitoring point to report events such as onClick (click) and onInput (input) for the monitoring point.
However, by adopting the method, a plurality of monitoring points to be monitored need to be added with monitoring codes for each monitoring point, the workload of technicians is large, the monitoring of each monitoring point needs to be coupled with the service, the intrusiveness is strong, the collected data for the monitoring points can be collected after the monitoring codes are added by the technicians, and the collection timeliness is limited.
Disclosure of Invention
An object of the embodiments of the present application is to provide a statistical information generating method, apparatus, system, electronic device, and storage medium, so as to reduce workload of technicians, reduce coupling degree between monitoring and service, and reduce limitation on acquisition timeliness. The specific technical scheme is as follows:
in a first aspect, an embodiment of the present application provides a statistical information generating system, where the system includes:
a plurality of clients and data platforms;
the client is used for monitoring the event stream in the page capturing phase; generating identification information of a captured event stream, wherein the identification information of the captured event stream comprises an identification of an element corresponding to the captured event stream; sending the identification information of the captured event stream to the data platform;
the data platform is used for receiving and storing the identification information sent by each client; and when a statistical instruction for the specified element is acquired, generating statistical information of the specified element according to the stored identification information.
Optionally, the event stream is a document object model DOM event stream, and the monitoring of the event stream in the capture phase includes: and monitoring the DOM event flow of the webpage Document layer capturing phase.
Optionally, the identification information of the captured event stream further includes at least one of a tag name, a link address, and text content of an element corresponding to the captured event stream.
Optionally, the identifier of the element corresponding to the captured event stream is an ID of the element corresponding to the captured event stream.
Optionally, the identifier of the element corresponding to the captured event stream is a tree structure level where the element corresponding to the captured event stream is located.
Optionally, when the statistical instruction for the specified element is obtained, generating the statistical information of the specified element according to each stored identification information includes:
when a statistical instruction for a specified element is obtained, obtaining identification information of the specified element as target identification information;
matching the target identification information with each stored identification information to obtain a matching result;
and generating the statistical information of the specified elements according to the matching result.
In a second aspect, an embodiment of the present application provides a statistical information generating method, which is applied to a client, and the method includes:
monitoring an event stream of a page capture phase;
generating identification information of a captured event stream, wherein the identification information of the captured event stream comprises an identification of an element corresponding to the captured event stream;
and sending the identification information of the captured event stream to a data platform so that the data platform generates statistical information of the specified elements according to the identification information.
Optionally, the event stream is a document object model DOM event stream, and the monitoring of the event stream in the capture phase includes:
and monitoring the DOM event flow of the webpage Document layer capturing phase.
Optionally, the identification information of the captured event stream further includes at least one of a tag name, a link address, and text content of an element corresponding to the captured event stream.
Optionally, the generating the identification information of the captured event stream includes:
judging whether an ID exists in an element corresponding to the captured event stream;
if the ID exists, the ID is used as the identification of the element corresponding to the captured event stream to obtain the identification information of the captured event stream;
and if the ID does not exist, acquiring a tree structure level where the element corresponding to the captured event stream is located, and taking the tree structure level as the identifier of the element corresponding to the captured event stream to obtain the identifier information of the captured event stream.
In a third aspect, an embodiment of the present application provides a statistical information generating method, which is applied to a data platform, and the method includes:
receiving and storing identification information sent by each client, wherein the identification information comprises an identification of an element corresponding to an event stream, and the event stream is an event stream captured in a client capturing phase;
and when a statistical instruction for the specified element is acquired, generating statistical information of the specified element according to the stored identification information.
Optionally, the identification information further includes at least one of a tag name, a link address, and text content of an element corresponding to the event stream.
Optionally, when the statistical instruction for the specified element is obtained, generating the statistical information of the specified element according to each stored identification information includes:
when a statistical instruction for a specified element is obtained, obtaining identification information of the specified element as target identification information;
matching the target identification information with each stored identification information to obtain a matching result;
and generating the statistical information of the specified elements according to the matching result.
In a fourth aspect, an embodiment of the present application provides a statistical information generating apparatus, which is applied to a client, where the apparatus includes:
the event stream monitoring module is used for monitoring the event stream in the page capturing stage;
the device comprises an identification information generation module, a data acquisition module and a data processing module, wherein the identification information generation module is used for generating identification information of a captured event stream, and the identification information of the captured event stream comprises an identification of an element corresponding to the captured event stream;
and the identification information sending module is used for sending the identification information of the captured event stream to a data platform so that the data platform generates the statistical information of the specified elements according to the identification information.
Optionally, the event stream is a document object model DOM event stream, and the event stream monitoring module is specifically configured to: and monitoring the DOM event flow of the webpage Document layer capturing phase.
Optionally, the identification information of the captured event stream further includes at least one of a tag name, a link address, and text content of an element corresponding to the captured event stream.
Optionally, the identification information generating module is specifically configured to:
judging whether an ID exists in an element corresponding to the captured event stream;
if the ID exists, the ID is used as the identification of the element corresponding to the captured event stream to obtain the identification information of the captured event stream;
and if the ID does not exist, acquiring a tree structure level where the element corresponding to the captured event stream is located, and taking the tree structure level as the identifier of the element corresponding to the captured event stream to obtain the identifier information of the captured event stream.
In a fifth aspect, the present application provides a statistical information generating apparatus, applied to a data platform, the apparatus including:
the system comprises an identification information receiving module, a data processing module and a data processing module, wherein the identification information receiving module is used for receiving and storing identification information sent by each client, the identification information comprises an identification of an element corresponding to an event stream, and the event stream is an event stream captured in a client capturing phase;
and the statistical information generation module is used for generating the statistical information of the specified elements according to the stored identification information when the statistical instruction for the specified elements is obtained.
Optionally, the identification information further includes at least one of a tag name, a link address, and text content of an element corresponding to the event stream.
Optionally, the statistical information generating module is specifically configured to:
when a statistical instruction for a specified element is obtained, obtaining identification information of the specified element as target identification information;
matching the target identification information with each stored identification information to obtain a matching result;
and generating the statistical information of the specified elements according to the matching result.
In a sixth aspect, an embodiment of the present application further provides an electronic device, including a processor and a memory;
the memory is used for storing a computer program;
the processor is configured to implement the statistical information generating method applied to the client according to any one of the second aspects when executing the program stored in the memory.
In a seventh aspect, an embodiment of the present application further provides an electronic device, including a processor and a memory;
the memory is used for storing a computer program;
the processor is configured to implement the statistical information generating method applied to the data platform according to any one of the third aspects when executing the program stored in the memory.
In an eighth aspect, an embodiment of the present application further provides a computer-readable storage medium, where a computer program is stored in the computer-readable storage medium, and when executed by a processor, the computer program implements the statistical information generating method applied to the client according to any one of the above second aspects.
In a ninth aspect, an embodiment of the present application further provides a computer-readable storage medium, where a computer program is stored in the computer-readable storage medium, and when executed by a processor, the computer program implements the statistical information generating method applied to the data platform according to any one of the third aspects.
According to the statistical information generation method, the device, the system, the electronic device and the storage medium, the page event capturing stage is monitored, the identification information of each captured event stream is generated, and the statistical information of the designated elements is generated according to the identification information. Monitoring codes do not need to be added to each monitoring point, the workload of technical personnel is reduced, all event streams of the page are reported, and the problems of missing burying, mistaken burying and the like are solved. The monitoring and business process coupling degree is small, the intrusiveness is low, the identification information in the historical data can be stored, and compared with the situation that monitoring codes are added when statistics is needed, the limitation of timeliness is small. Of course, not all advantages described above need to be achieved at the same time in the practice of any one product or method of the present application.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is a schematic diagram of data acquisition based on SDK in the related art;
FIG. 2 is a schematic diagram of a statistical information generating system according to an embodiment of the present application;
FIG. 3 is a schematic diagram of a monitor event capture phase according to an embodiment of the present application;
fig. 4 is a first schematic diagram of a statistical information generating method according to an embodiment of the present application;
FIG. 5 is a second schematic diagram of a statistical information generating method according to an embodiment of the present application;
FIG. 6 is a third schematic diagram of a statistical information generating method according to an embodiment of the present application;
FIG. 7 is a fourth diagram illustrating a statistical information generating method according to an embodiment of the present application;
FIG. 8 is a diagram illustrating an exemplary statistical information generating apparatus according to an embodiment of the present disclosure;
fig. 9 is a schematic diagram of an electronic device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
First, terms of art in the embodiments of the present application are explained:
DOM (Document Object Model): the elements that make up a page, a web site, are composed of multiple DOMs.
DOM event flow: what is described by the event stream is the order in which events are accepted from the page.
Monitoring points: the point to be monitored, such as a button, is a monitoring point.
In the prior art, a basic function for collecting and reporting is provided for a station needing to be detected by introducing an SDK. The data collected by the SDK are divided into two categories, namely active reporting and passive reporting. For example, when monitoring points in a certain page need to be monitored, the passive reporting of the SDK may be involved, and a technician needs to add a monitoring code for the monitoring point to report events such as clicking, inputting, and the like for the monitoring point. However, passive reporting is adopted for events such as clicking and inputting, monitoring points which need to be monitored are numerous, monitoring codes need to be added for each monitoring point, the workload of technicians is large, monitoring of each monitoring point needs to be coupled with services, the intrusiveness is strong, collected data for the monitoring points need to be collected after the monitoring codes are added by the technicians, and the collection timeliness is limited.
In view of this, an embodiment of the present application provides a statistical information generating system, and referring to fig. 2, the system includes:
a plurality of clients 201 and data platforms 202;
the client 201 is configured to monitor an event stream in a page capture phase; generating identification information of a captured event stream, wherein the identification information of the captured event stream comprises an identification of an element corresponding to the captured event stream; the identification information of the captured event stream is sent to the data platform 202.
The data platform 202 is configured to receive and store the identification information sent by each client 201; and when a statistical instruction for the specified element is acquired, generating statistical information of the specified element according to the stored identification information.
The client 201 is a client having a browser function. The page in the browser is composed of elements, specifically, the elements can be characters, pictures, input boxes, videos and the like. When a user performs a click, an input, or the like with respect to an element in a page, an event stream is generated. The event flow in a page, such as a DOM event flow, is generally divided into two phases, capture and bubble. In the embodiment of the application, the monitoring of the event stream is realized by monitoring the capturing phase.
In a possible implementation, the event stream is a DOM event stream, and the monitoring the event stream of the capture phase includes: a DOM event stream of a Document layer capture phase of a web page is monitored. In the page of the client, for example, as shown in fig. 3, the capturing of the event stream is performed from the window layer, and passes through the webpage Document layer, the HTML (Hyper Text Markup Language) layer, the Body layer, the Parent DOM layer, and the Child DOM layer in sequence. Monitoring of event streams in a page can be achieved by monitoring a Document layer of a webpage.
For a captured event stream, identification information for the event stream is generated. When clicking, inputting and other operations are performed on elements in the browser, an event stream is generated, that is, the elements and the event stream are corresponding to each other. The identification information of the event stream includes at least an identification of an element corresponding to the event stream, thereby being used to distinguish different elements. The identity of an element is used to uniquely identify the element, with the identity of different elements being different. For example, the identifier of the element corresponding to the captured event stream is an ID of the element corresponding to the captured event stream. For example, the identifier of the element corresponding to the captured event stream is a tree structure level where the element corresponding to the captured event stream is located.
And the data platform receives and stores the identification information sent by each client. When the statistical instruction for the specified element is acquired, the identification information (hereinafter referred to as target identification information) of the specified element is used for matching with each piece of stored identification information sent by each client. And aiming at any stored identification information, if the matching is successful, the identification information shows that the target identification information and the identification information are identification information of the same element. And generating the statistical information of the specified elements according to the matching result. The specific form of the statistical information may define settings including, but not limited to, tables, text, graphics, and the like.
In the embodiment of the application, the page event capturing stage is monitored, the identification information of each captured event stream is generated, and the statistical information of the specified elements is generated according to the identification information. Monitoring codes do not need to be added to each monitoring point, the workload of technical personnel is reduced, all event streams of the page are reported, and the problems of missing burying, mistaken burying and the like are solved. The monitoring and business process coupling degree is small, the intrusiveness is low, the identification information in the historical data can be stored, and compared with the situation that monitoring codes are added when statistics is needed, the limitation of timeliness is small.
In a possible implementation, the generating the identification information of the captured event stream includes:
and step A, judging whether the elements corresponding to the captured event stream have the ID.
Analyzing the captured event stream, judging whether the ID of the corresponding element exists in the event stream, if so, executing the step B, and if not, executing the step C.
And step B, if the ID exists, using the ID as the identification of the element corresponding to the captured event stream to obtain the identification information of the captured event stream.
The identification information of the event stream at least comprises an identification of an element corresponding to the event stream, and may further comprise one or more of a tag name, a link address and text content of the element corresponding to the event stream. For example, information such as a tag name, a link address, and text content may be acquired from the event stream.
And C, if the ID does not exist, acquiring a tree structure hierarchy where the element corresponding to the captured event stream is located, and taking the tree structure hierarchy as the identifier of the element corresponding to the captured event stream to obtain the identifier information of the captured event stream.
If the ID of the element does not exist, the parent tree structure of the element, such as a DOM tree, is analyzed, and the level of the element is obtained as the identifier of the element. But using the element hierarchy as an identification has an uncertainty factor, when the parent element performs an operation such as addition or deletion, the position where the element is located will also change.
In the embodiment of the application, the ID of the preferred element is used as the identifier of the element, and when the element does not have the ID, the tree structure hierarchy of the element is used as the identifier of the element, so that a method for generating the identifier of the element is provided, and the method can be used for distinguishing different elements.
In one possible embodiment, the generating statistical information of the specified element according to each stored identification information when the statistical instruction for the specified element is acquired includes:
step one, when a statistical instruction for a specified element is obtained, obtaining identification information of the specified element as target identification information.
When the specified element is expected to be counted, a user issues a counting instruction for the specified element to the data platform, and after the data platform acquires the counting instruction for the specified element, the data platform acquires identification information of the specified element, which is hereinafter referred to as target identification information.
And step two, matching the target identification information with each stored identification information to obtain a matching result.
And matching the target identification information with the stored identification information respectively, and if the matching is successful, indicating that the target identification information and the matched identification information are identification information with the same element to obtain a matching result of the target identification information and the stored identification information.
And step three, generating the statistical information of the specified elements according to the matching result.
According to the matching result, the operation times of the specified elements can be obtained, and therefore the statistical information of the specified elements can be obtained. Alternatively, in addition to the historical total number of operations, the number of operations in a specified period of time, the average number of operations per unit time, and the like may be counted. The generated statistical information can be displayed visually by adopting a graph or a table method.
An embodiment of the present application further provides a statistical information generating method, applied to a client, and referring to fig. 4, the method includes:
s401, monitoring an event stream of a page capturing phase.
The statistical information generation method is applied to the client, so that the statistical information generation method can be realized through the client, and the page can be a page in a browser or other application programs. The page is composed of elements, specifically, the elements can be characters, pictures, input boxes, videos and the like. When a user performs a click, an input, or the like with respect to an element in a page, an event stream is generated. The event flow in a page, such as a DOM event flow, is generally divided into two phases, capture and bubble. In the embodiment of the application, the monitoring of the event stream is realized by monitoring the capturing phase.
In a possible implementation, the event stream is a document object model DOM event stream, and the monitoring of the event stream in the capture phase includes: and monitoring the DOM event flow of the webpage Document layer capturing phase. Monitoring of event streams in a page can be achieved by monitoring a Document layer of a webpage.
S402, generating identification information of the captured event stream, wherein the identification information of the captured event stream comprises an identification of an element corresponding to the captured event stream.
For a captured event stream, identification information for the event stream is generated. When an element in a page is operated, an event stream is generated, that is, the event stream corresponding to the element is also generated. The identification information of the event stream at least includes an identification of an element corresponding to the event stream, and may further include at least one of a tag name, a link address, and text content of the element corresponding to the captured event stream. The identification of an element is used for uniquely identifying the element, and the identification of different elements is different, so that the different elements are distinguished. For example, the identification of an element may be the ID of the element, and may also be the tree structure level in which the element is located.
And S403, sending the identification information of the captured event stream to a data platform, so that the data platform generates statistical information of the specified elements according to the identification information.
And sending the identification information to the data platform. After the data platform receives the identification information, the data platform counts the operation conditions of the specified elements according to the identification information sent by each client, so as to obtain statistical information.
In the embodiment of the application, the page event capturing stage is monitored, the identification information of each captured event stream is generated, and the statistical information of the specified elements is generated according to the identification information. Monitoring codes do not need to be added to each monitoring point, the workload of technical personnel is reduced, all event streams of the page are reported, and the problems of missing burying, mistaken burying and the like are solved. The monitoring and business process coupling degree is small, the intrusiveness is low, the identification information in the historical data can be stored, and compared with the situation that monitoring codes are added when statistics is needed, the limitation of timeliness is small.
In one possible implementation, referring to fig. 5, the generating of the identification information of the captured event stream includes:
s501, judging whether an ID exists in an element corresponding to the captured event stream.
And S502, if the ID exists, using the ID as the identification of the element corresponding to the captured event stream to obtain the identification information of the captured event stream.
And S503, if the ID does not exist, acquiring a tree structure level where the element corresponding to the captured event stream is located, and using the tree structure level as the identifier of the element corresponding to the captured event stream to obtain the identifier information of the captured event stream.
In the embodiment of the application, the ID of the preferred element is used as the identifier of the element, and when the element does not have the ID, the tree structure hierarchy of the element is used as the identifier of the element, so that a method for generating the identifier of the element is provided, and the method can be used for distinguishing different elements.
An embodiment of the present application further provides a statistical information generating method, which is applied to a data platform, and with reference to fig. 6, the method includes:
s601, receiving and storing identification information sent by each client, wherein the identification information comprises an identification of an element corresponding to an event stream, and the event stream is an event stream captured in a client capturing phase.
The statistical information generation method is applied to the data platform, so that the statistical information generation method can be realized through the data platform, and particularly can be realized through a server in the data platform. The data platform receives the identification information sent by each client and stores each identification information, wherein the generation process of the identification information can refer to any one of the above statistical information generation methods applied to the clients, and is not described herein again. The identification information includes an identification of the element for uniquely distinguishing the elements. In a possible implementation manner, the identification information further includes at least one of a tag name, a link address, and a text content of an element corresponding to the event stream, so as to assist in distinguishing the elements and facilitate management of the identification information.
S602, when a statistical instruction for a specific element is acquired, generates statistical information for the specific element according to each piece of stored identification information.
And the data platform receives and stores the identification information sent by each client. When the statistical instruction for the specified element is acquired, the identification information (hereinafter referred to as target identification information) of the specified element is used for matching with each piece of stored identification information sent by each client. And aiming at any stored identification information, if the matching is successful, the identification information shows that the target identification information and the identification information are identification information of the same element. And generating the statistical information of the specified elements according to the matching result. The specific form of the statistical information may define settings including, but not limited to, tables, text, graphics, and the like.
In the embodiment of the application, the page event capturing stage is monitored, the identification information of each captured event stream is generated, and the statistical information of the specified elements is generated according to the identification information. Monitoring codes do not need to be added to each monitoring point, the workload of technical personnel is reduced, all event streams of the page are reported, and the problems of missing burying, mistaken burying and the like are solved. The monitoring and business process coupling degree is small, the intrusiveness is low, the identification information in the historical data can be stored, and compared with the situation that monitoring codes are added when statistics is needed, the limitation of timeliness is small.
In a possible implementation manner, referring to fig. 7, when the statistical instruction for the specified element is obtained, generating the statistical information of the specified element according to the stored identification information includes:
s701, when a statistical instruction for a specified element is acquired, acquiring identification information of the specified element as target identification information.
When the specified element is expected to be counted, a user issues a counting instruction for the specified element to the data platform, and after the data platform acquires the counting instruction for the specified element, the data platform acquires identification information of the specified element, which is hereinafter referred to as target identification information.
S702, matching the target identification information with the stored identification information to obtain a matching result.
And matching the target identification information with the stored identification information respectively, and if the matching is successful, indicating that the target identification information and the matched identification information are identification information with the same element to obtain a matching result of the target identification information and the stored identification information.
And S703, generating the statistical information of the specified elements according to the matching result.
According to the matching result, the operation times of the specified elements can be obtained, and therefore the statistical information of the specified elements can be obtained. Alternatively, in addition to the historical total number of operations, the number of operations in a specified period of time, the average number of operations per unit time, and the like may be counted. The generated statistical information can be displayed visually by adopting a graph or a table method.
An embodiment of the present application provides a statistical information generating apparatus, see fig. 8, applied to a client, where the apparatus includes:
an event stream monitoring module 801, configured to monitor an event stream in a page capture phase;
an identification information generating module 802, configured to generate identification information of a captured event stream, where the identification information of the captured event stream includes an identification of an element corresponding to the captured event stream;
an identification information sending module 803, configured to send the identification information of the captured event stream to a data platform, so that the data platform generates statistical information of a specified element according to the identification information.
Optionally, the event stream is a document object model DOM event stream, and the event stream monitoring module 801 is specifically configured to: and monitoring the DOM event flow of the webpage Document layer capturing phase.
Optionally, the identification information of the captured event stream further includes at least one of a tag name, a link address, and text content of an element corresponding to the captured event stream.
Optionally, the identifier information generating module 802 is specifically configured to: judging whether an ID exists in an element corresponding to the captured event stream; if the ID exists, the ID is used as the identification of the element corresponding to the captured event stream to obtain the identification information of the captured event stream; and if the ID does not exist, acquiring a tree structure hierarchy where the element corresponding to the captured event stream is located, and taking the tree structure hierarchy as the identifier of the element corresponding to the captured event stream to obtain the identifier information of the captured event stream.
The application provides a statistical information generating device, is applied to data platform, and the device includes:
the system comprises an identification information receiving module, a client acquisition stage and an event stream acquiring module, wherein the identification information receiving module is used for receiving and storing identification information sent by each client, the identification information comprises an identification of an element corresponding to the event stream, and the event stream is an event stream acquired in the client acquisition stage;
and the statistical information generation module is used for generating the statistical information of the specified elements according to the stored identification information when the statistical instruction for the specified elements is obtained.
Optionally, the identification information further includes at least one of a tag name, a link address, and text content of an element corresponding to the event stream.
Optionally, the statistical information generating module is specifically configured to: when a statistical instruction for a specified element is acquired, acquiring identification information of the specified element as target identification information; matching the target identification information with each stored identification information to obtain a matching result; and generating the statistical information of the specified elements according to the matching result.
An embodiment of the present application further provides an electronic device, including: a processor and a memory;
the memory is used for storing computer programs;
when the processor is used for executing the computer program stored in the memory, the following steps are realized:
monitoring an event stream of a page capture phase;
generating identification information of a captured event stream, wherein the identification information of the captured event stream comprises an identification of an element corresponding to the captured event stream;
and sending the identification information of the captured event stream to a data platform so that the data platform generates the statistical information of the specified elements according to the identification information.
Optionally, referring to fig. 9, the electronic device according to the embodiment of the present application further includes a communication interface 902 and a communication bus 904, where the processor 901, the communication interface 902, and the memory 903 complete communication with each other through the communication bus 904.
Optionally, when the processor is configured to execute the computer program stored in the memory, the processor may further implement any statistical information generating method applied to the client.
An embodiment of the present application further provides an electronic device, including: a processor and a memory;
the memory is used for storing computer programs;
when the processor is used for executing the computer program stored in the memory, the following steps are realized:
receiving and storing identification information sent by each client, wherein the identification information comprises an identification of an element corresponding to an event stream, and the event stream is an event stream captured in a client capturing phase;
and when a statistical instruction for the specified element is acquired, generating statistical information of the specified element according to the stored identification information.
Optionally, when the processor is configured to execute the computer program stored in the memory, any one of the statistical information generation methods applied to the data platform may also be implemented.
The communication bus mentioned in the electronic device may be a PCI (Peripheral component interconnect) bus, an EISA (Extended Industry standard architecture) bus, or the like. The communication bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown, but this does not mean that there is only one bus or one type of bus.
The communication interface is used for communication between the electronic equipment and other equipment.
The Memory may include a RAM (Random Access Memory) or an NVM (Non-Volatile Memory), such as at least one disk Memory. Optionally, the memory may also be at least one memory device located remotely from the processor.
The Processor may be a general-purpose Processor, including a Central Processing Unit (CPU), a Network Processor (NP), and the like; but also a DSP (Digital Signal Processing), an ASIC (Application Specific Integrated Circuit), an FPGA (Field Programmable Gate Array) or other Programmable logic device, discrete Gate or transistor logic device, discrete hardware component.
An embodiment of the present application further provides a computer-readable storage medium, where a computer program is stored in the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements any one of the above statistical information generating methods applied to the client.
An embodiment of the present application further provides a computer-readable storage medium, where a computer program is stored in the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements any one of the statistical information generation methods applied to the data platform.
It should be noted that, in this document, the technical features in the various alternatives can be combined to form the scheme as long as the technical features are not contradictory, and the scheme is within the scope of the disclosure of the present application. Relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
All the embodiments in the present specification are described in a related manner, and the same and similar parts among the embodiments may be referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the embodiments of the apparatus, the electronic device, and the storage medium, since they are substantially similar to the method embodiments, the description is relatively simple, and for the relevant points, reference may be made to the partial description of the method embodiments.
The above description is only for the preferred embodiment of the present application, and is not intended to limit the scope of the present application. Any modification, equivalent replacement, improvement and the like made within the spirit and principle of the present application are included in the protection scope of the present application.

Claims (10)

1. A statistical information generation system, characterized in that the system comprises:
a plurality of clients and data platforms;
the client is used for monitoring the event stream in the page capturing phase; generating identification information of a captured event stream, wherein the identification information of the captured event stream comprises an identification of an element corresponding to the captured event stream; sending the identification information of the captured event stream to the data platform;
the data platform is used for receiving and storing the identification information sent by each client; and when a statistical instruction for the specified element is acquired, generating statistical information of the specified element according to the stored identification information.
2. A statistical information generation method is applied to a client, and the method comprises the following steps:
monitoring an event stream of a page capture phase;
generating identification information of a captured event stream, wherein the identification information of the captured event stream comprises an identification of an element corresponding to the captured event stream;
and sending the identification information of the captured event stream to a data platform so that the data platform generates statistical information of the specified elements according to the identification information.
3. The method according to claim 2, wherein the event stream is a Document Object Model (DOM) event stream, and the monitoring of the event stream during the capture phase comprises:
and monitoring the DOM event flow of the webpage Document layer capturing phase.
4. The method of claim 2, wherein the identification information of the captured event stream further comprises at least one of a tag name, a link address, and a text content of an element corresponding to the captured event stream.
5. The method of claim 2, wherein generating identification information for the captured event stream comprises:
judging whether an ID exists in an element corresponding to the captured event stream;
if the ID exists, the ID is used as the identification of the element corresponding to the captured event stream to obtain the identification information of the captured event stream;
and if the ID does not exist, acquiring a tree structure level where the element corresponding to the captured event stream is located, and taking the tree structure level as the identifier of the element corresponding to the captured event stream to obtain the identifier information of the captured event stream.
6. A statistical information generation method is applied to a data platform, and the method comprises the following steps:
receiving and storing identification information sent by each client, wherein the identification information comprises an identification of an element corresponding to an event stream, and the event stream is an event stream captured in a client capturing phase;
and when a statistical instruction for the specified element is acquired, generating statistical information of the specified element according to the stored identification information.
7. The method of claim 6, wherein the identification information further comprises at least one of a tag name, a link address, and a text content of an element corresponding to the event stream.
8. The method according to claim 6, wherein the generating the statistical information of the specified element according to the stored identification information when the statistical instruction for the specified element is obtained comprises:
when a statistical instruction for a specified element is obtained, obtaining identification information of the specified element as target identification information;
matching the target identification information with each stored identification information to obtain a matching result;
and generating the statistical information of the specified elements according to the matching result.
9. A statistical information generating apparatus, applied to a client, the apparatus comprising:
the event stream monitoring module is used for monitoring the event stream in the page capturing stage;
the device comprises an identification information generation module, a data acquisition module and a data processing module, wherein the identification information generation module is used for generating identification information of a captured event stream, and the identification information of the captured event stream comprises an identification of an element corresponding to the captured event stream;
and the identification information sending module is used for sending the identification information of the captured event stream to a data platform so that the data platform generates the statistical information of the specified elements according to the identification information.
10. A statistical information generating apparatus, applied to a data platform, the apparatus comprising:
the system comprises an identification information receiving module, a data processing module and a data processing module, wherein the identification information receiving module is used for receiving and storing identification information sent by each client, the identification information comprises an identification of an element corresponding to an event stream, and the event stream is an event stream captured in a client capturing phase;
and the statistical information generation module is used for generating the statistical information of the specified elements according to the stored identification information when the statistical instruction for the specified elements is obtained.
CN201911141744.4A 2019-11-20 2019-11-20 Statistical information generation method, device, system, electronic device and storage medium Pending CN110908884A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911141744.4A CN110908884A (en) 2019-11-20 2019-11-20 Statistical information generation method, device, system, electronic device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911141744.4A CN110908884A (en) 2019-11-20 2019-11-20 Statistical information generation method, device, system, electronic device and storage medium

Publications (1)

Publication Number Publication Date
CN110908884A true CN110908884A (en) 2020-03-24

Family

ID=69818167

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911141744.4A Pending CN110908884A (en) 2019-11-20 2019-11-20 Statistical information generation method, device, system, electronic device and storage medium

Country Status (1)

Country Link
CN (1) CN110908884A (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106933722A (en) * 2017-03-06 2017-07-07 腾云天宇科技(北京)有限公司 A kind of web application monitoring method, server and system
CN109032905A (en) * 2017-06-09 2018-12-18 腾讯科技(深圳)有限公司 A kind of statistical method and relevant device of click event
CN110059282A (en) * 2019-04-23 2019-07-26 北京奇艺世纪科技有限公司 A kind of acquisition methods and system of interactive class data

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106933722A (en) * 2017-03-06 2017-07-07 腾云天宇科技(北京)有限公司 A kind of web application monitoring method, server and system
CN109032905A (en) * 2017-06-09 2018-12-18 腾讯科技(深圳)有限公司 A kind of statistical method and relevant device of click event
CN110059282A (en) * 2019-04-23 2019-07-26 北京奇艺世纪科技有限公司 A kind of acquisition methods and system of interactive class data

Similar Documents

Publication Publication Date Title
CN107562620B (en) Automatic buried point setting method and device
CN111046317A (en) Page data acquisition method, device, equipment and computer readable storage medium
US8352790B2 (en) Abnormality detection method, device and program
CN106649063B (en) Method and system for monitoring time-consuming data during program operation
CN105868256A (en) Method and system for processing user behavior data
CN108304410B (en) Method and device for detecting abnormal access page and data analysis method
CN112380473B (en) Data acquisition and synchronization method, device, equipment and storage medium
CN112491611A (en) Fault location system, method, apparatus, electronic device and computer readable medium
CN106528390A (en) Application monitoring method and device
CN108322350B (en) Service monitoring method and device and electronic equipment
CN113746703A (en) Abnormal link monitoring method, system and device
CN102567344A (en) Method and device for providing information
CN114020581A (en) Alarm correlation method based on topological optimization FP-Growth algorithm
CN109862074B (en) Data acquisition method and device, readable medium and electronic equipment
US10706108B2 (en) Field name recommendation
CN114301800A (en) Network equipment quality difference analysis method and device
JP6078485B2 (en) Operation history analysis apparatus, method, and program
US9645877B2 (en) Monitoring apparatus, monitoring method, and recording medium
CN112989162A (en) Buried point reporting method, device, equipment and storage medium
JP6049136B2 (en) Network management system and method
CN110908884A (en) Statistical information generation method, device, system, electronic device and storage medium
CN105677827B (en) A kind of acquisition methods and device of list
CN112559278B (en) Method and device for acquiring operation data
CN113535034B (en) Method, apparatus, system and medium for fault warning
CN111241446B (en) Method, device, equipment and medium for extracting text content of web page

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