CN111741046A - Data reporting method, data acquisition method, device, equipment and medium - Google Patents

Data reporting method, data acquisition method, device, equipment and medium Download PDF

Info

Publication number
CN111741046A
CN111741046A CN201911082039.1A CN201911082039A CN111741046A CN 111741046 A CN111741046 A CN 111741046A CN 201911082039 A CN201911082039 A CN 201911082039A CN 111741046 A CN111741046 A CN 111741046A
Authority
CN
China
Prior art keywords
event
data
reporting
configuration information
trigger
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201911082039.1A
Other languages
Chinese (zh)
Other versions
CN111741046B (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.)
Beijing Jingdong Century Trading Co Ltd
Beijing Wodong Tianjun Information Technology Co Ltd
Original Assignee
Beijing Jingdong Century Trading Co Ltd
Beijing Wodong Tianjun Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Jingdong Century Trading Co Ltd, Beijing Wodong Tianjun Information Technology Co Ltd filed Critical Beijing Jingdong Century Trading Co Ltd
Priority to CN201911082039.1A priority Critical patent/CN111741046B/en
Publication of CN111741046A publication Critical patent/CN111741046A/en
Application granted granted Critical
Publication of CN111741046B publication Critical patent/CN111741046B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/535Tracking the activity of the user
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/2866Architectures; Arrangements
    • H04L67/30Profiles
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/34Network arrangements or protocols for supporting network services or applications involving the movement of software or configuration parameters 
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/60Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Hardware Design (AREA)
  • General Engineering & Computer Science (AREA)
  • Telephonic Communication Services (AREA)
  • Alarm Systems (AREA)

Abstract

The embodiment of the invention discloses a data reporting method, an acquisition method, a device, equipment and a medium, wherein the data reporting method comprises the following steps: receiving and storing event configuration information issued by a server; when a trigger event acting on a current page is detected, acquiring event information corresponding to the trigger event; judging whether the trigger event meets event reporting conditions or not according to the event information and the event configuration information; and if the trigger event meets the event reporting condition, acquiring the reported data corresponding to the trigger event, and reporting the reported data to a server. The data reporting method provided by the embodiment of the invention judges whether the trigger event needs to be reported or not according to the received event configuration information by receiving the event configuration information sent by the server, thereby realizing data reporting without buried points, improving the accuracy of statistical data and reducing the difficulty of system maintenance.

Description

Data reporting method, data acquisition method, device, equipment and medium
Technical Field
The present invention relates to the field of data processing, and in particular, to a data reporting method, an obtaining method, an apparatus, a device, and a medium.
Background
The embedded point is that certain information is collected in a specific process in the application of the client, the information is used for tracking the application use condition and obtaining the use habit of a user, so that the server further optimizes products according to the collected embedded point data or the embedded point data is used as the data support of operation. The current buried point data acquisition method comprises the following steps: the method comprises the steps that a developer sets a trigger code at a trigger point such as a button, a link or a page needing to be counted, and when a user behavior triggers the preset trigger code, the user behavior is reported.
In the process of implementing the invention, the inventor finds that at least the following technical problems exist in the prior art: when the number of trigger points needing to be buried is large, the development cost is correspondingly increased, and the development error rate is high, so that the statistical data accuracy is low, and the system is difficult to maintain.
Disclosure of Invention
Embodiments of the present invention provide a data reporting method, an obtaining method, an apparatus, a device, and a medium, so as to implement reporting of non-buried point data, improve accuracy of statistical data, and reduce difficulty of system maintenance.
In a first aspect, an embodiment of the present invention provides a data reporting method, including:
receiving and storing event configuration information issued by a server;
when a trigger event acting on a current page is detected, acquiring event information corresponding to the trigger event;
judging whether the trigger event meets event reporting conditions or not according to the event information and the event configuration information;
and if the trigger event meets the event reporting condition, acquiring the reported data corresponding to the trigger event, and reporting the reported data to a server.
In a second aspect, an embodiment of the present invention further provides a data obtaining method, including:
responding to a received configuration information acquisition request, and issuing event configuration information corresponding to the configuration information acquisition request to a client;
receiving reported data sent by a client, wherein the reported data is the reported data corresponding to a trigger event sent by the client when the client detects the trigger event acting on a current page and judges that the trigger event meets event reporting conditions according to event information corresponding to the trigger event and the event configuration information.
In a third aspect, an embodiment of the present invention further provides a data reporting apparatus, including:
the configuration information acquisition module is used for receiving and storing the event configuration information issued by the server;
the event information acquisition module is used for acquiring event information corresponding to a trigger event when the trigger event acting on the current page is detected;
a trigger event judging module, configured to judge whether the trigger event meets an event reporting condition according to the event information and the event configuration information;
and a reported data reporting module, configured to, if the trigger event meets an event reporting condition, obtain reported data corresponding to the trigger event, and report the reported data to a server.
In a fourth aspect, an embodiment of the present invention further provides a data obtaining apparatus, including:
the configuration information issuing module is used for responding to the received configuration information acquisition request and issuing the event configuration information corresponding to the configuration information acquisition request to the client;
a reporting data obtaining module, configured to receive reporting data sent by a client, where the reporting data is the reporting data corresponding to a trigger event sent by the client when the client detects the trigger event acting on a current page and determines, according to event information corresponding to the trigger event and the event configuration information, that the trigger event meets an event reporting condition.
In a fifth aspect, an embodiment of the present invention further provides a terminal device, where the terminal device includes:
one or more processors;
storage means for storing one or more programs;
when the one or more programs are executed by the one or more processors, the one or more processors implement the data reporting method according to the first aspect of the embodiment of the present invention, and/or implement the data acquisition method according to the second aspect of the embodiment of the present invention.
In a sixth aspect, an embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored, and when the computer program is executed by a processor, the method for reporting data according to the first aspect of the embodiment of the present invention is implemented, and/or the method for acquiring data according to the second aspect of the embodiment of the present invention is implemented.
The embodiment of the invention receives and stores the event configuration information issued by the server; when a trigger event acting on a current page is detected, acquiring event information corresponding to the trigger event; judging whether the trigger event meets event reporting conditions or not according to the event information and the event configuration information; if the trigger event accords with the event reporting condition, the reporting data corresponding to the trigger event is obtained and reported to the server, and whether the trigger event needs to be reported is judged according to the received event configuration information by receiving the event configuration information sent by the server, so that data reporting without buried points is realized, the accuracy of statistical data is improved, and the system maintenance difficulty is reduced.
Drawings
Fig. 1a is a flowchart of a data reporting method according to an embodiment of the present invention;
fig. 1b is a schematic diagram of a user operation path according to an embodiment of the present invention;
fig. 2a is a flowchart of a data acquisition method according to a second embodiment of the present invention;
FIG. 2b is a flowchart of data acquisition according to a second embodiment of the present invention;
fig. 3 is a schematic structural diagram of a data reporting apparatus according to a third embodiment of the present invention;
fig. 4 is a schematic structural diagram of a data acquisition apparatus according to a fourth embodiment of the present invention;
fig. 5 is a schematic structural diagram of a terminal device according to a fifth embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
Example one
Fig. 1a is a flowchart of a data reporting method according to an embodiment of the present invention. The embodiment can be applied to the situation when the user behavior data is reported to the server. The method may be executed by a data reporting apparatus, and the data reporting apparatus may be implemented in a software and/or hardware manner, for example, the data reporting apparatus may be configured in a terminal device. As shown in fig. 1, the method includes:
and S110, receiving and storing the event configuration information issued by the server.
The data reporting method provided by the embodiment of the invention can be used for acquiring the operation data generated when the user uses the application program and reporting the acquired operation data to the server, so that the server can perform data analysis according to the acquired operation data, thereby determining the user requirement or the user intention. When the data analysis requirements are different, the buried point data to be reported by the terminal equipment may be different. Illustratively, when the use frequency of a certain function needs to be analyzed, the terminal device may obtain click data of a control corresponding to the function and report the click data; when the advertising effect of a certain page needs to be analyzed, the terminal equipment can acquire and report the opening data of the page. In order to enable the data analysis requirements to be different, the acquisition of different buried point data can be realized without changing the original codes of the application programs, in this embodiment, the event configuration information is issued to the terminal device through the server, so that the terminal device can determine whether the detected event needs to be reported according to the event configuration information issued by the server.
Optionally, the event configuration information may be information such as a page, a control, and a click type that need to be reported. For example, the event configuration information may be described in a configuration sample. For example, a configuration sample may be: when a click event (Viewclick) occurs to a control (DecorView/… …/AppCompetatButton) in a page (MainActivity), data is taken out according to a path (this. context. demoList) and is attached to the click event for reporting. The main activity is an event reporting page, the DecorView/… …/AppCompatButton is an event reporting control, the ViewClick is an event reporting type, and the is.
Optionally, the event configuration information sent by the terminal device to the server may be: when the application program is started, the event configuration information is requested to be issued to the server, which may also be: when the application program is updated, it may request the server to issue the event configuration information, or: and requesting the server to issue event configuration information at regular time after the application program is started. In an embodiment of the present invention, when detecting that an application is started, a configuration information acquisition request is sent to a server, so that the server issues the event configuration information according to the configuration information acquisition request. Preferably, when detecting that the application program is started, sending a configuration information acquisition request to the server, and acquiring event configuration information sent by the server. When the application program is started, the server is requested to send the event configuration information, so that the frequency of sending the request to the server side can be reduced, and meanwhile, the data reporting strategy can be timely adjusted by the terminal equipment side when the data analysis requirement changes.
S120, when a trigger event acting on the current page is detected, acquiring event information corresponding to the trigger event.
In this embodiment, the trigger event of the page may be preset. For example, the trigger event acting on the current page may be that the user opens the current page, and/or that the user clicks a control in the current page, and/or that the user performs a page sliding operation in the current page. Assuming that the triggering event of the page is that the user performs a click operation on the control a in the current page, when the click operation on the control a by the user is detected, it is equivalent to detecting the triggering event acting on the current page. Fig. 1b is a schematic diagram of a user operation path according to an embodiment of the present invention. As shown in fig. 1b, the user operation path may be: page a → click control a1 → slide control a2 → click control A3; the user operation path may also be: page a → page B → click control B1 → long press control B2; the user operation path may also be: page a → page B → page N. It is understood that the above operations may all be trigger events of the page.
Optionally, after a trigger event acting on the current page is detected, event information corresponding to the trigger event is acquired. Optionally, the event information corresponding to the trigger event may be an event occurrence page, an event occurrence control, and an event type (e.g., double-click, single-click, long-press, slide, etc.) of the trigger event.
In an embodiment of the present invention, the acquiring event information corresponding to a trigger event when the trigger event acting on a current page is detected includes: when a trigger event acting on the current page is detected, triggering and executing a preset instrumentation code to call a buried point tool package and acquire event information corresponding to the trigger event returned by the buried point tool package.
Optionally, the code for calling the buried point toolkit may be inserted into the main code of the application program by means of instrumentation. Specifically, after the application program main code is developed, the instrumentation code is inserted into the application program main code in an instrumentation mode, and the application program main code into which the instrumentation code is inserted and the embedded point toolkit are packaged into a packaged file for a user to install. The instrumentation code is used for calling a buried point toolkit to acquire event information corresponding to the instrumentation trigger event when the instrumentation trigger event is detected. Alternatively, instrumentation code may be inserted in the application's main code by means of dynamic proxy replacement or static instrumentation. Inserting the instrumentation code in an instrumentation manner avoids the condition that developers manually add buried points in the main code of the application program, avoids code logic errors possibly caused by manual adding operation, and improves the stability of the system.
When the operation executed by the user triggers and executes the pre-inserted instrumentation code, the embedded point tool package is called, so that the event information corresponding to the trigger event is acquired through the embedded point tool package. The buried point toolkit can call a terminal equipment system interface to acquire event information corresponding to the trigger event. Taking the terminal device operating system as the android system as an example, the burial point toolkit can obtain different event information (such as an event occurrence page, an event occurrence control and the like) of the trigger event by calling different interfaces of the android system.
S130, judging whether the trigger event meets the event reporting condition or not according to the event information and the event configuration information.
In this embodiment, the event information of the trigger event is matched with the event configuration information, and whether the trigger event meets the event reporting condition is determined according to the matching result.
In an embodiment of the present invention, the event information includes an event occurrence page, an event occurrence control, and an event type, the event configuration information includes an event reporting page, an event reporting control, and an event reporting type, and the determining whether the trigger event meets an event reporting condition according to the event information and the event configuration information includes: judging whether the event occurrence page is matched with the event reporting page, judging whether the event occurrence control is matched with the event reporting control, and judging whether the event type is matched with the event reporting type; and if the event occurrence page is matched with the event reporting page, the event occurrence control is matched with the event reporting control, and the event type is matched with the event reporting type, judging that the triggering event meets the event reporting condition. The event type may be an event trigger manner, such as a single click, a double click, a long press, a slide, and the like. The matching of the event occurrence page and the event reporting page can be that the event occurrence page identification is the same as the event reporting page identification, the matching of the event occurrence control and the event reporting control can be that the event occurrence control identification is the same as the event reporting control identification, and the matching of the event type and the event reporting type can be that the event type identification is the same as the event reporting type identification.
On the basis of the scheme, other event configuration information except the event reporting page, the event reporting control and the event reporting type can be configured in advance so as to more accurately judge whether the trigger event needs to be reported. Optionally, information such as reporting control parameters (e.g., control width and control height), reporting event path, and the like may also be configured. And when the matching results are successful, judging that the triggering event accords with the event reporting condition and needs to be reported to the server.
S140, if the trigger event accords with the event reporting condition, acquiring the reported data corresponding to the trigger event, and reporting the reported data to a server.
When the trigger event meets the event reporting condition, the trigger event is reported to the server, the reporting data corresponding to the trigger event is obtained, and the reporting data is reported to the server. Optionally, the reporting data and the trigger event may be reported to the server together, so as to reduce the number of information interactions.
In an embodiment of the present invention, the acquiring the reported data corresponding to the trigger event includes: determining a data type corresponding to the reported data according to the event configuration information, acquiring target data corresponding to the data type from the event information and/or the event configuration information, and using the target data as the reported data. Optionally, different reported data to be reported may be determined according to different data analysis requirements. For example, if the server needs to count the number of clicks of a certain control, the control identifier may be reported as report data, and if the server needs to count the number of opens of a certain page, the page identifier may be reported as report data. In this embodiment, the data type (such as a control identifier, a page identifier, and the like) to be reported may be preset, and when the trigger event needs to be reported, the target data corresponding to the data type is obtained, and the obtained target data is reported as the reported data.
The embodiment of the invention receives and stores the event configuration information issued by the server; when a trigger event acting on a current page is detected, acquiring event information corresponding to the trigger event; judging whether the trigger event meets event reporting conditions or not according to the event information and the event configuration information; if the trigger event accords with the event reporting condition, the reporting data corresponding to the trigger event is obtained and reported to the server, and whether the trigger event needs to be reported is judged according to the received event configuration information by receiving the event configuration information sent by the server, so that data reporting without buried points is realized, the accuracy of statistical data is improved, and the system maintenance difficulty is reduced.
Example two
Fig. 2a is a flowchart of a data acquisition method according to a second embodiment of the present invention. The embodiment can be applied to the situation when the user behavior data reported by the client is received. The method may be performed by a data acquisition device, which may be implemented in software and/or hardware, for example, the data acquisition device may be configured in a terminal device. As shown in fig. 2a, the method comprises:
s210, responding to the received configuration information acquisition request, and issuing the event configuration information corresponding to the configuration information acquisition request to the client.
In this embodiment, the server stores the pre-configured event configuration information, and when receiving the configuration information acquisition request sent by the client, the server issues the stored event configuration information to the client, so that the client determines the reported data to be reported according to the event configuration information issued by the server.
In one embodiment of the present invention, the method further comprises: and receiving and storing the event configuration information sent by the user through the selection tool kit. In one embodiment, the event configuration information stored at the server side can be generated by the user through a circle selection tool kit. For example, a user may select an operation event to be reported on a selection tool, after the selection tool package detects that the user selection is completed, the selection tool package generates event configuration information according to the selection operation of the user, and sends the event configuration information to the server, and the server stores the event configuration information after receiving the event configuration information sent by the selection tool package, so as to send the event configuration information to the client when receiving a configuration information acquisition request sent by the client.
And S220, receiving the reported data sent by the client.
In this embodiment, the reported data is the reported data corresponding to the trigger event, which is sent by the client when the client detects the trigger event acting on the current page and when the trigger event is judged to meet the event reporting condition according to the event information corresponding to the trigger event and the event configuration information. After the event configuration information is sent to the client, the client determines whether the operation executed by the user needs to be reported according to the received event configuration information, acquires the reported data when the user operation needs to be reported, and sends the reported data to the server. After receiving the reported data sent by the client, the server can perform statistical analysis on the reported data, and display the analysis result through the data platform.
Fig. 2b is a data acquisition flowchart provided in the second embodiment of the present invention, and as shown in fig. 2b, a user performs service data configuration by using a circle selection toolkit, and the circle selection toolkit sends elements configured by the user, such as a page, a screenshot, and a button, to a data configuration server. When an application program is started, a data toolkit (namely, a buried point toolkit) sends a configuration data acquisition request to a data configuration server, the data configuration server receives the configuration data acquisition request and then sends the configuration data to the buried point toolkit, the buried point toolkit obtains reported data according to the configuration data and then reports the reported data to a data collection server, and finally, data analysis and statistics are carried out according to the data collected by the data collection server and the data configured by the data configuration server, and the analysis and statistics results are displayed through a data platform.
The embodiment of the invention responds to the received configuration information acquisition request and issues the event configuration information corresponding to the configuration information acquisition request to the client; the reporting data sent by the client is received, and the event configuration information is issued, so that the client judges whether the trigger event needs to be reported according to the received event configuration information, thereby realizing the data reporting without buried points, improving the accuracy of statistical data and reducing the system maintenance difficulty.
EXAMPLE III
Fig. 3 is a schematic structural diagram of a data reporting apparatus according to a third embodiment of the present invention. The data reporting apparatus may be implemented in a software and/or hardware manner, for example, the data reporting apparatus may be configured in a terminal device. As shown in fig. 3, the apparatus includes a configuration information obtaining module 310, an event information obtaining module 320, a trigger event determining module 330, and a reported data reporting module 330, where:
the configuration information obtaining module 310 is configured to receive and store event configuration information issued by a server;
an event information obtaining module 320, configured to, when a trigger event acting on a current page is detected, obtain event information corresponding to the trigger event;
a trigger event determining module 330, configured to determine whether the trigger event meets an event reporting condition according to the event information and the event configuration information;
a reported data reporting module 340, configured to, if the trigger event meets the event reporting condition, obtain reported data corresponding to the trigger event, and report the reported data to a server.
The embodiment of the invention receives and stores the event configuration information issued by the server through the configuration information acquisition module; the method comprises the steps that when a trigger event acting on a current page is detected, an event information acquisition module acquires event information corresponding to the trigger event; the trigger event judging module judges whether the trigger event accords with event reporting conditions or not according to the event information and the event configuration information; if the trigger event accords with the event reporting condition, the reported data reporting module acquires the reported data corresponding to the trigger event and reports the reported data to the server, and whether the trigger event needs to be reported is judged according to the received event configuration information by receiving the event configuration information sent by the server, so that data reporting without buried points is realized, the accuracy of statistical data is improved, and the system maintenance difficulty is reduced.
Optionally, on the basis of the foregoing scheme, the event information includes an event occurrence page, an event occurrence control, and an event type, the event configuration information includes an event reporting page, an event reporting control, and an event reporting type, and the trigger event determining module 330 is specifically configured to:
judging whether the event occurrence page is matched with the event reporting page, judging whether the event occurrence control is matched with the event reporting control, and judging whether the event type is matched with the event reporting type;
and if the event occurrence page is matched with a preset event reporting page, the event occurrence control is matched with a preset event reporting control, and the event type is matched with a preset event reporting type, judging that the trigger event meets the event reporting condition.
Optionally, on the basis of the above scheme, the event information obtaining module 320 is specifically configured to:
when a trigger event acting on the current page is detected, triggering and executing a preset instrumentation code to call a buried point tool package and acquire event information corresponding to the trigger event returned by the buried point tool package.
Optionally, on the basis of the above scheme, the reported data reporting module 340 is specifically configured to:
determining a data type corresponding to the reported data according to the event configuration information, acquiring target data corresponding to the data type from the event information and/or the event configuration information, and using the target data as the reported data.
Optionally, on the basis of the above scheme, the apparatus further includes:
and the information acquisition request module is used for sending a configuration information acquisition request to the server when detecting that the application program is started, so that the server issues the event configuration information according to the configuration information acquisition request.
The data reporting device provided by the embodiment of the invention can execute the data reporting method provided by any embodiment of the invention, and has the corresponding functional modules and beneficial effects of the execution method.
Example four
Fig. 4 is a schematic structural diagram of a data acquisition apparatus according to a fourth embodiment of the present invention. The data acquisition means may be implemented in software and/or hardware, for example, the data acquisition means may be configured in a terminal device. As shown in fig. 4, the apparatus includes a configuration information issuing module 410 and a reported data acquiring module 420, where:
a configuration information issuing module 410, configured to respond to a received configuration information acquisition request, and issue event configuration information corresponding to the configuration information acquisition request to a client;
a reported data obtaining module 420, configured to receive reported data sent by a client, where the reported data is the reported data corresponding to a trigger event sent by the client when the client detects the trigger event acting on a current page and determines, according to event information corresponding to the trigger event and the event configuration information, that the trigger event meets an event reporting condition.
The embodiment of the invention responds to the received configuration information acquisition request through a configuration information issuing module and issues the event configuration information corresponding to the configuration information acquisition request to a client; the reported data acquisition module receives reported data sent by the client, and the client judges whether the trigger event needs to be reported according to the received event configuration information by issuing the event configuration information, so that data reporting without buried points is realized, the accuracy of statistical data is improved, and the system maintenance difficulty is reduced.
Optionally, on the basis of the above scheme, the apparatus further includes:
and the configuration information receiving module is used for receiving and storing the event configuration information sent by the user through the selection tool kit.
The data acquisition device provided by the embodiment of the invention can execute the data reporting method provided by any embodiment of the invention, and has the corresponding functional modules and beneficial effects of the execution method.
EXAMPLE five
Fig. 5 is a schematic structural diagram of a terminal device according to a fifth embodiment of the present invention. Fig. 5 illustrates a block diagram of an exemplary terminal device 512 suitable for use in implementing embodiments of the present invention. The terminal device 512 shown in fig. 5 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present invention.
As shown in fig. 5, terminal device 512 is embodied in the form of a general purpose computing device. Components of terminal device 512 may include, but are not limited to: one or more processors 516, a system memory 528, and a bus 518 that couples the various system components including the system memory 528 and the processors 516.
Bus 518 represents one or more of any of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, and processor 516, or a local bus using any of a variety of bus architectures. By way of example, such architectures include, but are not limited to, Industry Standard Architecture (ISA) bus, micro-channel architecture (MAC) bus, enhanced ISA bus, Video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnect (PCI) bus.
Terminal device 512 typically includes a variety of computer system readable media. Such media can be any available media that is accessible by terminal device 512 and includes both volatile and nonvolatile media, removable and non-removable media.
The system memory 528 may include computer system readable media in the form of volatile memory, such as Random Access Memory (RAM)530 and/or cache memory 532. The terminal device 512 may further include other removable/non-removable, volatile/nonvolatile computer system storage media. By way of example only, storage 534 may be used to read from and write to non-removable, nonvolatile magnetic media (not shown in FIG. 5, and commonly referred to as a "hard drive"). Although not shown in FIG. 5, a magnetic disk drive for reading from and writing to a removable, nonvolatile magnetic disk (e.g., a "floppy disk") and an optical disk drive for reading from or writing to a removable, nonvolatile optical disk (e.g., a CD-ROM, DVD-ROM, or other optical media) may be provided. In these cases, each drive may be connected to bus 518 through one or more data media interfaces. Memory 528 may include at least one program product having a set (e.g., at least one) of program modules that are configured to carry out the functions of embodiments of the invention.
A program/utility 540 having a set (at least one) of program modules 542, including but not limited to an operating system, one or more application programs, other program modules, and program data, may be stored in, for example, the memory 528, each of which examples or some combination may include an implementation of a network environment. The program modules 542 generally perform the functions and/or methods of the described embodiments of the invention.
The terminal device 512 may also communicate with one or more external devices 514 (e.g., keyboard, pointing device, display 524, etc.), with one or more devices that enable a user to interact with the terminal device 512, and/or with any devices (e.g., network card, modem, etc.) that enable the terminal device 512 to communicate with one or more other computing devices. Such communication may occur via input/output (I/O) interfaces 522. Also, the terminal device 512 may communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network, such as the internet) via the network adapter 520. As shown, the network adapter 520 communicates with the other modules of the terminal device 512 via a bus 518. It should be appreciated that although not shown, other hardware and/or software modules may be used in conjunction with the terminal device 512, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, among others.
The processor 516 executes various functional applications and data processing by running the program stored in the system memory 528, for example, implementing the data reporting method provided by the embodiment of the present invention, the method includes:
receiving and storing event configuration information issued by a server;
when a trigger event acting on a current page is detected, acquiring event information corresponding to the trigger event;
judging whether the trigger event meets event reporting conditions or not according to the event information and the event configuration information;
if the trigger event accords with the event reporting condition, acquiring the reported data corresponding to the trigger event, and reporting the reported data to a server;
and/or, implementing the data acquisition method provided by the embodiment of the invention, the method includes:
responding to a received configuration information acquisition request, and issuing event configuration information corresponding to the configuration information acquisition request to a client;
receiving reported data sent by a client, wherein the reported data is the reported data corresponding to a trigger event sent by the client when the client detects the trigger event acting on a current page and judges that the trigger event meets event reporting conditions according to event information corresponding to the trigger event and the event configuration information.
Of course, those skilled in the art can understand that the processor may also implement the data reporting method provided in any embodiment of the present invention and/or the technical solution of the data obtaining method provided in any embodiment of the present invention.
EXAMPLE six
The sixth embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored, and when the computer program is executed by a processor, the method for reporting data provided in the sixth embodiment of the present invention is implemented, where the method includes:
receiving and storing event configuration information issued by a server;
when a trigger event acting on a current page is detected, acquiring event information corresponding to the trigger event;
judging whether the trigger event meets event reporting conditions or not according to the event information and the event configuration information;
if the trigger event accords with the event reporting condition, acquiring the reported data corresponding to the trigger event, and reporting the reported data to a server;
and/or, implementing the data acquisition method provided by the embodiment of the invention, the method includes:
responding to a received configuration information acquisition request, and issuing event configuration information corresponding to the configuration information acquisition request to a client;
receiving reported data sent by a client, wherein the reported data is the reported data corresponding to a trigger event sent by the client when the client detects the trigger event acting on a current page and judges that the trigger event meets event reporting conditions according to event information corresponding to the trigger event and the event configuration information.
Of course, the computer program stored on the computer-readable storage medium provided in the embodiment of the present invention is not limited to the method operations described above, and may also perform the data reporting method provided in any embodiment of the present invention and/or the related operations of the data acquisition method provided in any embodiment of the present invention.
Computer storage media for embodiments of the invention may employ any combination of one or more computer-readable media. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
A computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations for aspects of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (11)

1. A data reporting method is characterized by comprising the following steps:
receiving and storing event configuration information issued by a server;
when a trigger event acting on a current page is detected, acquiring event information corresponding to the trigger event;
judging whether the trigger event meets event reporting conditions or not according to the event information and the event configuration information;
and if the trigger event meets the event reporting condition, acquiring the reported data corresponding to the trigger event, and reporting the reported data to a server.
2. The method of claim 1, wherein the event information includes an event occurrence page, an event occurrence control, and an event type, the event configuration information includes an event reporting page, an event reporting control, and an event reporting type, and the determining whether the trigger event meets an event reporting condition according to the event information and the event configuration information includes:
judging whether the event occurrence page is matched with the event reporting page, judging whether the event occurrence control is matched with the event reporting control, and judging whether the event type is matched with the event reporting type;
and if the event occurrence page is matched with the event reporting page, the event occurrence control is matched with the event reporting control, and the event type is matched with the event reporting type, judging that the triggering event meets the event reporting condition.
3. The method according to claim 1, wherein the obtaining event information corresponding to a trigger event when the trigger event acting on a current page is detected comprises:
when a trigger event acting on the current page is detected, triggering and executing a preset instrumentation code to call a buried point tool package and acquire event information corresponding to the trigger event returned by the buried point tool package.
4. The method of claim 1, wherein the obtaining the reported data corresponding to the trigger event comprises:
determining a data type corresponding to the reported data according to the event configuration information, acquiring target data corresponding to the data type from the event information and/or the event configuration information, and using the target data as the reported data.
5. The method of claim 1, further comprising:
when detecting that the application program is started, sending a configuration information acquisition request to the server so that the server issues the event configuration information according to the configuration information acquisition request.
6. A method of data acquisition, comprising:
responding to a received configuration information acquisition request, and issuing event configuration information corresponding to the configuration information acquisition request to a client;
receiving reported data sent by a client, wherein the reported data is the reported data corresponding to a trigger event sent by the client when the client detects the trigger event acting on a current page and judges that the trigger event meets event reporting conditions according to event information corresponding to the trigger event and the event configuration information.
7. The method of claim 6, further comprising:
and receiving and storing the event configuration information sent by the user through the selection tool kit.
8. A data reporting apparatus, comprising:
the configuration information acquisition module is used for receiving and storing the event configuration information issued by the server;
the event information acquisition module is used for acquiring event information corresponding to a trigger event when the trigger event acting on the current page is detected;
a trigger event judging module, configured to judge whether the trigger event meets an event reporting condition according to the event information and the event configuration information;
and a reported data reporting module, configured to, if the trigger event meets an event reporting condition, obtain reported data corresponding to the trigger event, and report the reported data to a server.
9. A data acquisition apparatus, comprising:
the configuration information issuing module is used for responding to the received configuration information acquisition request and issuing the event configuration information corresponding to the configuration information acquisition request to the client;
a reporting data obtaining module, configured to receive reporting data sent by a client, where the reporting data is the reporting data corresponding to a trigger event sent by the client when the client detects the trigger event acting on a current page and determines, according to event information corresponding to the trigger event and the event configuration information, that the trigger event meets an event reporting condition.
10. A terminal device, characterized in that the device comprises:
one or more processors;
storage means for storing one or more programs;
when executed by the one or more processors, cause the one or more processors to implement the data reporting method of any one of claims 1-5 and/or implement the data acquisition method of any one of claims 6-7.
11. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out a data reporting method as claimed in any one of claims 1 to 5, and/or carries out a data acquisition method as claimed in any one of claims 6 to 7.
CN201911082039.1A 2019-11-07 2019-11-07 Data reporting method, data acquisition method, device, equipment and medium Active CN111741046B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911082039.1A CN111741046B (en) 2019-11-07 2019-11-07 Data reporting method, data acquisition method, device, equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911082039.1A CN111741046B (en) 2019-11-07 2019-11-07 Data reporting method, data acquisition method, device, equipment and medium

Publications (2)

Publication Number Publication Date
CN111741046A true CN111741046A (en) 2020-10-02
CN111741046B CN111741046B (en) 2023-01-31

Family

ID=72646182

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911082039.1A Active CN111741046B (en) 2019-11-07 2019-11-07 Data reporting method, data acquisition method, device, equipment and medium

Country Status (1)

Country Link
CN (1) CN111741046B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112487325A (en) * 2020-11-25 2021-03-12 北京字节跳动网络技术有限公司 Data processing method and device, readable medium and electronic equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108038053A (en) * 2017-11-29 2018-05-15 上海恺英网络科技有限公司 A kind of dynamic configuration buries method and apparatus a little
CN109255093A (en) * 2018-10-24 2019-01-22 北京三快在线科技有限公司 Behavioral data processing method, device, electronic equipment and computer-readable medium
WO2019128392A1 (en) * 2017-12-29 2019-07-04 北京三快在线科技有限公司 Method and apparatus for extracting service field, and electronic device and storage medium

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108038053A (en) * 2017-11-29 2018-05-15 上海恺英网络科技有限公司 A kind of dynamic configuration buries method and apparatus a little
WO2019128392A1 (en) * 2017-12-29 2019-07-04 北京三快在线科技有限公司 Method and apparatus for extracting service field, and electronic device and storage medium
CN109255093A (en) * 2018-10-24 2019-01-22 北京三快在线科技有限公司 Behavioral data processing method, device, electronic equipment and computer-readable medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112487325A (en) * 2020-11-25 2021-03-12 北京字节跳动网络技术有限公司 Data processing method and device, readable medium and electronic equipment

Also Published As

Publication number Publication date
CN111741046B (en) 2023-01-31

Similar Documents

Publication Publication Date Title
CN111083225A (en) Data processing method and device in Internet of things platform and Internet of things platform
CN111796978B (en) Interface detection method, device, system, equipment and storage medium
CN110287146B (en) Method, device and computer storage medium for downloading application
CN110134869B (en) Information pushing method, device, equipment and storage medium
CN109218393B (en) Push implementation method, device, equipment and computer storage medium
CN111917603A (en) Client test method and device, computer equipment and storage medium
CN110825731A (en) Data storage method and device, electronic equipment and storage medium
CN110955640A (en) Cross-system data file processing method, device, server and storage medium
CN112817831A (en) Application performance monitoring method, device, computer system and readable storage medium
CN112306833A (en) Application program crash statistical method and device, computer equipment and storage medium
CN111046245A (en) Multi-source heterogeneous data source fusion calculation method, system, equipment and storage medium
CN109299124B (en) Method and apparatus for updating a model
CN110990346A (en) File data processing method, device, equipment and storage medium based on block chain
CN113238815B (en) Interface access control method, device, equipment and storage medium
CN110781063A (en) Method, device and equipment for measuring first screen time of webpage and storage medium
US10432490B2 (en) Monitoring single content page application transitions
CN111741046B (en) Data reporting method, data acquisition method, device, equipment and medium
CN111124627B (en) Method and device for determining call initiator of application program, terminal and storage medium
CN109669875B (en) Application crash test method and device, electronic equipment and storage medium
CN107168776B (en) Event statistical method, device, equipment and storage medium
CN115756934A (en) Application crash analysis method and device
CN111427874B (en) Quality control method and device for medical data production and electronic equipment
CN113760317A (en) Page display method, device, equipment and storage medium
CN113656391A (en) Data detection method and device, storage medium and electronic equipment
CN109756393B (en) Information processing method, system, medium, and computing device

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