Data collection method, object loading method, system and device

Data acquisition is completed by generating configuration files and automatically loading objects, which solves the problems of low data acquisition flexibility and high maintenance costs in the existing technology, and realizes an efficient and low-cost data acquisition process.

CN112395534BActive Publication Date: 2025-08-29ALIBABA GROUP HOLDING LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN201910711709.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2019-08-02
Publication Date
2025-08-29
Estimated Expiration
2039-08-02

AI Technical Summary

Technical Problem

In the prior art, data acquisition requirements are low in flexibility and high maintenance costs, and professional developers need to frequently modify or write acquisition modules.

Method used

By generating configuration files, the object is automatically loaded according to the configuration file indication information to complete data collection. The configuration files are generated by users or professional developers. The objects can be developed separately by professional developers and loaded flexibly, reducing dependence on the underlying writing logic.

Benefits of technology

It realizes the flexibility and efficiency of the data acquisition process, reduces maintenance costs, reduces the complexity and probability of errors in configuration file maintenance, and objects can be reused.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112395534B_ABST
    Figure CN112395534B_ABST
Patent Text Reader

Abstract

The embodiment of the present application provides a data collection method, an object loading method, a system and a device. The data collection method includes: obtaining a first configuration file; wherein, the first configuration file contains object loading action indication information; according to the object loading action indication information, determining at least one object that the client application needs to load; wherein, the object to be loaded contains collection operation information related to the data collection requirement; according to the object loading action indication information, loading the at least one object; after an object in the at least one object is loaded, executing the loaded object to collect the required data. Compared with the existing technology, the technical solution provided by the embodiment of the present application uses a configuration file throughout the entire process. The user on the first client side completes the creation of the configuration file without understanding the underlying programming logic of each object; compared with the collection script written by professional developers, the maintenance cost of the configuration file is low and less prone to errors.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to a data acquisition method, an object loading method, a system, and a device. Background Art

[0002] Users access network services provided by service providers through client applications (APPs) installed on their terminals. Service providers need to collect data to determine the exposure of a webpage they provide or the distribution of client application versions used by users.

[0003] Currently, to meet different data collection requirements, staff need to write or modify the corresponding collection module (also known as the collector) so that the client application can load and execute it. Existing technology is inefficient and has high maintenance costs. Summary of the Invention

[0004] The embodiments of the present application provide a data collection method, an object loading method, a system and a device to solve or improve the problems existing in the prior art.

[0005] In one embodiment of the present application, a data collection method is provided. The method includes:

[0006] Obtaining a first configuration file; wherein the first configuration file contains object loading action instruction information;

[0007] Determining at least one object to be loaded by the client application according to the object loading action indication information; wherein the object to be loaded contains collection operation information related to the data collection requirement;

[0008] Loading the at least one object according to the object loading action instruction information;

[0009] After one of the at least one objects has completed loading, the loaded object is executed to collect required data.

[0010] In another embodiment of the present application, a data collection method is provided. The method includes:

[0011] receiving a first configuration file sent by a first client, wherein the first configuration file is generated based on configuration information generated in a configuration event, the configuration event is triggered by a user through the first client, and the configuration information is related to an object loading action applied by the client;

[0012] Sending the first configuration file to a second client, so that the second client determines at least one object to be loaded by the client application, and after an object in the at least one object is loaded, executing the loaded object to collect required data;

[0013] The object to be loaded contains collection operation information related to data collection requirements.

[0014] In another embodiment of the present application, a data collection method is provided. The method includes:

[0015] In response to a configuration event triggered by a user for a plurality of preset objects, obtaining configuration information generated in the configuration event; wherein the configuration information is related to an object loading action of a client application;

[0016] Based on the configuration information, generate a first configuration file;

[0017] Sending the first configuration file to a server, so that the server sends the first configuration file to a second client, so that the second client determines at least one object to be loaded by a client application, and after an object in the at least one object is loaded, executes the loaded object to collect required data;

[0018] The object to be loaded contains collection operation information related to data collection requirements.

[0019] In another embodiment of the present application, a data acquisition system is provided. The system includes:

[0020] A first client, configured to, in response to a configuration event triggered by a user for a plurality of preset objects, obtain configuration information generated in the configuration event; generate a first configuration file based on the configuration information; and send the first configuration file to a server; wherein the configuration information is related to an object loading action applied by the client;

[0021] The server is configured to send the first configuration file to the second client;

[0022] The second client is used to obtain the first configuration file; wherein, the first configuration file contains object loading action indication information; according to the object loading action indication information, at least one object to be loaded by the client application is determined; wherein, the object to be loaded contains collection operation information related to data collection requirements; according to the object loading action indication information, the at least one object is loaded; after an object in the at least one object has completed loading, the loaded object is executed to collect the required data.

[0023] In another embodiment of the present application, a client device is provided. The client device includes: a memory and a processor, wherein:

[0024] The memory is used to store programs;

[0025] The processor is coupled to the memory and is configured to execute the program stored in the memory to:

[0026] Obtaining a first configuration file; wherein the first configuration file contains object loading action instruction information;

[0027] Determining at least one object to be loaded by the client application according to the object loading action indication information; wherein the object to be loaded contains collection operation information related to the data collection requirement;

[0028] Loading the at least one object according to the object loading action instruction information;

[0029] After one of the at least one objects has completed loading, the loaded object is executed to collect required data.

[0030] In another embodiment of the present application, a server device is provided. The server device includes: a memory, a processor and a communication component, wherein:

[0031] The memory is used to store programs;

[0032] The communication component is coupled to the processor;

[0033] The processor is coupled to the memory and is configured to execute the program stored in the memory to:

[0034] receiving, through the communication component, a first configuration file sent by a first client, wherein the first configuration file is generated based on configuration information generated in a configuration event, the configuration event being triggered by a user through the first client; and the configuration information is related to an object loading action applied by the client;

[0035] Sending the first configuration file to a second client through the communication component, so that the second client determines at least one object to be loaded by the client application, and after an object in the at least one object is loaded, executing the loaded object to collect required data;

[0036] The object to be loaded contains collection operation information related to data collection requirements.

[0037] In another embodiment of the present application, a client device is provided. The client device includes: a memory, a processor and a communication component, wherein:

[0038] The memory is used to store programs;

[0039] The communication component is coupled to the processor;

[0040] The processor is coupled to the memory and is configured to execute the program stored in the memory to:

[0041] In response to a configuration event triggered by a user for a plurality of preset objects, obtaining configuration information generated in the configuration event; wherein the configuration information is related to an object loading action of a client application;

[0042] Based on the configuration information, generate a first configuration file;

[0043] Sending the first configuration file to a server through the communication component, so that the server sends the first configuration file to a second client, so that the second client determines at least one object to be loaded by the client application, and after an object in the at least one object is loaded, executes the loaded object to collect the required data;

[0044] The object to be loaded contains collection operation information related to data collection requirements.

[0045] In another embodiment of the present application, a method for loading an object is provided. The method includes:

[0046] Obtaining a first configuration file cached locally; wherein the first configuration file contains first object loading action instruction information;

[0047] If it is determined that the first configuration file is invalid, obtaining a third configuration file; wherein the third configuration file contains second object loading action instruction information, and the file generation time of the third configuration file is later than that of the first configuration file;

[0048] At least one object to be loaded by the client application and a loading condition are determined according to the third configuration file.

[0049] In another embodiment of the present application, a client device is provided. The client device includes: a memory and a processor, wherein:

[0050] The memory is used to store programs;

[0051] The processor is coupled to the memory and is configured to execute the program stored in the memory to:

[0052] Obtaining a first configuration file cached locally; wherein the first configuration file contains first object loading action instruction information;

[0053] If it is determined that the first configuration file is invalid, obtaining a third configuration file; wherein the third configuration file contains second object loading action instruction information, and the file generation time of the third configuration file is later than that of the first configuration file;

[0054] At least one object to be loaded by the client application and a loading condition are determined according to the third configuration file.

[0055] Compared with the prior art, the technical solution provided by the embodiment of the present application adds the steps of obtaining a configuration file; and determining at least one object to be loaded by the client application based on the obtained first configuration file; so as to realize flexible loading of objects through the configuration file.

[0056] Another embodiment of the present application provides a technical solution. After the user generates a first configuration file through a first client, the server sends the first configuration file to the second client, so that the second client automatically determines the loading object and loads and executes it to complete the collection of required data. Since the configuration file is used in the entire process, the user on the first client side can complete the creation of the configuration file without understanding the underlying writing logic of each object. Compared with the collection script written by professional developers, the maintenance cost of the configuration file is low and it is not easy to make mistakes. In addition, objects can be developed separately by professional developers, objects can be flexibly loaded, and can be reused.

[0057] Another embodiment of the present application provides a technical solution in which a user can trigger a configuration event for multiple preset objects, thereby completing the generation of a first configuration file; this enables the user to complete the creation of the configuration file without understanding the underlying programming logic of each preset object; after receiving the first configuration file, the second client can determine at least one object to be loaded; the entire process is simple, convenient, and efficient. BRIEF DESCRIPTION OF THE DRAWINGS

[0058] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, a brief introduction will be given below to the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.

[0059] Figure 1 This is a schematic diagram of the user data collection principle in the prior art;

[0060] Figure 2A structural diagram of a data acquisition system provided in one embodiment of the present application is shown.

[0061] Figure 3 A flow chart of a data acquisition method according to an embodiment of the present application is shown;

[0062] Figure 4 A schematic diagram showing a flow chart of a data acquisition method provided by another embodiment of the present application is shown;

[0063] Figure 5 A flow chart of a data acquisition method provided in another embodiment of the present application is shown;

[0064] Figure 6 An exemplary schematic diagram of a user configuration interface provided by an embodiment of the present application is shown;

[0065] Figure 7 A schematic diagram of the process of loading and executing an object in a browser implemented by the technical solutions provided in various embodiments of the present application;

[0066] Figure 8a The schematic diagram shows the principle of deploying the acquisition module on the server to realize the data acquisition process;

[0067] Figure 8b The schematic diagram shows the principle of the data collection process in which the acquisition module is deployed locally on the client;

[0068] Figure 9 A schematic diagram of a flow chart of an object loading method provided in an embodiment of the present application is shown;

[0069] Figure 10 A schematic structural diagram of a data acquisition device provided in one embodiment of the present application is shown;

[0070] Figure 11 A schematic structural diagram of a data acquisition device provided in another embodiment of the present application is shown;

[0071] Figure 12 A schematic structural diagram of a data acquisition device provided in another embodiment of the present application is shown;

[0072] Figure 13 A schematic structural diagram of an object loading device provided in one embodiment of the present application is shown;

[0073] Figure 14 A schematic diagram of the structure of a client device provided in one embodiment of the present application is shown. DETAILED DESCRIPTION

[0074] Figure 1 The schematic diagram of the user data collection principle in the prior art is shown. Figure 1As shown, terminals (such as desktop computers, laptops, and smartphones) with the service provider's client application or browser installed directly load the collection module (also known as the collector) developed by the service provider staff using a common computer language. When data collection requirements change, the service provider staff must modify the existing collection module or rewrite a new one. The disadvantage is that it has limited flexibility, and all changes require sending the entire data package to the client. Furthermore, it requires professional developers to maintain it.

[0075] In order to solve or partially solve the above problems, various embodiments of the present application are proposed. In order to enable people in this technical field to better understand the present application scheme, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application.

[0076] In some processes described in the specification, claims and the above-mentioned figures of this application, multiple operations that appear in a specific order are included. These operations may not be executed in the order in which they appear in this document or may be executed in parallel. The serial numbers of the operations, such as 101, 102, etc., are only used to distinguish between different operations, and the serial numbers themselves do not represent any execution order. In addition, these processes may include more or fewer operations, and these operations may be executed in sequence or in parallel. It should be noted that the descriptions of "first", "second", etc. in this document are used to distinguish different messages, devices, modules, etc., and do not represent a sequence, nor do they limit "first" and "second" to different types. In addition, the following embodiments are only some of the embodiments of this application, not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by those skilled in the art without making creative work are within the scope of protection of this application.

[0077] In addition, this application also needs to emphasize that: in compliance with the applicable laws and regulations of the country where the application is located, such as the user's explicit consent and effective notification to the user, user-specific personal data may be used in the scenarios described herein within the scope permitted by applicable laws.

[0078] Before introducing the method embodiments provided in this application, the system architecture on which the technical solution provided in this application can be based is first described.

[0079] Specifically, the method provided in the embodiment of the present application can be based on Figure 2 The system architecture shown in the figure is realized. Figure 2 The structure diagram of the data acquisition system provided by an embodiment of the present application is shown in FIG. The system includes: a first client 101, a server 102 and a second client 103.

[0080] The first client 101 is configured to, in response to a configuration event triggered by a user for a plurality of preset objects, obtain configuration information generated in the configuration event; generate a first configuration file based on the configuration information; and send the first configuration file to a server; wherein the configuration information is related to an object loading action applied by the client;

[0081] The server 102 is configured to send the first configuration file to the second client;

[0082] The second client 103 is used to obtain the first configuration file; wherein the first configuration file contains object loading action indication information; according to the object loading action indication information, at least one object to be loaded by the client application is determined; wherein the object to be loaded contains collection operation information related to data collection requirements; according to the object loading action indication information, the at least one object is loaded; after one of the at least one objects has completed loading, the loaded object is executed.

[0083] The server can be a physical server, a virtual server, a cloud service platform, or the like, and this embodiment does not specifically limit this. The client can be any device, such as a laptop, desktop computer, smartphone, tablet computer, smart wearable device (such as a smartwatch), or smart Internet of Things (IoT) device. Smart IoT devices include, but are not limited to, smart home appliances (such as smart speakers and smart refrigerators) and self-driving vehicles.

