CN109947635B - Data reporting method, device, storage medium and terminal equipment - Google Patents

Data reporting method, device, storage medium and terminal equipment Download PDF

Info

Publication number
CN109947635B
CN109947635B CN201910204294.2A CN201910204294A CN109947635B CN 109947635 B CN109947635 B CN 109947635B CN 201910204294 A CN201910204294 A CN 201910204294A CN 109947635 B CN109947635 B CN 109947635B
Authority
CN
China
Prior art keywords
data
target application
information
application program
data information
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
CN201910204294.2A
Other languages
Chinese (zh)
Other versions
CN109947635A (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.)
Suzhou Yige Network Technology Co Ltd
Original Assignee
Suzhou Yige Network 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 Suzhou Yige Network Technology Co Ltd filed Critical Suzhou Yige Network Technology Co Ltd
Priority to CN201910204294.2A priority Critical patent/CN109947635B/en
Publication of CN109947635A publication Critical patent/CN109947635A/en
Application granted granted Critical
Publication of CN109947635B publication Critical patent/CN109947635B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Stored Programmes (AREA)
  • Storage Device Security (AREA)

Abstract

The embodiment of the invention discloses a data reporting method, a data reporting device, a storage medium and terminal equipment. The data reporting method comprises the following steps: acquiring configuration information of a currently opened page of a target application program; writing the configuration information into the context of the currently opened page; acquiring data information corresponding to a user operation behavior, and retrieving in configuration information in the context based on the data information; and determining whether to report the data information corresponding to the user operation behavior based on the retrieval result. By adopting the technical scheme, the technical problems that a large number of codes are arranged to bury points, so that data acquisition is time-consuming and labor-consuming and maintainability is poor are solved, the workload of code burying points can be effectively reduced, and the flexibility of data acquisition is improved.

Description

Data reporting method, device, storage medium and terminal equipment
Technical Field
The embodiment of the invention relates to the technical field of communication, in particular to a data reporting method, a data reporting device, a storage medium and terminal equipment.
Background
With the rapid development of the internet industry, the intelligent terminal is popularized more and more quickly, and the functions of the intelligent terminal are more and more abundant. The intelligent terminal realizes functions by installing various Application programs (APP) and provides diversified services.
In order to improve the service quality of the APP, developers of the APPs need to collect relevant data of the APPs to know business requirements. The related data of the APP mainly comprises user behavior data generated when a user operates the APP, and valuable information such as user access information, similar user groups, frequent access paths and contents can be mined through the user behavior data.
Currently, a third-generation data acquisition platform (such as hundred degree statistics and alliance) is generally used for realizing data acquisition of the APP. The third-party data acquisition platform mainly integrates a Software Development Kit (SDK) which is specially responsible for data acquisition and is matched with a code embedding point for data acquisition. The code is buried and points need to be in the APP development process, an APP developer manually adds codes in click codes (each data acquisition point) of specified controls such as buttons, the added codes can be triggered when the user clicks the controls in the APP using process, and therefore behavior data of the user is acquired. However, for large projects or projects in later development, the data acquisition mode is time-consuming and labor-consuming, and has poor maintainability.
Disclosure of Invention
Embodiments of the present invention provide a data reporting method, an apparatus, a storage medium, and a terminal device, which can effectively improve flexibility of data acquisition and reduce workload of code embedding.
In a first aspect, an embodiment of the present invention provides a data reporting method, including:
acquiring configuration information of a currently opened page of a target application program;
writing the configuration information into the context of the currently opened page;
acquiring data information corresponding to a user operation behavior, and retrieving in configuration information in the context based on the data information;
and determining whether to report the data information corresponding to the user operation behavior based on the retrieval result.
Further, determining whether to report the data information corresponding to the user operation behavior based on the retrieval result includes:
when information matched with the data information is retrieved from the configuration information in the context, reporting the data information corresponding to the user operation behavior;
and deleting the data information corresponding to the user operation behavior when the information matched with the data information is not retrieved in the configuration information in the context.
Further, acquiring data information corresponding to the user operation behavior includes:
and when detecting that the touch Touchable assembly in the react-native frame is clicked, acquiring data information corresponding to the user operation behavior.
Further, before obtaining the configuration information of the currently opened page of the target application, the method further includes:
when the target application program is started, acquiring a configuration file corresponding to the target application program;
acquiring configuration information of a currently opened page of a target application program, wherein the configuration information comprises the following steps:
when a target application program opens a page, acquiring identification information of the currently opened page of the target application program;
and determining the configuration information of the currently opened page of the target application program according to the identification information and the configuration file.
Further, the method also comprises the following steps:
acquiring operation data of a user on the target application program;
retrieving in a configuration file corresponding to the target application program according to the operation data;
and when the configuration data matched with the operation data is retrieved from the configuration file, reporting the operation data.
Further, a configuration file corresponding to the target application program is integrated in a reactive-native framework, wherein the configuration file includes data information that the target application program needs to acquire.
Further, the data information corresponding to the user operation behavior includes at least one of click operation data information, interface request data information, and page rendering data information.
In a second aspect, an embodiment of the present invention further provides a data reporting apparatus, including:
the configuration information acquisition module is used for acquiring the configuration information of the currently opened page of the target application program;
a configuration information writing module, configured to write the configuration information into the context of the currently opened page;
the data information acquisition module is used for acquiring data information corresponding to the user operation behavior and retrieving in the configuration information in the context based on the data information;
and the data information reporting module is used for determining whether to report the data information corresponding to the user operation behavior based on the retrieval result.
In a third aspect, an embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the data reporting method according to the first aspect of the embodiment of the present invention.
In a fourth aspect, an embodiment of the present invention provides a terminal device, including:
one or more processors;
a memory 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.
According to the data reporting scheme provided by the embodiment of the invention, the configuration information of the currently opened page of the target application program is acquired; writing the configuration information into the context of the currently opened page; acquiring data information corresponding to a user operation behavior, and retrieving in configuration information in the context based on the data information; and determining whether to report the data information corresponding to the user operation behavior based on the retrieval result. By adopting the technical scheme, the technical problems that a large number of codes are arranged to bury points, so that data acquisition is time-consuming and labor-consuming and maintainability is poor are solved, the workload of code burying points can be effectively reduced, and the flexibility of data acquisition is improved.
Drawings
Fig. 1 is a schematic flowchart of a data reporting method according to an embodiment of the present invention;
fig. 2 is a flowchart illustrating a data reporting method according to a second embodiment of the present invention;
fig. 3 is a flowchart illustrating a data reporting method according to a third embodiment of the present invention;
fig. 4 is a schematic structural diagram of a data reporting apparatus according to a fourth embodiment of the present invention;
fig. 5 is a schematic structural diagram of a terminal device according to a sixth 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.
Before discussing exemplary embodiments in more detail, it should be noted that some exemplary embodiments are described as processes or methods depicted as flowcharts. Although a flowchart may describe the steps as a sequential process, many of the steps can be performed in parallel, concurrently or simultaneously. In addition, the order of the steps may be rearranged. The process may be terminated when its operations are completed, but may have additional steps not included in the figure. The processes may correspond to methods, functions, procedures, subroutines, and the like.
Example one
Fig. 1 is a schematic flow chart of a data reporting method according to an embodiment of the present invention, where the method is applicable to reporting data associated with a target application, and can be executed by a data reporting apparatus, where the apparatus can be implemented by software and/or hardware, and can be generally integrated in a terminal device. As shown in fig. 1, the method includes:
step 101, obtaining configuration information of a currently opened page of a target application program.
Illustratively, the terminal device in the embodiment of the present invention may include a mobile phone, a tablet computer, a notebook computer, a computer, and other electronic devices with computer processing capabilities.
In the embodiment of the present invention, configuration information of a currently opened page of a target application program is obtained, where the target application program may include a currently started application program, and the configuration information may be understood as configuration information of the currently opened page of the target application program. The configuration information contains data information required to be acquired by the currently opened page of the target application program, and can also be understood as the configuration information comprises acquisition conditions for limiting user behavior data, and the user behavior data associated with the currently opened page of the target application program can be selectively acquired according to the configuration information, that is, the reasonable acquisition of the user behavior data associated with the currently opened page of the target application program can be effectively controlled according to the configuration information.
Optionally, when the target application program opens the page, the configuration information of the currently opened page of the target application program is acquired from the background server. The method has the advantages that the configuration information of the currently opened page can be acquired when the target application program opens a certain page, so that whether the data corresponding to the user behavior is acquired or reported can be determined quickly according to the configuration information of the currently opened page, and the missing acquisition and reporting of some necessary user behavior data are avoided.
And 102, writing the configuration information into the context of the current open page.
In the embodiment of the application, the configuration information of the currently opened page of the target application program is written into the context of the currently opened page, so that the configuration information of the currently opened page is stored in the context. Through the above operation, not only the configuration information of the currently opened page but also the configuration information of a page (such as a previous page or a next page) which is related to the currently opened page above and below can be included in the context.
And 103, acquiring data information corresponding to the user operation behavior, and retrieving in the configuration information in the context based on the data information.
In the embodiment of the invention, data information corresponding to a user operation behavior is acquired, wherein the data information corresponding to the user operation behavior comprises at least one of click operation data information, interface request data information and page rendering data information. For example, the user operation behavior may be understood as all actions performed by the user after opening the target application, such as logging in an account, searching content, browsing a page, making a statement, and the like. Retrieving in the configuration information in the context based on the data information corresponding to the user operation behavior data, that is, retrieving whether information matched with the data information corresponding to the user operation behavior exists in the configuration information of the context, that is, determining whether the acquired data information corresponding to the user operation behavior is the data information required to be acquired by opening the page currently according to the configuration information in the context.
Optionally, the obtaining data information corresponding to the user operation behavior includes: and when detecting that the touch Touchable assembly in the react-native frame is clicked, acquiring data information corresponding to the user operation behavior. Illustratively, a touch touchable component in a react-native framework is modified, when the touch-native component is detected to be triggered, if it is required to judge whether data information corresponding to a user operation behavior is a data item which needs to be acquired when a currently opened page is opened, the data information corresponding to the user operation behavior is acquired, and retrieval is performed in configuration information in context based on the data information, so as to further judge whether to report the data information. It can be understood that the touch desktop component is arranged in the exact-native framework, and the configuration information is written into the context of the currently opened page, so that the work of manually setting code embedding points at each data acquisition point by an APP developer in the prior art can be effectively replaced, the effective data acquisition is more flexible, and the maintainability of the data acquisition is enhanced.
And step 104, determining whether to report the data information corresponding to the user operation behavior based on the retrieval result.
Optionally, determining whether to report the data information corresponding to the user operation behavior based on the search result includes: when information matched with the data information is retrieved from the configuration information in the context, reporting the data information corresponding to the user operation behavior; and deleting the data information corresponding to the user operation behavior when the information matched with the data information is not retrieved in the configuration information in the context. Illustratively, when information matched with data information corresponding to a user operation behavior is retrieved from configuration information in context, and it is described that the acquired data information corresponding to the user operation behavior is data information to be acquired when a currently opened page is opened, the data information corresponding to the user operation behavior is reported, for example, to a back-end server corresponding to the target application program, so that a developer of the target application program can perform later analysis and research. When the information matched with the data information corresponding to the user operation behavior is not retrieved from the configuration information in the context, which indicates that the acquired data information corresponding to the user operation behavior is not the data information required to be acquired by opening the page at present, the data information corresponding to the user operation behavior can be directly discarded or deleted, and unnecessary redundant data contained in the reported user behavior data can be effectively avoided.
The data reporting method provided by the embodiment of the invention obtains the configuration information of the currently opened page of the target application program; writing the configuration information into the context of the currently opened page; acquiring data information corresponding to a user operation behavior, and retrieving in configuration information in the context based on the data information; and determining whether to report the data information corresponding to the user operation behavior based on the retrieval result. By adopting the technical scheme, the technical problems that a large number of codes are arranged to bury points, so that data acquisition is time-consuming and labor-consuming and maintainability is poor are solved, the workload of code burying points can be effectively reduced, and the flexibility of data acquisition is improved.
Example two
Fig. 2 is a flowchart of a data reporting method according to a second embodiment of the present invention. In this embodiment, before obtaining the configuration information of the currently opened page of the target application, the method further includes: when the target application program is started, acquiring a configuration file corresponding to the target application program; acquiring configuration information of a currently opened page of a target application program, wherein the configuration information comprises the following steps: when a target application program opens a page, acquiring identification information of the currently opened page of the target application program; and determining the configuration information of the currently opened page of the target application program according to the identification information and the configuration file. Correspondingly, the method of the embodiment specifically includes:
step 201, when a target application program is started, a configuration file corresponding to the target application program is obtained.
In the embodiment of the present invention, the target application may be understood as an application to be opened or started. When a target application program is started, loading a configuration file corresponding to the target application program from a background server, wherein the configuration file corresponding to the target application program is integrated in a reactive-native framework, and the configuration file comprises data information required to be acquired by the target application program. It can be understood that the configuration file corresponding to the target application program includes all configuration information of the target application program related to the open page, that is, includes data information to be collected in each open page. Illustratively, the open page related to the target application includes a page a, a page B, and a page C, and the configuration file corresponding to the target application includes configuration information corresponding to the page a, configuration information corresponding to the page B, and configuration information corresponding to the page C. The configuration information corresponding to different pages can be set with corresponding identifiers for distinguishing. User behavior data associated with the target application may be selectively collected according to the configuration file.
Step 202, when the target application program opens the page, acquiring the identification information of the currently opened page of the target application program.
In the embodiment of the invention, when the target application program opens a certain page, the identification information of the currently opened page of the target application program is obtained. The page of the opened target application program is different, and the identification information of the currently opened page is different.
Step 203, determining the configuration information of the currently opened page of the target application program according to the identification information and the configuration file.
Illustratively, whether the configuration information corresponding to the identification information exists in the configuration file corresponding to the target application program according to the identification information of the currently opened page is searched, and the searched configuration information corresponding to the identification information is used as the configuration information of the currently opened page of the target application program.
And step 204, writing the configuration information into the context of the current open page.
And step 205, acquiring data information corresponding to the user operation behavior, and retrieving in the configuration information in the context based on the data information.
And step 206, determining whether to report the data information corresponding to the user operation behavior based on the retrieval result.
According to the data reporting method provided by the embodiment of the invention, when the target application program is started, the configuration file corresponding to the target application program is obtained; when a target application program opens a page, acquiring identification information of the currently opened page of the target application program; determining the configuration information of the currently opened page of the target application program according to the identification information and the configuration file; writing the configuration information into the context of the currently opened page; acquiring data information corresponding to a user operation behavior, and retrieving in configuration information in the context based on the data information; and determining whether to report the data information corresponding to the user operation behavior based on the retrieval result. By adopting the technical scheme, the configuration information corresponding to the currently opened page of the target application program can be accurately and quickly determined from the configuration file corresponding to the currently opened page of the target application program according to the identification information of the currently opened page, and whether the data information corresponding to the user operation behavior is reported or not is determined according to the configuration information, so that the flexibility of data acquisition is improved, the workload of code embedding points is effectively reduced, and the technical problems that the data acquisition is time-consuming and labor-consuming and the maintainability is poor due to the fact that a large number of code embedding points are set are solved.
In some embodiments, the data reporting method further includes: acquiring operation data of a user on the target application program; retrieving in a configuration file corresponding to the target application program according to the operation data; and when the configuration data matched with the operation data is retrieved from the configuration file, reporting the operation data. Illustratively, operation data of a user on a target application program is acquired, and data information of whether the operation data is matched with the operation data is retrieved from a configuration file corresponding to the target application program, that is, whether the operation data is data required to be acquired by the target application program is judged, if yes, the operation data is reported, and otherwise, the operation data is directly discarded or deleted. The method has the advantages that the operation data of the user on the target application program can be reasonably collected directly according to the configuration file corresponding to the target application program, the collected operation data do not need to be distinguished from the specific data needing to be collected when the page is opened by the target application program, and therefore developers can integrally analyze and research the target application program according to the operation data of the user.
EXAMPLE III
Fig. 3 is a flowchart of a data reporting method according to a third embodiment of the present invention. The method of the embodiment specifically includes:
step 301, when a target application program is started, acquiring a configuration file corresponding to the target application program.
Optionally, a configuration file corresponding to the target application program is integrated in a react-native framework, where the configuration file includes data information that the target application program needs to acquire.
Step 302, when the target application program opens the page, acquiring the identification information of the currently opened page of the target application program.
Step 303, determining the configuration information of the currently opened page of the target application program according to the identification information and the configuration file.
And step 304, when detecting that the touch touchable component in the react-native framework is clicked, acquiring data information corresponding to the user operation behavior.
Optionally, the data information corresponding to the user operation behavior includes at least one of click operation data information, interface request data information, and page rendering data information.
Step 305, retrieving in the configuration information in the context based on the data information, and determining whether the information exists in the information matched with the data information, if yes, executing step 306, otherwise, executing step 307.
And step 306, reporting the data information corresponding to the user operation behavior.
And 307, deleting the data information corresponding to the user operation behavior.
And 308, acquiring the operation data of the target application program by the user.
And 309, retrieving in a configuration file corresponding to the target application program according to the operation data.
And 310, reporting the operation data when the configuration data matched with the operation data is retrieved from the configuration file.
It should be noted that, in the embodiment of the present invention, both steps 302-307 and steps 308-310 may be performed, or only step 302-307 may be performed without performing steps 308-310, or only step 308-310 may be performed without performing steps 302-307.
The data reporting method provided by the embodiment of the invention effectively improves the flexibility of data acquisition, reduces the workload of code embedding points, and solves the technical problems of time and labor waste and poor maintainability of data acquisition caused by setting a large number of code embedding points.
Example four
Fig. 4 is a schematic structural diagram of a data reporting apparatus according to a fourth embodiment of the present invention. As shown in fig. 4, the apparatus includes: a configuration information obtaining module 401, a configuration information writing module 402, a data information obtaining module 403, and a data information reporting module 404, where:
a configuration information obtaining module 401, configured to obtain configuration information of a currently opened page of a target application;
a configuration information writing module 402, configured to write the configuration information into the context of the currently opened page;
a data information obtaining module 403, configured to obtain data information corresponding to a user operation behavior, and perform retrieval in configuration information in the context based on the data information;
a data information reporting module 404, configured to determine whether to report the data information corresponding to the user operation behavior based on the search result.
The data reporting device provided by the embodiment of the invention acquires the configuration information of the currently opened page of the target application program; writing the configuration information into the context of the currently opened page; acquiring data information corresponding to a user operation behavior, and retrieving in configuration information in the context based on the data information; and determining whether to report the data information corresponding to the user operation behavior based on the retrieval result. By adopting the technical scheme, the technical problems that a large number of codes are arranged to bury points, so that data acquisition is time-consuming and labor-consuming and maintainability is poor are solved, the workload of code burying points can be effectively reduced, and the flexibility of data acquisition is improved.
Optionally, the data information reporting module is configured to:
when information matched with the data information is retrieved from the configuration information in the context, reporting the data information corresponding to the user operation behavior;
and deleting the data information corresponding to the user operation behavior when the information matched with the data information is not retrieved in the configuration information in the context.
Optionally, the data information obtaining module is configured to:
and when detecting that the touch Touchable assembly in the react-native frame is clicked, acquiring data information corresponding to the user operation behavior.
Optionally, the apparatus further comprises:
the device comprises a configuration file acquisition module, a configuration file acquisition module and a configuration file processing module, wherein the configuration file acquisition module is used for acquiring a configuration file corresponding to a target application program when the target application program is started before acquiring configuration information of a currently opened page of the target application program;
the configuration information obtaining module is configured to:
when a target application program opens a page, acquiring identification information of the currently opened page of the target application program;
and determining the configuration information of the currently opened page of the target application program according to the identification information and the configuration file.
Optionally, the apparatus further comprises:
the operation data acquisition module is used for acquiring the operation data of the target application program from the user;
the operation data retrieval module is used for retrieving in a configuration file corresponding to the target application program according to the operation data;
and the operation data reporting module is used for reporting the operation data when the configuration data matched with the operation data is retrieved from the configuration file.
Optionally, a configuration file corresponding to the target application program is integrated in a react-native framework, where the configuration file includes data information that the target application program needs to acquire.
Optionally, the data information corresponding to the user operation behavior includes at least one of click operation data information, interface request data information, and page rendering data information.
EXAMPLE five
A fifth embodiment of the present invention provides a storage medium containing computer-executable instructions, where the computer-executable instructions are used for a data reporting method when executed by a computer processor.
Storage medium-any of various types of memory devices or storage devices. The term "storage medium" is intended to include: mounting media such as CD-ROM, floppy disk, or tape devices; computer system memory or random access memory such as DRAM, DDRRAM, SRAM, EDORAM, Lanbas (Rambus) RAM, etc.; non-volatile memory such as flash memory, magnetic media (e.g., hard disk or optical storage); registers or other similar types of memory elements, etc. The storage medium may also include other types of memory or combinations thereof. In addition, the storage medium may be located in a first computer system in which the program is executed, or may be located in a different second computer system connected to the first computer system through a network (such as the internet). The second computer system may provide program instructions to the first computer for execution. The term "storage medium" may include two or more storage media that may reside in different locations, such as in different computer systems that are connected by a network. The storage medium may store program instructions (e.g., embodied as a computer program) that are executable by one or more processors.
Of course, the storage medium containing the computer-executable instructions provided in the embodiments of the present invention is not limited to the data reporting operation described above, and may also perform related operations in the data reporting method provided in any embodiment of the present invention.
EXAMPLE six
Fig. 5 is a schematic structural diagram of a terminal device according to a sixth embodiment of the present invention. The terminal device 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, a terminal device according to a sixth embodiment of the present invention includes a processor 51, a memory 52, an input device 53, and an output device 55; the number of the processors 51 in the terminal device may be one or more, and one processor 51 is taken as an example in fig. 5; the processor 51, the memory 52, the input device 53 and the output device 55 in the terminal equipment may be connected by a bus or other means, and the connection by the bus is exemplified in fig. 5.
The memory 52 is used as a computer-readable storage medium, and can be used for storing software programs, computer-executable programs, and modules, such as program instructions/modules corresponding to the data reporting method in the embodiment of the present invention (for example, the configuration information obtaining module 401, the configuration information writing module 402, the data information obtaining module 403, and the data information reporting module 404 in the data reporting apparatus). The processor 51 executes various functional applications and file processing by running software programs, instructions and modules stored in the memory 52, for example, implementing the data reporting method applied to the terminal device provided in the embodiment of the present invention.
The memory 52 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created according to the use of the terminal device, and the like. Further, the memory 52 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device. In some examples, the memory 52 may further include memory located remotely from the processor 51, which may be connected to the terminal device via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The input device 53 may be used to receive numeric or character information input by a user to generate key signal inputs related to user settings and function control of the terminal device. The output device 55 may include a display device such as a display screen.
The data reporting method, the data reporting device, the storage medium and the terminal device provided in the above embodiments can execute the corresponding data reporting method provided in the embodiments of the present invention, and have the corresponding functional modules and beneficial effects for executing the method. For details of the data reporting method provided in any embodiment of the present invention, reference may be made to the technical details not described in detail in the above embodiments.
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 (10)

1. A data reporting method is characterized by comprising the following steps:
acquiring configuration information of a currently opened page of a target application program;
writing the configuration information into the context of the currently opened page;
acquiring data information corresponding to a user operation behavior, and retrieving in configuration information in the context based on the data information;
and determining whether to report the data information corresponding to the user operation behavior based on the retrieval result.
2. The method of claim 1, wherein determining whether to report the data information corresponding to the user operation behavior based on the search result comprises:
when information matched with the data information is retrieved from the configuration information in the context, reporting the data information corresponding to the user operation behavior;
and deleting the data information corresponding to the user operation behavior when the information matched with the data information is not retrieved in the configuration information in the context.
3. The method of claim 1, wherein obtaining data information corresponding to user operation behavior comprises:
and when detecting that the touch Touchable assembly in the react-native frame is clicked, acquiring data information corresponding to the user operation behavior.
4. The method of claim 1, prior to obtaining configuration information for a currently open page of the target application, further comprising:
when the target application program is started, acquiring a configuration file corresponding to the target application program;
acquiring configuration information of a currently opened page of a target application program, wherein the configuration information comprises the following steps:
when a target application program opens a page, acquiring identification information of the currently opened page of the target application program;
and determining the configuration information of the currently opened page of the target application program according to the identification information and the configuration file.
5. The method of claim 4, further comprising:
acquiring operation data of a user on the target application program;
retrieving in a configuration file corresponding to the target application program according to the operation data;
and when the configuration data matched with the operation data is retrieved from the configuration file, reporting the operation data.
6. The method according to claim 4, wherein a configuration file corresponding to the target application is integrated in a reactive-native framework, wherein the configuration file comprises data information that the target application needs to collect.
7. The method according to any one of claims 1 to 6, wherein the data information corresponding to the user operation behavior comprises at least one of click operation data information, interface request data information and page rendering data information.
8. A data reporting apparatus, comprising:
the configuration information acquisition module is used for acquiring the configuration information of the currently opened page of the target application program;
a configuration information writing module, configured to write the configuration information into the context of the currently opened page;
the data information acquisition module is used for acquiring data information corresponding to the user operation behavior and retrieving in the configuration information in the context based on the data information;
and the data information reporting module is used for determining whether to report the data information corresponding to the user operation behavior based on the retrieval result.
9. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, implements a data reporting method according to any one of claims 1 to 7.
10. A terminal device, comprising:
one or more processors;
a memory 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-7.
CN201910204294.2A 2019-03-18 2019-03-18 Data reporting method, device, storage medium and terminal equipment Active CN109947635B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910204294.2A CN109947635B (en) 2019-03-18 2019-03-18 Data reporting method, device, storage medium and terminal equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910204294.2A CN109947635B (en) 2019-03-18 2019-03-18 Data reporting method, device, storage medium and terminal equipment

