CN112395173B - Method and device for reporting information flow data - Google Patents

Method and device for reporting information flow data Download PDF

Info

Publication number
CN112395173B
CN112395173B CN201910749560.XA CN201910749560A CN112395173B CN 112395173 B CN112395173 B CN 112395173B CN 201910749560 A CN201910749560 A CN 201910749560A CN 112395173 B CN112395173 B CN 112395173B
Authority
CN
China
Prior art keywords
data
reporting
event
reporting event
triggered
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
CN201910749560.XA
Other languages
Chinese (zh)
Other versions
CN112395173A (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 CN201910749560.XA priority Critical patent/CN112395173B/en
Publication of CN112395173A publication Critical patent/CN112395173A/en
Application granted granted Critical
Publication of CN112395173B publication Critical patent/CN112395173B/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/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

Abstract

The application provides a method and a device for reporting information flow data, which are used for determining a data object corresponding to a trigger element of a reporting event according to a corresponding relation between a preconfigured element and the data object after acquiring parameters of the triggered reporting event in an application program, acquiring data of the data object from prestored information flow data, and reporting an identifier of the reporting event and data of the data object. Based on the technical scheme provided by the application, any kind of data to be reported can be automatically reported when the corresponding element becomes the trigger element by configuring the data in the data object in advance. Therefore, the application effectively increases the variety of the reported data, and ensures that the analysis of the usage preference of the reported data is more accurate.

Description

Method and device for reporting information flow data
Technical Field
The present application relates to the field of computer technologies, and in particular, to a method and an apparatus for reporting information stream data.
Background
With the development of computer technology, various software for satisfying various demands of users has appeared on the market. When a user uses the software at the client, the software monitors each element of the software, and when the user clicks any element, the user reports the identification of the element to the server to indicate that the element is clicked once. The developer can analyze the use preference of the user according to the clicked frequency of each element, and then adaptively adjust the software, so that the user experience is improved.
The existing data reporting technology has the defects that the type of the reported data is single, the source of the user clicking the element can not be determined only according to the identification of the clicked element, and the user clicks information such as the actual intention of the element, so that the accuracy of analysis of the use preference according to the reported data is low, and the developed software can not be matched with the requirement of the user accurately.
Disclosure of Invention
Based on the shortcomings of the prior art, the application provides a method and a device for reporting information stream data, which increase the types of the reported data so as to realize the requirement that the use preference of a user can be more accurately analyzed by analyzing the reported data.
The first aspect of the present application provides a method for reporting information stream data, including:
acquiring parameters of a triggered reporting event in an application program; the parameters of the reporting event include: the identification of the reporting event and the triggering element of the reporting event;
determining a data object corresponding to the triggering element of the reporting event according to the corresponding relation between the preconfigured element and the data object;
and acquiring the data of the data object from the pre-stored information stream data, and reporting the identification of the reporting event and the data of the data object.
Optionally, the acquiring parameters of the triggered reporting event in the application program includes:
monitoring whether a general reporting event of the application program is triggered;
and if the monitored general reporting event is triggered, acquiring parameters of the triggered general reporting event.
Optionally, the acquiring parameters of the triggered reporting event in the application program includes:
receiving parameters of a triggered reporting event sent by the application program; the triggered reporting event is a non-universal reporting event, and the application program monitors that the non-universal reporting event is triggered.
Optionally, the acquiring the data of the data object from the pre-stored information stream data includes:
determining the information flow of the trigger element; wherein the application comprises a plurality of information streams, each of the information streams comprising a plurality of elements;
triggering an event processor corresponding to the information flow where the trigger element is located, so that the event processor obtains the data of the data object from the pre-stored information flow data.
Optionally, the triggered reporting event in the application program is a general reporting event, where before the data of the data object is obtained from the pre-stored information flow data, the method further includes:
calculating to obtain general report data of the trigger element;
and the universal reporting data, the identification of the reporting event and the data of the data object are reported together.
Optionally, the reporting the identifier of the reporting event and the data of the data object includes:
assembling the identification of the reporting event and the data of the data object according to a preset message format to obtain an assembled message;
and reporting the assembled information.
A second aspect of the present application provides an apparatus for reporting information stream data, including:
the acquisition unit is used for acquiring parameters of the triggered reporting event in the application program; the parameters of the reporting event include: the identification of the reporting event and the triggering element of the reporting event;
the determining unit is used for determining the data object corresponding to the triggering element of the reporting event according to the corresponding relation between the preconfigured element and the data object;
and the reporting unit is used for acquiring the data of the data object from the prestored information flow data and reporting the identification of the reporting event and the data of the data object.
Optionally, the acquiring unit includes:
the monitoring unit is used for monitoring whether the universal reporting event of the application program is triggered or not; and if the monitored general reporting event is triggered, acquiring parameters of the triggered general reporting event.
Optionally, the acquiring unit includes:
the receiving unit is used for receiving parameters of the triggered reporting event sent by the application program; the triggered reporting event is a non-universal reporting event, and the application program monitors that the non-universal reporting event is triggered.
Optionally, the reporting unit includes:
a determining subunit, configured to determine an information flow where the trigger element is located; wherein the application comprises a plurality of information streams, each of the information streams comprising a plurality of elements;
the triggering unit is used for triggering the event processor corresponding to the information flow where the triggering element is located, so that the event processor obtains the data of the data object from the pre-stored information flow data.
The application provides a method and a device for reporting information flow data, which are used for determining a data object corresponding to a trigger element of a reporting event according to a corresponding relation between a preconfigured element and the data object after acquiring parameters of the triggered reporting event in an application program, acquiring data of the data object from prestored information flow data, and reporting an identifier of the reporting event and data of the data object. Based on the technical scheme provided by the application, any kind of data to be reported can be automatically reported when the corresponding element becomes the trigger element by configuring the data in the data object in advance. Therefore, the application effectively increases the variety of the reported data, and ensures that the analysis of the usage preference of the reported data is more accurate.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings that are required to be used in the embodiments or the description of the prior art will be briefly described below, and it is obvious that the drawings in the following description are only embodiments of the present application, and that other drawings can be obtained according to the provided drawings without inventive effort for a person skilled in the art.
Fig. 1 is a flow chart of a method for reporting information flow data according to an embodiment of the present application;
fig. 2 is a schematic diagram of a correspondence between an information flow and an event processor according to an embodiment of the present application;
fig. 3 is a flow chart of a method for reporting information flow data according to another embodiment of the present application;
fig. 4 is a schematic structural diagram of a device for reporting information flow data according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of an apparatus for reporting information stream data according to another embodiment of the present application.
Detailed Description
The following description of the embodiments of the present application will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present application, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
The reporting technology of data is a common technical means in the technical field of computers. In the existing data reporting technology, a developer of an application program on electronic equipment such as a computer or a mobile phone can acquire the frequency of clicking each element of the application program by a user when the user uses the application program, and the use preference of the user is analyzed according to the clicking frequency of each element, so that the application program is adaptively modified, and the application program can meet the use requirement of the user.
However, performing a preliminary analysis of usage preference according to the click frequency of an element requires obtaining various other kinds of data in order to perform a fine analysis. However, in the prior art, when an element is clicked, the element identification is reported, so that the data reporting technology for counting the clicking frequency of each element does not support reporting of other kinds of data.
In another existing data reporting technology, a developer can manually embed a plurality of data reporting points in an application program when the application program is developed, and when any one data reporting point is triggered in the running process of the application program, the application program collects data to be reported corresponding to the data reporting point and reports the collected data to be reported.
The mode of manually configuring the data reporting points by the developer can support reporting of data of a plurality of data categories, but in the technology, a large number of data reporting points are often required to be buried in an application program in order to meet the requirement of analyzing the use preference of a user, so that the burden of the developer is increased, and on the other hand, reporting scenes among the plurality of data reporting points are not easy to unify, so that the follow-up analysis according to the reported data is not facilitated.
Therefore, the embodiment of the application provides a method for reporting information flow data, which aims to solve the problem of single reported data types in the existing data reporting technology, thereby supporting the requirement of refined analysis of the use preference.
The method provided by the embodiment of the application is mainly used for reporting the information flow data in the application program. The information flow can be regarded as a page of the application program which displays information one by one in a list form, and in the information flow page, a user can continuously drag the information flow page to enable the information flow page to continuously load new information.
Referring to fig. 1, the method provided by the embodiment of the application includes the following steps:
s101, acquiring parameters of a triggered reporting event in an application program.
Triggered reporting events may also be referred to as trigger events.
The execution main body of the data reporting method provided by any embodiment of the application is a pre-constructed data reporting framework. The data reporting frame is preconfigured with the corresponding relation between the elements and the data objects and prestores the information flow data of the useful program, and on the basis, the data reporting frame can automatically report the data generated when the application program runs by executing the data reporting method provided by any embodiment of the application.
In order to facilitate understanding of the method provided by the embodiment of the present application, the relationship between elements and events in the application program is described as follows:
applications typically include a plurality of different information streams, with each information stream including a plurality of elements upon which a user may perform operations to enable interaction between the user and the application. For example, in a "friend circle" information stream of WeChat software, a user nickname, a user avatar, text content, a picture, an endorse button, a comment button and the like are a plurality of elements of the information stream, when a user browses the "friend circle" information stream, the software is switched to a user information page corresponding to the clicked user nickname or user avatar when the user clicks any one of the two elements; when the user clicks the element of the praise button, praise or cancel praise on the corresponding information in the 'friend circle' page; when a user clicks an element of a comment button, the software pops up a comment input box (also an element), and the user can input text content in the element of the comment input box, so that comments are published on corresponding information in a 'friend circle' information stream.
Reporting events are the expressions of the user on the operation of the elements in the application program, and different types of reporting events are respectively corresponding to different operations of the user. For example, a user clicking on an element of an application appears to trigger a one-click event in the application, the user dragging the current information stream such that some elements of the information stream are displayed on the screen and others are removed from the screen, appearing to trigger an occurrence event and a disappearance event in the application.
It may be understood that the reporting event is triggered, that is, after the user performs the corresponding operation on a certain element, the reporting event is triggered by the element. Thus, when a reporting event in an application is triggered, the element that triggered the reporting event is referred to as the triggering element for the reporting event.
The parameters of the trigger event described in step S101 include an event identifier of the trigger event and a trigger element of the trigger event.
The event identifier of the reporting event is used for indicating the type of the reporting event, for example, if the reporting event is the click event, the corresponding event identifier is "click", and if the reporting event is the occurrence event, the corresponding event identifier is "occurrence".
It should be noted that, the parameters of the trigger event include the trigger element of the trigger event, which means that the parameters of the trigger event include the element identifier of the trigger element. It can be appreciated that each element in the application has a unique element identifier, and after obtaining an element identifier, an element in the application can be uniquely determined, so obtaining the element identifier of the trigger element is equivalent to obtaining the trigger element.
Specifically, the element identifier may be a character string.
S102, determining the data object corresponding to the triggering element of the triggering event according to the corresponding relation between the preconfigured element and the data object.
The corresponding relation between the elements in the application program and the data objects is configured by a developer through a UI object registration mode when the data reporting framework is established. Each element in the application corresponds to a unique one of the data objects.
Specifically, the correspondence between the elements and the data objects may be stored in the data reporting framework in the form of table 1 below.
TABLE 1
Based on table 1, the data reporting framework can directly find the data object corresponding to the element identifier according to the element identifier of the trigger element carried in the acquired parameter of the trigger event, and the data object corresponding to the element identifier of the trigger element is the data object of the trigger element.
S103, acquiring data of a data object from the pre-stored information stream data.
The information flow data is the data generated by each information flow when the application program runs, and the data are stored in the data reporting framework. Therefore, the data reporting framework can directly acquire the data of the data object from the information stream data after determining the data object corresponding to the trigger element.
The data object may be considered as a list in which a plurality of data categories are recorded, and the data of the data object is acquired from the information stream data stored in advance, and in fact, the data corresponding to the data category recorded in the data object is acquired from the information stream data.
Because different elements have different requirements in analyzing the use preference, and each element in the application program corresponds to some special scenes, the reporting requirements (namely, the data types of the data to be reported) of each element in the application program when the element is used as a trigger element are different. Therefore, when the data reporting framework is established, a corresponding data object can be configured for each element according to the reporting requirement of each element of the application program, and when the corresponding element is recorded in the data object as a position triggering element, the data category needing to be reported is recorded. Based on the above, the data reporting framework can acquire the data of the data category recorded in the data object from the information stream data according to the data object corresponding to the trigger element when a certain element in the application program is found as the trigger element to trigger the reporting event, and then report the acquired data.
It can be understood that when each element is used as a trigger element, the data category to be reported by the data reporting frame is predefined by a developer according to the requirement of analyzing the use preference and the special scene corresponding to the element when the data reporting frame is established. That is, the scheme provided by the application not only supports automatic acquisition of the data to be reported, but also supports the customization of the data category to be reported by a developer aiming at the scene of the element in the application program. Therefore, the method and the device can solve the problem of poor compatibility to special scenes caused by difficult customization of the reported data types by developers in the prior art.
In the method provided by the embodiment of the application, any plurality of data categories can be recorded in each data object, and all data categories in the application program can be recorded in the data object. Therefore, the data reporting method provided by the embodiment of the application can report the data of a plurality of data categories according to the reporting requirement of the trigger element, so that the analysis of the user use preference aiming at the reported data is more accurate.
Step S103 is described below in conjunction with two examples:
for example, the "friend circle" information flow of the WeChat includes an element of an ok button, and when the user clicks the ok button, the element is used as a trigger element to trigger a click event of the application program. In the usage preference analysis for WeChat, when the praise button is clicked, it is generally necessary to acquire information such as a user who clicked on the element (i.e., praise person), a publisher of information corresponding to the clicked praise button (i.e., praise person), a position in an information stream corresponding to the clicked praise button, and so on, therefore, a data object corresponding to the praise button can be represented in the form of the following Table 2:
TABLE 2
ID of current user
User ID of issuing praise information
Current location of praise information
The praise information is information corresponding to the clicked praise button. From the data corresponding to the data category shown in table 2, it is possible to analyze whether the actual intention of the current user to click the like button is like or cancel the information corresponding to the like button, and the information of the like tendency of the current user. Based on this information, an accurate analysis of the usage preferences can be further performed.
Secondly, if the current user browses information released by other users in the application program, the user head portrait displayed on the information flow is an element of the application program, and the user head portrait of the user corresponding to a certain piece of information is clicked (the user corresponding to the clicked user head portrait is marked as the clicked user), so that the user jumps to the user information interface of the clicked user, and the user head portrait of the clicked user is used as a trigger element to trigger a click event. For the element of the user head portrait, it is generally desired to analyze under what scene the current user will click on the user head portrait of the clicked user, so the data category "information content displayed on the current page" can be recorded in the data category corresponding to the element of the user head portrait.
On the basis, the data reporting framework can acquire all information contents which the current user can browse at the moment when the current user clicks the user head portrait of the clicked user, and according to the information contents, the user head portrait of the clicked user clicked by the current user in what scene can be analyzed.
Optionally, the application includes multiple information streams, and reporting requirements of elements in each information stream are generally greatly different. Therefore, in the data reporting framework, a corresponding event processor is generally configured for each information flow of the application program, when an element of the application program is used as a trigger element to trigger a reporting event, the information flow where the trigger element is located is first determined, and then the event processor corresponding to the information flow where the trigger element is located is called to execute the data acquisition from the information flow data described in step S103.
The correspondence between information flows and event handlers may be configured as shown in fig. 2. The information flow may be called a List, and the event handler may be called a listeeventcollector.
S104, reporting the event identification of the trigger event and the data of the data object of the trigger element.
The data of the data object of the trigger element is the data corresponding to the data category recorded in the data object of the trigger element acquired in step S103.
Alternatively, step S104 may be performed in the following specific implementation manner:
assembling event identification of a trigger event and data of a data object of a trigger element according to a preset message format to obtain an assembled message;
and reporting the assembled information.
The event identification of the trigger event and the assembly process of the data object of the trigger element comprise:
the event behavior field can be preset in the application program or can be configured by a developer when the data reporting frame is established, then the data of the data object of the trigger element is placed in the corresponding event behavior field, so that the assembled message is obtained, and finally the reporting interface of the bottom layer is called to report the assembled message.
The embodiment of the application provides a data reporting method, which comprises the steps of determining a data object corresponding to a trigger element of a reporting event according to a corresponding relation between a preconfigured element and the data object after acquiring parameters of the triggered reporting event in an application program, acquiring data of the data object from prestored information flow data, and reporting an identifier of the reporting event and data of the data object.
Based on the technical scheme provided by the application, on one hand, for any type of data to be reported, the data can be automatically reported when the corresponding element becomes the trigger element by configuring the data in the data object in advance. Therefore, the application effectively increases the types of the reported data, so that the user use preference analysis on the reported data is more accurate.
On the other hand, compared with the existing data reporting technology of manually embedding data reporting points, the number of elements in an application program is generally smaller than the number of data reporting points required to be embedded in the prior art, and data types contained in data objects corresponding to the elements in the application program are similar, so that the method for configuring the data objects for the elements in the application program provided by the embodiment can effectively reduce the burden of developers compared with the existing method of manually embedding the data reporting points.
In addition, different information flows in the application program generally have uniform actual application scenes. In the method provided by the embodiment, the corresponding data object is configured for each element, and the corresponding data is reported when any element is used as the trigger element, so that the data reporting behaviors of different information flows can be conveniently unified in one reporting scene, and the subsequent analysis of the data reported by the information flow behaviors is convenient.
In summary, the data reporting method provided by the embodiment of the application can reduce the burden of the developer and unify the reporting scene of the information flow in the application program while increasing the data category of the reported data.
Another embodiment of the present application provides a method for reporting data, please refer to fig. 3, the method includes the following steps:
s301, judging whether a reporting event is triggered in the application program.
The judgment in step S301 specifically includes the following two aspects:
on one hand, the general reporting event in the application program is monitored in real time, so that whether the general reporting event in the application program is triggered or not is judged.
On the other hand, whether the parameters of the triggered non-universal reporting event sent by the application program are received or not is judged.
If the judgment in any one of the above two aspects is yes, that is, if it is monitored that the general reporting event in the application program is triggered, or if it is judged that the parameter of the non-general reporting event triggered by the application program is received, it is judged that the triggered reporting event (i.e., triggering event) exists in the application program, and step S302 is executed.
If the judging results of the two aspects are no, judging that no reporting event in the application program is triggered, and continuing to execute the step S301 until judging that the reporting event in the application program is triggered.
Among the multiple reporting events of the application program, according to whether the reporting events can be directly monitored by the data reporting framework provided by the embodiment of the application, the reporting events are divided into a general reporting event and a non-general reporting event (also called as a custom reporting event).
The general reporting event can be monitored by the data reporting framework, so that the data reporting framework can judge whether the general reporting event is triggered or not in the application program by directly monitoring the general reporting event in the application program. The non-universal reporting event can not be directly monitored by the data reporting frame, but can only be monitored by the application program, and after the application program monitors that the non-universal reporting event is triggered, the application program can send the parameters of the triggered non-universal reporting event to the data reporting frame, so that the data reporting frame can judge whether the non-universal reporting event in the application program is triggered by judging whether the parameters of the triggered non-universal reporting event sent by the application program are received or not.
Specifically, the general reporting event of the information stream is generally a reporting event commonly found in the information stream, for example, an information stream exposure event, an exposure event of an element in the information stream, a click event of the element in the information stream, a jump event caused after the user clicks the element in the information stream, and the like. Wherein, for the information stream and the exposure event of the element in the information stream, the exposure time length of the information stream and the exposure time length of the element in the information stream are generally required to be reported.
The custom report event in the information flow refers to an event generated by a developer of the application program by customizing a buried point in the application program according to the requirement of analyzing the use preference of the user. Embedding a point at any position in the application program by the developer is equivalent to setting a custom reporting event at the position, and when the application program runs to the position, the corresponding custom reporting event is triggered. In the method provided by the embodiment of the application, a developer only needs to set a custom event at a required position, and the data to be reported when the custom event is triggered can be automatically supplemented by the data reporting framework provided by the embodiment of the application.
The specific method for monitoring the general reporting event by the data reporting framework is determined according to the operating system running the application program, and different operating systems respectively have different monitoring methods, for example, the methods of addOnChildAttachStateChangeListener, setOnHierarchyChangeListener and the like in the android operating system can be used for monitoring the occurrence event and the disappearance event of the element, and the accessibilitiyDelegate method of the android operating system can be used for monitoring the click event of the element. There are corresponding methods for listening in other operating systems, which are not listed here.
S302, determining the data object corresponding to the triggering element of the triggering event according to the corresponding relation between the preconfigured element and the data object.
If the trigger event is a generic report event, step S302 includes:
and acquiring an event identifier of the trigger event and an element identifier of the trigger element of the trigger event, and then determining a data object corresponding to the trigger element of the trigger event according to the corresponding relation between the preconfigured element and the data object.
If the trigger event is a non-generic report event, in combination with the aforementioned step S301, the step S302 is performed after receiving the parameter of the triggered non-generic report event, where the parameter of the triggered non-generic report event includes the event identifier of the trigger event and the element identifier of the trigger element, so that the step S302 may be performed directly according to the received parameter of the trigger event in the event that the trigger event is a non-generic report event.
S303, acquiring data of a data object from the pre-stored information stream data.
S304, calculating to obtain the general report data of the trigger element.
Alternatively, the execution order of step S303 and step S304 may be interchanged.
The general report data can be obtained by calculation according to the data stored in the information flow data.
Some elements and information flows of the application program have some general report data, such as exposure time of an element (i.e. time when a certain element is displayed on a display screen), exposure time of an information flow (i.e. time when a user browses a specific information flow), and the like, and the general report data are not directly stored in the pre-stored information flow data, so that in the occasion of needing to report the general report data of the trigger element, the general report data can be obtained according to data calculation in the information flow data.
For example, the exposure time of the trigger element cannot be directly obtained from the information flow data, but the time when the trigger element appears on the display screen (i.e., the appearance time) and the time when the trigger element disappears from the display screen (i.e., the disappearance time) are stored in the information flow data. When the exposure time of the trigger element is required to be reported, the appearance time and the disappearance time of the trigger element can be obtained from the information flow data, and the exposure time of the trigger element can be obtained by subtracting the appearance time from the disappearance time.
Similarly, the exposure time of the information stream can also be calculated by the method. When a user uses a certain application program, the time when the user starts to browse the information flow A is recorded as the appearance time of the information flow A, the time when the user switches from the information flow A to other information flows of the application program is recorded as the disappearance time of the information flow A, and the exposure time of the information flow A can be calculated according to the appearance time and the disappearance time of the information flow A.
The general report data, the identification of the report event and the data of the data object are reported together.
S305, reporting the event identification of the trigger event, the data of the data object of the trigger element and the general reporting data of the trigger element.
According to the data reporting method provided by the embodiment of the application, through the mode of monitoring the general reporting event and receiving the parameters of the non-general reporting event, corresponding data reporting can be automatically carried out when the general reporting event and the non-general reporting event of the application program are triggered, and the general reporting data of the trigger element can be obtained according to the data calculation in the information flow data, and the general reporting data is reported. Therefore, the embodiment of the application further increases the data category of the reported data.
In combination with the method for reporting information stream data provided in any embodiment of the present application, another embodiment of the present application provides an apparatus for reporting information stream data, please refer to fig. 4, the apparatus includes the following units:
the acquiring unit 401 is configured to acquire parameters of a triggered reporting event in an application program.
The parameters of the reporting event include: the identification of the reporting event and the triggering element of the reporting event.
The determining unit 402 is configured to determine, according to a correspondence between a preconfigured element and a data object, the data object corresponding to the trigger element of the reporting event.
And the reporting unit 403 is configured to obtain data of the data object from the pre-stored information stream data, and report the identifier of the reporting event and the data of the data object.
Optionally, the reporting unit 403 has a plurality of event handlers pre-established, each event handler corresponding to one of the information streams in the application. On this basis, the reporting unit 403 includes:
and the determining subunit is used for determining the information flow where the trigger element is located.
Wherein the application comprises a plurality of information streams, each of the information streams comprising a plurality of elements.
The triggering unit is used for triggering the event processor corresponding to the information flow where the triggering element is located, so that the event processor obtains the data of the data object from the pre-stored information flow data.
Optionally, the reporting unit further includes:
and the assembling unit is used for assembling the identification of the reporting event and the data of the data object according to a preset message format to obtain an assembled message, and reporting the assembled message.
After acquiring parameters of a reporting event triggered in an application program by an acquiring unit 401, a determining unit 402 determines, according to a correspondence between elements configured in advance and data objects, the data objects corresponding to the triggering elements of the reporting event, and then a reporting unit 403 acquires data of the data objects from pre-stored information stream data, and reports an identifier of the reporting event and data of the data objects. Based on the technical scheme provided by the application, for any type of data to be reported, the data can be automatically reported when the corresponding element becomes the trigger element by configuring the data in the data object in advance. Therefore, the application effectively increases the types of the reported data, so that the analysis of the use preference of the reported data is more accurate.
In addition, because the number of elements in the information flow of the application program is small and the actual application scene of each element is always, the data reporting device provided by the embodiment of the application can reduce the burden of a developer and unify the reporting scene in the information flow of the application program while increasing the data category of the reported data.
Still another embodiment of the present application provides an apparatus for reporting information stream data, referring to fig. 5, the apparatus includes the following units:
a monitoring unit 501, configured to monitor whether a generic reporting event of the application program is triggered; and if the monitored general reporting event is triggered, acquiring parameters of the triggered general reporting event.
A receiving unit 502, configured to receive a parameter of a triggered reporting event sent by the application program; the triggered reporting event is a non-universal reporting event, and the application program monitors that the non-universal reporting event is triggered.
The calculating unit 503 is configured to calculate general report data of the trigger element.
The trigger element is an element that triggers the aforementioned triggered reporting event.
A determining unit 504, configured to determine, when the monitoring unit 501 obtains a parameter of a triggered generic reporting event, or when the receiving unit 502 receives a parameter of a triggered non-generic reporting event sent by an application program, a data object corresponding to a triggering element of the reporting event according to a correspondence between a preconfigured element and the data object.
And the reporting unit 505 is configured to obtain data of the data object from the pre-stored information stream data, and report an event identifier of a triggered reporting event, data of the data object corresponding to the trigger element, and general reporting data of the trigger element.
According to the information flow data reporting device provided by the embodiment of the application, through the mode that the monitoring unit 501 monitors the general reporting event and the receiving unit 502 receives the parameters of the non-general reporting event, the corresponding data reporting can be automatically carried out when the general reporting event and the non-general reporting event of the application program are triggered, the calculating unit 503 can calculate the general reporting data of the trigger element according to the data in the information flow data, and the reporting unit 505 reports the general reporting data. Therefore, the embodiment of the application further increases the data category of the reported data.
Those skilled in the art will be able to make or use the application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the application. Thus, the present application is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (12)

1. A method for reporting information stream data, comprising:
acquiring parameters of a triggered reporting event in an application program; the parameters of the reporting event include: the identification of the reporting event and the triggering element of the reporting event indicate the type of the reporting event;
determining a data object corresponding to the triggering element of the reporting event according to the corresponding relation between the preconfigured element and the data object;
the method comprises the steps of obtaining data of a data object from prestored information flow data, and reporting identification of a reporting event and the data of the data object, wherein the information flow data are data generated by each information flow when an application program runs, the information flow data are stored in a data reporting frame, the data object is a list recorded with a plurality of data types, and the data of the data object obtained from the prestored information flow data refer to the data corresponding to the data types recorded in the data object obtained from the information flow data.
2. The method according to claim 1, wherein the obtaining parameters of the triggered reporting event in the application program includes:
monitoring whether a general reporting event of the application program is triggered;
and if the monitored general reporting event is triggered, acquiring parameters of the triggered general reporting event.
3. The method according to claim 1, wherein the obtaining parameters of the triggered reporting event in the application program includes:
receiving parameters of a triggered reporting event sent by the application program; the triggered reporting event is a non-universal reporting event, and the application program monitors that the non-universal reporting event is triggered.
4. The method of claim 1, wherein the obtaining the data of the data object from the pre-stored information stream data comprises:
determining the information flow of the trigger element; wherein the application comprises a plurality of information streams, each of the information streams comprising a plurality of elements;
triggering an event processor corresponding to the information flow where the trigger element is located, so that the event processor obtains the data of the data object from the pre-stored information flow data.
5. The method according to claim 1, wherein the triggered reporting event in the application program is a generic reporting event, and wherein before the acquiring the data of the data object from the pre-stored information stream data, further comprises:
calculating to obtain general report data of the trigger element;
and the universal reporting data, the identification of the reporting event and the data of the data object are reported together.
6. The method according to any one of claims 1 to 5, wherein said reporting the identity of the reporting event and the data of the data object comprises:
assembling the identification of the reporting event and the data of the data object according to a preset message format to obtain an assembled message;
and reporting the assembled information.
7. An apparatus for reporting information stream data, comprising:
the acquisition unit is used for acquiring parameters of the triggered reporting event in the application program; the parameters of the reporting event include: the identification of the reporting event and the triggering element of the reporting event indicate the type of the reporting event;
the determining unit is used for determining the data object corresponding to the triggering element of the reporting event according to the corresponding relation between the preconfigured element and the data object;
and the reporting unit is used for acquiring the data of the data object from the prestored information stream data, and reporting the identification of the reporting event and the data of the data object, wherein the information stream data is the data generated by each information stream when the application program runs, the information stream data is stored in a data reporting frame, the data object is a list recorded with a plurality of data types, and the data acquisition of the data object from the prestored information stream data refers to the acquisition of the data corresponding to the data types recorded in the data object from the information stream data.
8. The apparatus of claim 7, wherein the acquisition unit comprises:
the monitoring unit is used for monitoring whether the universal reporting event of the application program is triggered or not; and if the monitored general reporting event is triggered, acquiring parameters of the triggered general reporting event.
9. The apparatus of claim 7, wherein the acquisition unit comprises:
the receiving unit is used for receiving parameters of the triggered reporting event sent by the application program; the triggered reporting event is a non-universal reporting event, and the application program monitors that the non-universal reporting event is triggered.
10. The apparatus of claim 7, wherein the reporting unit comprises:
a determining subunit, configured to determine an information flow where the trigger element is located; wherein the application comprises a plurality of information streams, each of the information streams comprising a plurality of elements;
the triggering unit is used for triggering the event processor corresponding to the information flow where the triggering element is located, so that the event processor obtains the data of the data object from the pre-stored information flow data.
11. The apparatus of claim 7, wherein the apparatus further comprises:
the calculation unit is used for calculating and obtaining the general report data of the trigger element;
and the universal reporting data, the identification of the reporting event and the data of the data object are reported together.
12. The apparatus according to any one of claims 7 to 11, wherein the reporting unit further comprises:
the assembly unit is used for assembling the identification of the reporting event and the data of the data object according to a preset message format to obtain an assembled message; and reporting the assembled information.
CN201910749560.XA 2019-08-14 2019-08-14 Method and device for reporting information flow data Active CN112395173B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910749560.XA CN112395173B (en) 2019-08-14 2019-08-14 Method and device for reporting information flow data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910749560.XA CN112395173B (en) 2019-08-14 2019-08-14 Method and device for reporting information flow data

Publications (2)

Publication Number Publication Date
CN112395173A CN112395173A (en) 2021-02-23
CN112395173B true CN112395173B (en) 2023-10-13

Family

ID=74601357

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910749560.XA Active CN112395173B (en) 2019-08-14 2019-08-14 Method and device for reporting information flow data

Country Status (1)

Country Link
CN (1) CN112395173B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105610915A (en) * 2015-12-15 2016-05-25 深圳市慧动创想科技有限公司 Data reporting method and system
WO2017101606A1 (en) * 2015-12-15 2017-06-22 北京奇虎科技有限公司 System and method for collecting and analyzing data
CN108235308A (en) * 2017-12-27 2018-06-29 广东欧珀移动通信有限公司 data reporting method, device, mobile terminal and computer-readable medium
CN108810057A (en) * 2017-05-05 2018-11-13 腾讯科技(深圳)有限公司 Acquisition method, device and the storage medium of user behavior data
CN110096420A (en) * 2019-04-26 2019-08-06 上海上湖信息技术有限公司 A kind of data processing method, system and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105610915A (en) * 2015-12-15 2016-05-25 深圳市慧动创想科技有限公司 Data reporting method and system
WO2017101606A1 (en) * 2015-12-15 2017-06-22 北京奇虎科技有限公司 System and method for collecting and analyzing data
CN108810057A (en) * 2017-05-05 2018-11-13 腾讯科技(深圳)有限公司 Acquisition method, device and the storage medium of user behavior data
CN108235308A (en) * 2017-12-27 2018-06-29 广东欧珀移动通信有限公司 data reporting method, device, mobile terminal and computer-readable medium
CN110096420A (en) * 2019-04-26 2019-08-06 上海上湖信息技术有限公司 A kind of data processing method, system and device

Also Published As

Publication number Publication date
CN112395173A (en) 2021-02-23

Similar Documents

Publication Publication Date Title
US10719837B2 (en) Integrated tracking systems, engagement scoring, and third party interfaces for interactive presentations
US20170180909A1 (en) Cloud-Based Custom Metric/Timer Definitions and Real-Time Analytics of Mobile Applications
US9961129B2 (en) Business transaction correlation with client request monitoring data
US9390438B2 (en) Systems and methods for capturing and reporting metrics regarding user engagement including a canvas model
CN107045508B (en) Application program processing method and device
CN105637497A (en) Methods and systems for performance monitoring for mobile applications
CN109284102B (en) Information acquisition method and device
US20140136608A1 (en) Method, device and system for processing client environment data
CN105915599B (en) Interface display method and device
US10380867B2 (en) Alert management within a network based virtual collaborative space
CN114007088B (en) Live broadcast information processing method and device and electronic equipment
EP2731015B1 (en) Computer infrastructure performance system
US9338313B2 (en) Document management apparatus and document management system
EP3109810A1 (en) Electronic asset delivery and event tracking system
US9164746B2 (en) Automatic topology extraction and plotting with correlation to real time analytic data
CN112395173B (en) Method and device for reporting information flow data
CN112817817B (en) Buried point information query method, buried point information query device, computer equipment and storage medium
CN111581518A (en) Information pushing method and device
US20170034030A1 (en) Monitoring single content page application transitions
JP2017146740A (en) Operation support system, operation support program, and operation support method
US20150058074A1 (en) Changing depth of analytics tracking or content targeting based on user value
CN112187628B (en) Method and device for processing identification picture
JP6891426B2 (en) Information processing equipment, service systems and programs
JP2009259275A (en) Scenario generation device, and scenario generation program
CN111614972A (en) System message processing method and device for live application

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant