Data processing method, electronic device, and storage medium

CN123011653APending Publication Date: 2026-10-30SHENZHEN LONGSYS ELECTRONICS CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510572087.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-04-29
Publication Date
2026-10-30

AI Technical Summary

Technical Problem

[0003]有鉴于此,有必要提供一种数据处理方法、电子设备及存储介质,解决上述采用无埋点技术进行数据收集时,对数据缺乏过滤,导致收集到的数据量较大,造成较大的数据分析压力和存储压力的问题

Benefits of technology

[0014]本申请实施例提供的数据处理方法、电子设备及存储介质通过在终端设备的用户界面接入数据采集组件,通过数据采集组件阻止用户界面上报非必要数据,以及接收用户界面上报的必要数据,从而减少采集的数据量,有效降低数据分析压力和存储压力。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123011653A_ABST
    Figure CN123011653A_ABST
Patent Text Reader

Abstract

Embodiments of the present application provide a data processing method, an electronic device and a storage medium, the method comprising: accessing a data collection component at a user interface of a terminal device, preventing unnecessary data from being reported by the user interface through the data collection component, the unnecessary data being data to be intercepted that meets a preset condition; listening to a target event of the user interface through the data collection component; and obtaining data corresponding to the target event reported by the user interface when the target event is listened to. Embodiments of the present application access a data collection component at a user interface, prevent unnecessary data from being reported by the user interface through data collection, and receive necessary data reported by the user interface, thereby reducing the amount of collected data and effectively reducing data analysis pressure and storage pressure.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of data technology, and in particular to a data processing method, electronic device, and storage medium. Background Technology

[0002] Business development and product decisions typically rely on the collection of various data, such as user data and device logs. This collected data can help optimize product experience, formulate business strategies, and evaluate business performance. Related technologies include event tracking and code-free data collection. When there are many projects and data sources, event tracking involves a significant workload in setting up tracking points. Code-free data collection, on the other hand, lacks data filtering, resulting in a large volume of collected data and potentially creating significant data analysis and storage pressure. Summary of the Invention

[0003] In view of this, it is necessary to provide a data processing method, electronic device and storage medium to solve the problem that when data is collected using the above-mentioned non-code technology, the lack of data filtering leads to a large amount of collected data, resulting in a large data analysis pressure and storage pressure.

[0004] In a first aspect, embodiments of this application provide a data processing method applied to an electronic device. The method includes: accessing a data acquisition component in the user interface of a terminal device; using the data acquisition component to prevent the user interface from reporting unnecessary data, wherein the unnecessary data is data to be intercepted that meets preset conditions; listening to a target event of the user interface using the data acquisition component; and when the target event is detected, acquiring the data corresponding to the target event reported by the user interface.

[0005] In one possible implementation, the data acquisition component is a software development kit, and the access to the data acquisition component in the user interface of the terminal device includes: the code entry point of the user interface introduces the data acquisition component; The data acquisition component is initialized, and the global interface is intercepted through the data acquisition component so that the data generated by the user interface is transmitted to the data acquisition component; the user information in the data acquisition component is updated so that the user information matches the user corresponding to the user interface.

[0006] In one possible implementation, the step of accessing the data acquisition component through the user interface of the terminal device further includes: if an image resource request is received from the terminal device corresponding to the user interface, determining that the data acquisition component has been successfully accessed.

[0007] In one possible implementation, preventing the user interface from reporting unnecessary data through the data acquisition component includes: setting the label and type of the element corresponding to the unnecessary data through the data acquisition component to set the preset conditions and prevent the user interface from reporting the unnecessary data.

[0008] In one possible implementation, the method further includes: clearing the historical interface record data of the user interface through the data acquisition component, starting a macro task, and waiting for the user interface click behavior to trigger and data transmission; associating the control information of the user interface with the interface information, and associating the element information of the user interface with menu identifiers and / or interface identifiers.

[0009] In one possible implementation, associating the control information of the user interface with the interface information includes: receiving the control information and the interface information transmitted by the user interface in response to the initiation of a macro task of the user interface; and binding the control information and the interface information when the macro task begins execution.

[0010] In one possible implementation, the method further includes: detecting the online status of the terminal device, and stopping listening to the target event triggered on the user interface when the terminal device is offline, wherein the target event is a press event or a release event.

[0011] In one possible implementation, obtaining the data corresponding to the target event reported by the user interface includes: obtaining the data corresponding to the target event reported by the user interface via an image object.

[0012] Secondly, embodiments of this application provide an electronic device, which includes a processor and a memory. The memory is used to store instructions, and the processor is used to call the instructions in the memory to cause the electronic device to execute the above-described data processing method.

[0013] Thirdly, embodiments of this application provide a computer-readable storage medium including computer instructions that, when executed on an electronic device, cause the electronic device to perform the aforementioned data processing method.

[0014] The data processing method, electronic device, and storage medium provided in this application reduce the amount of data collected by connecting a data acquisition component to the user interface of a terminal device. The data acquisition component prevents the user interface from reporting unnecessary data and receives necessary data reported by the user interface, thereby effectively reducing the data analysis and storage pressure. Attached Figure Description

[0015] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of this application. For those skilled in the art, other drawings can be obtained based on the provided drawings without creative effort.

[0016] Figure 1 This is a schematic diagram illustrating the application environment of a data processing method provided in an embodiment of this application.

[0017] Figure 2 A flowchart of a data processing method provided in an embodiment of this application.

[0018] Figure 3 A flowchart of an access data acquisition component provided in an embodiment of this application.

[0019] Figure 4 A flowchart of a data processing method provided in another embodiment of this application.

[0020] Figure 5 This is a schematic diagram of the structure of a data processing apparatus provided in an embodiment of this application.

[0021] Figure 6 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Detailed Implementation

[0022] It should be noted that in this application, "at least one" means one or more, and "more than one" means two or more. "And / or" describes the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A alone, A and B simultaneously, or B alone, where A and B can be singular or plural. The terms "first," "second," "third," "fourth," etc. (if present) in the specification, claims, and drawings of this application are used to distinguish similar objects, not to describe a specific order or sequence.

[0023] In the embodiments of this application, the terms "exemplary" or "for example" are used to indicate examples, illustrations, or descriptions. Any embodiment or design described as "exemplary" or "for example" in the embodiments of this application should not be construed as being more preferred or advantageous than other embodiments or design solutions. Specifically, the use of terms such as "exemplary" or "for example" is intended to present the relevant concepts in a specific manner. Unless otherwise specified, the following embodiments and features described herein can be combined with each other.

[0024] Business development and product decisions typically rely on the collection of various data, such as user data and device logs. This collected data can help optimize product experience, formulate business strategies, and evaluate business performance. Related technologies include event tracking and code-free data collection. However, when dealing with numerous projects and data sources, setting up event tracking points can be labor-intensive, requiring minimal code intervention to achieve effective data collection.

[0025] No-code tracking technology collects data by capturing and reporting all data. All captured operations on the interface or page will be recorded and uploaded. While this reduces the development cost of client-side integration with software development kits (SDKs), it brings a huge workload to data analysts. A large amount of meaningless data is collected, making it complex to filter valuable information from the collected data. The massive amount of log data also puts pressure on data storage.

[0026] To address the aforementioned issues, this application provides a data processing method that integrates a data acquisition component into the user interface of a terminal device. This component prevents the user interface from reporting unnecessary data and receives necessary data reported by the user interface, thereby reducing the amount of data collected and effectively lowering data analysis and storage pressure.

[0027] See Figure 1 The diagram shown is an application environment schematic of a data processing method provided in an embodiment of this application. Figure 1 The data processing system 100 shown includes an electronic device 1 and a terminal device 2. In embodiments of this application, the electronic device 1 may deploy a computer program product (e.g., software code, computer-readable instructions, etc.) programmed and implemented according to the data processing method provided in the embodiments of this application, thereby providing data processing services. The electronic device 1 may be a server, such as a single server, a server cluster, or a cloud server. The terminal device 2 may be a user terminal such as a smartphone, personal computer, or smart wearable device.

[0028] See Figure 2 The diagram shown is a flowchart of a data processing method provided in an embodiment of this application. The data processing method is applied to an electronic device, and the method includes: S101, a data acquisition component is connected to the user interface of the terminal device, and the user interface is prevented from reporting unnecessary data through the data acquisition component.

[0029] In one embodiment of this application, the data acquisition component is a JavaScript Software Development Kit (JS SDK), and the non-essential data is data to be intercepted that meets preset conditions.

[0030] In one embodiment of this application, the user interface can be a webpage or an application interface, and the electronic device is a device that provides webpage content or an application, that is, the provider of webpage content or an application. When the terminal device accesses the user interface through a browser or application, the terminal device establishes a communication connection with the electronic device. When the user interacts with the user interface through the terminal device, the terminal device can report the data during the interaction to the electronic device through the connected data acquisition component. In this way, the electronic device can realize automatic data acquisition.

[0031] In one embodiment of this application, the data types collected by the electronic device may include device information, user operation data, basic configuration data, interface performance data, and script exception data. Device information may include the access device type, UA (USER Agent) identifier, browser information, and device operating platform. The UA identifier is a special string sent by the client to the server (i.e., the electronic device) to identify key information such as the client device, operating system, browser type, and version. User operation data includes the page path where the operation occurs, the page title, the event execution time, operation node data, and the operation type. Operation node data may include the node name, node type, and the request associated with the node operation. The node is the triggered element. Basic configuration information may include user information and project name. User information includes username, login name, unique session ID, and user type. Page performance data includes loading time, interaction response time, and rendering performance. Script exception data includes error information thrown during JavaScript code execution, including syntax errors, runtime errors, and network request failures. Through page performance data and script exception data, developers can comprehensively understand the health status of the website, improving user experience and ensuring functional stability.

[0032] In another embodiment of this application, the data types collected by the electronic device may include static data and dynamic data. Static data is data that does not change during a single access, such as user information and device parameters. Dynamic data is data that changes with each operation, such as user operation records, real-time interactive content, and system feedback data.

[0033] In one embodiment of this application, the data acquisition component sets the label and type of the element corresponding to the unnecessary data in order to set preset conditions and prevent the user interface from reporting unnecessary data.

[0034] In one embodiment of this application, element tags are set to exclude elements whose data collection is not required. A monitoring element, `monitorElement`, is configured through the SDK entry point, and matching and filtering are performed based on tags within the SDK. For example, when an element is triggered and generates data, it is determined whether the element's tag is the same as a preset element tag. If the element's tag is the same as the preset element tag, the data generated by that element is not reported.

[0035] In one embodiment of this application, by setting the element type, scenarios where data collection is unnecessary are excluded, thereby filtering data that is clearly not generated by the normal triggering of controls. For example, scenarios where data collection is unnecessary include: tag elements not included in the globally configured `_longSysTrackConfig_.monitorEle`; clicks on the close icon or mask element of `el-dialog` (complex modal dialog) or `el-message-box` (lightweight message box); clicks on dropdown lists; clicks on radio buttons, checkboxes (for `element-ui` components), cascading selectors, toggle button controls `el-switch`, dropdown menus `el-dropdown`, and calendar selectors; clicks on blank areas, such as when multiple button elements are contained within element A, data reporting is ignored when clicking on a blank area of ​​element A (not the button area inside A); and clicks on paragraph text. Taking a browser as an example, after clicking on the page, one can view the network-image resource requests in the browser's debug console to view the corresponding collected data and confirm that the reported user information and session ID (sessionId) are correct.

[0036] See Figure 3 The diagram shown is a flowchart of an access data acquisition component provided in an embodiment of this application.

[0037] S1011 introduces a data acquisition component at the code entry point of the user interface.

[0038] In one embodiment of this application, by <script>标签引入数据采集组件。或者,通过包管理器npm(Node Package Manager) / yarn安装,在代码入口文件(例如main.js、App.vue、index.js)中导入数据采集组件。

[0039] S1012,初始化数据采集组件,通过数据采集组件拦截全局接口,使得用户界面产生的数据传输至数据采集组件。

[0040] 在本申请的一实施例中,为了将数据上报至数据采集组件,通过数据采集组件拦截全局接口。其中,设置一个Axios请求拦截器,在每次发送HTTP请求前自动添加一个名为sid的请求头(Header),请求头的值为从缓存Cookie中获取的会话ID,同时调用自定义拦截器逻辑,避免数据直接上报至电子设备。

[0041] S1013,更新数据采集组件中的用户信息,使得用户信息与用户界面对应的用户匹配。

[0042] 在本申请的一实施例中,数据采集组件中的用户信息包括用户名、用户ID、会话ID。

[0043] 在本申请的一实施例中,在用户界面接入数据采集组件还包括:判断在用户界面加载完成后的预设时长内,是否接收到终端设备发送的图像资源请求,若在用户界面加载完成后的预设时间内,接收到终端设备发送的图像资源请求,确定数据采集组件接入成功。若在用户界面加载完成后的预设时间内,未接收到终端设备发送的图像资源请求,确定数据采集组件接入失败。例如,预设时长为2秒、3秒、5秒或其他时间。

[0044] S102,通过数据采集组件监听用户界面的目标事件。

[0045] 在本申请的一实施例中,目标事件为按下事件或松开事件。其中,按下事件可以是鼠标按下(mousedown)事件或触控按下事件,松开事件可以是鼠标松开(mouseup)事件或触控松开事件。基于按下事件的数据采集过程包括通过数据采集组件监听按下事件,在监听到按下事件触发后,清空历史接口数据,在按下事件对应的点击事件触发后,将点击事件对应的数据传递至数据采集组件,数据采集组件将数据发送至电子设备。通过按下事件触发数据采集,使得数据采集组件可以在界面点击事件触发之前,重置数据采集存储状态,并开启宏任务来记录界面元素被触发时关联的接口请求。

[0046] S103,在监听到目标事件时,获取用户界面上报的目标事件对应的数据。

[0047] 在本申请的一实施例中,获取用户界面通过图像(Image)对象方式上报的目标事件对应的数据。其中,上报的数据与用户基础信息关联。

[0048] 其中,在网页或应用界面中通过Image对象方式上报数据适用于日志统计、用户行为跟踪等场景,利用浏览器加载图片资源的机制,构造一个隐藏的Image对象,将数据附加到图片请求的URL参数中,触发HTTP请求以实现数据上报。

[0049] 在本申请的一实施例中,创建Image对象并设置URL,将上报数据拼接为URL参数,指向一个虚拟的图片地址,后端(例如电子设备)接收到对track.gif的请求后,忽略返回的图片内容(例如返回的图片为1x1透明像素GIF格式的图片),解析URL中的参数,将数据存入日志、存储器或数据库。

[0050] 在本申请的一实施例中,在监听到按下事件后,清除历史接口拦截数据,在下一个宏任务中采集数据,将采集到的数据传入数据采集组件,采集的数据包括按下事件对应的节点文本、界面标题、界面路径、事件触发的请求。例如,节点文本为按下事件触发的元素所包含的文本内容。

[0051] 基于本申请的上述实施例,在终端设备的用户界面接入数据采集组件,通过数据采集组件阻止用户界面上报非必要数据,以及接收用户界面上报的必要数据,从而减少采集的数据量,有效降低数据分析压力和存储压力。

[0052] 参阅图4所示,为本申请另一实施例提供的数据处理方法的流程图。所述数据处理方法应用于电子设备,所述方法包括:S201,在终端设备的用户界面接入数据采集组件,通过数据采集组件阻止用户界面上报非必要数据。

[0053] S202,通过数据采集组件监听用户界面的目标事件。

[0054] S203,在监听到目标事件时,通过数据采集组件清空用户界面的历史接口记录数据,开启宏任务,等待用户界面的点击行为触发和数据传递。

[0055] 在本申请的一实施例中,数据采集组件通过清空用户界面的本地存储数据,以清空历史接口记录数据。例如,接口包括数据存储接口、系统交互接口、跨平台通用接口等,数据存储接口包括历史文件接口、系统日志文件接口、数据库接口等,系统交互接口包括WebAPI接口、工业控制协议接口、系统调用接口等,跨平台通用接口包括消息队列接口、文件系统接口等。历史接口记录数据可以包括接口基础信息、请求与响应数据、性能与调用指标、业务与安全相关数据等。接口基础信息可以包括接口标识、接口参数等,请求数据可以包括HTTP方法、请求头、请求体,响应数据可以包括状态码、响应头、响应体,性能与调用指标可以包括性能指标、调用上下文等,性能指标可以包括响应时长、吞吐量、错误率等,调用上下文可以包括调用时间戳、调用方信息等。

[0056] 在本申请的其他实施例中,数据采集组件也可以通过clearHistory()方法或直接操作存储历史数据的结构,以清空用户界面的历史接口记录数据。然后开启宏任务,等待点击事件,使用setTimeout将事件绑定延迟到下一个事件循环,从而确保清空操作已完成。通过清空历史接口记录数据,可以避免数据冗余干扰,确保每次采集的数据仅反映当前操作周期的用户行为,防止旧数据与新数据混杂导致分析偏差,优化存储资源。

[0057] 在本申请的一实施例中,开启宏任务队列后,终端设备可按事件触发顺序处理用户操作,确保数据采集的逻辑完整性。JavaScript的事件循环机制从宏任务队列中取出宏任务来执行,在每个宏任务执行结束后,检查微任务队列。如果微任务队列中有任务,依次执行微任务队列中的所有任务,直到微任务队列清空,然后再从宏任务队列中取出下一个宏任务执行,如此循环往复。在宏任务执行的过程中进行数据采集,利用宏任务的异步执行特性,将数据采集与主线程逻辑解耦,从而提升系统性能,避免阻塞,实现批量高效处理。

[0058] S204,将用户界面的控件信息与接口信息关联,以及将用户界面的元素信息与菜单标识和 / 或界面标识关联。

[0059] 在本申请的一实施例中,响应于用户点击界面上的控件,确定触发mousedown事件,通过数据采集组件清空历史数据,并开启下一轮宏任务。在mousedown事件对应的click(点击)事件触发后,将用户界面的控件信息和接口信息传递到。在下一轮宏任务执行的过程中,数据采集组件进行数据采集,将控件信息和接口信息绑定,进行无效数据过滤,并将过滤后的数据发送至电子设备。例如,控件信息可以是控件ID,接口信息可以是接口ID。

[0060] 在本申请的一实施例中,响应于对用户界面的宏任务的开启,接收用户界面传递的控件信息和接口信息,在宏任务开始执行时,将控件信息和接口信息绑定。

[0061] 在本申请的一实施例中,由于部分项目或功能模块通过iframe标签嵌套在界面内,通过提取项目或功能模块的共性,获取菜单ID或者页面ID,用于辅助定位数据在界面中的准确位置,为数据分析提供精确定位参考信息。

[0062] S205,获取用户界面上报的目标事件对应的数据。

[0063] 在本申请的一实施例中,在回调中收集数据并通过数据采集组件上报,绑定按下事件监听(document.addEventListener),在用户点击界面时,收集按下事件对应的数据(例如元素、时间戳、用户信息),通过数据采集组件上报数据(例如SDK.report),处理上报结果(例如成功或失败)。

[0064] S201-S202、S205的具体实施方式与S101-S103的具体实施方式相同,在此不作赘述。

[0065] 本申请的上述实施例通过将用户界面的控件信息与接口信息关联,以及将用户界面的元素信息与菜单标识和 / 或界面标识关联,可以在对采集的数据进行分析时,提供分析参考信息和精确的定位参考信息,从而提高数据分析效率。

[0066] 在本申请的一实施例中,所述方法还包括:检测终端设备的在线状态,在终端设备处于离线状态的情形下,停止监听在用户界面上触发的目标事件。

[0067] 在本申请的一实施例中,通过轮询的方式来向电子设备定时推送基础信息来记录终端设备的在线状态,在线检测功能可以实现多个界面同时引入SDK而存在多个心跳检测的情况,同时也可以在界面长时间无操作时停止在线检测数据发送行为。

[0068] 在本申请的一实施例中,数据采集组件也可以采集界面加载相关的数据,对界面性能、网络情况进行分析,从而确定界面加载过程中的不合理情况。

[0069] 在本申请的一实施例中,数据采集组件也可以采集界面加载异常数据,用于采集界面代码执行异常数据。

[0070] 参阅图5所示,为本申请一实施例提供的数据处理装置的结构示意图。在本申请的一实施例中,数据处理装置200可以包括多个由计算机程序段所组成的功能模块。数据处理装置200中的计算机程序段可以存储于电子设备1的存储器中,并由至少一个处理器所执行,以执行数据处理功能。

[0071] 在本申请的一实施例中,数据处理装置200根据其所执行的功能,可以被划分为多个功能模块。数据处理装置200的功能模块可以包括:接入模块201、监听模块202、采集模块203。本申请实施例中的模块是指一种能够被至少一个处理器所执行并且能够完成固定功能的一系列计算机程序段,其存储在存储器中。

[0072] 接入模块201用于在终端设备的用户界面接入数据采集组件,通过所述数据采集组件阻止所述用户界面上报非必要数据,所述非必要数据为符合预设条件的待拦截数据。

[0073] 监听模块202用于通过所述数据采集组件监听所述用户界面的目标事件。

[0074] 采集模块203在监听到所述目标事件时,获取所述用户界面上报的所述目标事件对应的数据。

[0075] 参阅图6所示,为本申请一实施例提供的电子设备的结构示意图。电子设备1包括,但不限于,处理器10、存储器20、存储在所述存储器20中并可在所述处理器10上运行的计算机程序。例如,所述计算机程序为数据处理程序。所述处理器10执行所述计算机程序时实现数据处理方法中的步骤。电子设备1可以是智能手机、个人电脑、穿戴式设备、存储设备等。

[0076] 示例性的,所述计算机程序可以被分割成一个或多个模块 / 单元,所述一个或者多个模块 / 单元分别被存储在所述存储器20中,并由所述处理器10执行,以完成本申请。所述一个或多个模块 / 单元可以是能够完成特定功能的一系列计算机程序指令段,所述指令段用于描述所述计算机程序在所述电子设备1中的执行过程。

[0077] 本领域技术人员可以理解,所述示意图仅仅是电子设备1的示例,并不构成对电子设备1的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件,例如所述电子设备1还可以包括输入输出设备、网络接入设备、总线等。

[0078] 处理器10可以是中央处理单元(Central Processing Unit,CPU),还可以是其他通用处理器10、数字信号处理器10(Digital Signal Processor,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现成可编程门阵列(Field-Programmable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。通用处理器10可以是微处理器10或者所述处理器10也可以是任何常规的处理器10等,所述处理器10是所述电子设备1的控制中心,利用各种接口和线路连接整个电子设备1的各个部分。

[0079] 存储器20可用于存储所述固件程序和 / 或模块 / 单元,所述处理器10通过运行或执行存储在所述存储器20内的计算机程序和 / 或模块 / 单元,以及调用存储在存储器20内的数据,实现所述电子设备1的各种功能。所述存储器20可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序等;存储数据区可存储基于电子设备1使用所创建的数据等。此外,存储器20可以包括易失性和非易失性存储器20,例如硬盘、内存、插接式硬盘,智能存储卡(Smart Media Card, SMC),安全数字(SecureDigital, SD)卡,闪存卡(Flash Card)、至少一个磁盘存储器20件、闪存器件、或其他存储器20件。

[0080] 所述电子设备1集成的模块 / 单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请实现上述实施例方法中的全部或部分流程,也可以通过计算机程序来指令相关的硬件来完成,所述的计算机程序可存储于一计算机可读存储介质中,所述计算机程序在被处理器执行时,可实现上述各个方法实施例的步骤。其中,所述计算机程序包括计算机程序代码,所述计算机程序代码可以为源代码形式、对象代码形式、可执行文件或某些中间形式等。所述计算机可读介质可以包括,能够携带所述计算机程序代码的任何实体或装置、记录介质、U盘、移动硬盘、磁碟、光盘、计算机存储器、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)。

[0081] 本申请所述计算机可读存储介质的具体实施例的拓展内容与上述数据处理方法各实施例基本相同,在此不做赘述。

[0082] 对于本领域技术人员而言,显然本申请不限于上述示范性实施例的细节,而且在不背离本申请的精神或基本特征的情况下,能够以其他的具体形式实现本申请。因此,无论从哪一点来看,均应将实施例看作是示范性的,而且是非限制性的,本申请的范围由所附权利要求而不是上述说明限定,因此旨在将落在权利要求的等同要件的含义和范围内的所有变化涵括在本申请内。不应将权利要求中的任何附图标记视为限制所涉及的权利要求。此外,显然"包括”一词不排除其他单元或步骤,单数不排除复数。装置权利要求中陈述的多个单元或装置也可以由同一个单元或装置通过软件或者硬件来实现。第一,第二等词语用来表示名称,而并不表示任何特定的顺序。

[0083] 最后应说明的是,以上实施例仅用以说明本申请的技术方案而非限制,尽管参照较佳实施例对本申请进行了详细说明,本领域的普通技术人员应当理解,可以对本申请的技术方案进行修改或等同替换,而不脱离本申请技术方案的精神和范围。< / script>

Claims

1. A data processing method applied to electronic devices, characterized in that, The method includes: A data acquisition component is connected to the user interface of the terminal device. The data acquisition component prevents the user interface from reporting unnecessary data. The unnecessary data is data to be intercepted that meets preset conditions. The data acquisition component listens for target events in the user interface. When the target event is detected, the data corresponding to the target event reported by the user interface is obtained.

2. The data processing method as described in claim 1, characterized in that, The data acquisition component is a software development kit, and the process of accessing the data acquisition component in the user interface of the terminal device includes: The data acquisition component is introduced at the code entry point of the user interface; Initialize the data acquisition component, and intercept the global interface of the user interface through the data acquisition component, so that the data generated by the user interface is transmitted to the data acquisition component; Update the user information in the data acquisition component so that the user information matches the user corresponding to the user interface.

3. The data processing method as described in claim 1, characterized in that, The method of accessing the data acquisition component through the user interface of the terminal device also includes: If an image resource request is received from the terminal device, it is determined that the data acquisition component has successfully connected.

4. The data processing method as described in claim 1, characterized in that, The step of preventing the user interface from reporting unnecessary data through the data acquisition component includes: By setting the labels and types of the elements corresponding to the unnecessary data through the data acquisition component, the preset conditions are set to prevent the user interface from reporting the unnecessary data.

5. The data processing method as described in claim 1, characterized in that, The method further includes: The data acquisition component clears the historical interface records of the user interface, starts a macro task, and waits for the user interface click behavior to trigger and data transmission. Associating the control information of the user interface with the interface information, and associating the element information of the user interface with menu identifiers and / or interface identifiers.

6. The data processing method as described in claim 5, characterized in that, Associating the control information of the user interface with the interface information includes: In response to the initiation of a macro task on the user interface, the system receives the control information and interface information transmitted by the user interface. When the macro task begins execution, the control information and the interface information are bound together.

7. The data processing method as described in claim 1, characterized in that, The method further includes: The online status of the terminal device is detected. If the terminal device is offline, the listening for the target event triggered on the user interface, which is a press event or a release event, is stopped.

8. The data processing method as described in claim 1, characterized in that, The step of obtaining the data corresponding to the target event reported by the user interface includes: Obtain the data corresponding to the target event reported by the user interface via an image object.

9. An electronic device, characterized in that, The electronic device includes a processor and a memory, the memory being used to store instructions, and the processor being used to invoke the instructions in the memory to cause the electronic device to perform the data processing method according to any one of claims 1 to 8.

10. A computer-readable storage medium, characterized in that, Includes computer instructions that, when executed on an electronic device, cause the electronic device to perform the data processing method as described in any one of claims 1 to 8.