CN107566480B - User activity information acquisition method and device for mobile terminal application and storage medium - Google Patents

User activity information acquisition method and device for mobile terminal application and storage medium Download PDF

Info

Publication number
CN107566480B
CN107566480B CN201710762623.6A CN201710762623A CN107566480B CN 107566480 B CN107566480 B CN 107566480B CN 201710762623 A CN201710762623 A CN 201710762623A CN 107566480 B CN107566480 B CN 107566480B
Authority
CN
China
Prior art keywords
information
mobile terminal
user
log information
user log
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
CN201710762623.6A
Other languages
Chinese (zh)
Other versions
CN107566480A (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.)
Beijing Jingdong Century Trading Co Ltd
Beijing Jingdong Shangke Information Technology Co Ltd
Original Assignee
Beijing Jingdong Century Trading Co Ltd
Beijing Jingdong Shangke 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 Jingdong Century Trading Co Ltd, Beijing Jingdong Shangke Information Technology Co Ltd filed Critical Beijing Jingdong Century Trading Co Ltd
Priority to CN201710762623.6A priority Critical patent/CN107566480B/en
Publication of CN107566480A publication Critical patent/CN107566480A/en
Application granted granted Critical
Publication of CN107566480B publication Critical patent/CN107566480B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Information Transfer Between Computers (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The present disclosure relates to the field of data processing technologies, and in particular, to a method and an apparatus for acquiring user activity information of a mobile terminal application, a storage medium, and an electronic device. The method comprises the following steps: after a mobile terminal starts an application program, judging whether the mobile terminal uploads user log information or not in a current preset statistical period; and when the mobile terminal is judged not to upload the user log information in the current preset counting period, acquiring preset data to generate the user log information and sending the user log information to a server, so that the server counts the user information to the corresponding counting period. The method and the device can simplify the traditional log statistical analysis into active user information statistics in a single period, reduce the complexity of statistical data, effectively reduce resource consumption, improve the calculation efficiency and provide a basis for the active user statistical analysis in a large time span.

Description

User activity information acquisition method and device for mobile terminal application and storage medium
Technical Field
The present disclosure relates to the field of data processing technologies, and in particular, to a method and an apparatus for collecting user activity information of a mobile terminal application, a storage medium, and an electronic device.
Background
With the rapid growth in the number of mobile internet users, data statistics and analysis for applications on mobile terminals becomes increasingly important. When the operation analysis is performed on the application program of the mobile terminal, the number of active users of the application program in different periods (for example, statistical periods such as days, weeks, months, seasons, years and the like) needs to be counted.
The existing internet user data statistical method comprises the following schemes: 1) pulling access logs of all users in the current statistical period, performing data rearrangement on the access logs of the users and counting the number of active users; 2) and calculating day by adopting a real-time counting or offline table mode, and finally obtaining the number of active users in a counting period. However, the above schemes all have certain problems, that is, when the access log data volume of the user is huge and the time span of the statistical period is long, the massive data needs to be subjected to re-ranking processing and statistical analysis; therefore, the resource consumption is very large, the situation that cluster resources cannot meet the analysis requirement may exist, and the summary calculation cannot be performed from a huge data volume due to resource limitation. When the statistical period is "day", a large amount of resources are required to be used every day for data statistics and analysis, the calculation efficiency is low, and the input-output ratio is low.
It is to be noted that the information disclosed in the above background section is only for enhancement of understanding of the background of the present disclosure, and thus may include information that does not constitute prior art known to those of ordinary skill in the art.
Disclosure of Invention
An object of the present disclosure is to provide a method for acquiring user activity information of a mobile terminal application, a storage medium and an electronic device, which overcome one or more problems caused by limitations and disadvantages of the related art, at least to a certain extent.
Additional features and advantages of the disclosure will be set forth in the detailed description which follows, or in part will be obvious from the description, or may be learned by practice of the disclosure.
According to a first aspect of the present disclosure, a method for collecting user activity information of a mobile terminal application is provided, which includes:
after a mobile terminal starts an application program, judging whether the mobile terminal uploads user log information or not in a current preset statistical period;
and when the mobile terminal is judged not to upload the user log information in the current preset counting period, acquiring preset data to generate the user log information and sending the user log information to a server, so that the server counts the user information to the corresponding counting period.
In an exemplary embodiment of the present disclosure, the preset data includes: reporting state and identity identification information in the current reporting time, the last reporting time and the statistical period.
In an exemplary embodiment of the present disclosure, the determining whether the mobile terminal uploads the user log information in the current preset statistical period includes:
after the mobile terminal starts an application program, judging whether the current time and the current reporting time are in the same statistical period;
and when the current time and the current reporting time are not in the same statistical period, judging that the user log information is not uploaded in the current preset statistical period.
In an exemplary embodiment of the present disclosure, the method further comprises: and when the current time and the current reporting time are not in the same statistical period, modifying the corresponding statistical period reporting state to be 0 by a software development kit.
In an exemplary embodiment of the present disclosure, the method further comprises:
when the server receives the user information and verifies and confirms, returning confirmation state information;
and when the server receives the user information and fails in verification, returning abnormal state information.
In an exemplary embodiment of the present disclosure, the method further comprises: after receiving a confirmation state message returned by the server, assigning the current reporting time to the last reporting time; and assigning the current time to the current reporting time, and modifying the reporting state of the corresponding statistical period to be 1.
In an exemplary embodiment of the present disclosure, the server counting the user information to a corresponding counting period includes:
and creating an active user statistical list in the server according to the statistical period, and counting the user log information into the corresponding statistical period according to the reported state of the statistical period.
In an exemplary embodiment of the present disclosure, the statistical period includes: one or a combination of any of days, weeks, months, seasons and years.
In an exemplary embodiment of the present disclosure, the time of the server is kept consistent with the current time.
According to a second aspect of the present disclosure, there is provided a user activity information collecting apparatus for a mobile terminal application, comprising:
the judging module is used for judging whether the mobile terminal uploads user log information in a current preset statistical period or not after the mobile terminal starts an application program;
and the data module is used for collecting preset data to generate the user log information and sending the user log information to the server when the mobile terminal is judged not to upload the user log information in the current preset counting period, so that the server counts the user information to the corresponding counting period.
According to a third aspect of the present disclosure, a storage medium is provided, on which a computer program is stored, which program, when executed by a processor, implements the above-mentioned user activity information acquisition method of a mobile terminal application.
According to a fourth aspect of the present disclosure, there is provided an electronic terminal comprising:
a processor; and
a memory for storing executable instructions of the processor;
wherein the processor is configured to perform the following via execution of the executable instructions:
after a mobile terminal starts an application program, judging whether the mobile terminal uploads user log information or not in a current preset statistical period;
and when the mobile terminal is judged not to upload the user log information in the current preset counting period, acquiring preset data to generate the user log information and sending the user log information to a server, so that the server counts the user information to the corresponding counting period.
According to the user activity information acquisition method for the mobile terminal application provided by the embodiment of the disclosure, the uploading condition of the user log information in the preset statistical period is judged and controlled on one side of the mobile terminal, and the acquisition and uploading control of the log information are dispersed to each mobile terminal, so that the calculation pressure of the server is dispersed to each mobile terminal. Only one piece of user log information needs to be uploaded in a preset statistical period, the traditional log statistical analysis is simplified into active user information statistics in a single period, data statistics is greatly reduced, the complexity of statistical data is reduced, therefore, the duplicate elimination calculation of the log information is simplified, the calculation efficiency is improved, the resource consumption is effectively reduced, and a foundation is provided for the active user statistical analysis in a large time span.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and together with the description, serve to explain the principles of the disclosure. It is to be understood that the drawings in the following description are merely exemplary of the disclosure, and that other drawings may be derived from those drawings by one of ordinary skill in the art without the exercise of inventive faculty.
Fig. 1 schematically illustrates a schematic diagram of a user activity information collection method for a mobile terminal application in an exemplary embodiment of the disclosure;
fig. 2 schematically illustrates a composition diagram of a user activity information collecting apparatus for a mobile terminal application in an exemplary embodiment of the disclosure;
fig. 3 schematically illustrates another schematic diagram of a user activity information collecting apparatus of a mobile terminal application in an exemplary embodiment of the disclosure;
fig. 4 schematically illustrates still another schematic diagram of a user activity information collecting apparatus for a mobile terminal application in an exemplary embodiment of the disclosure.
Detailed Description
Example embodiments will now be described more fully with reference to the accompanying drawings. Example embodiments may, however, be embodied in many different forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the concept of example embodiments to those skilled in the art. The described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments.
Furthermore, the drawings are merely schematic illustrations of the present disclosure and are not necessarily drawn to scale. The same reference numerals in the drawings denote the same or similar parts, and thus their repetitive description will be omitted. Some of the block diagrams shown in the figures are functional entities and do not necessarily correspond to physically or logically separate entities. These functional entities may be implemented in the form of software, or in one or more hardware modules or integrated circuits, or in different networks and/or processor devices and/or microcontroller devices.
The embodiment of the present invention first provides a method for collecting user activity information of a mobile terminal application, which can be applied to statistical analysis of active user data of a mobile terminal application program. When running analysis is performed, statistics of the number of active users in different statistical periods is often required, for example, the number of active users per day, the number of active users per week, the number of active users per month, the number of active users in quarterly, the number of active users per year, and the like. An active user refers to a mobile device that has accessed a current application within a current statistical period.
When the existing statistical method is used for performing statistical analysis on active users of application programs on a mobile terminal, because the access behavior log quantity of the users is often large, or because the statistical cycle time span is long, a large amount of data needs to be subjected to rearrangement processing, the resource consumption is very large, and the situation that cluster resources cannot meet the requirements of the statistical analysis of the data may exist. In order to solve the above problem, referring to fig. 1, the method for collecting user activity information of a mobile terminal application may include the following steps:
s1, after the mobile terminal starts the application program, judging whether the mobile terminal uploads user log information in the current preset statistical period;
and S2, when the mobile terminal is judged not to upload the user log information in the current preset statistical period, acquiring preset data to generate the user log information and sending the user log information to a server, so that the server can conveniently count the user information to the corresponding statistical period.
In the method for acquiring user activity information of a mobile terminal application provided by the present exemplary embodiment, after an application program is started, it is first determined whether user log information is uploaded in a current statistical period, and when it is determined that the user log information is not uploaded, preset data is actively acquired to generate the user log information and the user log information is uploaded to a server, so that the server can perform statistics conveniently. The uploading condition of the user log information in a preset statistical period is judged and controlled on one side of the mobile terminal, and the collection and uploading control of the log information are dispersed to each mobile terminal, so that the calculation pressure of the server is dispersed to each mobile terminal. Only one piece of user log information needs to be uploaded in a preset statistical period, the traditional log statistical analysis is simplified into active user information statistics in a single period, data statistics is greatly reduced, the complexity of statistical data is reduced, therefore, the duplicate elimination calculation of the log information is simplified, the calculation efficiency is improved, the resource consumption is effectively reduced, and a foundation is provided for the active user statistical analysis in a large time span.
Hereinafter, the steps of the method for collecting user activity information of a mobile terminal application in this exemplary embodiment will be described in more detail with reference to the accompanying drawings and examples.
Step S1, after the mobile terminal starts the application program, judging whether the mobile terminal uploads the user log information in the current preset statistical period.
In this exemplary embodiment, when the user starts the application program on the mobile terminal, whether the user log information has been uploaded within the current preset statistical period of the application program may be determined by an SDK (Software Development Kit) in the mobile terminal. The mobile terminal can be an intelligent terminal such as a mobile phone, a tablet computer or a notebook computer.
In this exemplary embodiment, the above-mentioned determining whether the mobile terminal uploads the user log information in the current preset statistical period may be performed by the following steps: after the mobile terminal starts the application program, the SDK can be called to collect the current time, and the current time is compared with the current reporting time, and a judgment result is made.
For example, if the current time and the current reporting time are in the same statistical period, it indicates that the user log information has been uploaded in the current statistical period, and the user log information does not need to be uploaded in the current statistical period. And if the current time and the current reporting time are not in the same statistical period, judging that the user log information is not uploaded in the current statistical period. The current reporting time can be used for expressing the last reporting time of the user log information.
Step S2, when it is determined that the mobile terminal does not upload the user log information in the current preset statistical period, acquiring preset data to generate the user log information and sending the user log information to a server, so that the server counts the user information to a corresponding statistical period.
In this exemplary embodiment, the preset data may include: the current reporting time, the last reporting time, the reporting state of the statistical period, the identification information and the like.
The current reporting time is used for expressing the reporting time of the latest (nth) user log information; and the last reporting time is used for expressing the reporting time of the last (n-1) th user log information. And the statistical period reporting state is used for marking whether the current mobile terminal successfully uploads the user log information in each statistical period. For example, when a plurality of statistical periods are included, for example, when the statistical periods are months and years, the statistical periods may be applied to report whether the status flag successfully uploads the user log information every day and whether the user log information successfully uploads the user log information every month. The current reporting time, the last reporting time and the current time are consistent with the server time, and the universal time can be adopted at the same time. The Identification information may be used to mark each Mobile terminal, and according to a specific situation, any one of an Imei (International Mobile Equipment identity Number), an MEID (Mobile Equipment identity), an IMSI (International Mobile Subscriber identity), an ESN (Electronic Serial Number), an Android (Android Equipment identity), an OpenUDID (iOS Equipment identity), or a MAC Address (MAC Address) may be selected.
Specifically, based on the preset data, when the current time and the current reporting time are judged not to be in the same statistical period, that is, the user log information is not uploaded in the current statistical period, at this time, the reporting state of the corresponding statistical period is modified to be 0 by the SDK, meanwhile, a plurality of items of preset data are collected by calling the SDK, the collected preset data are assembled to generate user log information, and the user log information is sent to the server. And when the current time and the current reporting time are judged to be in the same statistical period, namely the user log information is uploaded in the current statistical period, keeping the reporting state of the original statistical period unchanged.
The uploading condition of the user log information in a preset statistical period is judged and controlled on one side of the mobile terminal, and the collection and uploading control pressure of the log information is dispersed to each mobile terminal. Only one piece of user log information is uploaded in the statistical period, so that the data volume is greatly reduced, the complexity of the data is reduced, and the resource consumption during data statistics and analysis is further reduced.
Of course, in other exemplary embodiments of the present disclosure, the above-mentioned method for collecting user activity information of a mobile terminal application further includes: when the server receives the user information and verifies and confirms, returning confirmation state information; and when the server receives the user information and fails in verification, returning abnormal state information.
The server can check the data content in the user log information after receiving the user log information sent by the mobile terminal, and can return confirmation state information to the mobile terminal after checking the data to be correct. After receiving the confirmation state information, the mobile terminal may modify the corresponding current statistical period reporting state to 1 according to the confirmation state information. If the server receives the user log information and the verification fails, the server can return abnormal state information to the mobile terminal to inform the application program that the uploaded user log information data is wrong, so that the application program can upload correct user log information again.
For example, when the application program is started for the first time, counting the periodic reporting state, the current reporting time, the secondary reporting time and other data are all empty, and then calling the SDK to collect preset data such as the current time, the identification information and the like to assemble a piece of user log information and send the user log information to the server; after receiving and verifying the confirmation, the server returns confirmation state information; after receiving the confirmation state information returned by the server, the mobile terminal assigns the current time to the current reporting time and the last reporting time, and simultaneously modifies the reporting state of each statistical period to 1.
For example, the first time the user starts the application is 2016-12-31, 12:31: and 28, uploading the user information to the server, and after receiving the confirmed state information returned by the server, calling current reporting time of '2016-12-31, 12:31: 28', last reporting time of '2016-12-31, 12:31: 28' recorded by the SDK by the application program, wherein the reported state value of each statistical period is 1.
When the application program is started at other time, judging the current time and the current reporting time, if the current time and the current reporting time are not in the same statistical period, assigning the reporting state corresponding to the statistical period to be 0, simultaneously acquiring preset data to generate user log information and report the user log information to a server, assigning the current reporting time to the last reporting time after receiving confirmation state information returned by the server, assigning the current time to the current reporting time, and simultaneously updating the statistical period reporting state corresponding to the statistical period to be 1. If the current time and the current reporting time are in the same statistical period, the user log information is not uploaded any more, and the reporting state of the statistical period is still kept to be 1.
For example, the current time when the user starts the application for the second time is: 2016-12-31, 15:12:50, because the current time and the current reporting time remained after the first startup are in the same day, the same week, the same month, the same quarter and the same year, the reporting state of each statistical period is still kept as 1, the current reporting time and the last reporting time are kept unchanged, and new user log information cannot be uploaded to the server.
The time that the user starts the application program for the third time is 2017, 2, 12, 9 o' clock, 39 min 1 sec, because the current time and the current reporting time are not in the same statistical period of one day, one week, one month, one quarter and one year, the SDK modifies all the periodic reporting states to 0, assigns the current reporting time to 2016-12-3115: 12:50 to the last reporting time, assigns the current time to 2017-06-12, 09:39:01 to the current reporting time, assembles user log information after collecting preset data and sends the user log information to the server, the server end returns the confirmed state information to the application program after receiving the user log information and verifying the confirmation, and the application program adjusts the reporting states of the time periods of one day, one week, one month, one quarter and one year to 1 after receiving the confirmed state information.
When the application program is started at the Mth time, the current reporting time is (2017-5-1, 10: 28: 30), and the current statistical period is month; if the current time is (2017-5-3, 10: 28: 02), when the user starts the application program, if the current reporting time and the current time are judged to be in the same statistical period through the SDK, no preset data is collected, and no user log information is generated.
If the application program is started at the Mth time, when the reporting time is (2017-5-1, 10: 28: 30), the current statistical period is days; the current time is (2017-5-3, 10: 28: 02), and since the current reporting time and the current time are not in the same statistical period, the reporting state of the SDK modification statistical period can be called to be 0, and the SDK can be called to collect preset data and generate user log information.
The accuracy of server statistical data can be ensured by verifying the received user log information at one side of the server; meanwhile, the status information returned to one side of the mobile terminal by the server can ensure that one side of the mobile terminal can accurately mark the reported information and ensure the accurate uploading of the subsequent user log information.
Furthermore, in this exemplary embodiment, the aforementioned counting, by the server, the user information to a corresponding counting period may include:
and creating an active user statistical list in the server according to the statistical period, and counting the user log information into the corresponding statistical period according to the reported state of the statistical period.
The active user statistical list is established on the server, corresponding time partitions are established according to different statistical periods, and after user log information uploaded by the mobile terminal is received and confirmed, the state is reported according to the statistical periods for judgment. And if the current counting period state is 0, counting the user log information into a corresponding time partition of the active user counting list. When active users in each statistical period are calculated, only the number of the user log information in each time partition needs to be counted, and the original large amount of log data are calculated and analyzed in a repetition mode, and are simplified into the user information statistical analysis in a single period, so that the complexity of statistical data is greatly reduced, the calculation difficulty of the log information data is simplified, the calculation efficiency is effectively improved, and the resource consumption is reduced.
It is to be noted that the above-mentioned figures are only schematic illustrations of the processes involved in the method according to an exemplary embodiment of the invention, and are not intended to be limiting. It will be readily understood that the processes shown in the above figures are not intended to indicate or limit the chronological order of the processes. In addition, it is also readily understood that these processes may be performed synchronously or asynchronously, e.g., in multiple modules.
Further, referring to fig. 2, in an embodiment of the present example, an apparatus for acquiring user activity information of a mobile terminal application is further provided, including: the device comprises a judging module and a data module. Wherein:
the judging module can be used for judging whether the mobile terminal uploads the user log information in the current preset statistical period after the mobile terminal starts the application program.
The data module may be configured to, when it is determined that the mobile terminal does not upload the user log information in the current preset statistical period, acquire preset data to generate the user log information and send the user log information to a server, so that the server counts the user information to a corresponding statistical period.
The specific details of each module in the above-mentioned device for acquiring user activity information of a mobile terminal application have been described in detail in the corresponding method for acquiring user activity information of a mobile terminal application, and therefore are not described herein again.
It should be noted that although in the above detailed description several modules or units of the device for action execution are mentioned, such a division is not mandatory. Indeed, the features and functionality of two or more modules or units described above may be embodied in one module or unit, according to embodiments of the present disclosure. Conversely, the features and functions of one module or unit described above may be further divided into embodiments by a plurality of modules or units.
Further, another embodiment of the present example also provides an electronic device capable of implementing the method.
As will be appreciated by one skilled in the art, aspects of the present invention may be embodied as a system, method or program product. Thus, various aspects of the invention may be embodied in the form of: an entirely hardware embodiment, an entirely software embodiment (including firmware, microcode, etc.) or an embodiment combining hardware and software aspects that may all generally be referred to herein as a "circuit," module "or" system.
An electronic device 600 according to this embodiment of the invention is described below with reference to fig. 3. The electronic device 600 shown in fig. 3 is only an example and should not bring any limitation to the functions and the scope of use of the embodiments of the present invention.
As shown in fig. 3, the electronic device 600 is embodied in the form of a general purpose computing device. The components of the electronic device 600 may include, but are not limited to: the at least one processing unit 610, the at least one memory unit 620, and a bus 630 that couples the various system components including the memory unit 620 and the processing unit 610.
Wherein the storage unit stores program code that is executable by the processing unit 610 to cause the processing unit 610 to perform steps according to various exemplary embodiments of the present invention as described in the above section "exemplary methods" of the present specification. For example, the processing unit 610 may execute step S1 as shown in fig. 1: after a mobile terminal starts an application program, judging whether the mobile terminal uploads user log information or not in a current preset statistical period; step S2: and when the mobile terminal is judged not to upload the user log information in the current preset counting period, acquiring preset data to generate the user log information and sending the user log information to a server, so that the server counts the user information to the corresponding counting period.
And controlling the steering according to the target rotating direction in the steering state.
The storage unit 620 may include readable media in the form of volatile memory units, such as a random access memory unit (RAM)6201 and/or a cache memory unit 6202, and may further include a read-only memory unit (ROM) 6203.
The memory unit 620 may also include a program/utility 6204 having a set (at least one) of program modules 6205, such program modules 6205 including, but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which, or some combination thereof, may comprise an implementation of a network environment.
Bus 630 may be one or more of several types of bus structures, including a memory unit bus or memory unit controller, a peripheral bus, an accelerated graphics port, a processing unit, or a local bus using any of a variety of bus architectures.
The electronic device 600 may also communicate with one or more external devices 700 (e.g., keyboard, pointing device, bluetooth device, etc.), with one or more devices that enable a user to interact with the electronic device 600, and/or with any devices (e.g., router, modem, etc.) that enable the electronic device 600 to communicate with one or more other computing devices. Such communication may occur via an input/output (I/O) interface 650. Also, the electronic device 600 may communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network such as the Internet) via the network adapter 660. As shown, the network adapter 660 communicates with the other modules of the electronic device 600 over the bus 630. It should be appreciated that although not shown in the figures, other hardware and/or software modules may be used in conjunction with the electronic device 600, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, among others.
Through the above description of the embodiments, those skilled in the art will readily understand that the exemplary embodiments described herein may be implemented by software, or by software in combination with necessary hardware. Therefore, the technical solution according to the embodiments of the present disclosure may be embodied in the form of a software product, which may be stored in a non-volatile storage medium (which may be a CD-ROM, a usb disk, a removable hard disk, etc.) or on a network, and includes several instructions to enable a computing device (which may be a personal computer, a server, a terminal device, or a network device, etc.) to execute the method according to the embodiments of the present disclosure.
In an exemplary embodiment of the present disclosure, there is also provided a computer-readable storage medium having stored thereon a program product capable of implementing the above-described method of the present specification. In some possible embodiments, aspects of the invention may also be implemented in the form of a program product comprising program code means for causing a terminal device to carry out the steps according to various exemplary embodiments of the invention described in the above section "exemplary methods" of the present description, when said program product is run on the terminal device.
Referring to fig. 4, a program product 800 for implementing the above method according to an embodiment of the present invention is described, which may employ a portable compact disc read only memory (CD-ROM) and include program code, and may be run on a terminal device, such as a personal computer. However, the program product of the present invention is not limited in this regard and, in the present document, a readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
The program product may employ any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. A readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the readable storage medium include: an electrical connection having one or more wires, a portable disk, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
A computer readable signal medium may include a propagated data signal with readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A readable signal medium may also be any readable medium that is not a readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Program code for carrying out operations for aspects of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computing device, partly on the user's device, as a stand-alone software package, partly on the user's computing device and partly on a remote computing device, or entirely on the remote computing device or server. In the case of a remote computing device, the remote computing device may be connected to the user computing device through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computing device (e.g., through the internet using an internet service provider).
Furthermore, the above-described figures are merely schematic illustrations of processes involved in methods according to exemplary embodiments of the invention, and are not intended to be limiting. It will be readily understood that the processes shown in the above figures are not intended to indicate or limit the chronological order of the processes. In addition, it is also readily understood that these processes may be performed synchronously or asynchronously, e.g., in multiple modules.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is to be limited only by the terms of the appended claims.

Claims (12)

1. A method for collecting user activity information of a mobile terminal application is characterized by comprising the following steps:
after a mobile terminal starts an application program, judging whether the mobile terminal uploads user log information or not in a current preset statistical period;
when the mobile terminal is judged not to upload the user log information in the current preset counting period, acquiring preset data to generate the user log information and sending the user log information to a server, so that the server counts the user information to the corresponding counting period and returns state information;
executing an operation of modifying preset data according to the state information, or executing the operation of re-collecting preset data according to the state information to generate the user log information and sending the user log information to a server;
and when the mobile terminal is judged to have uploaded the user log information in the current preset statistical period, the user log information is not uploaded to a server in the current preset statistical period.
2. The method for collecting user activity information of a mobile terminal application according to claim 1, wherein the preset data comprises: reporting state and identity identification information in the current reporting time, the last reporting time and the statistical period.
3. The method of claim 2, wherein the determining whether the mobile terminal uploads the user log information within a current preset statistical period comprises:
after the mobile terminal starts an application program, judging whether the current time and the current reporting time are in the same statistical period;
and when the current time and the current reporting time are not in the same statistical period, judging that the user log information is not uploaded in the current preset statistical period.
4. The method for collecting user activity information of a mobile terminal application according to claim 3, further comprising:
and when the current time and the current reporting time are not in the same statistical period, modifying the corresponding statistical period reporting state to be 0 by a software development kit.
5. The method for collecting user activity information of a mobile terminal application according to claim 2 or 3, wherein the server counts the user information to a corresponding counting period, and returning a status information comprises:
when the server receives the user information and verifies and confirms, returning confirmation state information;
and when the server receives the user information and fails in verification, returning abnormal state information.
6. The method for collecting user activity information of a mobile terminal application according to claim 5, wherein the performing a preset data modification operation according to the state information comprises:
after receiving a confirmation state message returned by the server, assigning the current reporting time to the last reporting time; and assigning the current time to the current reporting time, and modifying the reporting state of the corresponding statistical period to be 1.
7. The method of claim 5, wherein the step of the server counting the user information to a corresponding counting period comprises:
and creating an active user statistical list in the server according to the statistical period, and counting the user log information into the corresponding statistical period according to the reported state of the statistical period.
8. The method for collecting user activity information of a mobile terminal application according to claim 2, wherein the statistical period comprises: one or a combination of any of days, weeks, months, seasons and years.
9. The method of claim 2, wherein the server time is kept consistent with the current time.
10. A user activity information acquisition device for mobile terminal applications, comprising:
the judging module is used for judging whether the mobile terminal uploads user log information in a current preset statistical period or not after the mobile terminal starts an application program;
the data module is used for collecting preset data to generate the user log information and sending the user log information to the server when the mobile terminal is judged not to upload the user log information in the current preset counting period, so that the server counts the user information to the corresponding counting period and returns state information; when the mobile terminal is judged to upload the user log information in the current preset statistical period, the user log information is not uploaded to a server in the current preset statistical period;
and the state information execution module is used for executing the operation of modifying preset data according to the state information or executing the operation of re-collecting preset data according to the state information to generate the user log information and sending the user log information to the server.
11. A storage medium having stored thereon a computer program which, when executed by a processor, implements a user activity information acquisition method for a mobile terminal application according to any of claims 1 to 9.
12. An electronic terminal, comprising:
a processor; and
a memory for storing executable instructions of the processor;
wherein the processor is configured to perform the following via execution of the executable instructions:
after a mobile terminal starts an application program, judging whether the mobile terminal uploads user log information or not in a current preset statistical period;
when the mobile terminal is judged not to upload the user log information in the current preset statistical period, acquiring preset data to generate the user log information and sending the user log information to a server, so that the server can conveniently count the user information to the corresponding statistical period and return state information;
executing an operation of modifying preset data according to the state information, or executing a process of re-collecting preset data according to the state information to generate the user log information and sending the user log information to a server;
and when the mobile terminal is judged to have uploaded the user log information in the current preset statistical period, the user log information is not uploaded to a server in the current preset statistical period.
CN201710762623.6A 2017-08-30 2017-08-30 User activity information acquisition method and device for mobile terminal application and storage medium Active CN107566480B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710762623.6A CN107566480B (en) 2017-08-30 2017-08-30 User activity information acquisition method and device for mobile terminal application and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710762623.6A CN107566480B (en) 2017-08-30 2017-08-30 User activity information acquisition method and device for mobile terminal application and storage medium

Publications (2)

Publication Number Publication Date
CN107566480A CN107566480A (en) 2018-01-09
CN107566480B true CN107566480B (en) 2021-04-30

Family

ID=60978310

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710762623.6A Active CN107566480B (en) 2017-08-30 2017-08-30 User activity information acquisition method and device for mobile terminal application and storage medium

Country Status (1)

Country Link
CN (1) CN107566480B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108595314A (en) * 2018-03-12 2018-09-28 中国平安人寿保险股份有限公司 The user equipment moon enlivens number calculating method, device, terminal device and storage medium
CN110347562B (en) * 2018-04-08 2022-02-25 腾讯科技(深圳)有限公司 Data acquisition method and device, computer readable medium and intelligent terminal equipment
CN110737563B (en) * 2018-07-19 2023-05-26 阿里巴巴集团控股有限公司 Application program information reporting and receiving method and device
CN111698287B (en) * 2020-05-08 2023-06-27 广州微算互联信息技术有限公司 Cloud mobile phone active application acquisition method, system and storage medium

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2001063448A2 (en) * 2000-02-25 2001-08-30 Navic Systems, Inc. Method and system of user profile generation
US7587484B1 (en) * 2001-10-18 2009-09-08 Microsoft Corporation Method and system for tracking client software use
CN101964795A (en) * 2010-09-30 2011-02-02 北京世纪互联工程技术服务有限公司 Log collecting system, log collection method and log recycling server
CN102164043A (en) * 2010-10-27 2011-08-24 青岛海信传媒网络技术有限公司 Log reporting method and terminal
CN102891873A (en) * 2011-07-21 2013-01-23 腾讯科技(深圳)有限公司 Method for storing log data and log data storage system
CN103023984A (en) * 2012-11-23 2013-04-03 青岛海信传媒网络技术有限公司 Terminal application server and application log filtering method thereof
CN105975351A (en) * 2016-04-25 2016-09-28 乐视控股(北京)有限公司 User behavior message reporting method and apparatus
CN106027595A (en) * 2016-04-25 2016-10-12 乐视控股(北京)有限公司 Access log processing method and system for CDN node
CN106921506A (en) * 2015-12-25 2017-07-04 北京京东尚科信息技术有限公司 The data acquisition report method and system of mobile device

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2001063448A2 (en) * 2000-02-25 2001-08-30 Navic Systems, Inc. Method and system of user profile generation
US7587484B1 (en) * 2001-10-18 2009-09-08 Microsoft Corporation Method and system for tracking client software use
CN101964795A (en) * 2010-09-30 2011-02-02 北京世纪互联工程技术服务有限公司 Log collecting system, log collection method and log recycling server
CN102164043A (en) * 2010-10-27 2011-08-24 青岛海信传媒网络技术有限公司 Log reporting method and terminal
CN102891873A (en) * 2011-07-21 2013-01-23 腾讯科技(深圳)有限公司 Method for storing log data and log data storage system
CN103023984A (en) * 2012-11-23 2013-04-03 青岛海信传媒网络技术有限公司 Terminal application server and application log filtering method thereof
CN106921506A (en) * 2015-12-25 2017-07-04 北京京东尚科信息技术有限公司 The data acquisition report method and system of mobile device
CN105975351A (en) * 2016-04-25 2016-09-28 乐视控股(北京)有限公司 User behavior message reporting method and apparatus
CN106027595A (en) * 2016-04-25 2016-10-12 乐视控股(北京)有限公司 Access log processing method and system for CDN node