[0084] Client application: Used to request and display web pages from a server. Optionally, a client application may only include the functionality of requesting and displaying web pages; alternatively, a client application may include both functionality and other functions, such as instant messaging or online payment. All client applications that have the functionality of requesting and displaying web pages are considered client applications in the embodiments of this application.

[0085] The second client has a client application installed on it, and the second client can establish a communication connection with the server via a wireless network or a wired network. In specific implementations, the client application sends a configuration file request to the server via the communication connection between the second client and the server. In response, the server sends the corresponding configuration file (e.g., the most recently generated configuration file) to the second client for local caching.

[0086] In one specific implementation, the first client may be installed with a functional program that facilitates user configuration operations and generates a configuration file. The user on the first client can complete the configuration operation through the interactive interface provided by the functional program, and the functional program can generate the corresponding configuration file based on the configuration information generated during the user configuration operation. Similarly, the first client can establish a communication connection with the server via a wireless network or a wired network.

[0087] Optionally, the wireless or wired network utilizes standard communication technologies and / or protocols. The network is typically the Internet, but may be any network, including but not limited to a local area network (LAN), a metropolitan area network (MAN), a wide area network (WAN), any combination of mobile, wired, or wireless networks, private networks, or virtual private networks.

[0088] The technical solution provided by this embodiment is that after the user generates a first configuration file through the first client, the server sends the first configuration file to the second client, so that the second client automatically determines the loading object and loads and executes it to complete the collection of required data. Since the configuration file is used in the entire process, the user on the first client side can complete the creation of the configuration file without understanding the underlying programming logic of each object. Compared with the collection script written by professional developers, the maintenance cost of the configuration file is low and it is not prone to errors. In addition, objects can be developed independently by professional developers, and objects can be flexibly loaded and reused.

[0089] Furthermore, the object loading action indication information includes the identifier of at least one object to be loaded and the loading conditions. When the object loading action indication information includes multiple objects to be loaded, the loading conditions of the multiple objects may be the same or different, and this embodiment does not specifically limit this. In specific implementations, the loading conditions may include, but are not limited to, at least one of the following:

[0090] Whether the webpage ID of the accessed webpage is the set webpage ID;

[0091] Whether the current time is within the set validity period;

[0092] Whether the client application is the set version;

[0093] Whether the device running the client application is a specified type of device.

[0094] Setting loading conditions allows for more targeted data collection. For example, if the client application is running on a PC (personal computer) and accesses a webpage with a specified webpage identifier, and the current time falls within the specified validity period, the client application on the PC will load the specified object to complete the corresponding data collection. For other types of devices, such as mobile phones and wearables, no object loading is required, and therefore no data collection is required.

[0095] In another achievable solution, in the information processing system provided in this embodiment, the functions of the first client can also be implemented by a second client. That is, the second client can be configured to: in response to a configuration event triggered by a user for multiple preset objects, obtain configuration information generated in the configuration event; generate a first configuration file based on the configuration information; wherein the configuration information is related to an object loading action of the client application; determine at least one object to be loaded by the client application based on object loading action indication information contained in the first configuration file; wherein the object to be loaded contains collection operation information related to data collection requirements; load the at least one object based on the object loading action indication information; and after loading of one of the at least one objects, execute the loaded object.

[0096] In the information processing system of the above embodiment, the server can be omitted, and the user can complete the generation of the configuration file through the second client, so that the second client can complete subsequent operations according to the configuration file.

[0097] In a specific application scenario, the load object involved in this embodiment can be a collection module (or collector) developed in a general-purpose computing language with specific collection functions, as shown in Figure 8. Multiple load objects can be locally deployed on the second client, and the second client can load some or all of the multiple locally stored load objects according to a configuration file. Alternatively, multiple load objects can be deployed on the server, and the second client can obtain at least one target object to be loaded from the server according to the configuration file.

[0098] The specific workflows of the various components of the information processing system provided in the embodiments of the present application, such as the server and the client, and the signaling interactions between them will be further described in the following embodiments.

[0099] Figure 3 The flowchart of the data collection method provided by an embodiment of the present application is shown. The execution subject of the method provided by this embodiment can be the second client in the above system embodiment. Specifically, Figure 3 As shown, the data collection method includes:

[0100] 201. Obtain a first configuration file.

[0101] The first configuration file contains object loading action instruction information.

[0102] 202. Determine at least one object that the client application needs to load according to the object loading action indication information.

[0103] Among them, the object to be loaded contains collection operation information related to data collection requirements;

[0104] 203. Load the at least one object according to the object loading action instruction information.

[0105] 204. After one of the at least one objects has completed loading, execute the loaded object to collect required data.

[0106] In the above 201, the first configuration file can be a file in any format, such as JSON (JavaScript Object Notation, JS object notation, a lightweight data exchange format), HSON, XML (Extensible Markup Language, Extensible Markup Language), YAML (a data description language similar to XML, a subset of Standard Generalized Markup Language), PROPERTIES, etc.; or an executable script, etc.

[0107] In an achievable technical solution, the above 202 “determining at least one object to be loaded by the client application according to the object loading action indication information” may include the following steps:

[0108] 2021. Parse the first configuration file to obtain at least one object identifier indicated in the object loading action indication information.

[0109] 2022. Obtain the at least one object that the client application needs to load based on the at least one object identifier.

[0110] In a specific implementation, the client may locally maintain a correspondence between object identifiers and load addresses. Step 2022 may specifically include: obtaining the load addresses corresponding to the at least one object identifier based on the correspondence between the object identifiers and load addresses; and obtaining the at least one object based on the load addresses corresponding to the object identifiers. Alternatively, the client may include the at least one object identifier in a obtain request and send the obtain request to the server; the server, based on the at least one object identifier, obtains the corresponding object and sends the response to the client.

[0111] It should be added here that the object in this embodiment can be simply understood as a collection module (or collector) with specific collection functions developed by professional developers using a general computing language.

[0112] In the above 201, the first configuration file can be obtained from the server or locally. One situation is: the user completes the generation of the first configuration file through the file configuration function provided by the first client; then the first client sends it to the server, and the second client, the executing entity of this embodiment, obtains it from the server. Another situation is: the second client caches the first configuration file locally after obtaining it from the server, and the second client obtains the first configuration file from the local cache. Another situation is: the second client provides the user with a file configuration function, and the user can trigger the function to complete the generation of the first configuration file; the second client caches the generated first configuration file locally.

[0113] In the above 203, if the object loading action instruction information does not contain loading conditions, the action of loading at least one object can be directly executed. If the object loading action instruction information contains loading conditions, it is necessary to obtain the client application's operating environment information. When the operating environment information meets the loading conditions, the corresponding object is loaded. This part is explained in detail below.

[0114] In the above 204, the object loading and execution process is the same as the prior art, and this embodiment will not elaborate on it.

[0115] Compared with the prior art, the technical solution provided by this embodiment adds the steps of obtaining a configuration file and determining at least one object to be loaded by the client application based on the obtained first configuration file, so as to realize flexible loading of objects through the configuration file.

[0116] In one feasible technical solution, the above step 201 of "obtaining the first configuration information" can be implemented by the following method:

[0117] 2011. Obtain a second configuration file cached locally; wherein the second configuration file is generated earlier than the first configuration file;

[0118] 2012. Determine whether the second configuration file is invalid;

[0119] 2013. When it is determined that the second configuration file is invalid, obtain the first configuration file from the server or the local storage area.

[0120] It should be noted that in practice, the following scenario may also occur: the cached second configuration file is also stored in the local storage area; when the locally cached second configuration file expires, if the server does not have the latest updated configuration file or the locally downloaded configuration file has not been downloaded, and the second configuration file is the latest updated file, then the configuration file from the server or local storage area will still be the second configuration file. In this embodiment, steps 2011 to 2013 above are for the case where the server or locally stored configuration file has the latest update, i.e., the first configuration file with the smallest time difference between the file creation time and the current time.

[0121] Furthermore, the method provided in this embodiment may further include:

[0122] 205. Update the second configuration file cached locally to the first configuration file.

[0123] Caching the configuration file locally helps improve the loading and execution efficiency of the first configuration file.

[0124] In a specific implementation, the above step 2011 of "obtaining the second configuration file cached locally" may include:

[0125] In response to a client application startup event, the second configuration file in the local cache is loaded.

[0126] Furthermore, the above step 2012 of “determining whether the second configuration file is invalid” includes:

[0127] S1. Obtaining the cache duration of the second configuration file;

[0128] S2. Determine whether the cache duration is greater than a first threshold;

[0129] S3. When the cache duration exceeds the first threshold, the second configuration file becomes invalid.

[0130] The first threshold may be 1 hour, 2 hours, etc., and this embodiment does not impose any specific limitation on its value.

[0131] Furthermore, the method provided in this embodiment may further include the following steps:

[0132] 206. Checking whether there is an updated third configuration file at a preset time interval; wherein the third configuration file is generated later than the first configuration file;

[0133] 207. If the updated third configuration file exists, download the third configuration file to the local storage area.

[0134] Here, "obtaining the first configuration file from the server or local storage area" may specifically include: obtaining, from the server or local storage area, a first configuration file whose generation time meets a preset requirement. For example, the preset requirement may specifically include: the configuration file whose generation time is shortest from the current time, i.e., the most recently generated configuration file.

[0135] Furthermore, the object loading action instruction information includes the loading condition of the at least one object; accordingly, the method provided in this embodiment may further include the following steps:

[0136] 208. Obtain the operating environment information of the client application.

[0137] 209. When the operating environment information satisfies the loading condition, load the at least one object.

[0138] The loading conditions include but are not limited to at least one of the following:

[0139] Whether the webpage ID of the accessed webpage is the set webpage ID;

[0140] Whether the current time is within the set validity period;

[0141] Whether the client application is the set version;

[0142] Whether the device running the client application is a specified type of device.

[0143] The setting identifier can be a webpage address, a Uniform Resource Locator (URL), or a webpage domain name, such as xxx.com or xxx.cn. The setting validity period can be a set time period, with days as the minimum unit, such as January 1, 2018 to the present, or hours as the minimum unit, such as 10:00 AM to midnight on **year**month**day. The setting version can specifically be the client application version number. The setting device type can be, for example, a PC-type device, a smartphone-type device, etc.

[0144] Accordingly, the operating environment information in the above 208 may include but is not limited to: current time, identifier of the currently accessed web page, current client application version number, client device type, etc.

[0145] In the above 209 , based on the loading condition, it is determined whether the current operating environment information is satisfied; if satisfied, the at least one object can be loaded and executed.

[0146] It should be added here that: multiple objects can correspond to the same loading condition, that is, when the operating environment information meets the loading condition, multiple objects are loaded simultaneously and executed in sequence. Of course, during specific implementation, each of the multiple objects can also correspond to a loading condition. For example, the loading condition corresponding to object A is condition a; the loading condition corresponding to object B is condition b. Assuming that the current operating environment information first meets condition a, object A is loaded, and object A is executed after object A is loaded; until the operating environment information meets condition b, object B is loaded and executed.

[0147] Figure 4 The flowchart of the data collection method provided by an embodiment of the present application is shown. The execution subject of the method provided by this embodiment can be the server in the above system embodiment. Specifically, Figure 4 As shown, the method includes:

[0148] 301. Receive a first configuration file sent by a first client.

[0149] The first configuration file is generated based on configuration information generated in a configuration event, wherein the configuration event is triggered by a user through the first client; the configuration information is related to an object loading action applied by the client. It should be noted that the process of how the user triggers the configuration event to generate the first configuration file will be described in detail in subsequent embodiments.

[0150] 302. Send the first configuration file to a second client, so that the second client determines at least one object that needs to be loaded by the client application, and executes the loaded object after an object in the at least one object is loaded.

[0151] The object to be loaded contains collection operation information related to data collection requirements.

[0152] In the above 302, after receiving the first configuration file sent by the first client, the first configuration file may be stored locally.

[0153] The technical solution provided by this embodiment is that after the user generates a first configuration file through the first client, the server sends the first configuration file to the second client, so that the second client automatically determines the loading object and loads and executes it to complete the collection of required data. Since the configuration file is used in the entire process, the user on the first client side completes the creation of the configuration file without understanding the underlying programming logic of each object. Compared with the collection script written by professional developers, the maintenance cost of the configuration file is low and it is less prone to errors. In addition, objects can be developed independently by professional developers, and objects can be flexibly loaded and reused.

[0154] In one feasible technical solution, the step of “sending the first configuration file to the second client” in step 302 may include:

[0155] After receiving the query request sent by the second client at every preset time period, the first configuration file is sent to the second client.

[0156] Figure 5 FIG1 shows a flow chart of a data collection method provided by an embodiment of the present application. The execution subject of the method provided by this embodiment can be the first client in the above system embodiment. Figure 5 As shown, the method includes:

[0157] 401. In response to a configuration event triggered by a user for multiple preset objects, obtain configuration information generated in the configuration event.

[0158] The configuration information is related to an object loading action of a client application.

[0159] 402. Generate a first configuration file based on the configuration information.

[0160] 403. Send the first configuration file to the server, so that the server sends the first configuration file to the second client, so that the second client determines at least one object that the client application needs to load, and executes the loaded object after an object in the at least one object is loaded.

[0161] The object to be loaded contains collection operation information related to data collection requirements.

[0162] In the above 401, the configuration information includes at least one of the following:

[0163] at least one object selected from the plurality of preset objects;

[0164] A corresponding loading condition is set for the at least one selected object.

[0165] Furthermore, the above-mentioned “setting loading conditions for the object” includes at least one of the following steps:

[0166] Configure the web page logo;

[0167] Configuration setting effective period;

[0168] Configure the client application's version;

[0169] Configuration settings device type.

[0170] See also Figure 6 The example shown illustrates the data collection method provided by this embodiment.

[0171] See also Figure 6 As shown, users can enter the Figure 6 The configuration interface shown. The user can click the " ” control, you can see multiple preset objects; users can click one, two or more objects from the multiple preset objects. After the user makes a selection, the input box in the “Selected Object” area of ​​the configuration interface will display the identifier (such as name) of the user-selected object. Users can set loading conditions for at least one selected object in the “Device Type”, “Network Identifier”, “Effective Date” and other areas. For example, Figure 6 The loading conditions for the object "Browser Version Number Collection Module" selected by the user in the first row are: device type is PC type; network identifier (domain name) is xxx.yyy-inc.com; and effective period is: 2019-05-21~2019-05-31. In addition, users can also set corresponding names for each configuration information in the "Name" area to facilitate management and maintenance. After the user completes the configuration, they can click Figure 6 Click the "Save" control in the dialog to save the configuration information. Figure 6 As shown, the user can also delete the configured configuration information through the operation controls corresponding to each configuration information on the configuration interface, such as the "Delete" control.

[0172] Figure 7 FIG. 1 shows a flow chart of a data acquisition method provided by another embodiment of the present application. Figure 7 As shown, the method includes:

[0173] Step 1: The browser loads configuration file A from the local cache.

[0174] Step 2: The browser determines whether configuration file A is invalid. If invalid, proceed to step 3; otherwise, proceed to step 4.

[0175] The cache is used to improve operational efficiency and is generally set to a fixed validity period (for example, 2 hours). It becomes invalid after the timeout.

[0176] Step 3: The browser loads the newly updated configuration file B and writes it to the local cache.

[0177] Step 4: The browser parses configuration file B or configuration file A to obtain a list of acquisition modules that need to be loaded.

[0178] The acquisition module list contains at least one acquisition module.

[0179] Step 5: The browser loads and executes each acquisition module in the acquisition module list.

