CN111597106A - Point burying management method and device - Google Patents

Point burying management method and device Download PDF

Info

Publication number
CN111597106A
CN111597106A CN202010276035.3A CN202010276035A CN111597106A CN 111597106 A CN111597106 A CN 111597106A CN 202010276035 A CN202010276035 A CN 202010276035A CN 111597106 A CN111597106 A CN 111597106A
Authority
CN
China
Prior art keywords
reporting
statistical data
platform end
sdk
page
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.)
Pending
Application number
CN202010276035.3A
Other languages
Chinese (zh)
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.)
Beijing 58 Information Technology Co Ltd
Original Assignee
Beijing 58 Information 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 Beijing 58 Information Technology Co Ltd filed Critical Beijing 58 Information Technology Co Ltd
Priority to CN202010276035.3A priority Critical patent/CN111597106A/en
Publication of CN111597106A publication Critical patent/CN111597106A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/362Software debugging
    • G06F11/366Software debugging using diagnostics

Abstract

The application discloses a buried point management method and device. In the application, when an element to be monitored in a page has a trigger event of a type to be monitored, statistical data of the trigger event of the type to be monitored for the element may not be reported immediately, but statistical data of the trigger event of the type to be monitored for the element may be cached in a cache pool, and then the statistical data in the cache pool is reported in batch.

Description

Point burying management method and device
Technical Field
The present application relates to the field of computer technologies, and in particular, to a method and an apparatus for managing a buried point.
Background
With the rapid development of technology, more and more Android applications that can run on Android (Linux-based free and open source operating system) or IOS applications that can run on IOS (apple developed mobile operating system) are developed by application manufacturers.
Taking the IOS as an example, sometimes, in order to extend the functions of the IOS application, when the IOS application is developed in the IOS development environment, a Flutter user interface developed based on a Flutter terminal may be added to the IOS application.
To gather some of the user's usage information on the Flutter user interface so that the developer can further optimize the IOS application, the developer can manually configure the burial points on the source code of the Flutter user interface. Then, communication channels are respectively registered at the FLUTTER end and the IOS end, when the embedded point of the FLUTTER user interface is triggered, the FLUTTER end can send embedded point data to the IOS end based on the communication channels, and then the IOS end receives the embedded point data and reports the embedded point data to the service end.
However, the inventors found that the following problems exist in the prior art:
the Flutter end needs to start a new process in the IOS application program every time the Flutter end sends a buried point data to the IOS end, and sends a buried point data to the IOS end based on the new process, if the Flutter end needs to send a plurality of buried point data to the IOS end in a short time, a new process needs to be created for each buried point data in the IOS application program, and then different buried point data are sent to the IOS end based on different processes, but starting a plurality of processes in the application program in a short time may possibly reduce the performance of the application program.
Disclosure of Invention
In order to solve the technical problem, the application shows a method and a device for managing a buried point.
In a first aspect, the present application illustrates a method for landfill management, the method comprising:
when a page in an application program is rendered, acquiring a circled buried point configuration file of the page in real time from a server, wherein the circled buried point configuration file at least comprises an element identifier of an element to be monitored in the page and the type of a trigger event to be monitored of the element;
loading the circled buried point configuration file in the page;
monitoring whether the trigger event of the type occurs to the elements in the page or not according to the element identification in the circled buried point configuration file;
in the event that the element occurs the kind of trigger event, caching statistical data of the kind of trigger event occurring for the element in a cache pool;
and reporting at least two statistical data in the cache pool based on one process.
In an optional implementation manner, the application program is developed based on a development framework, and the development framework comprises a software development kit SDK of a communication channel between the first platform side and the server side, which is packaged in advance; the SDK, the first platform end and the second platform end are integrated in the application program, and the first platform end comprises the page;
the batch reporting of the statistical data in the cache pool comprises:
the first platform end calls the SDK integrated in the application program;
the first platform end reports the statistical data in the cache pool to the server end in batch based on the SDK;
in an optional implementation manner, the application program is developed based on a development framework, and the development framework comprises a software development kit SDK of a communication channel between the first platform end and the second platform end which is packaged in advance; the SDK, the first platform end and the second platform end are integrated in the application program, and the first platform end comprises the page;
the batch reporting of the statistical data in the cache pool comprises:
the first platform end calls the SDK integrated in the application program;
and the first platform end sends the statistical data in the cache pool to the second platform end in batch based on the SDK so that the second platform end reports the statistical data to the server end in batch.
In an optional implementation manner, the batch reporting of the statistical data in the cache pool includes:
and reporting at least two statistical data in the cache pool based on one process when the number of the statistical data cached in the cache pool reaches a preset number.
In an optional implementation manner, the batch reporting of the statistical data in the cache pool includes:
acquiring the latest reporting buried point management time;
and reporting at least two statistical data in the cache pool based on one process under the condition that the interval time between the current time and the reporting time is greater than or equal to the preset time.
In a second aspect, the present application illustrates a buried point management device, the device comprising:
the system comprises an acquisition module, a processing module and a display module, wherein the acquisition module is used for acquiring a circled buried point configuration file of a page in real time from a server when the page in an application program is rendered, and the circled buried point configuration file at least comprises an element identifier of an element to be monitored in the page and the type of a trigger event to be monitored aiming at the element;
the loading module is used for loading the circled buried point configuration file in the page;
the monitoring module is used for monitoring whether the trigger event of the type occurs to the elements in the page according to the element identification in the circled buried point configuration file;
the cache module is used for caching the statistical data of the trigger event of the type of the element in a cache pool under the condition that the trigger event of the type of the element occurs;
and the reporting module is used for reporting the at least two statistical data in the cache pool based on one process.
In an optional implementation manner, the application program is developed based on a development framework, and the development framework comprises a software development kit SDK of a communication channel between the first platform side and the server side, which is packaged in advance; the SDK, the first platform end and the second platform end are integrated in the application program, and the first platform end comprises the page;
the reporting module comprises:
the first calling unit is used for calling the SDK integrated in the application program;
the first reporting unit is used for reporting the statistical data in the cache pool to the server side in batch based on the SDK;
in an optional implementation manner, the application program is developed based on a development framework, and the development framework comprises a software development kit SDK of a communication channel between the first platform end and the second platform end which is packaged in advance; the SDK, the first platform end and the second platform end are integrated in the application program, and the first platform end comprises the page;
the reporting module comprises:
the second calling unit is used for calling the SDK integrated in the application program;
and the sending unit is used for sending the statistical data in the cache pool to the second platform side in batches based on the SDK so that the second platform side reports the statistical data to the server side in batches.
In an optional implementation manner, the reporting module includes:
and the second reporting unit is used for reporting at least two statistical data in the cache pool based on one process when the number of the statistical data cached in the cache pool reaches a preset number.
In an optional implementation manner, the reporting module includes:
the acquisition unit is used for acquiring the latest reporting buried point management time; a
And the third reporting unit is used for reporting at least two statistical data in the cache pool based on one process under the condition that the interval duration between the current time and the reporting time is greater than or equal to the preset duration.
In a third aspect, the present application shows an electronic device comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to perform the method of landfill management as described in the first aspect.
In a fourth aspect, the present application illustrates a non-transitory computer-readable storage medium having instructions which, when executed by a processor of an electronic device, enable the electronic device to perform the method of landfill management as described in the first aspect.
In a fifth aspect, the present application shows a computer program product, in which instructions, when executed by a processor of an electronic device, enable the electronic device to perform the method of managing a buried point as described in the first aspect.
The technical scheme provided by the application can comprise the following beneficial effects:
in the application, when an element to be monitored in a page has a trigger event of a type to be monitored, statistical data of the trigger event of the type to be monitored for the element may not be reported immediately, but statistical data of the trigger event of the type to be monitored for the element may be cached in a cache pool, and then the statistical data in the cache pool is reported in batch.
Drawings
FIG. 1 is a flow chart illustrating the steps of a method for landfill management;
fig. 2 is a block diagram illustrating a structure of a buried point management apparatus according to the present application;
FIG. 3 is a block diagram of an electronic device shown in the present application;
fig. 4 is a block diagram of an electronic device shown in the present application.
Detailed Description
In order to make the aforementioned objects, features and advantages of the present application more comprehensible, the present application is described in further detail with reference to the accompanying drawings and the detailed description.
Referring to fig. 1, a flowchart illustrating steps of a site management method according to the present application is shown, where the method is applied to a communication channel, and the method may specifically include the following steps:
in step S101, when a page in an application program is rendered, a circled buried point configuration file of the page is obtained in real time from a server, where the circled buried point configuration file at least includes an element identifier of an element to be monitored in the page and a type of a trigger event to be monitored for the element;
in the application, in order to collect some use information of a majority of users on the page of the application program, so that a developer can further optimize the application program, the developer can select the elements to be monitored in the page of the application program in advance, the application program obtains the elements selected by the developer in the page, and then obtains the element identification of the selected elements; then, the developer can set the type of the trigger event which needs to be monitored for the circled element, wherein the type of the trigger event comprises the number of clicks, the frequency of clicks, the number of exposures, the length of exposure time, the frequency of exposures and the like, and the application program receives the type of the trigger event which needs to be monitored for the circled element and is set by the developer; and then generating a configuration file of the circled buried points according to the element identification of the circled elements and the type set by the developer, and reporting the generated configuration file of the circled buried points to a server.
Therefore, the server side can obtain the configuration file of the circled selection buried points, and developers can update the configuration file of the circled selection buried points on the server side later, wherein the developers can update the configuration file of the circled selection buried points on the server side according to actual requirements so as to update the use information of the majority of users on the page of the application program and the like. For example, the developer may update the identifier of the element in the circled buried point configuration file or the type of the trigger event in the server, for example, add the element to be monitored in the page or reduce the element to be monitored in the page.
In addition, each time the application loads the page, the application needs to load the latest picked and buried point configuration file in the page, and in order to be able to load the latest picked and buried point configuration file in the page, the application needs to acquire the latest picked and buried point configuration file from the server in real time each time the application renders the page, and then step S102 is executed.
In step S102, a circled buried point configuration file is loaded in the page;
in step S103, monitoring whether a trigger event of the type occurs for the element according to the element identifier in the circled buried point configuration file;
in one embodiment of the present application, click events can be listened to based on setState () in MVVM (Model-View-ViewModel).
In another embodiment of the present application, the action event can be listened to based on Middleware (Middleware) in Redux. In the embodiment, because the behavior event is monitored based on Middleware in Redux, the intrusiveness of business logic of the page can be reduced.
In yet another embodiment of the present application, page jump events may be listened to based on flutternevigator.
According to the method, a developer does not need to configure a buried point code on each element to be monitored, the element to be monitored can be selected in advance by circling the buried point, and then whether the triggering event of the type occurs to the element can be monitored based on setState (), Middleware and/or fluttNavigator, so that the workload of the developer for managing the buried point can be reduced.
If the element has the trigger event of the type, in step S104, caching the statistical data of the trigger event of the type for the element in a cache pool;
in step S105, at least two statistical data in the buffer pool are reported based on one process.
If reporting a statistical data each time needs to start a new process in the application program and report the statistical data based on the new process, under the condition that a trigger event needing to be reported is frequently triggered, a plurality of processes can be simultaneously created in the application program in a short time, and the statistical data of a trigger event is reported based on each process, but the creation of a plurality of processes in the application program in a short time is likely to reduce the performance of the application program.
Therefore, in order to avoid reducing the performance of the application program, when the element to be monitored in the page has a trigger event of a type to be monitored, the statistical data of the trigger event of the type to occur to the element may not be reported immediately, but the statistical data of the trigger event of the type to occur to the element may be cached in the cache pool, and then the statistical data in the cache pool is reported in batch.
Further, in order to save the storage space of the buffer pool and avoid repeated reporting of the statistical data in the buffer pool, after the statistical data in the buffer pool is reported in batch, the reported statistical data may be deleted from the buffer pool.
In an embodiment of the present application, when the number of the statistical data cached in the cache pool reaches a preset number, at least two statistical data in the cache pool are reported based on one process.
In another embodiment of the present application, the latest reporting time of the management of the buried point can be obtained; and reporting at least two statistical data in the cache pool based on one process under the condition that the interval duration between the current time and the reporting time is greater than or equal to the preset duration.
In the prior art, on one hand, developers need to register communication channels at the Flutter end and the IOS end respectively, and several Flutter user interfaces exist in an application program, several channels need to be created, which results in a large development workload of the developers.
On the other hand, the computer program codes of the communication channels are coupled in the service codes of the Flutter end, and the code intrusiveness is high.
On the other hand, the communication channel registered at the Flutter end needs to be adapted with Android and IOS, but because the API, the protocol, the port, and the supported computer programming language between the Android and IOS are different, if the communication channel developed at the Flutter end needs to be adapted with the Android and IOS respectively, a large amount of adaptation work needs to be performed by a developer, and development difficulty is high.
On the other hand, the channel type of the communication channel registered at the Flutter end and the channel type of the channel registered at the IOS end or the Android end must be the same, the channel name of the communication channel registered at the Flutter end and the channel name of the channel registered at the IOS end must be the same, after the channel type or the channel name is modified at one end, the other two ends also need to be modified, and the maintenance cost is high for the site management developer.
In an embodiment of the application, the application program is developed based on a development framework, a first development environment and a second development environment are integrated in the development framework, a developer can develop a first platform end in the first development environment in the development framework, develop a second platform end in the second development environment in the development framework, and then compile the first platform end, the second platform end, and related components in the development framework to obtain the application program. In this way, the first platform end, the second platform end, related components in the development framework and the like are integrated in the application program.
The first platform end comprises a Flutter end, and the second platform end comprises an IOS end, an Android end and the like.
Before a developer develops an application based on a development framework, the developer developing the development framework has already encapsulated an SDK (Software development kit) of a communication channel between a first platform side and a server side in the development framework, and the first platform side can perform communication with the server side through HTTP (Hyper text transfer Protocol) based on the SDK, and the like. The SDK is included in the relevant components in the development framework at compile time, and thus the SDK is included in the application obtained by compiling.
In the process of site-embedded management, a developer can write a communication address of a server in the SDK, so that a first platform in a developed application can interact with the server based on the SDK and the communication address of the server.
Therefore, for the first platform-based terminal in the application program, the statistical data can be reported to the server terminal without the help of the second platform terminal, the SDK is provided in the application program, and the first platform terminal can call the SDK integrated in the application program when the statistical data in the cache pool is reported in batches; and then reporting the statistical data in the cache pool to the server in batch based on the SDK.
Therefore, the application supports that the first platform end can directly report the statistical data to the server end without reporting the statistical data to the server end through the second platform end,
therefore, in the embedded point management stage of the developer, it is not necessary to manually establish a communication channel between the first platform end and the second platform end, and it is also not necessary to develop a computer program code for establishing a communication channel between the first platform end and the second platform end in the application program, for example, it is not necessary to write a computer program code for registering a communication channel in the first platform end, and it is not necessary to write a computer program code for registering a communication channel in the second platform end, but it is only necessary to directly write a code for calling the SDK in the code in the first platform end, and then the first platform end can directly call the SDK based on the code for calling the SDK, and then can complete reporting of the statistical data to the server end.
Because a communication channel between the first platform end and the second platform end does not need to be established, and computer program codes used for registering the communication channel do not need to be added to the first platform end and the second platform end, the development workload of developers can be reduced, and the intrusiveness to object waiting codes in the first platform end and business codes in the second platform end can be reduced.
Furthermore, as a communication channel between the first platform end and the second platform end does not need to be established, developers do not need to consider the problem of adaptation of the communication channel on the plurality of platform ends, the development difficulty is reduced, the problems of channel types and channel names registered by different platform ends are not required to be considered, the development difficulty can be reduced, and the problem of modifying the channel types or the channel names does not exist in the later stage, so that the maintenance cost can be reduced.
Or, in another embodiment of the present application, the application program is developed based on a development framework, in which a first development environment and a second development environment are integrated, and a developer may develop a first platform end in the first development environment in the development framework, develop a second platform end in the second development environment in the development framework, and then compile the first platform end, the second platform end, and related components in the development framework to obtain the application program. In this way, the first platform end, the second platform end, related components in the development framework and the like are integrated in the application program.
The first platform end comprises a Flutter end, and the second platform end comprises an IOS end, an Android end and the like.
Before a developer develops an application program based on a development framework, the developer developing the development framework packages the SDK of a communication channel between a first platform end and a second platform end in the development framework, the first platform end can communicate with the second platform end based on the SDK, and the like. The SDK is included in the relevant components in the development framework at compile time, and thus the SDK is included in the application obtained by compiling. The first platform side in the application program can interact with the first platform side based on the SDK.
Thus, for the first platform-based end in the application program, when the statistical data in the cache pool is reported in batch, the first platform end can call the SDK integrated in the application program; and then reporting the statistical data in the cache pool to the second platform end in batch based on the SDK so that the second platform end reports the statistical data to the server end in batch.
Therefore, the method and the device support that the first platform end can directly call the existing SDK in the development framework to send the statistical data to the second platform end.
Therefore, in the embedded point management stage of the developer, it is not necessary to manually establish a communication channel between the first platform end and the second platform end, and it is also not necessary to develop a computer program code for establishing a communication channel between the first platform end and the second platform end in the application program, for example, it is not necessary to write a computer program code for registering a communication channel in the first platform end, and it is not necessary to write a computer program code for registering a communication channel in the second platform end, but it is only necessary to directly write a code for calling the SDK in the code in the first platform end, and then the first platform end can directly call the SDK based on the code for calling the SDK, and then it is possible to complete sending the statistical data to the second platform end, so that the second platform end reports the statistical data to the service end in batch.
Because a communication channel between the first platform end and the second platform end does not need to be established, and computer program codes used for registering the communication channel do not need to be added to the first platform end and the second platform end, the development workload of developers can be reduced, and the intrusiveness to object waiting codes in the first platform end and business codes in the second platform end can be reduced.
Furthermore, as a communication channel between the first platform end and the second platform end does not need to be established, developers do not need to consider the problem of adaptation of the communication channel on the plurality of platform ends, the development difficulty is reduced, the problems of channel types and channel names registered by different platform ends are not required to be considered, the development difficulty can be reduced, and the problem of modifying the channel types or the channel names does not exist in the later stage, so that the maintenance cost can be reduced.
It is noted that, for simplicity of explanation, the method embodiments are described as a series of acts or combination of acts, but those skilled in the art will appreciate that the present application is not limited by the order of acts, as some steps may, in accordance with the present application, occur in other orders and concurrently. Further, those skilled in the art will also appreciate that the embodiments described in the specification are exemplary and that no action is necessarily required in this application.
Referring to fig. 2, a block diagram of a site management apparatus according to the present application is shown, where the apparatus may specifically include the following modules:
an obtaining module 11, configured to obtain, in real time, a circled buried point configuration file of a page from a server when rendering the page in an application, where the circled buried point configuration file includes at least an element identifier of an element to be monitored in the page and a type of a trigger event to be monitored for the element;
a loading module 12, configured to load the circled buried point configuration file in the page;
a monitoring module 13, configured to monitor whether a trigger event of the category occurs for the element in the page according to the element identifier in the circled buried point configuration file;
a caching module 14, configured to, when the element has the trigger event of the category, cache statistical data of the trigger event of the category occurring for the element in a cache pool;
a reporting module 15, configured to report at least two pieces of statistical data in the cache pool based on one process.
In an optional implementation manner, the application program is developed based on a development framework, and the development framework comprises a software development kit SDK of a communication channel between the first platform side and the server side, which is packaged in advance; the SDK, the first platform end and the second platform end are integrated in the application program, and the first platform end comprises the page;
the reporting module comprises:
the first calling unit is used for calling the SDK integrated in the application program;
the first reporting unit is used for reporting the statistical data in the cache pool to the server side in batch based on the SDK;
in an optional implementation manner, the application program is developed based on a development framework, and the development framework comprises a software development kit SDK of a communication channel between the first platform end and the second platform end which is packaged in advance; the SDK, the first platform end and the second platform end are integrated in the application program, and the first platform end comprises the page;
the reporting module comprises:
the second calling unit is used for calling the SDK integrated in the application program;
and the sending unit is used for sending the statistical data in the cache pool to the second platform side in batches based on the SDK so that the second platform side reports the statistical data to the server side in batches.
In an optional implementation manner, the reporting module includes:
and the second reporting unit is used for reporting at least two statistical data in the cache pool based on one process when the number of the statistical data cached in the cache pool reaches a preset number.
In an optional implementation manner, the reporting module includes:
the acquisition unit is used for acquiring the latest reporting buried point management time; a
And the third reporting unit is used for reporting at least two statistical data in the cache pool based on one process under the condition that the interval duration between the current time and the reporting time is greater than or equal to the preset duration.
In the application, when an element to be monitored in a page has a trigger event of a type to be monitored, statistical data of the trigger event of the type to be monitored for the element may not be reported immediately, but statistical data of the trigger event of the type to be monitored for the element may be cached in a cache pool, and then the statistical data in the cache pool is reported in batch.
For the device embodiment, since it is basically similar to the method embodiment, the description is simple, and for the relevant points, refer to the partial description of the method embodiment.
Fig. 3 is a block diagram of an electronic device 800 shown in the present application. For example, the electronic device 800 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, an exercise device, a personal digital assistant, and the like.
Referring to fig. 3, electronic device 800 may include one or more of the following components: a processing component 802, a memory 804, a power component 806, a multimedia component 808, an audio component 810, an input/output (I/O) interface 812, a sensor component 814, and a communication component 816.
The processing component 802 generally controls overall operation of the electronic device 800, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing components 802 may include one or more processors 820 to execute instructions to perform all or a portion of the steps of the methods described above. Further, the processing component 802 can include one or more modules that facilitate interaction between the processing component 802 and other components. For example, the processing component 802 can include a multimedia module to facilitate interaction between the multimedia component 808 and the processing component 802.
The memory 804 is configured to store various types of data to support operation at the device 800. Examples of such data include instructions for any application or method operating on the electronic device 800, contact data, phonebook data, messages, images, videos, and so forth. The memory 804 may be implemented by any type or combination of volatile or non-volatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
The power supply component 806 provides power to the various components of the electronic device 800. The power components 806 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the electronic device 800.
The multimedia component 808 includes a screen that provides an output interface between the electronic device 800 and a user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 808 includes a front facing camera and/or a rear facing camera. The front-facing camera and/or the rear-facing camera may receive external multimedia data when the device 800 is in an operating mode, such as a shooting mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 810 is configured to output and/or input audio signals. For example, the audio component 810 includes a Microphone (MIC) configured to receive external audio signals when the electronic device 800 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may further be stored in the memory 804 or transmitted via the communication component 816. In some embodiments, audio component 810 also includes a speaker for outputting audio signals.
The I/O interface 812 provides an interface between the processing component 802 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor assembly 814 includes one or more sensors for providing various aspects of state assessment for the electronic device 800. For example, the sensor assembly 814 may detect an open/closed state of the device 800, the relative positioning of components, such as a display and keypad of the electronic device 800, the sensor assembly 814 may also detect a change in the position of the electronic device 800 or a component of the electronic device 800, the presence or absence of user contact with the electronic device 800, orientation or acceleration/deceleration of the electronic device 800, and a change in the temperature of the electronic device 800. Sensor assembly 814 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 814 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 814 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 816 is configured to facilitate wired or wireless communication between the electronic device 800 and other devices. The electronic device 800 may access a wireless network based on a communication standard, such as WiFi, a carrier network (such as 2G, 3G, 4G, or 5G), or a combination thereof. In an exemplary embodiment, the communication component 816 receives broadcast signals or broadcast operation information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 816 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the electronic device 800 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components for performing the above-described methods.
In an exemplary embodiment, a non-transitory computer-readable storage medium comprising instructions, such as the memory 804 comprising instructions, executable by the processor 820 of the electronic device 800 to perform the above-described method is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
Fig. 4 is a block diagram of an electronic device 1900 shown in the present application. For example, the electronic device 1900 may be provided as a server.
Referring to fig. 4, electronic device 1900 includes a processing component 1922 further including one or more processors and memory resources, represented by memory 1932, for storing instructions, e.g., applications, executable by processing component 1922. The application programs stored in memory 1932 may include one or more modules that each correspond to a set of instructions. Further, the processing component 1922 is configured to execute instructions to perform the above-described method.
The electronic device 1900 may also include a power component 1926 configured to perform power management of the electronic device 1900, a wired or wireless network interface 1950 configured to connect the electronic device 1900 to a network, and an input/output (I/O) interface 1958. The electronic device 1900 may operate based on an operating system stored in memory 1932, such as Windows Server, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM, or the like.
The embodiments in the present specification are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, apparatus, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, terminal devices (systems), and computer program products according to the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable test case generation terminal device to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable test case generation terminal device, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable test case generation terminal to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable generation test case terminal apparatus to cause a series of operational steps to be performed on the computer or other programmable generation test case terminal apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable generation terminal apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While the preferred embodiments of the present application have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all alterations and modifications as fall within the scope of the application.
Finally, it should also be noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or terminal that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or terminal. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or terminal that comprises the element.
The above detailed description is given to a method and an apparatus for managing a buried point, and a specific example is applied in the detailed description to explain the principle and the implementation of the present application, and the description of the above embodiment is only used to help understand the method and the core idea of the present application; meanwhile, for a person skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (12)

1. A method for point of burial management, the method comprising:
when a page in an application program is rendered, acquiring a circled buried point configuration file of the page in real time from a server, wherein the circled buried point configuration file at least comprises an element identifier of an element to be monitored in the page and the type of a trigger event to be monitored of the element; loading the circled buried point configuration file in the page;
monitoring whether the trigger event of the type occurs to the elements in the page or not according to the element identification in the circled buried point configuration file;
in the event that the element occurs the kind of trigger event, caching statistical data of the kind of trigger event occurring for the element in a cache pool;
and reporting at least two statistical data in the cache pool based on one process.
2. The method according to claim 1, wherein the application program is developed based on a development framework, and the development framework comprises a Software Development Kit (SDK) of a communication channel between the first platform side and a service side which is packaged in advance; the SDK, the first platform end and the second platform end are integrated in the application program, and the first platform end comprises the page;
the batch reporting of the statistical data in the cache pool comprises:
the first platform end calls the SDK integrated in the application program;
and the first platform end reports the statistical data in the cache pool to the server end in batch based on the SDK.
3. The method of claim 1, wherein the application is developed based on a development framework including a Software Development Kit (SDK) pre-packaged for a communication channel between the first platform end and the second platform end; the SDK, the first platform end and the second platform end are integrated in the application program, and the first platform end comprises the page;
the batch reporting of the statistical data in the cache pool comprises:
the first platform end calls the SDK integrated in the application program;
and the first platform end sends the statistical data in the cache pool to the second platform end in batch based on the SDK so that the second platform end reports the statistical data to the server end in batch.
4. The method of claim 1, wherein the batch reporting of the statistical data in the buffer pool comprises:
and reporting at least two statistical data in the cache pool based on one process when the number of the statistical data cached in the cache pool reaches a preset number.
5. The method of claim 1, wherein the batch reporting of the statistical data in the buffer pool comprises:
acquiring the latest reporting buried point management time;
and reporting at least two statistical data in the cache pool based on one process under the condition that the interval time between the current time and the reporting time is greater than or equal to the preset time.
6. A buried point management apparatus, the apparatus comprising:
the system comprises an acquisition module, a processing module and a display module, wherein the acquisition module is used for acquiring a circled buried point configuration file of a page in real time from a server when the page in an application program is rendered, and the circled buried point configuration file at least comprises an element identifier of an element to be monitored in the page and the type of a trigger event to be monitored aiming at the element;
the loading module is used for loading the circled buried point configuration file in the page;
the monitoring module is used for monitoring whether the trigger event of the type occurs to the elements in the page according to the element identification in the circled buried point configuration file;
the cache module is used for caching the statistical data of the trigger event of the type of the element in a cache pool under the condition that the trigger event of the type of the element occurs;
and the reporting module is used for reporting the at least two statistical data in the cache pool based on one process.
7. The apparatus according to claim 6, wherein the application is developed based on a development framework, and the development framework comprises a Software Development Kit (SDK) of a pre-packaged communication channel between the first platform side and the server side; the SDK, the first platform end and the second platform end are integrated in the application program, and the first platform end comprises the page;
the reporting module comprises:
the first calling unit is used for calling the SDK integrated in the application program;
and the first reporting unit is used for reporting the statistical data in the cache pool to the server in batch based on the SDK.
8. The apparatus of claim 6, wherein the application is developed based on a development framework, the development framework including a Software Development Kit (SDK) pre-packaged for a communication channel between the first platform end and the second platform end; the SDK, the first platform end and the second platform end are integrated in the application program, and the first platform end comprises the page;
the reporting module comprises:
the second calling unit is used for calling the SDK integrated in the application program;
and the sending unit is used for sending the statistical data in the cache pool to the second platform side in batches based on the SDK so that the second platform side reports the statistical data to the server side in batches.
9. The apparatus of claim 6, wherein the reporting module comprises:
and the second reporting unit is used for reporting at least two statistical data in the cache pool based on one process when the number of the statistical data cached in the cache pool reaches a preset number.
10. The apparatus of claim 6, wherein the reporting module comprises:
the acquisition unit is used for acquiring the latest reporting buried point management time; a
And the third reporting unit is used for reporting at least two statistical data in the cache pool based on one process under the condition that the interval duration between the current time and the reporting time is greater than or equal to the preset duration.
11. An electronic device, characterized in that the electronic device comprises:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to perform the method of landfill management of any one of claims 1-5.
12. A non-transitory computer readable storage medium having instructions therein which, when executed by a processor of an electronic device, enable the electronic device to perform the method of landfill management as claimed in any one of claims 1-5.
CN202010276035.3A 2020-04-09 2020-04-09 Point burying management method and device Pending CN111597106A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010276035.3A CN111597106A (en) 2020-04-09 2020-04-09 Point burying management method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010276035.3A CN111597106A (en) 2020-04-09 2020-04-09 Point burying management method and device