Also Published As

Publication number Publication date
CN107566480A (en) 2018-01-09

Similar Documents

Publication Publication Date Title
WO2018113385A1 (en) Method and system for dynamically tracking application of client, client, and server
CN107566480B (en) User activity information acquisition method and device for mobile terminal application and storage medium
US9836346B2 (en) Error troubleshooting using a correlated knowledge base
US9104572B1 (en) Automated root cause analysis
CN105224343B (en) A kind of the update reminding method and device of application program
US20130097130A1 (en) Method and system for resolving data inconsistency
US20170185454A1 (en) Method and Electronic Device for Determining Resource Consumption of Task
CN110109824B (en) Big data autoregression test method and device, computer equipment and storage medium
CA2988805C (en) Datastore for aggregated measurements for metrics
CN105574032A (en) Rule matching operation method and device
CN112631879A (en) Data acquisition method and device, computer readable medium and electronic equipment
CN107704365B (en) Monitoring data reporting method and device for mobile terminal hybrid application
CN112395187A (en) Test method, test system, computer device and storage medium
CN108733545B (en) Pressure testing method and device
CN112153146B (en) Operation notification method and apparatus, storage medium, and electronic apparatus
CN110399095B (en) Storage space statistical method and device
CN110347546B (en) Dynamic adjustment method, device, medium and electronic equipment for monitoring task
CN117336135A (en) Data transmission method, device, storage medium and electronic equipment
JP2021506010A (en) Methods and systems for tracking application activity data from remote devices and generating modified behavioral data structures for remote devices
CN115438020A (en) Database resource scheduling method, device, equipment and medium
CN114513469A (en) Traffic shaping method and device for distributed system and storage medium
CN110134547B (en) Middleware-based repeated data deleting method and related device
CN113676353A (en) Control method and device for equipment, storage medium and electronic device
CN110908886A (en) Data sending method and device, electronic equipment and storage medium
CN111338642A (en) Method, device, terminal and storage medium for determining application downloading path

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