Publications (2)

Publication Number Publication Date
CN109947635A CN109947635A (en) 2019-06-28
CN109947635B true CN109947635B (en) 2019-12-27

Family

ID=67010162

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910204294.2A Active CN109947635B (en) 2019-03-18 2019-03-18 Data reporting method, device, storage medium and terminal equipment

Country Status (1)

Country Link
CN (1) CN109947635B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110413933A (en) * 2019-08-05 2019-11-05 青岛聚好联科技有限公司 The method and device of point data is buried in a kind of server-side acquisition
CN112799648B (en) * 2019-11-14 2023-08-18 北京百度网讯科技有限公司 Unified framework implementation method, system, electronic equipment and storage medium
CN111427741A (en) * 2020-02-26 2020-07-17 中国平安人寿保险股份有限公司 Buried point reporting method and related product
CN111562939A (en) * 2020-04-26 2020-08-21 特瓦特能源科技有限公司 Activity publishing method and device
CN112364267B (en) * 2020-10-21 2023-04-07 杭州大搜车汽车服务有限公司 Front-end data acquisition method and device
CN115913958A (en) * 2022-10-25 2023-04-04 天津五八到家货运服务有限公司 Driver behavior information acquisition method, device, equipment, server and medium

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9954808B2 (en) * 2015-06-24 2018-04-24 International Business Machines Corporation Collecting messages from a group chat window that mention a specific user
US20180011608A1 (en) * 2016-07-06 2018-01-11 Im Creator Ltd. System and method for optimizing website creation tools based on user context
CN107807927B (en) * 2016-09-08 2022-04-29 阿里巴巴(中国)有限公司 Page analysis method, device, client equipment and system based on issuing rule
KR102091240B1 (en) * 2016-11-23 2020-03-20 한국전자통신연구원 Data processing apparatus and method for merging deterministic and non-deterministic knowledge information processing
CN108319542B (en) * 2017-01-17 2022-10-28 百度在线网络技术(北京)有限公司 Information processing method, device and system
CN108833459B (en) * 2018-04-09 2022-05-13 平安普惠企业管理有限公司 Data reporting method and terminal equipment
CN109408105A (en) * 2018-09-25 2019-03-01 腾讯科技(武汉)有限公司 Acquisition method, device, computing device and the storage medium of user behavior data

