CN110515821B - Event processing method based on buried point, electronic equipment and computer storage medium - Google Patents

Event processing method based on buried point, electronic equipment and computer storage medium Download PDF

Info

Publication number
CN110515821B
CN110515821B CN201910818562.XA CN201910818562A CN110515821B CN 110515821 B CN110515821 B CN 110515821B CN 201910818562 A CN201910818562 A CN 201910818562A CN 110515821 B CN110515821 B CN 110515821B
Authority
CN
China
Prior art keywords
integrated component
point integrated
embedded point
event
application program
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910818562.XA
Other languages
Chinese (zh)
Other versions
CN110515821A (en
Inventor
程然
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Wanghai Kangxin Beijing Technology Co ltd
Original Assignee
Wanghai Kangxin Beijing Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Wanghai Kangxin Beijing Technology Co ltd filed Critical Wanghai Kangxin Beijing Technology Co ltd
Priority to CN201910818562.XA priority Critical patent/CN110515821B/en
Publication of CN110515821A publication Critical patent/CN110515821A/en
Application granted granted Critical
Publication of CN110515821B publication Critical patent/CN110515821B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/34Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment
    • G06F11/3438Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment monitoring of user actions
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/34Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment
    • G06F11/3466Performance evaluation by tracing or monitoring

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

The embodiment of the application relates to the technical field of computer data processing, and discloses an event processing method based on buried points, electronic equipment and a computer storage medium, wherein the event processing method based on buried points comprises the following steps: when a first preset event aiming at an application program is detected, based on a buried point integrated component preloaded by the application program according to a first loading mode, acquiring first data information corresponding to the first preset event, wherein the first loading mode is loaded according to service code information aiming at the application program and sent by a server; and then, the first data information is sent to the server through the embedded point integrated component so that the server performs corresponding data analysis. The method of the embodiment of the application realizes the universality of the embedded point integrated component, and can directly call the embedded point integrated component without repeatedly writing codes, thereby improving the embedded point efficiency, effectively avoiding the code redundancy, being beneficial to the subsequent code maintenance and greatly reducing the workload of developers.

Description

Event processing method based on buried point, electronic equipment and computer storage medium
Technical Field
The embodiment of the application relates to the technical field of computer data processing, in particular to an event processing method based on buried points, electronic equipment and a computer storage medium.
Background
With the rapid development of computers and the internet, such clients that install and use APP (application) are becoming more and more popular. User behavior statistics is an indispensable link in mobile internet products, and a manner of setting buried points in an APP is generally adopted to collect user behavior data, and when a user performs various operations based on the APP, such as opening a certain page or selecting a certain option in the page, the buried points capture the user behavior data and report the user behavior data to a corresponding server through a software development kit SDK (Software Development Kit) integrated in the APP, so that statistics of user behaviors is realized.
However, the inventors of the present application found that, in the specific implementation,: at present, a developer usually buries the point manually when arranging the point in the APP package, namely, different point burying codes are added at different positions of the APP package based on business statistics requirements, but because actual buries are numerous, the engineering quantity is extremely large, the manual point burying mode is low in efficiency and easy to cause errors, and when the subsequent codes are maintained, the developer also needs to carry out point burying code modification based on different code positions, so that the operation is very complicated, and therefore, the manual point burying mode cannot meet the development requirements of the developer.
Disclosure of Invention
The aim of the embodiment of the application is to at least solve one of the technical defects, and the following technical scheme is specifically provided:
in one aspect, a method for processing an event based on a buried point is provided, including:
when a first preset event aiming at an application program is detected, based on a buried point integrated component preloaded by the application program according to a first loading mode, acquiring first data information corresponding to the first preset event, wherein the first loading mode is loaded according to service code information aiming at the application program and sent by a server;
and sending the first data information to the server through the embedded point integrated component so that the server performs corresponding data analysis.
In one implementation, the method further comprises:
when a second preset event aiming at the application program is detected, based on the embedded point integrated component preloaded by the application program according to a second loading mode, acquiring second data information corresponding to the second preset event, wherein the second loading mode is loaded according to configuration information of the embedded point integrated component sent by a server;
and sending second data information to the server through the embedded point integrated component so that the server performs corresponding data analysis.
In one implementation, before preloading the buried point integrated component, further comprising:
constructing a buried point integrated assembly;
constructing a buried point integrated component, comprising at least one of the following:
determining at least one predetermined event of the embedded point integrated assembly monitoring;
determining at least one predetermined event type for the embedded point integrated assembly monitoring;
determining an Application Programming Interface (API) of the embedded point integrated component;
determining a buried point data structure of the buried point integrated component;
a switch interface of the buried point integrated assembly is determined.
In one implementation, before acquiring the first data information corresponding to the first predetermined event based on the embedded point integrated component preloaded by the application according to the first loading manner, the method further includes:
loading the embedded point integrated component in the application program according to a first loading mode;
according to a first loading mode, loading the embedded point integrated component in the application program comprises the following steps:
receiving service code information for an application program sent by a server, wherein the service code information is information of calling a buried point integrated component by the server in a service code of the application program through a switch interface of the buried point integrated component;
and loading the embedded point integrated component according to the service code information.
In one implementation, based on a buried point integrated component preloaded by an application according to a first loading manner, obtaining first data information corresponding to a first predetermined event includes:
calling a service code of the buried point integrated assembly according to a switch interface of the buried point integrated assembly to acquire first data information corresponding to a first preset event;
and sending the first data information to the embedded point integrated component by calling an API of the embedded point integrated component.
In one implementation, before acquiring the second data information corresponding to the second predetermined event based on the embedded point integrated component preloaded by the application according to the second loading manner, the method further includes:
loading the embedded point integrated component in the application program according to a second loading mode;
according to a second loading mode, loading the embedded point integrated component in the application program comprises the following steps:
when a preset trigger event aiming at an application program is detected, acquiring configuration information of a buried point integrated component from a corresponding server, wherein the preset trigger event comprises an installation event or an update event;
and loading the embedded point integrated component according to the configuration information.
In one implementation, based on the embedded point integrated component preloaded by the application program according to the second loading mode, obtaining second data information corresponding to the second predetermined event includes:
Determining whether the second predetermined event belongs to a predetermined event monitored by the embedded point integrated component or determining whether an event type of the second predetermined event belongs to a predetermined event type monitored by the embedded point integrated component;
and if the second scheduled event belongs to the scheduled event monitored by the embedded point integrated component, or the event type of the second scheduled event belongs to the scheduled event type monitored by the embedded point integrated component, acquiring second data information corresponding to the second scheduled event by the embedded point integrated component.
In one implementation, sending, by a buried point integration component, first data information to a server includes:
converting the first data information into third data information corresponding to a buried point data structure of the buried point integrated assembly through the buried point integrated assembly, and sending the third data information to the server through the buried point integrated assembly;
transmitting, by the embedded point integration component, second data information to the server, comprising:
and converting the second data information into fourth data information corresponding to the embedded point data structure of the embedded point integrated component through the embedded point integrated component, and sending the fourth data information to the server through the embedded point integrated component.
In one aspect, an event processing device based on buried points is provided, including:
The first processing module is used for acquiring first data information corresponding to a first preset event based on a buried point integrated component preloaded by the application program according to a first loading mode when the first preset event aiming at the application program is detected, wherein the first loading mode is loaded according to service code information aiming at the application program and sent by a server;
and the first sending module is used for sending the first data information to the server through the embedded point integrated component so as to enable the server to perform corresponding data analysis.
In one implementation, the apparatus further includes a second processing module and a second sending module;
the second processing module is used for acquiring second data information corresponding to a second preset event based on the embedded point integrated component preloaded by the application program according to a second loading mode when the second preset event aiming at the application program is detected, wherein the second loading mode is loaded according to configuration information of the embedded point integrated component sent by the server;
and the second sending module is used for sending second data information to the server through the embedded point integrated component so that the server performs corresponding data analysis.
In one implementation, the apparatus further includes a build module;
The construction module is used for constructing the embedded point integrated assembly;
the construction module is specifically configured to perform at least one of the following:
determining at least one predetermined event of the embedded point integrated assembly monitoring;
determining at least one predetermined event type for the embedded point integrated assembly monitoring;
determining an Application Programming Interface (API) of the embedded point integrated component;
determining a buried point data structure of the buried point integrated component;
a switch interface of the buried point integrated assembly is determined.
In one implementation, the apparatus further includes a first loading module;
the first loading module is used for loading the embedded point integrated component in the application program according to a first loading mode;
the first loading module comprises a receiving sub-module and a first loading sub-module;
the receiving sub-module is used for receiving service code information aiming at the application program, which is sent by the server, wherein the service code information is information of calling the embedded point integrated component by the server in the service code of the application program through a switch interface of the embedded point integrated component;
and the first loading sub-module is used for loading the embedded point integrated component according to the service code information.
In one implementation, the first processing module includes a first data acquisition sub-module and a data transmission sub-module;
The first data acquisition sub-module is used for acquiring first data information corresponding to a first preset event by calling a service code of the buried point integrated assembly according to a switch interface of the buried point integrated assembly;
and the data transmission sub-module is used for transmitting the first data information to the embedded point integrated component by calling the API of the embedded point integrated component.
In one implementation, the apparatus further includes a second loading module;
the second loading module is used for loading the embedded point integrated component in the application program according to a second loading mode;
the second loading module comprises an information acquisition sub-module and a second loading sub-module;
the information acquisition sub-module is used for acquiring configuration information of the embedded point integrated component from a corresponding server when a preset trigger event aiming at the application program is detected, wherein the preset trigger event comprises an installation event or an update event;
and the second loading sub-module is used for loading the embedded point integrated assembly according to the configuration information.
In one implementation, the second processing module includes a determination sub-module and a second data acquisition sub-module;
a determining sub-module, configured to determine whether the second predetermined event belongs to a predetermined event monitored by the embedded point integrated component, or determine whether an event type of the second predetermined event belongs to a predetermined event type monitored by the embedded point integrated component;
And the second data acquisition sub-module is used for acquiring second data information corresponding to the second preset event through the embedded point integration component when the second preset event is a preset event monitored by the embedded point integration component or when the event type of the second preset event belongs to the preset event type monitored by the embedded point integration component.
In one implementation manner, the first sending module is specifically configured to convert the first data information into third data information corresponding to a buried point data structure of the buried point integration component through the buried point integration component, and send the third data information to the server through the buried point integration component;
the second sending module is specifically configured to convert the second data information into fourth data information corresponding to the buried point data structure of the buried point integration component through the buried point integration component, and send the fourth data information to the server through the buried point integration component.
In one aspect, an electronic device is provided, including a memory, a processor, and a computer program stored on the memory and executable on the processor, where the processor implements the above-described buried point-based event processing method when executing the program.
In one aspect, a computer readable storage medium is provided, on which a computer program is stored, which when executed by a processor, implements the above-described buried point based event processing method.
According to the embedded point-based event processing method provided by the embodiment of the application, when the first preset event aiming at the application program is detected, the first data information corresponding to the first preset event is acquired through the embedded point integrated component preloaded according to the service code information of the application program sent by the server, so that the collection of the data information of various first preset events can be realized through the embedded point integrated component, the universality of the embedded point integrated component is realized, an application program developer can directly call the embedded point integrated component in the corresponding service code according to the data collection requirement, repeated code writing is not needed, the embedded point efficiency is improved, the code redundancy is effectively avoided, errors are not easy to occur, the subsequent code maintenance is facilitated, and the workload of the developer is greatly reduced; and the embedded point integrated component sends the first data information to the server, so that the captured behavior data can be reported to the corresponding server, and analysis and statistics of the user behaviors are realized.
Additional aspects and advantages of embodiments of the application will be set forth in part in the description which follows, and in part will be obvious from the description, or may be learned by practice of the application.
Drawings
The foregoing and/or additional aspects and advantages of embodiments of the application will become apparent and may be better understood from the following description of embodiments with reference to the accompanying drawings, in which:
FIG. 1 is a flow chart of a buried point based event processing method according to an embodiment of the present application;
FIG. 2 is a schematic diagram of a basic structure of an event processing device based on buried points according to an embodiment of the present application;
FIG. 3 is a schematic diagram illustrating a detailed structure of an event processing device based on buried points according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
Embodiments of the present application are described in detail below, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to like or similar elements or elements having like or similar functions throughout. The embodiments described below by referring to the drawings are illustrative only and are not to be construed as limiting the application.
As used herein, the singular forms "a", "an", "the" and "the" are intended to include the plural forms as well, unless expressly stated otherwise, as understood by those skilled in the art. It will be further understood that the terms "comprises" and/or "comprising," when used in this specification, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof. It will be understood that when an element is referred to as being "connected" or "coupled" to another element, it can be directly connected or coupled to the other element or intervening elements may also be present. Further, "connected" or "coupled" as used herein may include wirelessly connected or wirelessly coupled. The term "and/or" as used herein includes all or any element and all combination of one or more of the associated listed items.
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present application more apparent, the following detailed description of the embodiments of the present application will be given with reference to the accompanying drawings.
The embodiment of the application provides a buried point-based event processing method, electronic equipment and a computer storage medium, which aim to solve the technical problems in the prior art.
The following describes in detail the technical solutions of the embodiments of the present application and how the technical solutions of the embodiments of the present application solve the above technical problems with specific embodiments. The following embodiments may be combined with each other, and the same or similar concepts or processes may not be described in detail in some embodiments. Embodiments of the present application will be described below with reference to the accompanying drawings.
An embodiment of the application provides an event processing method based on buried points, which is executed by terminal equipment. The terminal device may be a desktop device or a mobile terminal. As shown in fig. 1, the method includes:
step S110, when a first preset event aiming at an application program is detected, based on a buried point integrated component preloaded by the application program according to a first loading mode, first data information corresponding to the first preset event is obtained, and the first loading mode is loaded according to service code information aiming at the application program and sent by a server.
Specifically, the user installs various application programs, such as a browser application program, a video application program, an audio application program, and the like, in the terminal device in advance according to needs, and when the user uses a certain application program (such as a video application program) according to needs, the terminal device can detect various events such as a page stay time length for the video application program, a search for a certain video, a time length for browsing a certain video, and the like.
Specifically, when the terminal device detects a first predetermined event for the video application program, first data information corresponding to the first predetermined event is obtained through a buried point integration component loaded according to service code information for the video application program sent by the server. The developer of the video application program may preset each event (i.e., a first predetermined event) for which user behavior data needs to be acquired according to the requirement, and load the embedded point integration component in the service code corresponding to each event, that is, call the pre-written embedded point integration component, so as to be used for acquiring corresponding data information (i.e., first data information) through the embedded point integration component when the user triggers at least one event in each event.
In step S120, the first data information is sent to the server through the embedded point integrated component, so that the server performs corresponding data analysis.
Specifically, after the terminal device collects the first data information corresponding to the first predetermined event through the embedded point integration component, the embedded point integration component can send the collected first data information to a server of the video application program, so that the server can conduct specific data analysis on the collected first data information, and further conduct analysis and statistics on user behaviors.
According to the embedded point-based event processing method provided by the embodiment of the application, when the first preset event aiming at the application program is detected, the first data information corresponding to the first preset event is acquired through the embedded point integrated component preloaded according to the service code information of the application program sent by the server, so that the collection of the data information of various first preset events can be realized through the embedded point integrated component, the universality of the embedded point integrated component is realized, an application program developer can directly call the embedded point integrated component in the corresponding service code according to the data collection requirement, repeated code writing is not needed, the embedded point efficiency is improved, the code redundancy is effectively avoided, errors are not easy to occur, the subsequent code maintenance is facilitated, and the workload of the developer is greatly reduced; and the embedded point integrated component sends the first data information to the server, so that the captured behavior data can be reported to the corresponding server, and analysis and statistics of the user behaviors are realized.
In one possible implementation manner, the method further includes step S130 (not shown in the figure) and step S140 (not shown in the figure), where: step S130, when a second preset event aiming at the application program is detected, based on the embedded point integrated component preloaded by the application program according to a second loading mode, acquiring first data information corresponding to the second preset event, wherein the second loading mode is loaded according to configuration information of the embedded point integrated component sent by a server; and step S140, sending second data information to the server through the embedded point integrated component so that the server performs corresponding data analysis.
It should be noted that, the step S130 and the step S140 may be performed before the step S110, or may be performed after the step S120, or may be performed synchronously with the step S110 and the step S120, which is not limited in the embodiment of the present application. The following details the step S130 and the step S140:
specifically, the user installs various application programs, such as a browser application program, a video application program, an audio application program, and the like, in the terminal device in advance according to needs, and when the user uses a certain application program (such as a video application program) according to needs, the terminal device can detect all events for the surface layer page, such as opening, closing, screen clicking, screen swiping, and the like, for the video application program.
Specifically, when the terminal device detects a second predetermined event for the video application program, second data information corresponding to the second predetermined event is obtained through the embedded point integrated component loaded according to the configuration information of the embedded point integrated component sent by the server. The developer of the video application program can preset each event (namely a second preset event) needing to acquire the user behavior data according to the requirement, and in the installation process of the video application program, the configuration information of the embedded point integrated component is issued in a mode of issuing the configuration information, so that the embedded point integrated component can be used for acquiring corresponding data information (namely second data information) when a user triggers at least one event in each event.
Specifically, after the terminal device collects second data information corresponding to the second predetermined event through the embedded point integration component, the collected second data information can be sent to a server of the video application program through the embedded point integration component, so that the server performs specific data analysis on the collected second data information, and further analysis and statistics on user behaviors are performed.
According to the implementation mode, fixed logic is added into the embedded point integrated component to automatically monitor all surface pages of the application program, so that automatic embedded point data acquisition is realized.
In one possible implementation, the buried point integrated component needs to be pre-built before it is preloaded. Wherein, construct the integrated subassembly of buried point, include at least one of: determining at least one predetermined event of the embedded point integrated assembly monitoring; determining at least one predetermined event type for the embedded point integrated assembly monitoring; determining an Application Programming Interface (API) of the embedded point integrated component; determining a buried point data structure of the buried point integrated component; a switch interface of the buried point integrated assembly is determined.
Specifically, in the development process of the application program, before loading the embedded point integrated component in the service code of the application program or before configuring the embedded point integrated component by the configuration information of the application program, the embedded point integrated component needs to be built in advance by a developer.
Specifically, in the process of constructing the embedded point integrated component, in order to reduce the development amount of the subsequent code, general events in the application program can be extracted as much as possible, namely, the embedded point integrated component with as many general events as possible is constructed, so that the embedded point integrated component can be widely applied, and the data information of as many events as possible can be acquired through the embedded point integrated component. In addition, in the process of constructing the embedded point integrated component, the corresponding embedded point integrated component can be constructed by referring to general events among all application programs, so that the repeated use of the subsequent embedded point integrated component among all application programs is facilitated, and the embedded point integrated component has portability.
Specifically, in constructing the buried point integrated assembly, at least one of the following operations needs to be performed: (1) And determining at least one preset event monitored by the embedded point integrated component, namely presetting each event type, such as a click event type, a login event type and the like, to be monitored by the embedded point integrated component, so that when the event type (such as the click event type) is detected subsequently, the embedded point integrated component is directly called to acquire corresponding data information. (2) And determining an Application Programming Interface (API) of the embedded point integrated component, namely presetting an API which needs to be monitored by the embedded point integrated component so as to facilitate the follow-up operation in the service code, transmitting the data information acquired through the service code to the embedded point integrated component through the API, and transmitting the data information to a corresponding server through the embedded point integrated component. (3) And determining a buried point data structure of the buried point integrated component, wherein the buried point data structure is a data structure for transmitting data between the buried point integrated component and a server of an application program, namely, the buried point data structure is a data structure for transmitting data to the server by the buried point integrated component in advance. (4) And determining a switch interface of the embedded point integrated component, wherein the switch interface is a switch for calling the embedded point integrated component in the service code, for example, when the embedded point integrated component needs to be called in the service code, the embedded point integrated component can be called by opening the switch interface, and for example, when the embedded point integrated component does not need to be called in the service code, the embedded point integrated component can not be called by closing the switch interface.
Specifically, after the embedded point integrated component is built, before the embedded point integrated component preloaded according to the first loading mode based on the application program obtains first data information corresponding to a first preset event, a developer loads the embedded point integrated component in a corresponding service code of the application program according to data acquisition requirements. Correspondingly, the terminal equipment can load the embedded point integrated component in the application program according to the first loading mode.
Specifically, a developer of the application program may call the pre-built embedded point integrated component by opening a switch interface of the embedded point integrated component in a service code corresponding to a certain predetermined event of the application program according to the requirement, so as to be used for acquiring data information of the predetermined event according to the embedded point integrated component. After the information of the embedded point integrated component is called through the switch interface of the embedded point integrated component in the service code, the service code information comprising the service code can be issued to the application program in a mode of issuing a data packet through the server, and the application program runs the service code information, so that when a certain preset event is detected, the data information corresponding to the certain preset event is acquired through the embedded point integrated component. Correspondingly, the terminal equipment can receive service code information for the application program sent by the server in the process of loading the embedded point integrated component in the application program according to the first loading mode, wherein the service code information is information of calling the embedded point integrated component by the server in the service code of the application program through a switch interface of the embedded point integrated component; and then loading the embedded point integrated component according to the service code information.
Specifically, in the process of acquiring the data information corresponding to the certain predetermined event through the embedded point integrated component, the service code of the embedded point integrated component may be called according to the switch interface of the embedded point integrated component, and the data information of the certain predetermined event may be acquired through the service code. After the data information of the certain preset event is obtained through the service code, an API of the embedded point integrated component can be called, and the data information is sent to the embedded point integrated component, so that the data information corresponding to the certain preset event is obtained through the embedded point integrated component.
Specifically, after the embedded point integration component acquires the data information corresponding to the certain predetermined event, format conversion processing may be performed on the data information according to the embedded point data structure pre-agreed with the server, so as to convert the data information into a form conforming to the embedded point data structure, and the data information may be recorded as third data information. After the data information is converted into the form conforming to the buried data structure, the third data information is sent to the corresponding server. The first data information is converted into third data information corresponding to the embedded point data structure of the embedded point integrated component through the embedded point integrated component, and the third data information is sent to the server through the embedded point integrated component.
In one possible implementation manner, before acquiring second data information corresponding to a second predetermined event based on the embedded point integrated component preloaded by the application according to the second loading manner, the developer loads the embedded point integrated component in the configuration information of the application according to the data acquisition requirement by the second loading manner. Correspondingly, the terminal equipment can load the embedded point integrated component in the application program according to the second loading mode.
Specifically, a developer of the application program may configure one or more predetermined events (denoted as second predetermined events) for which data information needs to be acquired in configuration information of the application program according to requirements, and configure a buried point integrated component of the one or more predetermined events, thereby generating configuration information of the buried point integrated component of the application program, and store the configuration information in a server of the application program, and issue the configuration information to a terminal device. Correspondingly, in the process of loading the embedded point integrated component in the application program according to the second loading mode, the terminal equipment can receive the configuration information for the application program sent by the server and load the embedded point integrated component according to the configuration information.
Specifically, after the configuration information is stored in the server of the application program, that is, after the configuration information of the embedded point integrated component of the application program is generated, the server may issue the configuration information to the terminal device in a process of installing the application program or updating the application program in the terminal device. Correspondingly, when the terminal equipment detects a preset trigger event aiming at the application program, the configuration information of the embedded point integrated component is acquired from the corresponding server, and the preset trigger event comprises an installation event or an update event. After loading the corresponding embedded point integration component according to the application configuration information, the terminal device may acquire data information (recorded as second data information) corresponding to a second predetermined event through the embedded point integration component when the second predetermined event for the application is detected in a subsequent use process of the application.
Specifically, after detecting the second predetermined event for the application program, the terminal device may first detect the second predetermined event, for example, determine whether the second predetermined event belongs to a predetermined event monitored by the embedded point integration component, and determine whether an event type of the second predetermined event belongs to a predetermined event type monitored by the embedded point integration component. When the second scheduled event is determined to belong to the scheduled event monitored by the embedded point integrated component, or the event type of the second scheduled event belongs to the scheduled event type monitored by the embedded point integrated component, the second data information corresponding to the second scheduled event is acquired through the embedded point integrated component, so that the data information of the scheduled event is ensured to be accurately acquired, and inaccuracy of server data analysis caused by data information errors is avoided.
Specifically, after the embedded point integration component acquires the data information corresponding to the certain predetermined event, format conversion processing may be performed on the data information according to the embedded point data structure pre-agreed with the server, so as to convert the data information into a form conforming to the embedded point data structure, and the data information may be recorded as fourth data information. After the data information is converted into the form conforming to the buried data structure, the fourth data information is sent to the corresponding server. That is, the second data information is converted into fourth data information corresponding to the buried data structure of the buried point integration component through the buried point integration component, and the fourth data information is transmitted to the server through the buried point integration component.
Fig. 2 is a schematic structural diagram of an event processing device based on buried points according to another embodiment of the present application, as shown in fig. 2, the device 20 may include a first processing module 21 and a first sending module 22, where:
the first processing module 21 is configured to, when a first predetermined event for an application program is detected, obtain first data information corresponding to the first predetermined event based on a buried point integrated component preloaded by the application program according to a first loading manner, where the first loading manner is loading according to service code information sent by a server for the application program;
The first sending module 22 is configured to send the first data information to the server through the embedded point integrated component, so that the server performs corresponding data analysis.
When a first preset event aiming at an application program is detected, the device provided by the embodiment of the application acquires the first data information corresponding to the first preset event through the embedded point integrated component preloaded according to the service code information of the application program sent by the server, so that the collection of the data information of various first preset events can be realized through the embedded point integrated component, the universality of the embedded point integrated component is realized, an application program developer can directly call the embedded point integrated component in a corresponding service code according to the data collection requirement without repeatedly writing codes, the embedded point efficiency is improved, the code redundancy is effectively avoided, errors are not easy to occur, the subsequent code maintenance is facilitated, and the workload of the developer is greatly reduced; and the embedded point integrated component sends the first data information to the server, so that the captured behavior data can be reported to the corresponding server, and analysis and statistics of the user behaviors are realized.
Fig. 3 is a detailed structural diagram of an event processing device based on buried points according to another embodiment of the present application, and as shown in fig. 3, the device 30 may include a first processing module 31, a first sending module 32, a second processing module 33, a second sending module 34, a constructing module 35, a first loading module 36 and a second loading module 37. The function implemented by the first processing module 31 in fig. 3 is the same as the first processing module 21 in fig. 2, and the function implemented by the first transmitting module 32 in fig. 3 is the same as the first transmitting module 22 in fig. 2, which is not described here again. The buried point-based event processing apparatus shown in fig. 3 will be described in detail as follows:
Specifically, the apparatus further includes a second processing module 33 and a second sending module 34, where:
the second processing module 33 is configured to, when a second predetermined event for the application program is detected, obtain second data information corresponding to the second predetermined event based on the embedded point integrated component preloaded by the application program according to a second loading manner, where the second loading manner is loading according to configuration information of the embedded point integrated component sent by the server;
and the second sending module 34 is configured to send second data information to the server through the embedded point integrated component, so that the server performs corresponding data analysis.
Specifically, the apparatus further comprises a construction module 35, wherein:
a construction module 35 for constructing a buried point integrated component;
the construction module 35 is specifically configured to perform at least one of the following:
determining at least one predetermined event of the embedded point integrated assembly monitoring;
determining at least one predetermined event type for the embedded point integrated assembly monitoring;
determining an Application Programming Interface (API) of the embedded point integrated component;
determining a buried point data structure of the buried point integrated component;
a switch interface of the buried point integrated assembly is determined.
Specifically, the apparatus further includes a first loading module 36, wherein:
The first loading module 36 is configured to load the embedded point integrated component in the application program according to a first loading manner;
the first loading module 36 includes a receiving sub-module 361 and a first loading sub-module 362, in which:
the receiving sub-module 361 is configured to receive service code information for an application program sent by a server, where the service code information is information that the server invokes a buried point integrated component through a switch interface of the buried point integrated component in a service code of the application program;
the first loading sub-module 362 is configured to load the embedded point integrated component according to the service code information.
Specifically, the first processing module 31 includes a first data acquisition sub-module 311 and a data transmission sub-module 312, where:
the first data obtaining sub-module 311 is configured to obtain first data information corresponding to a first predetermined event by calling a service code of the buried point integrated component according to a switch interface of the buried point integrated component;
the data transmitting sub-module 312 is configured to transmit the first data information to the embedded point integration component by calling an API of the embedded point integration component.
Specifically, the apparatus further comprises a second loading module 37, wherein:
the second loading module 37 is configured to load the embedded point integrated component in the application program according to a second loading manner;
The second loading module 37 includes an information obtaining sub-module 371 and a second loading sub-module 372, wherein:
the information obtaining sub-module 371 is configured to obtain configuration information of the embedded point integrated component from a corresponding server when a predetermined trigger event for the application program is detected, where the predetermined trigger event includes an installation event or an update event;
and a second loading sub-module 372, configured to load the embedded point integrated component according to the configuration information.
Specifically, the second processing module 33 includes a determining sub-module 331 and a second data acquisition sub-module 332, wherein:
a determining sub-module 331, configured to determine whether the second predetermined event belongs to a predetermined event monitored by the embedded point integrated component, or determine whether an event type of the second predetermined event belongs to a predetermined event type monitored by the embedded point integrated component;
the second data obtaining sub-module 332 is configured to obtain, when the second predetermined event is a predetermined event monitored by the embedded point integration component, or when the event type of the second predetermined event belongs to the predetermined event type monitored by the embedded point integration component, second data information corresponding to the second predetermined event through the embedded point integration component.
Specifically, the first sending module 32 is specifically configured to convert the first data information into third data information corresponding to the buried point data structure of the buried point integration component through the buried point integration component, and send the third data information to the server through the buried point integration component;
The second sending module 34 is specifically configured to convert the second data information into fourth data information corresponding to the buried data structure of the buried integrated component through the buried integrated component, and send the fourth data information to the server through the buried integrated component.
It should be noted that, this embodiment is an apparatus embodiment corresponding to the above-mentioned method embodiment, and this embodiment may be implemented in cooperation with the above-mentioned method embodiment. The related technical details mentioned in the above method embodiments are still valid in this embodiment, and in order to reduce repetition, they are not repeated here. Accordingly, the related technical details mentioned in the present embodiment may also be applied in the above-described method item embodiments.
Another embodiment of the present application provides an electronic device, as shown in fig. 4, an electronic device 400 shown in fig. 4 includes: a processor 401 and a memory 403. Processor 401 is connected to memory 403, such as via bus 402. Further, the electronic device 400 may also include a transceiver 404. It should be noted that, in practical applications, the transceiver 404 is not limited to one, and the structure of the electronic device 400 is not limited to the embodiment of the present application.
The processor 401 is applied to the embodiment of the present application, and is used for implementing the functions of the first processing module and the first sending module shown in fig. 2 and fig. 3, and for implementing the functions of the second processing module, the second sending module, the constructing module, the first loading module and the second loading module shown in fig. 3.
The processor 401 may be a CPU, general purpose processor, DSP, ASIC, FPGA or other programmable logic device, transistor logic device, hardware components, or any combination thereof. Which may implement or perform the various exemplary logic blocks, modules and circuits described in connection with this disclosure. Processor 401 may also be a combination that implements computing functionality, such as a combination comprising one or more microprocessors, a combination of a DSP and a microprocessor, or the like.
Bus 402 may include a path to transfer information between the components. Bus 402 may be a PCI bus, an EISA bus, or the like. Bus 402 may be divided into an address bus, a data bus, a control bus, and the like. For ease of illustration, only one thick line is shown in fig. 4, but not only one bus or one type of bus.
The memory 403 may be, but is not limited to, a ROM or other type of static storage device that can store static information and instructions, a RAM or other type of dynamic storage device that can store information and instructions, an EEPROM, a CD-ROM or other optical disk storage, optical disk storage (including compact disks, laser disks, optical disks, digital versatile disks, blu-ray disks, etc.), magnetic disk storage media or other magnetic storage devices, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a computer.
The memory 403 is used for storing application program codes for executing the inventive arrangements and is controlled to be executed by the processor 401. The processor 401 is configured to execute application code stored in the memory 403 to implement the actions of the buried point based event processing apparatus provided by the embodiment shown in fig. 2 or fig. 3.
The electronic device provided by the embodiment of the application comprises a memory, a processor and a computer program which is stored in the memory and can run on the processor, wherein when the processor executes the program, the implementation can be realized: when a first preset event aiming at an application program is detected, first data information corresponding to the first preset event is acquired through a buried point integrated component preloaded according to service code information aiming at the application program and sent by a server, so that the collection of the data information of various first preset events can be realized through the buried point integrated component, the universality of the buried point integrated component is realized, an application program developer can directly call the buried point integrated component in a corresponding service code according to the data collection requirement, repeated code writing is not needed, the buried point efficiency is improved, the code redundancy is effectively avoided, errors are not easy to occur, the subsequent code maintenance is facilitated, and the workload of the developer is greatly reduced; and the embedded point integrated component sends the first data information to the server, so that the captured behavior data can be reported to the corresponding server, and analysis and statistics of the user behaviors are realized.
The embodiment of the present application provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the method shown in the above embodiment. Specifically: when a first preset event aiming at an application program is detected, first data information corresponding to the first preset event is acquired through a buried point integrated component preloaded according to service code information aiming at the application program and sent by a server, so that the collection of the data information of various first preset events can be realized through the buried point integrated component, the universality of the buried point integrated component is realized, an application program developer can directly call the buried point integrated component in a corresponding service code according to the data collection requirement, repeated code writing is not needed, the buried point efficiency is improved, the code redundancy is effectively avoided, errors are not easy to occur, the subsequent code maintenance is facilitated, and the workload of the developer is greatly reduced; and the embedded point integrated component sends the first data information to the server, so that the captured behavior data can be reported to the corresponding server, and analysis and statistics of the user behaviors are realized.
The computer readable storage medium provided by the embodiments of the present application is applicable to any one of the embodiments of the above method.
It should be understood that, although the steps in the flowcharts of the figures are shown in order as indicated by the arrows, these steps are not necessarily performed in order as indicated by the arrows. The steps are not strictly limited in order and may be performed in other orders, unless explicitly stated herein. Moreover, at least some of the steps in the flowcharts of the figures may include a plurality of sub-steps or stages that are not necessarily performed at the same time, but may be performed at different times, the order of their execution not necessarily being sequential, but may be performed in turn or alternately with other steps or at least a portion of the other steps or stages.
The foregoing is only a partial embodiment of the present application, and it should be noted that it will be apparent to those skilled in the art that modifications and adaptations can be made without departing from the principles of the present application, and such modifications and adaptations are intended to be comprehended within the scope of the present application.

Claims (9)

1. An event processing method based on buried points is characterized by comprising the following steps:
when a first preset event aiming at an application program is detected, based on a buried point integrated component preloaded by the application program according to a first loading mode, acquiring first data information corresponding to the first preset event, wherein the first loading mode is loaded according to service code information aiming at the application program and sent by a server;
the first data information is sent to the server through the embedded point integrated component, so that the server performs corresponding data analysis;
when a second preset event aiming at an application program is detected, acquiring second data information corresponding to the second preset event based on a buried point integrated component preloaded by the application program according to a second loading mode, wherein the second loading mode is loaded according to configuration information of the buried point integrated component sent by a server;
the second data information is sent to the server through the embedded point integrated component, so that the server performs corresponding data analysis;
before the embedded point integrated component preloaded according to the second loading mode based on the application program obtains the second data information corresponding to the second predetermined event, the embedded point integrated component further comprises:
Loading the embedded point integrated component in the application program according to a second loading mode;
the loading the embedded point integrated component in the application program according to the second loading mode comprises the following steps:
when a preset trigger event aiming at the application program is detected, acquiring configuration information of the embedded point integrated component from a corresponding server, wherein the preset trigger event comprises an installation event or an update event;
and loading the embedded point integrated component according to the configuration information.
2. The method of claim 1, further comprising, prior to preloading the buried point integrated component:
constructing the buried point integrated assembly;
constructing the buried point integrated assembly, including at least one of:
determining at least one predetermined event of the embedded point integrated assembly monitoring;
determining at least one predetermined event type for the embedded point integrated component monitoring;
determining an Application Programming Interface (API) of the embedded point integrated component;
determining a buried point data structure of the buried point integrated component;
and determining a switch interface of the buried point integrated component.
3. The method of claim 1, further comprising, prior to obtaining the first data information corresponding to the first predetermined event based on the embedded point integration component preloaded by the application according to the first loading manner:
Loading the embedded point integrated component in the application program according to a first loading mode;
the loading the embedded point integrated component in the application program according to the first loading mode comprises the following steps:
receiving service code information which is sent by a server and aims at the application program, wherein the service code information is information of calling the embedded point integrated component by the server in the service code of the application program through a switch interface of the embedded point integrated component;
and loading the embedded point integrated component according to the service code information.
4. The method according to claim 3, wherein the obtaining, based on the embedded point integrated component preloaded by the application according to the first loading manner, the first data information corresponding to the first predetermined event includes:
calling a service code of the embedded point integrated component according to a switch interface of the embedded point integrated component to acquire first data information corresponding to the first preset event;
and sending the first data information to the embedded point integrated component by calling an API of the embedded point integrated component.
5. The method according to claim 1, wherein the obtaining, based on the embedded point integrated component preloaded by the application according to the second loading manner, second data information corresponding to the second predetermined event includes:
Determining whether the second predetermined event belongs to a predetermined event of the embedded point integrated component monitoring or whether an event type of the second predetermined event belongs to a predetermined event type of the embedded point integrated component monitoring;
and if the second preset event belongs to the preset event monitored by the embedded point integrated component, or the event type of the second preset event belongs to the preset event type monitored by the embedded point integrated component, acquiring second data information corresponding to the second preset event by the embedded point integrated component.
6. The method of claim 1, wherein transmitting the first data information to a server through the embedded point integration component comprises:
converting the first data information into third data information corresponding to a buried point data structure of the buried point integrated component through the buried point integrated component, and sending the third data information to a server through the buried point integrated component;
sending, by the embedded point integration component, the second data information to a server, including:
and converting the second data information into fourth data information corresponding to a buried point data structure of the buried point integrated component through the buried point integrated component, and sending the fourth data information to a server through the buried point integrated component.
7. An event processing device based on buried points, comprising:
the system comprises a first processing module, a second processing module and a third processing module, wherein the first processing module is used for acquiring first data information corresponding to a first preset event based on a buried point integrated component preloaded by an application program according to a first loading mode when the first preset event aiming at the application program is detected, and the first loading mode is used for loading service code information aiming at the application program and sent by a server;
the first sending module is used for sending the first data information to the server through the embedded point integrated component so as to enable the server to perform corresponding data analysis; when a second preset event aiming at an application program is detected, acquiring second data information corresponding to the second preset event based on a buried point integrated component preloaded by the application program according to a second loading mode, wherein the second loading mode is loaded according to configuration information of the buried point integrated component sent by a server;
the second data information is sent to the server through the embedded point integrated component, so that the server performs corresponding data analysis;
before the embedded point integrated component preloaded according to the second loading mode based on the application program obtains the second data information corresponding to the second predetermined event, the embedded point integrated component further comprises:
Loading the embedded point integrated component in the application program according to a second loading mode;
the loading the embedded point integrated component in the application program according to the second loading mode comprises the following steps:
when a preset trigger event aiming at the application program is detected, acquiring configuration information of the embedded point integrated component from a corresponding server, wherein the preset trigger event comprises an installation event or an update event;
and loading the embedded point integrated component according to the configuration information.
8. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the buried point based event processing method of any of claims 1 to 6 when the program is executed by the processor.
9. A computer readable storage medium, characterized in that the computer readable storage medium has stored thereon a computer program which, when executed by a processor, implements the buried point based event processing method according to any of claims 1 to 6.
CN201910818562.XA 2019-08-30 2019-08-30 Event processing method based on buried point, electronic equipment and computer storage medium Active CN110515821B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910818562.XA CN110515821B (en) 2019-08-30 2019-08-30 Event processing method based on buried point, electronic equipment and computer storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910818562.XA CN110515821B (en) 2019-08-30 2019-08-30 Event processing method based on buried point, electronic equipment and computer storage medium

Publications (2)

Publication Number Publication Date
CN110515821A CN110515821A (en) 2019-11-29
CN110515821B true CN110515821B (en) 2023-11-14

Family

ID=68628818

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910818562.XA Active CN110515821B (en) 2019-08-30 2019-08-30 Event processing method based on buried point, electronic equipment and computer storage medium

Country Status (1)

Country Link
CN (1) CN110515821B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111338937B (en) * 2020-02-19 2023-06-23 百度在线网络技术(北京)有限公司 Method, device, equipment and medium for downloading small program intervention
CN111580894A (en) * 2020-04-02 2020-08-25 深圳壹账通智能科技有限公司 Data analysis early warning method, device, computer system and readable storage medium
CN111639007B (en) * 2020-05-29 2024-05-03 北京金山云网络技术有限公司 Data processing method, device, terminal and computer readable storage medium
CN112114783A (en) * 2020-09-18 2020-12-22 北京百度网讯科技有限公司 Information acquisition method and device
CN112596978B (en) * 2020-12-23 2023-07-14 华人运通(上海)云计算科技有限公司 Buried point information processing method, buried point information processing device and medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106453394A (en) * 2016-11-11 2017-02-22 广东小天才科技有限公司 Information reminding method, electronic terminal and server
CN106844217A (en) * 2017-01-26 2017-06-13 网易(杭州)网络有限公司 Control to applying bury method and device, readable storage medium storing program for executing a little
CN108038053A (en) * 2017-11-29 2018-05-15 上海恺英网络科技有限公司 A kind of dynamic configuration buries method and apparatus a little
CN108108286A (en) * 2018-01-03 2018-06-01 上海众人网络安全技术有限公司 Method of data capture and device, server, storage medium
CN108255993A (en) * 2017-12-29 2018-07-06 北京三快在线科技有限公司 Extract method, apparatus, electronic equipment and the storage medium of service fields
CN110099101A (en) * 2019-04-01 2019-08-06 厦门美柚信息科技有限公司 It is a kind of to bury method, system, equipment and its a storage medium for dynamic setting

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106453394A (en) * 2016-11-11 2017-02-22 广东小天才科技有限公司 Information reminding method, electronic terminal and server
CN106844217A (en) * 2017-01-26 2017-06-13 网易(杭州)网络有限公司 Control to applying bury method and device, readable storage medium storing program for executing a little
CN108038053A (en) * 2017-11-29 2018-05-15 上海恺英网络科技有限公司 A kind of dynamic configuration buries method and apparatus a little
CN108255993A (en) * 2017-12-29 2018-07-06 北京三快在线科技有限公司 Extract method, apparatus, electronic equipment and the storage medium of service fields
CN108108286A (en) * 2018-01-03 2018-06-01 上海众人网络安全技术有限公司 Method of data capture and device, server, storage medium
CN110099101A (en) * 2019-04-01 2019-08-06 厦门美柚信息科技有限公司 It is a kind of to bury method, system, equipment and its a storage medium for dynamic setting

Also Published As

Publication number Publication date
CN110515821A (en) 2019-11-29

Similar Documents

Publication Publication Date Title
CN110515821B (en) Event processing method based on buried point, electronic equipment and computer storage medium
CN111083225B (en) Data processing method and device in Internet of things platform and Internet of things platform
CN107948744B (en) Interface detection method, interface detection device, and computer-readable storage medium
CN107908465B (en) Task scheduling method for big data platform
CN107704360B (en) Monitoring data processing method, equipment, server and storage medium
CN104063305A (en) Pressure testing method, device and system for intelligent terminal software
US20130198333A1 (en) Method and device for recording and reproducing web operation
CN107045475B (en) Test method and device
KR20160061306A (en) Method and apparatus for firmware virtualization
CN105260190A (en) Operation method and device for android application based on android system distribution technology
CN108255735B (en) Associated environment testing method, electronic device and computer readable storage medium
CN110209557B (en) User operation recording and restoring method, device and equipment and readable storage medium
US9374413B2 (en) Client terminal, server, and distributed processing method
CN112383623B (en) Multimedia file processing method and device, terminal and network access point equipment
US10432490B2 (en) Monitoring single content page application transitions
CN110457089B (en) Data acquisition method, data acquisition device, computer readable storage medium and computer equipment
CN105813102A (en) Automatic testing system and automatic testing method
CN112416698B (en) Expansion method and device of monitoring system, storage medium and electronic equipment
CN116112457A (en) Method, device, computer equipment and storage medium for notifying message
CN115237399A (en) Method for collecting data, storage medium, processor and engineering vehicle
CN112685045A (en) Page source file processing method and device, electronic equipment and storage medium
CN113704281A (en) Data format conversion method and device, storage medium and electronic equipment
CN111638652A (en) Device control method, system, device and readable storage medium
CN107577546B (en) Information processing method and device and electronic equipment
CN109445964B (en) Method and device for data transmission with SAP system in external system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant