Method and device for processing traceless buried-point user behavior data of IOS system
By applying event interception technology and data upload mechanism in iOS system, the existing traceless buried point technology has limited coverage functions and low stability, and more efficient and accurate user behavior data collection and analysis are achieved.
Patent Information
- Application Number
- CN202411467377.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-18
- Publication Date
- 2025-02-28
Smart Images

Figure 00000000_0000_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of data processing technology, and in particular to a method and device for processing user behavior data without traces in an IOS system. Background Art
[0002] With the rapid development of mobile Internet, iOS application development has become an important means for enterprises to obtain user data, optimize product experience and achieve precision marketing. In order to achieve this goal, the collection and analysis of in-app user behavior data (which only includes data on user software operations, such as user opening pages, user clicking buttons, etc., and does not involve any user's personal information and privacy data) (i.e. "point tracking") has become an indispensable part.
[0003] At present, the conventional tracking technology solutions in iOS development mainly include the following: code tracking, visual tracking and traceless tracking. Among them, for code tracking, all tracking needs to be manually added by technicians, which is a huge workload and difficult to maintain; for visual tracking, its function coverage is limited, not all controls can be customized and implemented in this way, and there are great limitations on use; for traceless tracking, it covers fewer functions, limited to basic user behaviors such as clicks and displays, and as the amount of data increases, the probability of client crashes increases, and there is a problem of low stability. Summary of the invention
[0004] The present invention provides a method and device for processing user behavior data of an IOS system without traces, which can reduce the amount of data collection, improve data collection accuracy, improve data utilization, and expand data application scenarios and applicability.
[0005] In order to solve the above technical problems, the first aspect of the present invention discloses a method for processing user behavior data of an IOS system without traces, and the method is applied to the IOS system, and the method comprises:
[0006] After determining that the preset tracking point execution condition is currently met, intercept the target event corresponding to the IOS system according to the set event interception condition to obtain event interception data corresponding to the target event;
[0007] According to the event interception data, construct an element identifier of the target event, wherein the element identifier is uniquely bound to the target event and is used to identify the target event; the element identifier is also used to determine event association information between different target events;
[0008] According to a preset data upload mechanism, event judgment is performed on the element identifier, and when the corresponding event judgment result indicates that the element identifier meets the immediate upload condition, data upload is performed on the target event and its corresponding event interception data.
[0009] As an optional implementation manner, in the first aspect of the present invention, intercepting the target event corresponding to the IOS system according to the set event interception condition to obtain event interception data corresponding to the target event includes:
[0010] According to the set event interception conditions, determine the target interception parameters for executing the interception, wherein the target interception parameters include at least a primary parameter corresponding to the event type; the target interception parameters also include at least one secondary parameter among the responder chain, business rules and event attribute value;
[0011] According to the target interception parameter, a target interception operation is performed on a plurality of basic events currently generated in the IOS system to obtain at least one target event, and event interception data corresponding to each of the target events is determined;
[0012] Each of the target events matches the parameter interception requirement set by the corresponding target interception parameter, and the target event at least includes a system event corresponding to the IOS system and / or a life cycle event corresponding to the controller in the IOS system.
[0013] As an optional implementation, in the first aspect of the present invention, the event type includes an interactive event type or a non-interactive event type with an interception mark;
[0014] The step of performing a target interception operation on a plurality of basic events currently generated in the IOS system according to the target interception parameter to obtain at least one target event includes:
[0015] Acquire multiple basic events currently generated in the IOS system, and perform event type screening on each of the basic events according to the primary parameter to obtain an event screening set, wherein the event screening set includes at least one screening event, and the event type corresponding to the screening event is the interaction event type;
[0016] For each of the screening events in the event screening set, performing secondary screening on the screening event according to all the secondary parameters to obtain a secondary event set, and determining each secondary event in the secondary event set as a target event;
[0017] Each of the secondary events matches one of the secondary parameters.
[0018] As an optional implementation, in the first aspect of the present invention, performing secondary screening on the screening event according to all the secondary parameters to obtain a secondary event set includes:
[0019] When the secondary parameter includes the responder chain, traverse the responder chain associated with the filter event to obtain the event triggering control corresponding to the filter event and the view level to which it belongs;
[0020] Determine whether the screening event satisfies a first screening condition, and when it is determined that the screening event satisfies the first screening condition, determine the screening event as a secondary event and add it to the secondary event set;
[0021] Among them, the filtering event satisfies the first filtering condition specifically including that the event triggering control corresponding to the filtering event is a control associated with the user operation and has a preset control supervision identifier, and at the same time, the view level to which the filtering event belongs is within the preset monitoring level.
[0022] As an optional implementation manner, in the first aspect of the present invention, performing secondary screening on the screening event according to all the secondary parameters to obtain a secondary event set further includes:
[0023] When the secondary parameter includes the business rule, determine the business scenario corresponding to the screening event and its corresponding target scenario rule; determine the cutoff node in the screening event according to the business scenario and its corresponding target scenario rule, and determine the cutoff record event corresponding to the cutoff node as a secondary event and add it to the secondary event set; the cutoff node is a node corresponding to the completion of the preset calibration operation of the screening event;
[0024] When the secondary parameter includes the event attribute value, the real-time event attribute value corresponding to the screening event is monitored in real time, and when it is determined that the real-time event attribute value indicates that the screening event satisfies the second screening condition, the screening event is determined as a secondary event and added to the secondary event set;
[0025] The real-time event attribute value indicates that the screening event satisfies the second screening condition, specifically, the change frequency corresponding to the real-time event attribute value is higher than a set frequency change threshold.
[0026] As an optional embodiment, in the first aspect of the present invention, the method further comprises:
[0027] After detecting the application startup instruction corresponding to the IOS system, performing status detection on the tracking mechanism set in the IOS system to obtain status detection information corresponding to the tracking mechanism;
[0028] Determine whether it is necessary to execute the initialization of the burying point mechanism according to the state detection information, and when it is determined that it is not necessary to execute the initialization of the burying point mechanism, determine whether the preset burying point execution condition is currently met;
[0029] When it is determined that the tracking mechanism needs to be initialized, a preset classification loading method is called, and the tracking mechanism is initialized to obtain an initialization result corresponding to the tracking mechanism;
[0030] In the process of executing method exchange based on the classification loading method, salt processing is performed on the selector that executes the method exchange to obtain the salt processing result corresponding to the selector, and after detecting the initialization result and the salt processing result, it is determined that the preset point execution condition is currently met.
[0031] As an optional implementation, in the first aspect of the present invention, the target event includes at least one of a control event triggered by a system control, a gesture event triggered by a gesture recognizer, and a proxy event triggered by a corresponding proxy setting;
[0032] The determining of the event interception data corresponding to each of the target events includes:
[0033] When the target event includes the control event, the control attribute corresponding to the triggering control of the target event is collected according to the first interception function, and the target event and the corresponding control attribute are determined as the interception data corresponding to the target event; the control attribute includes the control title and / or the control switch state;
[0034] When the target event includes the gesture event, the gesture trigger information corresponding to the gesture recognizer is intercepted from the target event according to the second interception function, and the target event and the corresponding gesture trigger information are determined as interception data corresponding to the target event; the gesture trigger information includes a click position and / or a click frequency and / or a click recording time;
[0035] When the target event includes the proxy event, the proxy record information corresponding to the proxy event is collected according to the third interception function, and the target event and its corresponding proxy record information are determined as interception data corresponding to the target event; the proxy record information includes a proxy setting path and / or a cell attribute value.
[0036] The second aspect of the present invention discloses a user behavior data processing device for an IOS system without traces, the device is applied to the IOS system, and the device comprises:
[0037] An event interception module is used to intercept the target event corresponding to the IOS system according to the set event interception condition after determining that the preset tracking point execution condition is currently met, and obtain event interception data corresponding to the target event;
[0038] An element identification construction module, used to construct an element identification of the target event according to the event interception data, wherein the element identification is uniquely bound to the target event and is used to identify the target event; the element identification is also used to determine event association information between different target events;
[0039] The data upload module is used to perform event judgment on the element identifier according to a preset data upload mechanism, and when the corresponding event judgment result indicates that the element identifier meets the immediate upload conditions, perform data upload on the target event and its corresponding event interception data.
[0040] As an optional implementation, in the second aspect of the present invention, the event interception module includes:
[0041] A determination submodule is used to determine the target interception parameters for intercepting the execution items according to the set event interception conditions after determining that the preset tracking point execution conditions are currently met, wherein the target interception parameters include at least a primary parameter corresponding to the event type; the target interception parameters also include at least one secondary parameter of the responder chain, business rules, and event attribute value;
[0042] An interception submodule, configured to perform a target interception operation on a plurality of basic events currently generated in the IOS system according to the target interception parameter, obtain at least one target event, and determine event interception data corresponding to each of the target events;
[0043] Each of the target events matches the parameter interception requirement set by the corresponding target interception parameter, and the target event at least includes a system event corresponding to the IOS system and / or a life cycle event corresponding to the controller in the IOS system.
[0044] As an optional implementation, in the second aspect of the present invention, the event type includes an interactive event type or a non-interactive event type with an interception mark;
[0045] The interception submodule performs a target interception operation on a plurality of basic events currently generated in the IOS system according to the target interception parameter, and obtains at least one target event in a manner that specifically includes:
[0046] Acquire multiple basic events currently generated in the IOS system, and perform event type screening on each of the basic events according to the primary parameter to obtain an event screening set, wherein the event screening set includes at least one screening event, and the event type corresponding to the screening event is the interaction event type;
[0047] For each of the screening events in the event screening set, performing secondary screening on the screening event according to all the secondary parameters to obtain a secondary event set, and determining each secondary event in the secondary event set as a target event;
[0048] Each of the secondary events matches one of the secondary parameters.
[0049] As an optional implementation, in the second aspect of the present invention, the interception submodule performs secondary screening on the screening event according to all the secondary parameters, and the manner of obtaining the secondary event set specifically includes:
[0050] When the secondary parameter includes the responder chain, traverse the responder chain associated with the filter event to obtain the event triggering control corresponding to the filter event and the view level to which it belongs;
[0051] Determine whether the screening event satisfies a first screening condition, and when it is determined that the screening event satisfies the first screening condition, determine the screening event as a secondary event and add it to the secondary event set;
[0052] Among them, the filtering event satisfies the first filtering condition specifically including that the event triggering control corresponding to the filtering event is a control associated with the user operation and has a preset control supervision identifier, and at the same time, the view level to which the filtering event belongs is within the preset monitoring level.
[0053] As an optional implementation, in the second aspect of the present invention, the interception submodule performs secondary screening on the screening event according to all the secondary parameters, and the method of obtaining the secondary event set specifically includes:
[0054] When the secondary parameter includes the business rule, determine the business scenario corresponding to the screening event and its corresponding target scenario rule; determine the cutoff node in the screening event according to the business scenario and its corresponding target scenario rule, and determine the cutoff record event corresponding to the cutoff node as a secondary event and add it to the secondary event set; the cutoff node is a node corresponding to the completion of the preset calibration operation of the screening event;
[0055] When the secondary parameter includes the event attribute value, the real-time event attribute value corresponding to the screening event is monitored in real time, and when it is determined that the real-time event attribute value indicates that the screening event satisfies the second screening condition, the screening event is determined as a secondary event and added to the secondary event set;
[0056] The real-time event attribute value indicates that the screening event satisfies the second screening condition, specifically, the change frequency corresponding to the real-time event attribute value is higher than a set frequency change threshold.
[0057] As an optional implementation, in the second aspect of the present invention, the device further includes:
[0058] An initialization processing module, configured to, after detecting an application startup instruction corresponding to the IOS system, perform a status detection on a tracking mechanism set in the IOS system to obtain status detection information corresponding to the tracking mechanism;
[0059] The initialization processing module is further used to determine whether it is necessary to execute the initialization of the burying point mechanism according to the state detection information, and when it is determined that it is not necessary to execute the initialization of the burying point mechanism, determine whether the preset burying point execution condition is currently met;
[0060] The initialization processing module is further used to call a preset classification loading method and initialize the burying mechanism when it is determined that the burying mechanism needs to be initialized to obtain an initialization result corresponding to the burying mechanism;
[0061] The initialization processing module is also used to perform salt processing on the selector that executes the method exchange in the process of executing the method exchange based on the classification loading method, obtain the salt processing result corresponding to the selector, and after detecting the initialization result and the salt processing result, determine whether the preset point execution conditions are currently met.
[0062] As an optional implementation, in the second aspect of the present invention, the target event includes at least one of a control event triggered by a system control, a gesture event triggered by a gesture recognizer, and a proxy event triggered by a corresponding proxy setting;
[0063] The method in which the interception submodule determines the event interception data corresponding to each of the target events specifically includes:
[0064] When the target event includes the control event, the control attribute corresponding to the triggering control of the target event is collected according to the first interception function, and the target event and the corresponding control attribute are determined as the interception data corresponding to the target event; the control attribute includes the control title and / or the control switch state;
[0065] When the target event includes the gesture event, the gesture trigger information corresponding to the gesture recognizer is intercepted from the target event according to the second interception function, and the target event and the corresponding gesture trigger information are determined as interception data corresponding to the target event; the gesture trigger information includes a click position and / or a click frequency and / or a click recording time;
[0066] When the target event includes the proxy event, the proxy record information corresponding to the proxy event is collected according to the third interception function, and the target event and its corresponding proxy record information are determined as interception data corresponding to the target event; the proxy record information includes a proxy setting path and / or a cell attribute value.
[0067] The third aspect of the present invention discloses an electronic device installed with an IOS system, the electronic device comprising:
[0068] A memory storing executable program code;
[0069] a processor coupled to the memory;
[0070] The processor calls the executable program code stored in the memory to execute the user behavior data processing method for seamless embedding in the IOS system disclosed in the first aspect of the present invention.
[0071] The fourth aspect of the present invention discloses a user behavior data processing system for an IOS system without trace embedding, the system comprises an electronic device installed with an IOS system as disclosed in the third aspect of the present invention, and the electronic device is communicatively connected to at least one network attached storage device to access data stored in any of the network attached storage devices, and a computer application capable of executing the method disclosed in the first aspect of the present invention is installed in the electronic device.
[0072] The fifth aspect of the present invention discloses a computer storage medium, which stores computer instructions. When the computer instructions are called, they are used to execute the user behavior data processing method for seamless embedding in the IOS system disclosed in the first aspect of the present invention.
[0073] Compared with the prior art, the embodiments of the present invention have the following beneficial effects:
[0074] In an embodiment of the present invention, a method for processing user behavior data of an IOS system without traceable tracking is provided, and the method is applied to the IOS system, and the method includes: after determining that the preset tracking execution conditions are currently met, intercepting the target event corresponding to the IOS system according to the set event interception conditions, and obtaining event interception data corresponding to the target event; constructing an element identifier of the target event according to the event interception data, the element identifier is uniquely bound to the target event and is used to identify the target event; the element identifier is also used to determine event association information between different target events; according to the preset data upload mechanism, performing event judgment on the element identifier, and when the corresponding event judgment result indicates that the element identifier meets the immediate upload conditions, performing data upload on the target event and its corresponding event interception data. It can be seen that the implementation of the present invention can intercept the target event according to the set event interception conditions, ensuring that only key event data closely related to the business logic is captured, which is beneficial to improving the interception accuracy of the target event, and improving the accuracy of obtaining the event interception data corresponding to the target event; further, by constructing an element identifier that is uniquely bound to the target event, not only the accurate identification of the target event is achieved, but also the subsequent data management and analysis are convenient. In addition, through the set data upload mechanism and event judgment process, the element identifier can upload the target event and its corresponding event interception data in a timely and fast manner when the immediate upload conditions are met, which is beneficial to improving the real-time nature of the data, and can also flexibly adjust the upload strategy according to actual needs to avoid problems caused by data accumulation or delayed upload. BRIEF DESCRIPTION OF THE DRAWINGS
[0075] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0076] Figure 1 It is a flowchart of a method for processing user behavior data of an IOS system without traces disclosed in an embodiment of the present invention;
[0077] Figure 2 It is a flowchart of another method for processing user behavior data of an IOS system without traces disclosed in an embodiment of the present invention;
[0078] Figure 3 It is a structural schematic diagram of a user behavior data processing device for an IOS system without trace embedding disclosed in an embodiment of the present invention;
[0079] Figure 4 It is a structural schematic diagram of another device for processing user behavior data of an IOS system without trace embedding disclosed in an embodiment of the present invention;
[0080] Figure 5 It is a structural schematic diagram of an electronic device installed with an IOS system disclosed in an embodiment of the present invention. DETAILED DESCRIPTION
[0081] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0082] The terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish different objects rather than to describe a specific order. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, device, product or end including a series of steps or units is not limited to the listed steps or units, but may optionally include steps or units that are not listed, or may optionally include other steps or units inherent to these processes, methods, products or ends.
[0083] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present invention. The appearance of the phrase in various places in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.
[0084] The present invention discloses a user behavior data processing method and device for a traceless point-burying of an IOS system, which can intercept a target event according to a set event interception condition, ensure that only key event data closely related to the business logic is captured, and is conducive to improving the interception accuracy of the target event, and improving the accuracy of obtaining the event interception data corresponding to the target event; further, by constructing an element identifier that is uniquely bound to the target event, not only the accurate identification of the target event is achieved, but also subsequent data management and analysis are facilitated. In addition, through the data upload mechanism and event judgment process set by the set, the element identifier can upload the target event and its corresponding event interception data in a timely and fast manner when it meets the instant upload conditions, which is conducive to improving the real-time nature of the data, and can also flexibly adjust the upload strategy according to actual needs to avoid problems caused by data accumulation or delayed upload. The following are described in detail respectively.
[0085] Embodiment 1
[0086] See also Figure 1 , Figure 1 This is a flow chart of a method for processing user behavior data of an IOS system without traces disclosed in an embodiment of the present invention. Figure 1 The described method for processing user behavior data of the iOS system without trace embedding can be applied to the iOS system, and can also be applied to the user behavior data processing device of the iOS system without trace embedding, which is not limited in the embodiments of the present invention. Figure 1 As shown, the method for processing user behavior data of the IOS system without traces may include the following operations:
[0087] 101. After determining that the preset tracking point execution conditions are currently met, intercept the target event corresponding to the IOS system according to the set event interception conditions to obtain event interception data corresponding to the target event.
[0088] In the embodiment of the present invention, by setting preset tracking execution conditions in the IOS system, it is possible to accurately control when to start the traceless tracking mechanism, which is beneficial to avoid unnecessary data collection and reduce system resource consumption.
[0089] 102. Construct an element identifier of the target event based on the event interception data. The element identifier is uniquely bound to the target event and is used to identify the target event. The element identifier is also used to determine event association information between different target events.
[0090] In the embodiment of the present invention, the setting of the element identifier makes it possible to clarify the event association information between different target events, and provides data support for in-depth analysis of user behavior patterns, construction of user portraits, etc.
[0091] In the embodiment of the present invention, for each target event Action, a unique element identifier element_id is constructed to identify each target event and its corresponding embedding point data.
[0092] 103. According to the preset data upload mechanism, event judgment is performed on the element identifier, and when the corresponding event judgment result indicates that the element identifier meets the immediate upload conditions, data upload is performed on the target event and its corresponding event interception data.
[0093] In the embodiment of the present invention, the target event and its corresponding event interception data may be subsequently uploaded to a server or a data warehouse.
[0094] In the embodiment of the present invention, the technical solution involved in the above steps 101 to 103 is based on the non-traceable tracking technology. Compared with the traditional explicit tracking technology, it can reduce the interference to the user operation and help improve the user experience. At the same time, through the precise interception of the target event and the control of data upload, it can maximize the protection of user privacy while ensuring the necessary data collection, which meets the requirements of modern mobile applications for data security and personal privacy protection.
[0095] It can be seen that implementation Figure 1 The described method for processing user behavior data of the IOS system with traceless embedding can intercept the target event according to the set event interception conditions, ensuring that only the key event data closely related to the business logic is captured, which is conducive to improving the interception accuracy of the target event and improving the accuracy of obtaining the event interception data corresponding to the target event; further, by constructing an element identifier uniquely bound to the target event, not only the accurate identification of the target event is achieved, but also the subsequent data management and analysis are facilitated. In addition, through the set data upload mechanism and event judgment process, the element identifier can upload the target event and its corresponding event interception data in a timely and fast manner when the instant upload conditions are met, which is conducive to improving the real-time nature of the data, and can also flexibly adjust the upload strategy according to actual needs to avoid problems caused by data accumulation or delayed upload.
[0096] In an optional embodiment, the above step 101 intercepts the target event corresponding to the IOS system according to the set event interception condition, and the method of obtaining the event interception data corresponding to the target event specifically includes:
[0097] According to the set event interception conditions, determine the target interception parameters for executing the interception, the target interception parameters at least include the primary parameters corresponding to the event type; the target interception parameters also include at least one secondary parameter from the responder chain, business rules and event attribute value;
[0098] According to the target interception parameters, a target interception operation is performed on multiple basic events currently generated in the IOS system to obtain at least one target event, and event interception data corresponding to each target event is determined;
[0099] Each target event matches the parameter interception requirement set by its corresponding target interception parameter, and the target event at least includes a system event corresponding to the IOS system and / or a life cycle event corresponding to the controller in the IOS system.
[0100] In this optional embodiment, by expanding the scope of the target event to include system events corresponding to the IOS system and / or life cycle events corresponding to the controller in the IOS system, it is ensured that comprehensive behavioral data of the user during the use of the IOS application can be captured.
[0101] It can be seen that in this optional embodiment, by defining the target interception parameters in detail, including the first-level parameters corresponding to the event type and the second-level parameters such as the responder chain, business rules, and event attribute values, accurate configuration of the event interception conditions is achieved. This highly customized strategy can ensure that only events that are closely related to the business logic and meet specific requirements are intercepted, thereby avoiding unnecessary data collection, improving the interception accuracy of target events, and improving the accuracy of determining event interception data; at the same time, due to the high configurability of the interception conditions, it can flexibly adapt to different business needs and scenarios, and achieve accurate capture of user behavior.
[0102] In another optional embodiment, in the above-mentioned primary parameter corresponding to the event type, the event type includes an interactive event type or a non-interactive event type with an interception mark;
[0103] Optionally, the method of performing the target interception operation on multiple basic events currently generated in the IOS system according to the target interception parameter to obtain at least one target event specifically includes:
[0104] Acquire multiple basic events currently generated in the IOS system, and perform event type screening on each basic event according to the primary parameters to obtain an event screening set, where the event screening set includes at least one screening event, and the event type corresponding to each screening event is an interactive event type;
[0105] For each screening event in the event screening set, performing secondary screening on the screening event according to all secondary parameters to obtain a secondary event set, and determining each secondary event in the secondary event set as a target event;
[0106] Each secondary event is matched with a secondary parameter.
[0107] In this optional embodiment, when hooking (intercepting) system events and controller lifecycle events, the type of event is first determined, and only meaningful interactive events (such as button clicks, gesture operations, list selections, etc.) are intercepted, and non-critical, noise events (such as view loading, etc.) are filtered out and do not enter the point-of-use processing flow.
[0108] It can be seen that in this optional embodiment, interactive event types or non-interactive event types with interception marks are introduced in the first-level parameters, so that the event interception strategy can more accurately screen specific types of events, thereby effectively avoiding the incorrect interception of irrelevant events, and allowing developers to flexibly configure interception strategies according to actual business needs to adapt to different application scenarios, that is, it is conducive to improving the flexibility and accuracy of event interception; in addition, through hierarchical screening, not only the complexity of event processing is reduced and the processing efficiency is improved, but also it helps to ensure that only events that meet all interception conditions will be finally determined as target events, which is conducive to improving the accuracy of determining target events.
[0109] In another optional embodiment, the above corresponding event judgment result indicates that the element identifier meets the instant upload condition specifically includes:
[0110] The target event and / or event interception data corresponding to the element identifier indicates that the current event is a pre-recorded real-time supervision event or the preset data upload time has been reached;
[0111] Among them, the pre-recorded real-time supervision events include any one of the events of application initialization, application entering background process, user login, and user placing an order.
[0112] In this optional embodiment, when the application is initialized and enters the background, the data in the cache is immediately uploaded in batches to prevent data loss due to the application being terminated by the system; when important events occur, such as key operations such as user login and ordering, the relevant event data is uploaded immediately to ensure the real-time nature of these important data; after the data accumulates to a certain amount or after a preset time interval, the data is automatically uploaded to prevent performance problems caused by excessive cached data.
[0113] It can be seen that in this optional embodiment, an intelligent uploading mechanism for buried point data is set up to improve the accuracy of data uploading.
[0114] Embodiment 2
[0115] See also Figure 2 , Figure 2 This is a flow chart of another method for processing user behavior data of an IOS system without traces disclosed in an embodiment of the present invention. Figure 2 The described method for processing user behavior data of the iOS system without traces can be applied to the user behavior data processing device of the iOS system without traces, and the embodiment of the present invention is not limited thereto. Figure 2 As shown, the method for processing user behavior data of the IOS system without traces may include the following operations:
[0116] 201. After detecting the application startup instruction corresponding to the IOS system, perform status detection on the tracking mechanism set in the IOS system to obtain status detection information corresponding to the tracking mechanism.
[0117] In the embodiment of the present invention, the status detection information records the initialization record of the burying point mechanism, and it is determined through the initialization record whether the burying point mechanism has completed the initialization operation.
[0118] 202. Determine whether it is necessary to execute the tracking mechanism initialization according to the status detection information.
[0119] 203. When it is determined that the initialization of the tracking mechanism does not need to be executed, determine whether the preset tracking execution conditions are currently met.
[0120] 204. When it is determined that the tracking mechanism needs to be initialized, the preset classification loading method is called, and the tracking mechanism is initialized to obtain an initialization result corresponding to the tracking mechanism.
[0121] In an embodiment of the present invention, the preset classification loading method is +(void)load; method; +(void)load; is a special method that is automatically called when the class is loaded, which can ensure that the Hook operation is completed in the early stage of application startup, avoiding the original method from being replaced before being called. This can ensure the effectiveness of method replacement, so that all related events and operations trigger new tracking logic, and by executing the Hook in the early stage, incomplete data collection due to competition conditions or timing errors can be avoided.
[0122] 205. In the process of executing method exchange based on the classification loading method, salt processing is performed on the selector of the execution method exchange to obtain the salt processing result corresponding to the selector, and after detecting the initialization result and the salt processing result, it is determined that the preset point execution conditions are currently met.
[0123] In an embodiment of the present invention, in the process of executing method exchange based on the classification loading method, a process of performing salting processing on the selector that executes the method exchange is set. The salting processing is a commonly used encryption method. By adding a random or specific character sequence to the selector, it can effectively prevent malicious attackers from obtaining relevant information of the burying point mechanism through reverse engineering and other means, and can also avoid conflicts and bugs caused by the same selector name, thereby greatly enhancing the security of the burying point mechanism.
[0124] In the embodiment of the present invention, when step 203 or step 205 determines that the preset tracking point execution condition is currently met, step 206 is triggered for execution.
[0125] 206. According to the set event interception condition, intercept the target event corresponding to the IOS system to obtain event interception data corresponding to the target event.
[0126] 207. Construct an element identifier of the target event based on the event interception data. The element identifier is uniquely bound to the target event and is used to identify the target event. The element identifier is also used to determine event association information between different target events.
[0127] 208. According to a preset data upload mechanism, event judgment is performed on the element identifier, and when the corresponding event judgment result indicates that the element identifier meets the immediate upload conditions, data upload is performed on the target event and its corresponding event interception data.
[0128] In the embodiment of the present invention, for other descriptions of step 205 to step 207, please refer to other specific descriptions of step 101 to step 103 in the first embodiment, and the embodiment of the present invention will not be repeated here.
[0129] It can be seen that implementation Figure 2 The described method for processing user behavior data of traceless tracking in the IOS system not only supports the initialization and management of the tracking mechanism, but also provides additional security protection through means such as salting. At the same time, due to the use of a preset classification loading method and a flexible status detection mechanism, the solution can be applied to different types of IOS applications and can be customized and optimized according to specific needs, thereby improving the application flexibility and adaptability of the tracking mechanism.
[0130] In an optional embodiment, the above-mentioned method of performing secondary screening on the screening event according to all secondary parameters to obtain the secondary event set specifically includes:
[0131] When the secondary parameter includes a responder chain, traverse the responder chain associated with the filter event to obtain the event triggering control corresponding to the filter event and the view level to which it belongs;
[0132] Determine whether the screening event satisfies a first screening condition, and when it is determined that the screening event satisfies the first screening condition, determine the screening event as a secondary event and add it to the secondary event set;
[0133] Among them, the filtering event satisfies the first filtering condition specifically including that the event triggering control corresponding to the filtering event is a control associated with the user operation and has a preset control supervision identifier, and at the same time, the view level to which the filtering event belongs is within the preset monitoring level.
[0134] In this optional embodiment, by traversing the responder chain of the filter event and identifying the control that triggers the filter event and the view hierarchy to which it belongs, only control events related to user operations (such as buttons and list items) will be retained, and other events not related to user behavior will be intelligently filtered out.
[0135] It can be seen that in this optional embodiment, when the secondary parameters include a responder chain, by traversing the responder chain associated with the filtering event, the event triggering control and the view level to which it belongs can be accurately obtained. Furthermore, by determining whether the filtering event satisfies the preset first filtering condition (that is, whether the event triggering control is a control associated with the user operation and has a preset supervision mark, and the view level is within the preset monitoring range), it is ensured that only qualified filtering events are determined as secondary events, thereby improving the accuracy and effectiveness of the filtering events.
[0136] In this optional embodiment, the above method of performing secondary screening on the screening event according to all secondary parameters to obtain a secondary event set specifically includes:
[0137] When the secondary parameters include business rules, determine the business scenario corresponding to the screening event and its corresponding target scenario rule; determine the cutoff node in the screening event according to the business scenario and its corresponding target scenario rule, and determine the cutoff record event corresponding to the cutoff node as a secondary event and add it to the secondary event set; the cutoff node is the node corresponding to the completion of the preset calibration operation of the screening event;
[0138] When the secondary parameter includes an event attribute value, the real-time event attribute value corresponding to the screening event is monitored in real time, and when it is determined that the real-time event attribute value indicates that the screening event satisfies the second screening condition, the screening event is determined as a secondary event and added to the secondary event set;
[0139] The real-time event attribute value indicates that the screening event satisfies the second screening condition, specifically, the change frequency corresponding to the real-time event attribute value is higher than a set frequency change threshold.
[0140] In this optional embodiment, in specific business scenarios and specific business rules, certain buttons may appear repeatedly. At this time, based on the specific business scenarios and business rules, it is set that the event data is uploaded only when the user completes a specific operation, thereby reducing unnecessary data redundancy.
[0141] In this optional embodiment, when an event is triggered, the attribute values of the event are checked and compared in real time. Only when the event changes or has statistical value is it marked as a valid buried event to avoid repeated collection of invalid data.
[0142] It can be seen that in this optional embodiment, for the secondary parameters containing business rules, by determining the business scenarios and target scenario rules corresponding to the screening events, it is possible to flexibly respond to screening requirements under different business scenarios. At the same time, by identifying the cutoff node in the screening event (i.e., the node indicating that the event completes the preset calibration operation) and recording the cutoff event as a secondary event, it is possible to accurately capture the key nodes of the business process, which is conducive to enhancing the adaptability and flexibility of business rules. When the secondary parameters include event attribute values, by real-time monitoring of the real-time event attribute values of the screening events, it is possible to promptly discover changes in the attribute values, and when the real-time event attribute values meet the preset second screening condition (i.e., the change frequency is higher than the set frequency change threshold), the screening event is determined as a secondary event. This real-time monitoring and dynamic screening method not only improves the monitoring efficiency of event attribute values, but also can promptly capture important changes in events, providing strong support for subsequent analysis and processing.
[0143] It can be seen that in this optional embodiment, various secondary parameters such as the responder chain, business rules and event attribute values are comprehensively considered, and through the synergistic effect of multi-level screening, comprehensive and accurate screening of screening events is achieved. This multi-level screening mechanism not only improves the accuracy and efficiency of screening, but also can be flexibly adjusted according to actual needs to adapt to screening needs in different scenarios.
[0144] In another optional embodiment, the target event includes at least one of a control event triggered by a system control, a gesture event triggered by a gesture recognizer, and a proxy event triggered by a corresponding proxy setting; specifically, the mentioned control event may correspond to an actual UIControl event; the mentioned gesture event corresponds to an actual UIGestureRecognizer event; the mentioned proxy event corresponds to an actual UITableView and UICollectionView event.
[0145] The above method of determining the event interception data corresponding to each target event specifically includes:
[0146] When the target event includes a control event, the control attribute corresponding to the triggering control of the target event is collected according to the first interception function, and the target event and its corresponding control attribute are determined as interception data corresponding to the target event; the control attribute includes the control title and / or the control switch state;
[0147] When the target event includes a gesture event, the gesture trigger information corresponding to the gesture recognizer is intercepted from the target event according to the second interception function, and the target event and the corresponding gesture trigger information are determined as interception data corresponding to the target event; the gesture trigger information includes a click position and / or a click frequency and / or a click recording time;
[0148] When the target event includes a proxy event, the proxy record information corresponding to the proxy event is collected according to the third interception function, and the target event and its corresponding proxy record information are determined as interception data corresponding to the target event; the proxy record information includes a proxy setting path and / or a cell attribute value.
[0149] In this optional embodiment, the first interception function is: addTarget:action:forControlEvents:; the second interception function is: Hook initWithTarget:action: method; and the third interception function is: setDelegate: method.
[0150] In this optional embodiment, when the event of the control is triggered, the property value of the control is immediately collected through the first interception function, such as the title of UIButton, the switch state of UISwitch, etc. These properties may be affected by the multi-threaded environment, so they must be completed in the main thread to ensure the accuracy and consistency of the data.
[0151] In this optional embodiment, the initialization of the gesture recognizer is captured by hooking the initWithTarget:action: method, and the related UITapGestureRecognizer events are intercepted in this method.
[0152] In this optional embodiment, for UITableView and UICollectionView, hook their setDelegate: method and replace the implementation of the proxy method when setting the proxy; because tableView:didSelectRowAtIndexPath: is an optional method, not all proxies implement this method. Before replacing this method, you must first determine whether the proxy implements this method to avoid crashes or exceptions caused by unimplemented methods.
[0153] It can be seen that in this optional embodiment, control events triggered by system controls, gesture events triggered by gesture recognizers, and proxy events triggered by corresponding proxy settings are covered, ensuring the comprehensiveness and accuracy of event interception; at the same time, special interception functions (first interception function, second interception function, third interception function) are designed for different types of events, realizing flexible configuration and efficient execution of the interception mechanism, and improving the accuracy and efficiency of event processing.
[0154] Embodiment 3
[0155] See also Figure 3 , Figure 3It is a schematic diagram of the structure of a user behavior data processing device for seamlessly embedding points in an IOS system disclosed in an embodiment of the present invention. The device can be applied in an IOS system. Optionally, the user behavior data processing device for seamlessly embedding points in an IOS system can be a user behavior data processing terminal, device, system or server for seamlessly embedding points in an IOS system. The server can be a local server, a remote server, or a cloud server (also called a cloud server). When the server is a non-cloud server, the non-cloud server can communicate with the cloud server, which is not limited in the embodiment of the present invention. Figure 3 As shown, the user behavior data processing device of the IOS system without trace embedding may include an event interception module 301, an element identification construction module 302 and a data upload module 303, wherein:
[0156] The event interception module 301 is used to intercept the target event corresponding to the IOS system according to the set event interception conditions after determining that the preset tracking point execution conditions are currently met, and obtain event interception data corresponding to the target event.
[0157] The element identification construction module 302 is used to construct the element identification of the target event according to the event interception data. The element identification is uniquely bound to the target event and is used to identify the target event; the element identification is also used to determine the event association information between different target events.
[0158] The data upload module 303 is used to perform event judgment on the element identifier according to the preset data upload mechanism, and when the corresponding event judgment result indicates that the element identifier meets the immediate upload conditions, perform data upload on the target event and its corresponding event interception data.
[0159] It can be seen that implementation Figure 3 The described IOS system's traceless user behavior data processing device can intercept target events according to the set event interception conditions, ensuring that only key event data closely related to the business logic is captured, which is conducive to improving the interception accuracy of target events, and improving the accuracy of obtaining event interception data corresponding to the target event; further, by constructing an element identifier uniquely bound to the target event, not only is the target event accurately identified, but it is also convenient for subsequent data management and analysis. In addition, through the set data upload mechanism and event judgment process, the element identifier can upload the target event and its corresponding event interception data in a timely and fast manner when the immediate upload conditions are met, which is conducive to improving the real-time nature of the data, and can also flexibly adjust the upload strategy according to actual needs to avoid problems caused by data accumulation or delayed upload.
[0160] In an alternative embodiment, see Figure 4 , Figure 4This is a schematic diagram of the structure of a user behavior data processing device for an IOS system without traces disclosed in an embodiment of the present invention. Figure 4 As shown, the event interception module 301 includes:
[0161] The determination submodule 3011 is used to determine the target interception parameters for intercepting the execution items according to the set event interception conditions after determining that the preset tracking point execution conditions are currently met. The target interception parameters include at least a primary parameter corresponding to the event type; the target interception parameters also include at least one secondary parameter of the responder chain, business rules, and event attribute value;
[0162] The interception submodule 3012 is used to perform a target interception operation on multiple basic events currently generated in the IOS system according to the target interception parameters, obtain at least one target event, and determine event interception data corresponding to each target event;
[0163] Each target event matches the parameter interception requirement set by its corresponding target interception parameter, and the target event at least includes a system event corresponding to the IOS system and / or a life cycle event corresponding to the controller in the IOS system.
[0164] It can be seen that in this optional embodiment, by defining the target interception parameters in detail, including the first-level parameters corresponding to the event type and the second-level parameters such as the responder chain, business rules, and event attribute values, accurate configuration of the event interception conditions is achieved. This highly customized strategy can ensure that only events that are closely related to the business logic and meet specific requirements are intercepted, thereby avoiding unnecessary data collection, improving the interception accuracy of target events, and improving the accuracy of determining event interception data; at the same time, due to the high configurability of the interception conditions, it can flexibly adapt to different business needs and scenarios, and achieve accurate capture of user behavior.
[0165] In another optional embodiment, in the primary parameter corresponding to the event type, the event type includes an interactive event type or a non-interactive event type having an interception mark;
[0166] The interception submodule 3012 performs a target interception operation on multiple basic events currently generated in the IOS system according to the target interception parameter, and obtains at least one target event in the following manner:
[0167] Acquire multiple basic events currently generated in the IOS system, and perform event type screening on each basic event according to the primary parameters to obtain an event screening set, where the event screening set includes at least one screening event, and the event type corresponding to the screening event is an interactive event type;
[0168] For each screening event in the event screening set, performing secondary screening on the screening event according to all secondary parameters to obtain a secondary event set, and determining each secondary event in the secondary event set as a target event;
[0169] Each secondary event is matched with a secondary parameter.
[0170] It can be seen that in this optional embodiment, interactive event types or non-interactive event types with interception marks are introduced in the first-level parameters, so that the event interception strategy can more accurately screen specific types of events, thereby effectively avoiding the incorrect interception of irrelevant events, and allowing developers to flexibly configure interception strategies according to actual business needs to adapt to different application scenarios, that is, it is conducive to improving the flexibility and accuracy of event interception; in addition, through hierarchical screening, not only the complexity of event processing is reduced and the processing efficiency is improved, but also it helps to ensure that only events that meet all interception conditions will be finally determined as target events, which is conducive to improving the accuracy of determining target events.
[0171] In yet another optional embodiment, the interception submodule 3012 performs secondary screening on the screening event according to all secondary parameters, and the manner of obtaining the secondary event set specifically includes:
[0172] When the secondary parameter includes a responder chain, traverse the responder chain associated with the filter event to obtain the event triggering control corresponding to the filter event and the view level to which it belongs;
[0173] Determine whether the screening event satisfies a first screening condition, and when it is determined that the screening event satisfies the first screening condition, determine the screening event as a secondary event and add it to the secondary event set;
[0174] Among them, the filtering event satisfies the first filtering condition specifically including that the event triggering control corresponding to the filtering event is a control associated with the user operation and has a preset control supervision identifier, and at the same time, the view level to which the filtering event belongs is within the preset monitoring level.
[0175] It can be seen that in this optional embodiment, when the secondary parameters include a responder chain, by traversing the responder chain associated with the filtering event, the event triggering control and the view level to which it belongs can be accurately obtained. Furthermore, by determining whether the filtering event satisfies the preset first filtering condition (that is, whether the event triggering control is a control associated with the user operation and has a preset supervision mark, and the view level is within the preset monitoring range), it is ensured that only qualified filtering events are determined as secondary events, thereby improving the accuracy and effectiveness of the filtering events.
[0176] In this optional embodiment, the interception submodule 3012 performs secondary screening on the screening event according to all secondary parameters, and the method of obtaining the secondary event set specifically includes:
[0177] When the secondary parameters include business rules, determine the business scenario corresponding to the screening event and its corresponding target scenario rule; determine the cutoff node in the screening event according to the business scenario and its corresponding target scenario rule, and determine the cutoff record event corresponding to the cutoff node as a secondary event and add it to the secondary event set; the cutoff node is the node corresponding to the completion of the preset calibration operation of the screening event;
[0178] When the secondary parameter includes an event attribute value, the real-time event attribute value corresponding to the screening event is monitored in real time, and when it is determined that the real-time event attribute value indicates that the screening event satisfies the second screening condition, the screening event is determined as a secondary event and added to the secondary event set;
[0179] The real-time event attribute value indicates that the screening event satisfies the second screening condition, specifically, the change frequency corresponding to the real-time event attribute value is higher than a set frequency change threshold.
[0180] It can be seen that in this optional embodiment, for the secondary parameters containing business rules, by determining the business scenarios and target scenario rules corresponding to the screening events, it is possible to flexibly respond to screening requirements under different business scenarios. At the same time, by identifying the cutoff node in the screening event (i.e., the node indicating that the event completes the preset calibration operation) and recording the cutoff event as a secondary event, it is possible to accurately capture the key nodes of the business process, which is conducive to enhancing the adaptability and flexibility of business rules. When the secondary parameters include event attribute values, by real-time monitoring of the real-time event attribute values of the screening events, it is possible to promptly discover changes in the attribute values, and when the real-time event attribute values meet the preset second screening condition (i.e., the change frequency is higher than the set frequency change threshold), the screening event is determined as a secondary event. This real-time monitoring and dynamic screening method not only improves the monitoring efficiency of event attribute values, but also can promptly capture important changes in events, providing strong support for subsequent analysis and processing.
[0181] In another optional embodiment, Figure 4 As shown, the device also includes an initialization processing module 304, wherein:
[0182] The initialization processing module 304 is used to perform status detection on the tracking mechanism set in the IOS system after detecting the application startup instruction corresponding to the IOS system, and obtain status detection information corresponding to the tracking mechanism;
[0183] The initialization processing module 304 is further used to determine whether the initialization of the tracking mechanism needs to be executed according to the state detection information, and when it is determined that the initialization of the tracking mechanism does not need to be executed, determine whether the preset tracking execution condition is currently met;
[0184] The initialization processing module 304 is further used to call a preset classification loading method and initialize the burying mechanism when it is determined that the burying mechanism needs to be initialized to obtain an initialization result corresponding to the burying mechanism;
[0185] The initialization processing module 304 is also used to perform salt processing on the selector that executes the method exchange in the process of executing the method exchange based on the classification loading method, obtain the salt processing result corresponding to the selector, and after detecting the initialization result and the salt processing result, determine whether the preset point execution conditions are currently met.
[0186] It can be seen that in this optional embodiment, not only does it support initialization and management of the tracking mechanism, but it also provides additional security protection through means such as salting. At the same time, due to the use of a preset classification loading method and a flexible status detection mechanism, the solution can be applicable to different types of IOS applications and can be customized and optimized according to specific needs, thereby improving the application flexibility and adaptability of the tracking mechanism.
[0187] In yet another optional embodiment, the target event includes at least one of a control event triggered by a system control, a gesture event triggered by a gesture recognizer, and a proxy event triggered by a corresponding proxy setting;
[0188] The interception submodule 3012 determines the event interception data corresponding to each target event in the following manner:
[0189] When the target event includes a control event, the control attribute corresponding to the triggering control of the target event is collected according to the first interception function, and the target event and its corresponding control attribute are determined as interception data corresponding to the target event; the control attribute includes the control title and / or the control switch state;
[0190] When the target event includes a gesture event, the gesture trigger information corresponding to the gesture recognizer is intercepted from the target event according to the second interception function, and the target event and the corresponding gesture trigger information are determined as interception data corresponding to the target event; the gesture trigger information includes a click position and / or a click frequency and / or a click recording time;
[0191] When the target event includes a proxy event, the proxy record information corresponding to the proxy event is collected according to the third interception function, and the target event and its corresponding proxy record information are determined as interception data corresponding to the target event; the proxy record information includes a proxy setting path and / or a cell attribute value.
[0192] It can be seen that in this optional embodiment, control events triggered by system controls, gesture events triggered by gesture recognizers, and proxy events triggered by corresponding proxy settings are covered, ensuring the comprehensiveness and accuracy of event interception; at the same time, special interception functions (first interception function, second interception function, third interception function) are designed for different types of events, realizing flexible configuration and efficient execution of the interception mechanism, and improving the accuracy and efficiency of event processing.
[0193] Embodiment 4
[0194] See also Figure 5 , Figure 5 Schematic diagram of the structure of an electronic device installed with an IOS system disclosed in an embodiment of the present invention. Figure 5 As shown, the electronic device may include:
[0195] A memory 401 storing executable program codes;
[0196] a processor 402 coupled to the memory 401;
[0197] Processor 402 calls the executable program code stored in memory 401 to execute the steps in the method for processing user behavior data of the IOS system without trace embedding as described in Embodiment 1 of the present invention or Embodiment 2 of the present invention.
[0198] Embodiment 5
[0199] An embodiment of the present invention discloses a user behavior data processing system for an IOS system with traceless embedding, the system comprising an electronic device installed with an IOS system as disclosed in the fourth embodiment of the present invention, and the electronic device is communicatively connected with at least one network attached storage device to access data stored in any network attached storage device, and a computer application capable of executing the above-mentioned method disclosed in the first embodiment of the present invention or the second embodiment of the present invention is installed in the electronic device.
[0200] Embodiment 6
[0201] An embodiment of the present invention discloses a computer storage medium, which stores computer instructions. When the computer instructions are called, they are used to execute the steps in the user behavior data processing method for seamless embedding of an IOS system described in Embodiment 1 or Embodiment 2 of the present invention.
[0202] Embodiment 7
[0203] An embodiment of the present invention discloses a computer program product, which includes a non-transitory computer storage medium storing a computer program, and the computer program is operable to enable a computer to execute the steps of the user behavior data processing method for traceless embedding of an IOS system described in Embodiment 1 or Embodiment 2.
[0204] The device embodiments described above are only illustrative, wherein the modules described as separate components may or may not be physically separated, and the components displayed as modules may or may not be physical modules, i.e., they may be located in one place, or they may be distributed on multiple network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Those of ordinary skill in the art may understand and implement it without creative work.
[0205] Through the specific description of the above embodiments, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on such an understanding, the above technical solution can be essentially or partly contributed to the prior art in the form of a software product, and the computer software product can be stored in a computer storage medium, and the storage medium includes a read-only memory (ROM), a random access memory (RAM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), a one-time programmable read-only memory (OTPROM), an electronically erasable rewritable read-only memory (EEPROM), a compact disc (CD-ROM) or other optical disc storage, magnetic disk storage, magnetic tape storage, or any other computer-readable medium that can be used to carry or store data.
[0206] Finally, it should be noted that the user behavior data processing method and device for traceless embedding of an IOS system disclosed in the embodiment of the present invention only discloses a preferred embodiment of the present invention, which is only used to illustrate the technical solution of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features therein may be replaced by equivalents. 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 various embodiments of the present invention.
Claims
1. A method for processing user behavior data of an IOS system without trace embedding, characterized in that: The method is applied to an IOS system, and the method comprises: After determining that the preset tracking point execution condition is currently met, intercept the target event corresponding to the IOS system according to the set event interception condition to obtain event interception data corresponding to the target event; According to the event interception data, construct an element identifier of the target event, wherein the element identifier is uniquely bound to the target event and is used to identify the target event; the element identifier is also used to determine event association information between different target events; According to a preset data upload mechanism, event judgment is performed on the element identifier, and when the corresponding event judgment result indicates that the element identifier meets the immediate upload condition, data upload is performed on the target event and its corresponding event interception data.
2. The method for processing user behavior data of an IOS system without traces according to claim 1 is characterized in that: The intercepting the target event corresponding to the IOS system according to the set event interception condition to obtain event interception data corresponding to the target event includes: According to the set event interception conditions, determine the target interception parameters for executing the interception, wherein the target interception parameters include at least a primary parameter corresponding to the event type; the target interception parameters also include at least one secondary parameter among the responder chain, business rules and event attribute value; According to the target interception parameter, a target interception operation is performed on a plurality of basic events currently generated in the IOS system to obtain at least one target event, and event interception data corresponding to each of the target events is determined; Each of the target events matches the parameter interception requirement set by the corresponding target interception parameter, and the target event at least includes a system event corresponding to the IOS system and / or a life cycle event corresponding to the controller in the IOS system.
3. The method for processing user behavior data of an IOS system without traces according to claim 2 is characterized in that: The event type includes an interactive event type or a non-interactive event type with an interception mark; The step of performing a target interception operation on a plurality of basic events currently generated in the IOS system according to the target interception parameter to obtain at least one target event includes: Acquire multiple basic events currently generated in the IOS system, and perform event type screening on each of the basic events according to the primary parameter to obtain an event screening set, wherein the event screening set includes at least one screening event, and the event type corresponding to the screening event is the interaction event type; For each of the screening events in the event screening set, performing secondary screening on the screening event according to all the secondary parameters to obtain a secondary event set, and determining each secondary event in the secondary event set as a target event; Each of the secondary events matches one of the secondary parameters.
4. The method for processing user behavior data of an IOS system without traces according to claim 3 is characterized in that: The performing secondary screening on the screening event according to all the secondary parameters to obtain a secondary event set includes: When the secondary parameter includes the responder chain, traverse the responder chain associated with the filter event to obtain the event triggering control corresponding to the filter event and the view level to which it belongs; Determine whether the screening event satisfies a first screening condition, and when it is determined that the screening event satisfies the first screening condition, determine the screening event as a secondary event and add it to the secondary event set; Among them, the filtering event satisfies the first filtering condition specifically including that the event triggering control corresponding to the filtering event is a control associated with the user operation and has a preset control supervision identifier, and at the same time, the view level to which the filtering event belongs is within the preset monitoring level.
5. The method for processing user behavior data of an IOS system without traces according to claim 4 is characterized in that: The performing secondary screening on the screening event according to all the secondary parameters to obtain a secondary event set also includes: When the secondary parameter includes the business rule, determine the business scenario corresponding to the screening event and its corresponding target scenario rule; determine the cutoff node in the screening event according to the business scenario and its corresponding target scenario rule, and determine the cutoff record event corresponding to the cutoff node as a secondary event and add it to the secondary event set; the cutoff node is a node corresponding to the completion of the preset calibration operation of the screening event; When the secondary parameter includes the event attribute value, the real-time event attribute value corresponding to the screening event is monitored in real time, and when it is determined that the real-time event attribute value indicates that the screening event satisfies the second screening condition, the screening event is determined as a secondary event and added to the secondary event set; The real-time event attribute value indicates that the screening event satisfies the second screening condition, specifically, the change frequency corresponding to the real-time event attribute value is higher than a set frequency change threshold.
6. The method for processing user behavior data of an IOS system without traces according to any one of claims 1 to 5, characterized in that: The method further comprises: After detecting the application startup instruction corresponding to the IOS system, performing status detection on the tracking mechanism set in the IOS system to obtain status detection information corresponding to the tracking mechanism; Determine whether it is necessary to execute the initialization of the burying point mechanism according to the state detection information, and when it is determined that it is not necessary to execute the initialization of the burying point mechanism, determine whether the preset burying point execution condition is currently met; When it is determined that the tracking mechanism needs to be initialized, a preset classification loading method is called, and the tracking mechanism is initialized to obtain an initialization result corresponding to the tracking mechanism; In the process of executing method exchange based on the classification loading method, salt processing is performed on the selector that executes the method exchange to obtain the salt processing result corresponding to the selector, and after detecting the initialization result and the salt processing result, it is determined that the preset point execution condition is currently met.
7. The method for processing user behavior data of an IOS system without traces according to any one of claims 2 to 5, characterized in that: The target event includes at least one of a control event triggered by a system control, a gesture event triggered by a gesture recognizer, and a proxy event triggered by a corresponding proxy setting; The determining of the event interception data corresponding to each of the target events includes: When the target event includes the control event, the control attribute corresponding to the triggering control of the target event is collected according to the first interception function, and the target event and the corresponding control attribute are determined as the interception data corresponding to the target event; the control attribute includes the control title and / or the control switch state; When the target event includes the gesture event, the gesture trigger information corresponding to the gesture recognizer is intercepted from the target event according to the second interception function, and the target event and the corresponding gesture trigger information are determined as interception data corresponding to the target event; the gesture trigger information includes a click position and / or a click frequency and / or a click recording time; When the target event includes the proxy event, the proxy record information corresponding to the proxy event is collected according to the third interception function, and the target event and its corresponding proxy record information are determined as interception data corresponding to the target event; the proxy record information includes a proxy setting path and / or a cell attribute value.
8. A user behavior data processing device for an IOS system without trace embedding, characterized in that: The device is applied to an IOS system, and the device includes: An event interception module is used to intercept the target event corresponding to the IOS system according to the set event interception condition after determining that the preset tracking point execution condition is currently met, and obtain event interception data corresponding to the target event; An element identification construction module, used to construct an element identification of the target event according to the event interception data, wherein the element identification is uniquely bound to the target event and is used to identify the target event; the element identification is also used to determine event association information between different target events; The data upload module is used to perform event judgment on the element identifier according to a preset data upload mechanism, and when the corresponding event judgment result indicates that the element identifier meets the immediate upload conditions, perform data upload on the target event and its corresponding event interception data.
9. An electronic device installed with an IOS system, characterized in that: The electronic device comprises: A memory storing executable program code; a processor coupled to the memory; The processor calls the executable program code stored in the memory to execute the user behavior data processing method for seamless embedding in the IOS system as described in any one of claims 1-7.
10. A user behavior data processing system for iOS system without trace embedding, characterized in that: The system includes an electronic device as described in claim 9, and the electronic device is communicatively connected to at least one network attached storage device to access data stored in any of the network attached storage devices, and a computer application capable of executing the method as described in any of claims 1-7 is installed in the electronic device.
11. A computer storage medium, characterized in that: The computer storage medium stores computer instructions, which, when called, are used to execute the user behavior data processing method for seamless embedding in an IOS system as described in any one of claims 1-7.