Publications (1)

Publication Number Publication Date
CN111597106A true CN111597106A (en) 2020-08-28

Family

ID=72181921

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010276035.3A Pending CN111597106A (en) 2020-04-09 2020-04-09 Point burying management method and device

Country Status (1)

Country Link
CN (1) CN111597106A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112333233A (en) * 2020-09-23 2021-02-05 北京达佳互联信息技术有限公司 Event information reporting method and device, electronic equipment and storage medium

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150058140A1 (en) * 2013-08-21 2015-02-26 Electronic Arts, Inc. Systems and methods for in-application offers
CN105656714A (en) * 2015-12-25 2016-06-08 北京京东尚科信息技术有限公司 Data collection and reporting method and device of mobile device
CN106571949A (en) * 2016-09-23 2017-04-19 北京五八信息技术有限公司 Event tracking point processing method and apparatus
CN107018046A (en) * 2017-06-06 2017-08-04 上海鋆创信息技术有限公司 A kind of collecting method, device, terminal and storage medium
CN109462648A (en) * 2018-11-13 2019-03-12 北京字节跳动网络技术有限公司 A kind of user behavior tracking, device, equipment and storage medium
CN109508186A (en) * 2018-09-18 2019-03-22 众安信息技术服务有限公司 It is a kind of to visualize data acquisition analysis method and the system buried a little based on iOS
CN109800129A (en) * 2019-01-17 2019-05-24 青岛特锐德电气股份有限公司 A kind of real-time stream calculation monitoring system and method for processing monitoring big data
CN110532496A (en) * 2019-08-30 2019-12-03 北京百度网讯科技有限公司 For enclosing the method and apparatus for selecting event
CN110716848A (en) * 2019-10-18 2020-01-21 广州华多网络科技有限公司 Data collection method and device, electronic equipment and storage medium
CN110851326A (en) * 2019-11-08 2020-02-28 浙江每日互动网络科技股份有限公司 Point burying method, data acquisition method and device
CN110908879A (en) * 2019-10-16 2020-03-24 平安普惠企业管理有限公司 Method, device, terminal and storage medium for reporting buried point data

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150058140A1 (en) * 2013-08-21 2015-02-26 Electronic Arts, Inc. Systems and methods for in-application offers
CN105656714A (en) * 2015-12-25 2016-06-08 北京京东尚科信息技术有限公司 Data collection and reporting method and device of mobile device
CN106571949A (en) * 2016-09-23 2017-04-19 北京五八信息技术有限公司 Event tracking point processing method and apparatus
CN107018046A (en) * 2017-06-06 2017-08-04 上海鋆创信息技术有限公司 A kind of collecting method, device, terminal and storage medium
CN109508186A (en) * 2018-09-18 2019-03-22 众安信息技术服务有限公司 It is a kind of to visualize data acquisition analysis method and the system buried a little based on iOS
CN109462648A (en) * 2018-11-13 2019-03-12 北京字节跳动网络技术有限公司 A kind of user behavior tracking, device, equipment and storage medium
CN109800129A (en) * 2019-01-17 2019-05-24 青岛特锐德电气股份有限公司 A kind of real-time stream calculation monitoring system and method for processing monitoring big data
CN110532496A (en) * 2019-08-30 2019-12-03 北京百度网讯科技有限公司 For enclosing the method and apparatus for selecting event
CN110908879A (en) * 2019-10-16 2020-03-24 平安普惠企业管理有限公司 Method, device, terminal and storage medium for reporting buried point data
CN110716848A (en) * 2019-10-18 2020-01-21 广州华多网络科技有限公司 Data collection method and device, electronic equipment and storage medium
CN110851326A (en) * 2019-11-08 2020-02-28 浙江每日互动网络科技股份有限公司 Point burying method, data acquisition method and device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
深南大盗: "Android 大数据收集 全埋点 自动统计 数据批量统计上报", 《HTTPS://BLOG.CSDN.NET/WHB20081815/ARTICLE/DETAILS/104472277》 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112333233A (en) * 2020-09-23 2021-02-05 北京达佳互联信息技术有限公司 Event information reporting method and device, electronic equipment and storage medium
CN112333233B (en) * 2020-09-23 2023-11-24 北京达佳互联信息技术有限公司 Event information reporting method and device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
CN109032606B (en) Native application compiling method and device and terminal
CN107423106B (en) Method and apparatus for supporting multi-frame syntax
CN105808305B (en) Static resource loading method and device
CN107423218B (en) Application testing method, device and terminal
CN109117144B (en) Page processing method, device, terminal and storage medium
CN107463372B (en) Data-driven page updating method and device
CN111222014B (en) Request processing method, request processing device, electronic equipment and storage medium
CN106708967B (en) Page display method and device
CN111695064B (en) Buried point loading method and device
CN111580824B (en) Program optimization method, device and storage medium
CN110968492B (en) Information processing method and device and storage medium
CN112114814A (en) Compiled file determining method and device and application program generating method and device
CN111597106A (en) Point burying management method and device
CN111079040A (en) Resource sniffing method, device, terminal, server and storage medium
CN113407879B (en) Data reporting method, device and readable medium
CN107257384B (en) Service state monitoring method and device
CN114489641B (en) Data processing method and device, electronic equipment and storage medium
CN112083981A (en) Method and device for creating page view component
CN110311968B (en) Method and device for loading file in streaming mode and intelligent equipment
CN112506628B (en) Agent program management method, device, computer equipment and storage medium
CN110362451B (en) Monitoring method, device and medium
CN110995767B (en) Request processing method and device
CN110990073B (en) Method and device for verifying customization requirements of application program
CN110647351B (en) Source code map file restoration method, device and storage medium
CN109947640B (en) Regression test-based core function coverage statistical method and device

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20200828