[0180] As can be seen from the principle diagram shown in FIG8 , the technical solutions provided by the embodiments of the present application separate the acquisition module that is updated more frequently in the traditional data acquisition solution; by inserting a layer of flexibly configurable configuration files, the acquisition model pre-developed by professional developers can be loaded on demand. People with data acquisition needs do not need to understand the underlying programming logic of each acquisition module. They only need to configure the corresponding configuration files according to the actual data acquisition needs, and can even edit them through a visual interface (such as Figure 6 The visual interface shown in the figure does not require professional developers to maintain. Professional developers only need to focus on the development of acquisition modules. Each acquisition module has high availability and reusability, can be deployed independently, and can be updated at any time. After loading the configuration file, the loading and execution of at least one acquisition module specified in the configuration file can be completed automatically; object loading is more flexible. Multiple acquisition modules, such as Figure 8a The acquisition modules A, B, C and D in the system can be deployed on the server 102; the second client 103 can obtain the corresponding acquisition modules from the server according to the obtained configuration file. Or, Figure 8b As shown, acquisition module A, acquisition module B, acquisition module C and acquisition module D are deployed in the local storage area 1031 of the second client 103. The second client 103 can obtain the corresponding acquisition module from the local according to the obtained configuration file.

[0181] Application Scenario 1

[0182] The browser has a revision request, and the service provider who provides the browser to users needs to know the current distribution of users using the browser. Figure 6 In the configuration interface shown, a configuration is configured. The loading conditions are: the domain name xxx.yyy-inc.com, the effective period is 2019-05-21 to 2019-05-31, and access is via a PC. The selected object is the "Browser Version Number Collection Module." The configuration file generated based on this configuration is sent to the server. The server sends this configuration file to all user-side clients. The user-side client loads this configuration file. When the operating environment information meets the loading conditions, the browser version number collection module is loaded and executed.

[0183] Application scenario 2:

[0184] During a certain festival, the website will promote the content of the event through a promotional webpage; the website service staff wants to know the exposure of the promotional webpage. Figure 6The configuration interface shown below shows a configuration entry. The loading conditions are: the domain name is &&&.ccc-inc.com, effective from May 10 to May 11, 2019, and accessed via a PC browser. The selected object is the "Exposure Collection Module." The configuration file generated based on this configuration entry is sent to the server. The server then sends this configuration file to all user-side clients. The user-side client loads this configuration file. When the operating environment meets the loading conditions, the Exposure Collection Module is loaded and executed.

[0185] Application scenario three:

[0186] Service providers sometimes design different versions of apps for different types of devices (such as smartphones, PCs, and smart car devices). Service providers need to know the current usage of the corresponding app versions for different types of devices. In this case, service providers can configure a configuration message through the configuration interface, with the loading conditions being: effective date ****-0101 to ****-12-31; the selected object is the "Application App Version Information Collection Module." The configuration file generated based on this configuration message is sent to the server. The server sends this configuration file to all user-side clients (such as smartphones, PCs, and smart car devices). The user-side client loads the configuration file, and when the operating environment information meets the loading conditions, it loads and executes the Application App Version Information Collection Module.

[0187] Figure 9 FIG. 1 shows a flow chart of an object loading method provided by an embodiment of the present application. Figure 9 As shown, the method includes:

[0188] 501. Obtain a first configuration file cached locally; wherein the first configuration file contains first object loading action instruction information.

[0189] 502. When it is determined that the first configuration file is invalid, obtain a third configuration file; wherein the third configuration file contains second object loading action instruction information, and the third configuration file is generated later than the first configuration file.

[0190] 503. Determine at least one object to be loaded by the client application and a loading condition based on the third configuration file.

[0191] The object to be loaded contains collection operation information related to data collection requirements.

[0192] For the contents of 501 to 502 above, please refer to the corresponding contents in the above embodiments, which will not be repeated here.

[0193] Furthermore, the above step 503 of “determining at least one object to be loaded by the client application and the loading conditions according to the third configuration file” may include the following steps:

[0194] 5031. Parse the third configuration file to obtain at least one object identifier and loading condition indicated in the second object loading action instruction information.

[0195] 5032. Obtain the at least one object that the client application needs to load according to the at least one object identifier.

[0196] Figure 10 FIG. 1 shows a schematic diagram of the structure of a data acquisition device provided by an embodiment of the present application. Figure 9 As shown, the apparatus includes: an acquisition module 11, a determination module 12, and an execution module 13. The acquisition module 11 is configured to acquire a first configuration file; the first configuration file includes object loading action indication information; the determination module 12 is configured to determine at least one object to be loaded by the client application based on the object loading action indication information; the object to be loaded includes collection operation information related to data collection requirements; and the execution module 13 is configured to execute the loaded object after one of the at least one objects has completed loading according to the object loading action indication information.

[0197] Compared with the prior art, the technical solution provided by this embodiment adds the steps of obtaining a configuration file and determining at least one object to be loaded by the client application based on the obtained first configuration file, so as to realize flexible loading of objects through the configuration file.

[0198] Furthermore, the acquisition module 11 is also used to: obtain a second configuration file cached locally; wherein the file generation time of the second configuration file is earlier than that of the first configuration file; determine whether the second configuration file is invalid; and if it is determined that the second configuration file is invalid, obtain the first configuration file from the server or the local storage area.

[0199] Furthermore, the apparatus provided in this embodiment may further include an updating module configured to update the second configuration file cached locally to the first configuration file.

[0200] Furthermore, the acquisition module 11 may be further configured to: in response to a client application startup event, execute a collection script loader to load the second configuration file in the local cache.

[0201] Furthermore, the acquisition module 11 can also be used to: acquire the cache duration of the second configuration file; determine whether the cache duration is greater than a first threshold; if the cache duration exceeds the first threshold, the second configuration file becomes invalid.

[0202] Furthermore, the apparatus provided in this embodiment may further include: a detection module and a storage module. The detection module is configured to detect whether an updated third configuration file is available at predetermined intervals; wherein the third configuration file is generated later than the first configuration file; and the storage module is configured to download the updated third configuration file to the local storage area if the updated third configuration file is available.

[0203] Furthermore, the acquisition module 11 may be further configured to: acquire, from the server or the local storage area, a first configuration file whose file generation time meets a preset requirement.

[0204] Furthermore, the determining module 12 may be further configured to: parse the first configuration file to obtain at least one object identifier indicated in the object loading action indication information; and obtain the at least one object to be loaded by the client application based on the at least one object identifier.

[0205] Furthermore, the object loading action instruction information includes the loading condition of the at least one object; accordingly, the apparatus provided in this embodiment may further include:

[0206] The acquisition module 11 is further configured to acquire the operating environment information of the client application;

[0207] A loading module is used to load the at least one object when the operating environment information meets the loading condition.

[0208] Furthermore, the loading conditions include at least one of the following:

[0209] Whether the domain name of the accessed web page is the set domain name;

[0210] Whether it is within the set effective period;

[0211] Whether to use the set version of the client application;

[0212] Whether the device running the client application is a specified type of device.

[0213] It should be noted here that the data acquisition device provided in the above embodiment can implement the technical solutions described in the above method embodiments. The specific implementation principles of the above modules or units can be found in the corresponding contents of the above method embodiments, which will not be repeated here.

[0214] Figure 11 A structural diagram of a data acquisition device provided in one embodiment of the present application is provided. Figure 11 As shown, the device includes: a receiving module 21 and a sending module 22. The receiving module 21 is used to receive a first configuration file sent by a first client, wherein the first configuration file is generated based on the configuration information generated in the configuration event, and the configuration event is triggered by the user through the first client; the configuration information is related to the object loading action of the client application. The sending module 22 is used to send the first configuration file to the second client, so that the second client can determine at least one object that the client application needs to load, and after an object in the at least one object is loaded, execute the loaded object. Wherein, the object to be loaded contains collection operation information related to data collection requirements.

[0215] The technical solution provided by this embodiment is that after the user generates a first configuration file through the first client, the server sends the first configuration file to the second client, so that the second client automatically determines the loading object and loads and executes it to complete the collection of required data. Since the configuration file is used in the entire process, the user on the first client side completes the creation of the configuration file without understanding the underlying programming logic of each object. Compared with the collection script written by professional developers, the maintenance cost of the configuration file is low and it is less prone to errors. In addition, objects can be developed independently by professional developers, and objects can be flexibly loaded and reused.

[0216] Furthermore, the sending module 22 is further configured to send the first configuration file to the second client after receiving an inquiry request sent by the second client at preset intervals.

[0217] It should be noted here that the data acquisition device provided in the above embodiment can implement the technical solutions described in the above method embodiments. The specific implementation principles of the above modules or units can be found in the corresponding contents of the above method embodiments, which will not be repeated here.

[0218] Figure 12 FIG. 1 shows a schematic diagram of the structure of a data acquisition device provided by an embodiment of the present application. Figure 12As shown, the device includes: an acquisition module 31, a generation module 32 and a sending module 33. The acquisition module 31 is used to respond to a configuration event triggered by a user for multiple preset objects, and obtain the configuration information generated in the configuration event; the configuration information is related to the object loading action of the client application; the generation module 32 is used to generate a first configuration file based on the configuration information; the sending module 33 is used to send the first configuration file to the server, so that the server sends the first configuration file to the second client, so that the second client determines at least one object that the client application needs to load, and after an object in the at least one object is loaded, executes the loaded object. The object to be loaded contains collection operation information related to data collection requirements.

[0219] The technical solution provided by this embodiment allows users to trigger configuration events for multiple preset objects, thereby completing the generation of a first configuration file; it enables users to complete the creation of configuration files without understanding the underlying programming logic of each preset object; after receiving the first configuration file, the second client can determine at least one object to be loaded; the entire process is simple, convenient, and efficient.

[0220] Furthermore, the configuration information includes at least one of the following:

[0221] at least one object selected from the plurality of preset objects;

[0222] Corresponding loading conditions are set for the at least one selected object respectively.

[0223] Furthermore, loading conditions are set for the object, including at least one of the following:

[0224] Configure the web page logo;

[0225] Configuration setting effective period;

[0226] Configure the client application's version;

[0227] Configuration settings device type.

[0228] It should be noted here that the data acquisition device provided in the above embodiment can implement the technical solutions described in the above method embodiments. The specific implementation principles of the above modules or units can be found in the corresponding contents of the above method embodiments, which will not be repeated here.

[0229] Figure 13 FIG. 1 shows a schematic diagram of the structure of an object loading device provided by an embodiment of the present application. Figure 13As shown, the object loading device includes: an acquisition module 41 and a determination module 42. The acquisition module 31 is used to obtain a first configuration file of the local cache; wherein, the first configuration file contains first object loading action indication information; when it is determined that the first configuration file is invalid, a third configuration file is obtained; wherein, the third configuration file contains second object loading action indication information, and the file generation time of the third configuration file is later than that of the first configuration file. The determination module 42 is used to determine at least one object and loading conditions that the client application needs to load based on the third configuration file. wherein, the object to be loaded contains collection operation information related to data collection requirements.

[0230] Furthermore, the determination module 42 is further configured to: parse the third configuration file to obtain at least one object identifier and loading condition indicated in the second object loading action indication information; and obtain the at least one object to be loaded by the client application based on the at least one object identifier.

[0231] It should be noted here that the object loading device provided in the above embodiment can implement the technical solutions described in the above method embodiments. The specific implementation principles of the above modules or units can be found in the corresponding contents of the above method embodiments, which will not be repeated here.

[0232] Figure 14 FIG. 1 shows a schematic diagram of the structure of a client device provided by an embodiment of the present application. Figure 14 As shown, the device includes: a memory 51 and a processor 52, wherein,

[0233] The memory 51 is used to store programs;

[0234] The processor 52 is coupled to the memory 51 and is configured to execute the program stored in the memory 51 to:

[0235] Obtaining a first configuration file; wherein the first configuration file contains object loading action instruction information;

[0236] Determining at least one object to be loaded by the client application according to the object loading action indication information; wherein the object to be loaded contains collection operation information related to the data collection requirement;

[0237] According to the object loading action instruction information, after one of the at least one objects has completed loading, the object that has completed loading is executed.

[0238] The memory 51 can be configured to store various other data to support operations on the client device. Examples of such data include instructions for any application or method operating on the client device. The memory 51 can be implemented by any type of volatile or non-volatile storage device, or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk, or optical disk.

[0239] When executing the program in the memory 51 , the processor 52 may implement other functions in addition to the above functions. For details, please refer to the description of the above embodiments.

[0240] Further, if Figure 14 As shown, the client device also includes: a communication component 53, a display 54, a power component 55, an audio component 56 and other components. Figure 14 Only some components are shown schematically, which does not mean that the client device only includes Figure 14 Components shown.

[0241] Another embodiment of the present application also provides a server device. The structure of the server device provided in this embodiment is similar to the above-mentioned client device, which can be seen in Figure 14 The server device includes: a memory, a processor and a communication component, wherein:

[0242] The memory is used to store programs;

[0243] The communication component is coupled to the processor;

[0244] The processor is coupled to the memory and is configured to execute the program stored in the memory to:

[0245] receiving, through the communication component, a first configuration file sent by a first client, wherein the first configuration file is generated based on configuration information generated in a configuration event, the configuration event being triggered by a user through the first client; and the configuration information is related to an object loading action applied by the client;

[0246] Sending the first configuration file to a second client through the communication component, so that the second client determines at least one object to be loaded by the client application, and after an object in the at least one object is loaded, executing the loaded object;

[0247] The object to be loaded contains collection operation information related to data collection requirements.

[0248] In addition to the above functions, the processor can also implement other functions when executing the program in the memory. For details, please refer to the description of the previous embodiments.

[0249] Another embodiment of the present application provides a client device. The structure of the client device is similar to the above client device embodiment, which can be seen in the above Figure 14 The client device includes: a memory, a processor and a communication component, wherein:

[0250] The memory is used to store programs;

[0251] The communication component is coupled to the processor;

[0252] The processor is coupled to the memory and is configured to execute the program stored in the memory to:

[0253] In response to a configuration event triggered by a user for a plurality of preset objects, obtaining configuration information generated in the configuration event; wherein the configuration information is related to an object loading action of a client application;

[0254] Based on the configuration information, generate a first configuration file;

[0255] Sending the first configuration file to a server through the communication component, so that the server sends the first configuration file to a second client, so that the second client determines at least one object to be loaded by the client application, and executes the loaded object after an object in the at least one object is loaded;

[0256] The object to be loaded contains collection operation information related to data collection requirements.

[0257] Furthermore, when the processor executes the program in the memory, in addition to the above functions, it can also implement other functions. For details, please refer to the description of the previous embodiments.

[0258] Accordingly, an embodiment of the present application further provides a computer-readable storage medium storing a computer program, which, when executed by a computer, can implement the steps or functions of the data acquisition method provided in the above embodiments.

[0259] Another embodiment of the present application provides a client device. The structure of the client device is similar to the above client device embodiment, which can be seen in the above Figure 14 The client device includes: a memory and a processor, wherein:

[0260] The memory is used to store programs;

[0261] The processor is coupled to the memory and is configured to execute the program stored in the memory to:

[0262] Obtaining a first configuration file cached locally; wherein the first configuration file contains first object loading action instruction information;

[0263] If it is determined that the first configuration file is invalid, obtaining a third configuration file; wherein the third configuration file contains second object loading action instruction information, and the file generation time of the third configuration file is later than that of the first configuration file;

[0264] Determining at least one object to be loaded by the client application and a loading condition according to the third configuration file;

[0265] The object to be loaded contains collection operation information related to data collection requirements.

[0266] Furthermore, when the processor executes the program in the memory, in addition to the above functions, it can also implement other functions. For details, please refer to the description of the previous embodiments.

[0267] Accordingly, an embodiment of the present application further provides a computer-readable storage medium storing a computer program, which, when executed by a computer, can implement the steps or functions of the object loading method provided in the above embodiments.

[0268] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate, and the components shown as units may or may not be physical units, i.e., they may be located in one location or distributed across multiple network units. Some or all of the modules may be selected based on actual needs to achieve the objectives of the present embodiment. Persons of ordinary skill in the art will be able to understand and implement the present invention without inventive effort.

[0269] Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented using software plus a necessary general-purpose hardware platform, or of course, hardware. Based on this understanding, the essence of the above technical solution, or the portion that contributes to the prior art, can be embodied in the form of a software product. This computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a magnetic disk, or an optical disk, and includes a number of instructions for causing a computer device (such as a personal computer, server, or network device) to execute the methods described in each embodiment or certain portions of the embodiments.

[0270] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application.

Claims

1. A data collection method, characterized in that: include: Obtaining a first configuration file; wherein the first configuration file contains object loading action indication information; the object loading action indication information contains an identifier of at least one object to be loaded and a loading condition; the loading condition includes at least one of the following: whether the webpage identifier of the accessed webpage is a set webpage identifier; whether the current time is within a set effective period; whether the client application is a set version; and whether the device running the client application is a set type device; generating the first configuration file by: in response to a configuration event triggered by a user for multiple preset objects, obtaining configuration information generated in the configuration event; wherein the configuration information is related to the object loading action of the client application; and generating the first configuration file based on the configuration information; Determining at least one object to be loaded by the client application according to the at least one object identifier; wherein the object to be loaded contains collection operation information related to the data collection requirement; Acquiring the operating environment information of the client application; and loading the at least one object if the operating environment information satisfies the loading condition; After one of the at least one objects has completed loading, the loaded object is executed to collect required data.

2. The method according to claim 1, characterized in that Obtaining first configuration information includes: Obtain a second configuration file cached locally; wherein the second configuration file is generated earlier than the first configuration file; Determining whether the second configuration file is invalid; When it is determined that the second configuration file is invalid, the first configuration file is obtained from the server or the local storage area.

3. The method according to claim 2, characterized in that Also includes: The second configuration file cached locally is updated to the first configuration file.

4. The method according to claim 2, characterized in that Get the second configuration file cached locally, including: In response to a startup event of the client application, the second configuration file in the local cache is loaded.

5. The method according to claim 2, characterized in that Determining whether the second configuration file is invalid includes: Obtaining the cache duration of the second configuration file; Determining whether the cache duration is greater than a first threshold; When the cache duration exceeds the first threshold, the second configuration file becomes invalid.

6. The method according to claim 2, characterized in that Also includes: detecting whether there is an updated third configuration file at a preset time interval; wherein the third configuration file is generated later than the first configuration file; If there is an updated third configuration file, the third configuration file is downloaded to the local storage area.

7. The method according to claim 2, characterized in that Obtaining the first configuration file from the server or the local storage area includes: A first configuration file whose file generation time meets a preset requirement is obtained from the server or the local storage area.

8. A data collection method, characterized in that: include: Receive a first configuration file sent by a first client, wherein the first configuration file is generated based on configuration information generated in a configuration event, the configuration event being triggered by a user through the first client; the configuration information is related to an object loading action of a client application; the first configuration file contains object loading action indication information; the object loading action indication information contains an identifier of at least one object to be loaded and a loading condition; the loading condition includes at least one of the following: whether the webpage identifier of the accessed webpage is a set webpage identifier; whether the current time is within a set effective period; whether the client application is a set version; and whether the device running the client application is a set type device; Sending the first configuration file to a second client, so that the second client determines at least one object to be loaded by the client application based on the at least one object identifier, and obtains operating environment information of the client application; if the operating environment information satisfies the loading condition, loading the at least one object; and after one of the at least one objects has completed loading, executing the loaded object to collect required data; The object to be loaded contains collection operation information related to data collection requirements.

9. The method according to claim 8, characterized in that Sending the first configuration file to the second client includes: After receiving the query request sent by the second client at every preset time period, the first configuration file is sent to the second client.

10. A data collection method, characterized in that: include: In response to a configuration event triggered by a user for a plurality of preset objects, obtaining configuration information generated in the configuration event; wherein the configuration information is related to an object loading action of a client application; Based on the configuration information, a first configuration file is generated; wherein the first configuration file contains object loading action indication information; the object loading action indication information contains an identifier of at least one object to be loaded and a loading condition; the loading condition includes at least one of the following: whether the webpage identifier of the accessed webpage is a set webpage identifier; whether the current time is within the set effective period; whether the client application is a set version; and whether the device running the client application is a set type device; Sending the first configuration file to a server, so that the server sends the first configuration file to a second client, so that the second client determines at least one object to be loaded by the client application based on the at least one object identifier and obtains operating environment information of the client application; if the operating environment information satisfies the loading condition, loading the at least one object; and after an object in the at least one object has been loaded, executing the loaded object to collect the required data; The object to be loaded contains collection operation information related to data collection requirements.

11. The method according to claim 10, characterized in that The configuration information includes: at least one object selected from the plurality of preset objects; A corresponding loading condition is set for the at least one selected object.

12. A data acquisition system, characterized in that: include: A first client is configured to, in response to a configuration event triggered by a user for a plurality of preset objects, obtain configuration information generated in the configuration event; Based on the configuration information, a first configuration file is generated; the first configuration file is sent to the server; wherein the configuration information is related to an object loading action of the client application; wherein the first configuration file contains object loading action indication information; the object loading action indication information contains an identifier of at least one object to be loaded and a loading condition; the loading condition includes at least one of the following: whether the webpage identifier of the accessed webpage is a set webpage identifier; whether the current time is within a set effective period; whether the client application is a set version; and whether the device running the client application is a set type device; The server is configured to send the first configuration file to the second client; The second client is used to obtain the first configuration file; wherein the first configuration file contains object loading action indication information; determine at least one object to be loaded by the client application based on the at least one object identifier; wherein the object to be loaded contains collection operation information related to data collection requirements; obtain the operating environment information of the client application; if the operating environment information meets the loading conditions, load the at least one object; after one of the at least one objects has completed loading, execute the loaded object to collect the required data.

13. A client device, characterized in that: include: Memory and processor, wherein The memory is used to store programs; The processor is coupled to the memory and is configured to execute the program stored in the memory to: Obtaining a first configuration file; wherein the first configuration file contains object loading action indication information; the object loading action indication information contains an identifier of at least one object to be loaded and a loading condition; the loading condition includes at least one of the following: whether the webpage identifier of the accessed webpage is a set webpage identifier; whether the current time is within a set effective period; whether the client application is a set version; and whether the device running the client application is a set type device; generating the first configuration file by: in response to a configuration event triggered by a user for multiple preset objects, obtaining configuration information generated in the configuration event; wherein the configuration information is related to the object loading action of the client application; and generating the first configuration file based on the configuration information; Determining at least one object to be loaded by the client application according to the at least one object identifier; wherein the object to be loaded contains collection operation information related to the data collection requirement; Acquiring the operating environment information of the client application; and loading the at least one object if the operating environment information satisfies the loading condition; After one of the at least one objects has completed loading, the loaded object is executed to collect required data.

14. A server device, characterized in that: include: Memory, processor and communication components, wherein, The memory is used to store programs; The communication component is coupled to the processor; The processor is coupled to the memory and is configured to execute the program stored in the memory to: A first configuration file sent by a first client is received through the communication component, wherein the first configuration file is generated based on configuration information generated in a configuration event, the configuration event being triggered by a user through the first client; the configuration information is related to an object loading action of a client application; the first configuration file contains object loading action indication information; the object loading action indication information contains an identifier of at least one object to be loaded and a loading condition; the loading condition includes at least one of the following: whether the webpage identifier of the accessed webpage is a set webpage identifier; whether the current time is within a set effective period; whether the client application is a set version; and whether the device running the client application is a set type device; The first configuration file is sent to the second client through the communication component, so that the second client determines at least one object to be loaded by the client application based on the at least one object identifier and obtains the operating environment information of the client application; if the operating environment information satisfies the loading condition, the at least one object is loaded; and after an object in the at least one object is loaded, the loaded object is executed to collect the required data; The object to be loaded contains collection operation information related to data collection requirements.

15. A client device, characterized in that: include: Memory, processor and communication components, wherein, The memory is used to store programs; The communication component is coupled to the processor; The processor is coupled to the memory and is configured to execute the program stored in the memory to: In response to a configuration event triggered by a user for a plurality of preset objects, obtaining configuration information generated in the configuration event; wherein the configuration information is related to an object loading action of a client application; Based on the configuration information, a first configuration file is generated; the first configuration file contains object loading action indication information; the object loading action indication information contains an identifier of at least one object to be loaded and a loading condition; the loading condition includes at least one of the following: whether the webpage identifier of the accessed webpage is a set webpage identifier; whether the current time is within the set effective period; whether the client application is a set version; and whether the device running the client application is a set type device; The first configuration file is sent to a server through the communication component, so that the server sends the first configuration file to a second client, so that the second client determines at least one object to be loaded by the client application based on the at least one object identifier and obtains the operating environment information of the client application; if the operating environment information satisfies the loading condition, the at least one object is loaded; and after an object in the at least one object is loaded, the loaded object is executed to collect the required data; The object to be loaded contains collection operation information related to data collection requirements.

Citation Information

Patent Citations

  • Data collection task changing method and device

    CN107302450A

  • Virtual cloud platform-based data acquisition method and device

    CN107341040A

  • Data processing method, device and equipment and machine readable medium

    CN110007952A