CN111797025B - Application-oriented data processing method and device - Google Patents

Application-oriented data processing method and device Download PDF

Info

Publication number
CN111797025B
CN111797025B CN202010692004.6A CN202010692004A CN111797025B CN 111797025 B CN111797025 B CN 111797025B CN 202010692004 A CN202010692004 A CN 202010692004A CN 111797025 B CN111797025 B CN 111797025B
Authority
CN
China
Prior art keywords
target page
activity
page
fragment
application
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
CN202010692004.6A
Other languages
Chinese (zh)
Other versions
CN111797025A (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 Zhongzhi Xunbo Data Information Technology Co ltd
Original Assignee
Beijing Zhongzhi Xunbo Data 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 Zhongzhi Xunbo Data Information Technology Co ltd filed Critical Beijing Zhongzhi Xunbo Data Information Technology Co ltd
Priority to CN202010692004.6A priority Critical patent/CN111797025B/en
Publication of CN111797025A publication Critical patent/CN111797025A/en
Application granted granted Critical
Publication of CN111797025B publication Critical patent/CN111797025B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3604Software analysis for verifying properties of programs

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The application discloses a data processing method and device for an application. And counting the source of the target page accessed by the user, the source of the target page and the access time length of the target page according to the life cycle of the Activity, the life cycle of the Fragment and a preset corresponding relation, and obtaining a first statistical result, wherein the preset corresponding relation comprises a pre-deployed configuration file. And running a second logic process, and sending the statistical result to the back end. Therefore, based on the first logic process and the configuration file which are deployed in advance, the source of the target page accessed by the user, the source of the target page and the access time of the target page can be counted, and the statistical process is not required to be implanted in the bottom logic of the target page, so that the code amount implanted in the application bottom logic can be reduced. And the logic of the first logic process and the configuration file is simpler, the later maintenance and upgrading are more convenient, and the applicability is stronger.

Description

Application-oriented data processing method and device
Technical Field
The present application relates to the field of programming development technologies, and in particular, to a data processing method and apparatus for an application.
Background
In order to meet the requirement of tracking analysis of the web page data of the Application (App), it is necessary to count the source of the page visited by the user, the source of the page source (i.e. the jump relationship between pages), the access time of the page, and the event performed in the page (for example, the user clicks a specific column in the page or links to a picture, etc., and in the statistical process, the corresponding expansion parameters are usually set for the event, that is, the parameters that need to perform event recording according to the service requirement).
At present, a traditional data processing method aiming at the application is to implant a statistical process in the bottom logic of each page, run the statistical process in the process of accessing the page by a user, record the source of the page, the access time of the page and the events performed in the page, and send the record result of the statistics of each page to the back end. Because the underlying logic of each page needs to be embedded with a statistical process, the conventional application-specific data processing method has the following disadvantages:
1. there is a lot of process redundancy (i.e. more repeated codes) and memory resources of the application are increased.
2. The number of pages in the application is large, and the statistical process of each page is difficult to maintain.
3. The complexity of the application bottom layer logic is increased, so that the running performance of the application is reduced.
Disclosure of Invention
The application provides a data processing method and device for an application, and aims to provide a simple data processing scheme for the application.
In order to achieve the above object, the present application provides the following technical solutions:
a data processing method for an application, applied to the application, comprising:
under the condition that a user triggers the application to use, running a first logic process which is deployed in advance; the first logic process is used for detecting the life cycle of the Activity and the life cycle of the Fragment;
counting the source of the target page accessed by the user, the source of the target page and the access time length of the target page according to the life cycle of the Activity, the life cycle of the Fragment and a preset corresponding relation, and obtaining a first statistical result; the preset corresponding relation comprises a corresponding relation among the target page, the Activity and the Fragment indicated in a pre-deployed configuration file;
running a pre-implanted statistical process in a non-target page, and counting the source of the non-target page, the source of the non-target page and the access time length of the non-target page accessed by the user to obtain a second statistical result;
running a second logic process deployed in advance, and sending the statistical result to the back end; wherein the second logic process is configured to perform a request for network data and an analysis; the statistical results include the first statistical result and the second statistical result.
Optionally, the method further comprises:
running a pre-implanted event statistics process in a page, and counting the names of events, the time for generating the events and the changes of expansion parameters of the events, which occur in the page accessed by the user, so as to obtain a third statistics result;
the statistics further include:
and the third statistical result.
Optionally, the target page includes an Activity page and a Fragment page.
Optionally, the correspondence between the target page, the Activity, and the Fragment indicated in the pre-deployed configuration file includes:
and the correspondence between the name of the Activity and the name of the Activity page.
Optionally, the correspondence between the target page, the Activity, and the Fragment indicated in the pre-deployed configuration file includes:
the name of the Activity, the name of a preset page call interface in the Activity and the correspondence between the names of the Activity pages.
Optionally, the correspondence between the target page, the Activity, and the Fragment indicated in the pre-deployed configuration file includes:
the name of the Fragment, the name of a preset page call interface in the Fragment, and the correspondence between the names of the Fragment pages.
Optionally, before the running of the first pre-deployed logic process, the method further includes:
pre-configuring a server address;
the sending the statistics to the back end includes:
and sending the statistical result to the back end according to the corresponding relation between the server address and the back end.
A data processing apparatus for an application, comprising:
the running unit is used for running a first logic process deployed in advance under the condition that a user triggers the application to use; the first logic process is used for detecting the life cycle of the Activity and the life cycle of the Fragment;
the first statistics unit is used for counting the source of the target page accessed by the user, the source of the target page and the access duration of the target page according to the life cycle of the Activity, the life cycle of the Fragment and a preset corresponding relation to obtain a first statistics result; the preset corresponding relation comprises a corresponding relation among the target page, the Activity and the Fragment indicated in a pre-deployed configuration file;
the second statistical unit is used for running a statistical process pre-embedded in a non-target page, and counting the source of the non-target page accessed by the user, the source of the non-target page source and the access time length of the non-target page to obtain a second statistical result;
the sending unit is used for running a second logic process deployed in advance and sending the first statistical result and the second statistical result to the rear end; wherein the second logical process is configured to perform a request for network data and an analysis.
A computer readable storage medium having stored thereon a computer program which, when run on a computer, performs the data processing method for an application.
A data processing apparatus for an application, comprising: a processor, a memory, and a bus; the processor is connected with the memory through the bus;
the memory is used for storing a program, and the processor is used for running the program, wherein the program runs to execute the data processing method for the application.
According to the technical scheme provided by the application, under the condition that a user triggers application use, a pre-deployed first logic process is operated, wherein the first logic process is used for detecting the life cycle of the Activity and the life cycle of the Fragment. According to the life cycle of the Activity, the life cycle of the Fragment and the preset corresponding relation, wherein the preset corresponding relation comprises the corresponding relation among the target page, the Activity and the Fragment indicated in the pre-deployed configuration file. And counting the source of the target page accessed by the user, the source of the target page and the access time of the target page to obtain a first statistical result. And running a pre-implanted statistical process in the non-target page, and counting the source of the non-target page, the source of the non-target page and the access time of the non-target page which are accessed by the user to obtain a second statistical result. And running a pre-deployed second logic process, and sending a statistical result to the back end, wherein the second logic process is used for executing the request and the analysis of the network data, and the statistical result comprises a first statistical result and a second statistical result. Therefore, based on the pre-deployed first logic process and the configuration file, under the condition that the user triggers the application to use, the source of the target page accessed by the user, the source of the target page and the access time of the target page can be counted, and the statistical process is not required to be implanted in the bottom logic of the target page, so that the code amount implanted in the bottom logic of the application can be reduced, and the memory resource of the application is reduced. And the logic of the first logic process and the configuration file is simpler, the later maintenance and upgrading are more convenient, and the applicability is stronger. In addition, the running performance of the application is not reduced when the application runs the first logic process in the using process.
Drawings
In order to more clearly illustrate the embodiments of the application or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described, it being obvious that the drawings in the following description are only some embodiments of the application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic diagram of a data processing method for an application according to an embodiment of the present application;
FIG. 2 is a schematic diagram of another data processing method for applications according to an embodiment of the present application;
fig. 3 is a schematic structural diagram of a data processing apparatus for application according to an embodiment of the present application.
Detailed Description
The following description of the embodiments of the present application will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present application, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
As shown in fig. 1, a schematic diagram of a data processing method for an application according to an embodiment of the present application includes the following steps:
s101: the application is based on a preset Software development kit (Software DevelopmentKit, SDK), and a first logic process, a second logic process, a third logic process, a fourth logic process, a fifth logic process, a sixth logic process and a configuration file are deployed in advance.
The method comprises the steps of detecting the life cycle of an Activity and the life cycle of fragments, executing a request and analysis of network data by a first logic process, executing a confusion strategy by a third logic process, implanting a preset statistical process in a non-target page by a fourth logic process, implanting a preset event statistical process in the page by a fifth logic process, configuring the address of a server, the information of an application device and the information of a user by a sixth logic process, and recording the corresponding relation among the target page, the Activity and the fragments by a configuration file.
It should be noted that, in this embodiment, the application is developed based on the Android system, so most of the pages in the application are constructed based on an Activity (a basic component provided by the Android system, which is a visual interface operated by a user, and the Activity component provides a window for the user to complete an operation instruction) and a Fragment (which is a behavior Fragment in the Activity component or an interface Fragment understood as a window), in other words, the pages can be summarized as an Activity page, a Fragment page, and other types of pages.
S102: in the case that the user triggers the application to use, the application runs a first logic process, and acquires the life cycle of the Activity and the life cycle of the Fragment.
The life cycle of the Activity may be used to indicate the source and the access duration of the Activity page, and the life cycle of the Fragment may be used to indicate the source and the access duration of the Fragment page.
In a specific implementation, a basic class BaseActivity (i.e., a FUTANAlytysActive class, a FUTANAlytysFragment class, and an existing data type provided by the FuTANAlytysFragmentActivity class, android system) may be invoked to implement detection of the lifecycle of the Activity and the lifecycle of the fragments, e.g., in the case of a Fragment page to Fragment page switch, a viewpager component may be invoked to detect the lifecycle of the fragments of the Fragment page.
S103: and the application counts the source of the target page accessed by the user, the source of the target page and the access time length of the target page according to the life cycle of the Activity, the life cycle of the Fragment and the preset corresponding relation to obtain a first statistical result.
The preset corresponding relation comprises a corresponding relation among target pages, activities and fragments indicated in a pre-deployed configuration file. The target page comprises an Activity page and a Fragment page, and because the types of the pages in the application are preset by a developer, the corresponding relation among the target page, the Activity and the Fragment needs to be set by the developer according to actual conditions. In this embodiment, the configuration file may specifically be a json file (for example, the futanalytics config. Json file mentioned below).
Specifically, for a case where one Activity corresponds to one Activity page (e.g., a home page), a developer may configure a correspondence between a name of the Activity and a name of the Activity page in the futanalytics config.
For the case that one Activity corresponds to a plurality of Activity pages, a developer can configure the correspondence between the name of the Activity, the name of a getPageName interface (the parameter of the Activity is encapsulated by the getPageName interface) for calling the Activity page in the Activity, that is, different actyPage calls different getPageName interfaces, and the name of the Activity page in the FUTANAlyTicConfig.
For the case that one Activity corresponds to a plurality of Fragment pages, a developer may configure, in the futanalytics config. Json file, a correspondence between the name of a Fragment, the name of a getPageName interface used for calling the Fragment page in the Activity, and the name of the Fragment page.
It should be noted that the foregoing specific implementation is merely illustrative.
S104: and running a pre-implanted statistical process in the non-target page by the application, and counting the source of the non-target page, the source of the non-target page and the access time of the non-target page which are accessed by the user to obtain a second statistical result.
Wherein the non-target page comprises: pages of the lifecycle of Activity, or the lifecycle of fragments, cannot be detected.
It should be noted that, for a page that cannot detect the life cycle of an Activity or the life cycle of a Fragment, for example, a page can only know the Activity of the page after the getPageName interface feeds back a request, and thus the life cycle of the Activity cannot be detected, or a second page is switched in the first page, but the second page is not a Fragment page, and thus the life cycle of the Fragment of the second page cannot be detected, or the switching manner between the Fragment pages is explicit control, that is, the life cycles of the fragments of the two fragments cannot be managed by the viewpager component, and thus the life cycles of the fragments of the two fragments cannot be detected.
Specifically, in this embodiment, the following logic may be adopted as the statistical process of the non-target page:
futanalytics, recordpagestart (this); time invocation of/(Page display)
Futanalytics, recordpageend (); time call for page hiding
Futanalytics, onpageparameters (map); the/(set map extension parameter) is invoked between the above two invocations.
It should be noted that the foregoing specific implementation is merely illustrative.
S105: and counting the name of an event, the time of event generation and the change of the expansion parameter of the event which occur in the page accessed by the user by applying a pre-implanted event counting process in the running page to obtain a third counting result.
In the business requirement of data processing for an application, not only the source of a page, the source of the page source and the access time of the page are counted, but also each event occurring in the page needs to be counted. For this purpose, it is necessary to embed an event statistics process in the underlying logic of the page with event logging requirements.
Specifically, in this embodiment, the following logic may be adopted as the event statistics process:
futanalytics.onevent ("search", FUTmap); the term/(search "indicates an event, and the term FUTmap indicates an extension parameter.
Futanalytics, onpageparameters (map); the extension parameter map is invoked after the Activity or Fragment resume method (i.e., entering the page) and before the resume method (i.e., leaving the page).
It should be noted that the foregoing specific implementation is merely illustrative.
It should be emphasized that the specific execution sequence of S104 and S105 described above includes, but is not limited to, the sequence described in the present embodiment, for example, S102, S104, and S105 may also be executed in parallel.
S106: and the application runs a second logic process, and sends the first statistical result, the second statistical result and the third statistical result to the back end.
The application can execute the request and the analysis of the network data only after pre-configuring the server address, the information of the equipment to which the application belongs and the information of the user, namely, the application sends the first statistical result, the second statistical result and the third statistical result to the back end according to the corresponding relation between the server address of the back end and the back end.
Specifically, the specific implementation logic is as follows:
FUTAnalytics.initialize(this,true,newFUTAnalyticsInterfaceListener(){
server address of @ Override commit log
public String getServiceUrl(){
return serviceUrl}
Information of @ Override device and user
public HashMap<String,String>getHeadMaps(){
returnheadMaps;
}
Information of @ Override device and user
public HeadModel getHeadModel(){
returnheadModel;
}
Network condition of @ Override log generation
public String getNetWorkType(){
returnApn.network;
}
User-selected city at the time of generation of each log of @ Override
public String getCity(){
returnUtilsVar.CITY;
}
User's coordinate x when each log of @ Override is generated
public String getX(){
returnUtilsVar.LOCATION_X;
}
User's coordinate y when each log of @ Override is generated
public String getY(){
returnUtilsVar.LOCATION_Y;
}
Time callback @ Override
public void oneventcallback(String category,String action,String label){
GAAnalytice.trackEvent(category,action,label);
}
Callback of @ Override page
public void onpagecallback(Stringpagename){
GAAnalytice.showPageView(pagename)
}
}
It should be noted that the foregoing specific implementation is merely illustrative.
In summary, in the case that the user triggers the application to use, a pre-deployed first logic process is run, where the first logic process is used to detect the life cycle of the Activity and the life cycle of the Fragment. And counting the source of the target page accessed by the user, the source of the target page and the access time of the target page according to the life cycle of the Activity, the life cycle of the Fragment and a preset corresponding relation, so as to obtain a first statistical result, wherein the preset corresponding relation comprises the corresponding relation among the target page, the Activity and the Fragment indicated in the pre-deployed configuration file. And running a pre-implanted statistical process in the non-target page, and counting the source of the non-target page, the source of the non-target page and the access time of the non-target page which are accessed by the user to obtain a second statistical result. And running a pre-embedded event statistical process in the page, and counting the names of the events, the time of event generation and the change of the expansion parameters of the events in the page accessed by the user to obtain a third statistical result. And running a pre-deployed second logic process, and sending the first statistical result, the second statistical result and the third statistical result to the back end, wherein the second logic process is used for executing the request and the analysis of the network data. Therefore, based on the pre-deployed first logic process and the configuration file, under the condition that the user triggers the application to use, the source of the target page accessed by the user, the source of the target page and the access time of the target page can be counted, and the statistical process is not required to be implanted in the bottom logic of the target page, so that the code amount implanted in the bottom logic of the application can be reduced, and the memory resource of the application is reduced. And the logic of the first logic process and the configuration file is simpler, the later maintenance and upgrading are more convenient, and the applicability is stronger. In addition, the running performance of the application is not reduced when the application runs the first logic process in the using process.
It should be noted that the flow mentioned in the above embodiment may be summarized as the method shown in fig. 2.
As shown in fig. 2, another schematic diagram of a data processing method for an application according to an embodiment of the present application includes the following steps:
s201: in the event that the user triggers application usage, a pre-deployed first logical process is run.
The first logic process is used for detecting the life cycle of the Activity and the life cycle of the Fragment.
S202: and counting the source of the target page accessed by the user, the source of the target page and the access time length of the target page according to the life cycle of the Activity, the life cycle of the Fragment and the preset corresponding relation, and obtaining a first statistical result.
The preset corresponding relation comprises a corresponding relation among target pages, activities and fragments indicated in a pre-deployed configuration file. The target page includes an Activity page and a Fragment page.
S203: and running a pre-implanted statistical process in the non-target page, and counting the source of the non-target page, the source of the non-target page and the access time of the non-target page which are accessed by the user to obtain a second statistical result.
S204: and running a second logic process deployed in advance, and sending the statistical result to the back end.
The second logic process is used for executing request and analysis of network data, and the statistical results comprise a first statistical result and a second statistical result.
Optionally, the statistics further include a third statistics. And the third statistical result is obtained by running a pre-embedded event statistical process in the page and counting the name of an event, the time of event generation and the change of the expansion parameter of the event in the page accessed by the user.
In summary, in the case that the user triggers the application to use, a pre-deployed first logic process is run, where the first logic process is used to detect the life cycle of the Activity and the life cycle of the Fragment. And counting the source of the target page accessed by the user, the source of the target page and the access time of the target page according to the life cycle of the Activity, the life cycle of the Fragment and a preset corresponding relation, so as to obtain a first statistical result, wherein the preset corresponding relation comprises the corresponding relation among the target page, the Activity and the Fragment indicated in the pre-deployed configuration file. And running a pre-implanted statistical process in the non-target page, and counting the source of the non-target page, the source of the non-target page and the access time of the non-target page which are accessed by the user to obtain a second statistical result. And running a pre-deployed second logic process, and sending a statistical result to the back end, wherein the second logic process is used for executing the request and the analysis of the network data, and the statistical result comprises a first statistical result and a second statistical result. Therefore, based on the pre-deployed first logic process and the configuration file, under the condition that the user triggers the application to use, the source of the target page accessed by the user, the source of the target page and the access time of the target page can be counted, and the statistical process is not required to be implanted in the bottom logic of the target page, so that the code amount implanted in the bottom logic of the application can be reduced, and the memory resource of the application is reduced. And the logic of the first logic process and the configuration file is simpler, the later maintenance and upgrading are more convenient, and the applicability is stronger. In addition, the running performance of the application is not reduced when the application runs the first logic process in the using process.
Corresponding to the data processing method for the application provided by the embodiment of the application, the application also provides a data processing device for the application.
As shown in fig. 3, a schematic structural diagram of a data processing apparatus for application according to an embodiment of the present application includes:
a configuration unit 100 for pre-configuring the server address.
And the running unit 200 is used for running the first logic process deployed in advance under the condition that the user triggers the application to use. The first logic process is used for detecting the life cycle of the Activity and the life cycle of the Fragment.
The first statistics unit 300 is configured to count a source of a target page accessed by a user, a source of the target page, and an access duration of the target page according to a life cycle of the Activity, a life cycle of the Fragment, and a preset corresponding relationship, so as to obtain a first statistics result. The preset corresponding relation comprises a target page, an Activity and a corresponding relation among fragments, which are indicated in a pre-deployed configuration file, wherein the target page comprises an Activity page and a Fragment page. The correspondence between the target page, activity, and Fragment includes: the method comprises the steps of corresponding relations between the names of the activities and the names of the activities pages, corresponding relations among the names of the activities, the names of preset page calling interfaces in the activities and the names of the activities pages, corresponding relations among the names of fragments, the names of preset page calling interfaces in the fragments and the names of the fragments pages.
The second statistics unit 400 is configured to run a statistics process pre-embedded in the non-target page, and count a source of the non-target page, and an access duration of the non-target page, which are accessed by the user, to obtain a second statistics result.
And the third statistics unit 500 is configured to run an event statistics process pre-embedded in the page, and count the name of an event occurring in the page accessed by the user, the time of generating the event, and the change of the expansion parameter of the event, so as to obtain a third statistics result.
And the sending unit 600 is configured to run a second logic process deployed in advance, and send the statistical result to the back end. The second logic process is used for executing the request and the analysis of the network data, and the statistical results comprise a first statistical result, a second statistical result and a third statistical result.
The specific implementation process of the sending unit 600 for sending the statistics result to the back end includes: and sending the statistical result to the back end according to the corresponding relation between the server address and the back end.
In summary, in the case that the user triggers the application to use, a pre-deployed first logic process is run, where the first logic process is used to detect the life cycle of the Activity and the life cycle of the Fragment. And counting the source of the target page accessed by the user, the source of the target page and the access time of the target page according to the life cycle of the Activity, the life cycle of the Fragment and a preset corresponding relation, so as to obtain a first statistical result, wherein the preset corresponding relation comprises the corresponding relation among the target page, the Activity and the Fragment indicated in the pre-deployed configuration file. And running a pre-implanted statistical process in the non-target page, and counting the source of the non-target page, the source of the non-target page and the access time of the non-target page which are accessed by the user to obtain a second statistical result. And running a pre-deployed second logic process, and sending a statistical result to the back end, wherein the second logic process is used for executing the request and the analysis of the network data, and the statistical result comprises a first statistical result and a second statistical result. Therefore, based on the pre-deployed first logic process and the configuration file, under the condition that the user triggers the application to use, the source of the target page accessed by the user, the source of the target page and the access time of the target page can be counted, and the statistical process is not required to be implanted in the bottom logic of the target page, so that the code amount implanted in the bottom logic of the application can be reduced, and the memory resource of the application is reduced. And the logic of the first logic process and the configuration file is simpler, the later maintenance and upgrading are more convenient, and the applicability is stronger. In addition, the running performance of the application is not reduced when the application runs the first logic process in the using process.
The application also provides a computer readable storage medium, which comprises a stored program, wherein the program executes the data processing method for the application.
The application also provides a data processing device for an application, comprising: a processor, a memory, and a bus. The processor is connected with the memory through a bus, the memory is used for storing a program, and the processor is used for running the program, wherein the data processing method for the application provided by the application is executed when the program runs, and comprises the following steps:
under the condition that a user triggers the application to use, running a first logic process which is deployed in advance; the first logic process is used for detecting the life cycle of the Activity and the life cycle of the Fragment;
counting the source of the target page, the source of the target page and the access duration of the target page accessed by the user according to the life cycle of the Activity, the life cycle of the Fragment and a preset corresponding relation to obtain a first statistical result; the preset corresponding relation comprises a corresponding relation among the target page, the Activity and the Fragment indicated in a pre-deployed configuration file;
running a pre-implanted statistical process in a non-target page, and counting the source of the non-target page, the source of the non-target page and the access time length of the non-target page accessed by the user to obtain a second statistical result;
running a second logic process deployed in advance, and sending the statistical result to the back end; wherein the second logic process is configured to perform a request for network data and an analysis; the statistical results include the first statistical result and the second statistical result.
Optionally, the method further comprises:
running a pre-implanted event statistics process in a page, and counting the names of events, the time for generating the events and the changes of expansion parameters of the events, which occur in the page accessed by the user, so as to obtain a third statistics result;
the statistics further include:
and the third statistical result.
Optionally, the target page includes an Activity page and a Fragment page.
Optionally, the correspondence between the target page, the Activity, and the Fragment indicated in the pre-deployed configuration file includes:
and the correspondence between the name of the Activity and the name of the Activity page.
Optionally, the correspondence between the target page, the Activity, and the Fragment indicated in the pre-deployed configuration file includes:
the name of the Activity, the name of a preset page call interface in the Activity and the correspondence between the names of the Activity pages.
Optionally, the correspondence between the target page, the Activity, and the Fragment indicated in the pre-deployed configuration file includes:
the name of the Fragment, the name of a preset page call interface in the Fragment, and the correspondence between the names of the Fragment pages.
Optionally, before the running of the first pre-deployed logic process, the method further includes:
pre-configuring a server address;
the statistical result is sent to the back end, and the statistical result comprises:
and sending the statistical result to the back end according to the corresponding relation between the server address and the back end.
In this specification, each embodiment is described in a progressive manner, and each embodiment is mainly described in a different point from other embodiments, so that the same or similar parts between the embodiments are referred to each other.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the application. Thus, the present application is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (10)

1. A method of data processing for an application, the method being applied to the application and comprising:
under the condition that a user triggers the application to use, running a first logic process which is deployed in advance; the first logic process is used for detecting the life cycle of the Activity and the life cycle of the Fragment;
counting the source of the target page accessed by the user, the source of the target page and the access time length of the target page according to the life cycle of the Activity, the life cycle of the Fragment and a preset corresponding relation, and obtaining a first statistical result; the preset corresponding relation comprises a corresponding relation among the target page, the Activity and the Fragment indicated in a pre-deployed configuration file;
running a pre-implanted statistical process in a non-target page, and counting the source of the non-target page, the source of the non-target page and the access time length of the non-target page accessed by the user to obtain a second statistical result;
running a second logic process deployed in advance, and sending the statistical result to the back end; wherein the second logic process is configured to perform a request for network data and an analysis; the statistical results include the first statistical result and the second statistical result.
2. The method as recited in claim 1, further comprising:
running a pre-implanted event statistics process in a page, and counting the names of events, the time for generating the events and the changes of expansion parameters of the events, which occur in the page accessed by the user, so as to obtain a third statistics result;
the statistics further include:
and the third statistical result.
3. The method of claim 1, wherein the target page comprises an Activity page and a Fragment page.
4. The method of claim 3, wherein the correspondence between the target page, the Activity, and the Fragment indicated in the pre-deployed configuration file comprises:
and the correspondence between the name of the Activity and the name of the Activity page.
5. The method of claim 3, wherein the correspondence between the target page, the Activity, and the Fragment indicated in the pre-deployed configuration file comprises:
the name of the Activity, the name of a preset page call interface in the Activity and the correspondence between the names of the Activity pages.
6. The method of claim 3, wherein the correspondence between the target page, the Activity, and the Fragment indicated in the pre-deployed configuration file comprises:
the name of the Fragment, the name of a preset page call interface in the Fragment, and the correspondence between the names of the Fragment pages.
7. The method of claim 1, wherein prior to running the pre-deployed first logical process, further comprising:
pre-configuring a server address;
the sending the statistics to the back end includes:
and sending the statistical result to the back end according to the corresponding relation between the server address and the back end.
8. A data processing apparatus for an application, comprising:
the running unit is used for running a first logic process deployed in advance under the condition that a user triggers the application to use; the first logic process is used for detecting the life cycle of the Activity and the life cycle of the Fragment;
the first statistics unit is used for counting the source of the target page accessed by the user, the source of the target page and the access time length of the target page according to the life cycle of the Activity, the life cycle of the Fragment and a preset corresponding relation to obtain a first statistics result; the preset corresponding relation comprises a corresponding relation among the target page, the Activity and the Fragment indicated in a pre-deployed configuration file;
the second statistical unit is used for running a statistical process pre-embedded in a non-target page, and counting the source of the non-target page accessed by the user, the source of the non-target page source and the access time length of the non-target page to obtain a second statistical result;
the sending unit is used for running a second logic process deployed in advance and sending the first statistical result and the second statistical result to the rear end; wherein the second logical process is configured to perform a request for network data and an analysis.
9. A computer-readable storage medium, on which a computer program is stored, characterized in that the computer program, when run on a computer, performs the data processing method for an application according to any of claims 1-7.
10. A data processing apparatus for an application, comprising: a processor, a memory, and a bus; the processor is connected with the memory through the bus;
the memory is used for storing a program, and the processor is used for running the program, wherein the program runs to execute the data processing method for application according to any one of claims 1 to 7.
CN202010692004.6A 2020-07-17 2020-07-17 Application-oriented data processing method and device Active CN111797025B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010692004.6A CN111797025B (en) 2020-07-17 2020-07-17 Application-oriented data processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010692004.6A CN111797025B (en) 2020-07-17 2020-07-17 Application-oriented data processing method and device

Publications (2)

Publication Number Publication Date
CN111797025A CN111797025A (en) 2020-10-20
CN111797025B true CN111797025B (en) 2023-11-14

Family

ID=72807630

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010692004.6A Active CN111797025B (en) 2020-07-17 2020-07-17 Application-oriented data processing method and device

Country Status (1)

Country Link
CN (1) CN111797025B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112463520A (en) * 2020-11-05 2021-03-09 广州博恒信息科技有限责任公司 Page full life cycle statistical method and equipment based on Flutter and storage medium
CN112651012B (en) * 2020-12-28 2023-03-24 五八同城信息技术有限公司 Information processing method and device

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017167042A1 (en) * 2016-04-01 2017-10-05 阿里巴巴集团控股有限公司 Statistical method and apparatus for behaviors of front-end users
CN107784065A (en) * 2017-08-17 2018-03-09 平安壹钱包电子商务有限公司 Business datum tracking, device, computer equipment and storage medium
CN107797908A (en) * 2017-11-07 2018-03-13 南威软件股份有限公司 A kind of behavioral data acquisition method of website user
CN109376322A (en) * 2018-09-07 2019-02-22 平安科技(深圳)有限公司 A kind of grayscale version page access method, apparatus, computer equipment and computer storage medium
CN110750744A (en) * 2019-10-11 2020-02-04 浙江口碑网络技术有限公司 Page presentation method and device
CN110781372A (en) * 2019-10-28 2020-02-11 珠海格力电器股份有限公司 Method and device for optimizing website, computer equipment and storage medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060085420A1 (en) * 2004-09-27 2006-04-20 Symphoniq Corp. Method and apparatus for monitoring real users experience with a website

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017167042A1 (en) * 2016-04-01 2017-10-05 阿里巴巴集团控股有限公司 Statistical method and apparatus for behaviors of front-end users
CN107784065A (en) * 2017-08-17 2018-03-09 平安壹钱包电子商务有限公司 Business datum tracking, device, computer equipment and storage medium
CN107797908A (en) * 2017-11-07 2018-03-13 南威软件股份有限公司 A kind of behavioral data acquisition method of website user
CN109376322A (en) * 2018-09-07 2019-02-22 平安科技(深圳)有限公司 A kind of grayscale version page access method, apparatus, computer equipment and computer storage medium
CN110750744A (en) * 2019-10-11 2020-02-04 浙江口碑网络技术有限公司 Page presentation method and device
CN110781372A (en) * 2019-10-28 2020-02-11 珠海格力电器股份有限公司 Method and device for optimizing website, computer equipment and storage medium

Also Published As

Publication number Publication date
CN111797025A (en) 2020-10-20

Similar Documents

Publication Publication Date Title
US10007501B1 (en) Method of deploying applications rapidly based on customized android platform
US20110258609A1 (en) Method and system for software defect reporting
US20210173665A1 (en) Bootstrapping Profile-Guided Compilation and Verification
US9118679B2 (en) Analytics data collection with low integration cost for dynamic message passing systems
US20080243969A1 (en) Method and system for customizing allocation statistics
US9558055B2 (en) System level memory leak detection
US11861394B2 (en) Automated semantic tagging
US20080282233A1 (en) Rapid application innovation utilizing an orthogonal programming component
CN111797025B (en) Application-oriented data processing method and device
Borges Jr et al. Droidmate-2: a platform for android test generation
Liu et al. Diagnosing energy efficiency and performance for mobile internetware applications
CN110704097A (en) Data collection method and device, electronic equipment and storage medium
US9389935B2 (en) Analytics data collection with low integration cost for dynamic message passing systems
CN112506492B (en) Visual point burying method supporting dynamic scene configuration
WO2020248510A1 (en) Terminal application behaviour reflection processing method
CN110955434B (en) Software development kit processing method and device, computer equipment and storage medium
US9442818B1 (en) System and method for dynamic data collection
CN113722114A (en) Data service processing method and device, computing equipment and storage medium
CN117591411A (en) Visual circle selection buried point data acquisition method and device based on Android operating system
WO2020248512A1 (en) Method for constructing runtime model of terminal application behavior
CN104778087A (en) Information processing method and information processing device
CN108984238A (en) Gesture processing method, device and the electronic equipment of application program
CN103677951A (en) Method and system for controlling executing process of JavaScript
CN112346949A (en) AOP-based operation log recording method and system, electronic device and medium
CN112445607B (en) Method and device for executing method function by application program

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