Also Published As

Publication number Publication date
CN109947635A (en) 2019-06-28

Similar Documents

Publication Publication Date Title
CN109947635B (en) Data reporting method, device, storage medium and terminal equipment
US10853232B2 (en) Adaptive system for mobile device testing
CN108958844B (en) Application program control method and terminal
CN104598380A (en) Method and system for automatic testing based on control
CN102779151B (en) The searching method of application program, Apparatus and system
WO2021208512A1 (en) Method and apparatus for acquiring control information of user interface, terminal and storage medium
CN106844181B (en) Method, system and mobile terminal for recording user behavior
CN107800757B (en) User behavior recording method and device
CN103365779A (en) Software test method and system
CN103164300A (en) Mobile terminal touch screen automatic testing method and device
CN112615758B (en) Application identification method, device, equipment and storage medium
EP3848824A1 (en) Landing page processing method, apparatus, device and medium
CN110162730B (en) Information processing method, information processing device, computer equipment and storage medium
CN113051514B (en) Element positioning method and device, electronic equipment and storage medium
CN105740144A (en) Automated testing method and system for Android mobile Terminal
CN111258563A (en) Interface document generation method and device, storage medium and electronic equipment
CN112199284A (en) Program automation testing method and corresponding device, equipment and medium
CN112231206A (en) Script editing method for application program test, computer readable storage medium and test platform
CN111552521A (en) Application data reporting method, device, server and storage medium
CN113094236A (en) System data acquisition method and device, computer equipment and storage medium
CN111124627B (en) Method and device for determining call initiator of application program, terminal and storage medium
CN111666201A (en) Regression testing method, device, medium and electronic equipment
CN112667502A (en) Page testing method, device and medium
CN111124423A (en) Multi-platform-based compiling detection method, device, server and medium
CN111367787B (en) Method and device for checking leakage of page script object in 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
CP02 Change in the address of a patent holder

Address after: 215000 17F, friendship time building, No. 68, Qitai Road, Suzhou Industrial Park, Suzhou area, China (Jiangsu) pilot Free Trade Zone, Suzhou, Jiangsu

Patentee after: SUZHOU YIGE NETWORK TECHNOLOGY Co.,Ltd.

Address before: Room 101, Building 22, No. 208, Tongyuan Road, Suzhou Industrial Park, Jiangsu Province 215006

Patentee before: SUZHOU YIGE NETWORK TECHNOLOGY Co.,Ltd.

CP02 Change in the address of a patent holder