CN107894945A - Bury an adding method, mobile terminal and computer-readable recording medium - Google Patents
Bury an adding method, mobile terminal and computer-readable recording medium Download PDFInfo
- Publication number
- CN107894945A CN107894945A CN201711142263.6A CN201711142263A CN107894945A CN 107894945 A CN107894945 A CN 107894945A CN 201711142263 A CN201711142263 A CN 201711142263A CN 107894945 A CN107894945 A CN 107894945A
- Authority
- CN
- China
- Prior art keywords
- class
- configuration file
- added
- little
- bury
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/34—Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment
- G06F11/3438—Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment monitoring of user actions
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/34—Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment
- G06F11/3466—Performance evaluation by tracing or monitoring
- G06F11/3476—Data logging
Abstract
The embodiment of the invention discloses one kind to bury an adding method, applied to network technique field, including:Obtain the to be added configuration file buried a little in application program, include multiple addition classes in the configuration file, adding method is included in the addition class, the addition class and this to be added bury an one-to-one corresponding;The configuration file is parsed using the analytic method in tool-class, obtains multiple addition classes;Access multiple addition classes and obtain corresponding multiple adding methods;The respectively adding method is replaced with to the universal method in base class, the respectively adding method is called in the universal method, with added in the application program respectively this to be added bury a little.The embodiment of the invention also discloses a kind of mobile terminal and computer-readable recording medium, can avoid producing the unnecessary development efficiency buried point code and improve application program.
Description
Technical field
The invention belongs to network technique field, more particularly to one kind buries an adding method, mobile terminal and computer-readable
Storage medium.
Background technology
With the development of mobile communication and computer technology, people make to mobile terminals such as smart mobile phone, tablet personal computers
With more and more extensive.And network information renewal speed is fast, users ' individualized requirement increases, and the application program of mobile terminal is faced with
Many challenges.In order to improve Consumer's Experience, the demand of statistics and analysis user behavior is also arisen at the historic moment.Application program is opened
Hair personnel would generally obtain user behavior data, and then statistics and analysis user behavior by way of burying a little, and journey is applied in improvement
Sequence.
At present, the scheme of burying being usually taken is when writing application code, will bury point code and is packaged into tool-class,
In the place insertion tool-class to be added buried a little.But elapse over time, application version renewal or to be added new
The unnecessary development efficiency buried point code and reduce application program can be produced when burying point code, in application program.
The content of the invention
The present invention provides one kind and buries an adding method, mobile terminal and computer-readable recording medium, and generation can be avoided more
The remaining development efficiency buried point code and improve application program.
First aspect of the embodiment of the present invention provides one kind and buries an addition statistical method, and methods described includes:Obtain application
The configuration file buried a little to be added in program, includes multiple addition classes in the configuration file, comprising adding in the addition class
Adding method, the addition class correspond with to be added bury;Match somebody with somebody using described in the analytic method parsing in tool-class
File is put, obtains multiple addition classes;Access multiple addition classes and obtain corresponding multiple adding methods;By each institute
State adding method and replace with universal method in base class, each adding method is called in the universal method, with described
Each described to be added bury a little is added in application program.
Second aspect of the embodiment of the present invention provides a kind of mobile terminal, and the mobile terminal includes:Acquisition module, it is used for
The configuration file buried a little to be added in application program is obtained, multiple addition classes, the addition class are included in the configuration file
In include adding method, the addition class corresponds with to be added bury;Parsing module, for using in tool-class
Analytic method parse the configuration file, obtain multiple addition classes;Access modules, for accessing multiple addition classes
Multiple adding methods corresponding to obtaining;Replacement module, for each adding method to be replaced with to the general side in base class
Method;Calling module, for calling each adding method in the universal method, to add each institute in the application program
State to be added bury a little.
The third aspect of the embodiment of the present invention provides a kind of mobile terminal, including:Memory, processor and it is stored in described
It is real described in the computing device during computer program on memory and the computer program that can run on the processor
What existing embodiments of the present invention first aspect provided buries an adding method.
Fourth aspect of the embodiment of the present invention provides a kind of computer-readable recording medium, is stored thereon with computer journey
Sequence, when the computer program is executed by processor, that realizes the offer of embodiments of the present invention first aspect buries an addition side
Method.
In the embodiment of the present invention, by obtaining the configuration file buried a little to be added in application program, then pass through tool-class
In analytic method parse the configuration file, the adding method in configuration file is then replaced with to the universal method in base class,
Then the adding method in the configuration file is called in universal method, to add respectively corresponding with adding method to be added bury
Point, point code is buried without being added in the installation file of application program, avoid producing and unnecessary bury point code and improve should
With the development efficiency of program.
Brief description of the drawings
Fig. 1 is the implementation process schematic diagram for burying an adding method that one embodiment of the invention provides;
Fig. 2 is the implementation process schematic diagram for burying an adding method that another embodiment of the present invention provides;
Fig. 3 is the structural representation for the mobile terminal that one embodiment of the invention provides;
Fig. 4 is the structural representation for the mobile terminal that another embodiment of the present invention provides;
Fig. 5 is the hardware structure diagram for the mobile terminal that one embodiment of the invention provides.
Embodiment
To enable goal of the invention, feature, the advantage of the present invention more obvious and understandable, below in conjunction with the present invention
Accompanying drawing in embodiment, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that described reality
It is only part of the embodiment of the present invention to apply example, and not all embodiments.Based on the embodiment in the present invention, people in the art
The every other embodiment that member is obtained under the premise of creative work is not made, belongs to the scope of protection of the invention.
Referring to Fig. 1, Fig. 1 is the implementation process schematic diagram for burying an adding method that one embodiment of the invention provides, the party
Method can be applied in mobile terminal, and mobile terminal includes:Smart mobile phone, tablet personal computer, notebook computer etc. can make on the move
Electronic data-processing equipment.As shown in figure 1, this method mainly includes the following steps that:
101st, the configuration file buried a little to be added in application program is obtained;
Specifically, mobile terminal obtains the configuration file buried a little to be added from server.Preferably, mobile terminal is to server
Request is sent, server responds the request Concurrency and gives the configuration file to mobile terminal.The configuration file is used to configure movement eventually
Burying a little in the application program at end.Wherein the application program is chosen as client-side program, and it is a little to be used to gathering and counting use that this, which is buried,
The collector of user behavior data when family uses the application program, specifically can behave as:Such as one section be used for gather and count
The code of user behavior data.User behavior data, i.e. user application client operation note, as user click on it is special
Determine button or user accesses specific webpage etc..Multiple addition classes are included in configuration file, adds in class and includes adding method, add
Class is added to bury an one-to-one corresponding with to be added, so adding method buries an one-to-one corresponding with to be added.
102nd, configuration file is parsed using the analytic method in tool-class, obtains multiple addition classes;
Specifically, including multiple addition classes in configuration file, add and adding method is included in class, addition class is buried a little with to be added
Correspond, then adding method buries an one-to-one corresponding with to be added.Matched somebody with somebody using the analytic method parsing in default tool-class
File is put, obtains multiple addition classes.Wherein, default tool-class for example can be Java tool-class.
103rd, multiple addition classes are accessed and obtain corresponding multiple adding methods;
Specifically, because include adding method in addition class, addition class corresponds with to be added bury, then adding method and
To be added buries an one-to-one corresponding.Wherein, mobile terminal adds class by accessing, and obtains multiple adding methods.In practical application
In, the title and method name of addition class can be included in configuration file, then mobile terminal is according to the title access addition for adding class
Class, access addition class after according to the title of adding method obtain adding method.
The 104th, each adding method is replaced with to the universal method in base class, each adding method is called in universal method, with
Each to be added bury a little is added in the application.
It is the class in order that all specifically, the adding method in configuration file to be replaced with to the universal method in base class
All there is a general method, and then the method in each class can be called in universal method.Wherein, base class can be
NSObject classes.The adding method in former configuration file is called in universal method, respectively class is corresponding waits to add with addition to add
What is added buries a little, i.e., corresponding with adding method to be added buries a little.Exemplary, adding method a, class S a little is buried in existing addition
In have method b, the method b in class S is replaced with into method a, then function a little is buried in the addition that class S is just provided with method a, still
Class S is both not desired to lose original function, wants to retain the function of adding and bury a little again, then can replace with method a in the method b in class S
Afterwards, the call method b then in method a.
It should be understood that contain adding method in the addition class of configuration file, in order to obtain the work(of universal method in base class
Can, therefore the adding method added in class is replaced with into universal method in base class so that addition class has universal method
Function, but add class and think that function a little is buried in the original addition of reservation again, therefore addition is called in the universal method of addition class
Method, with add it is respectively corresponding with adding method to be added bury a little, i.e., class is corresponding to be added buries a little with each addition.Preferably
, the adding method in configuration file is replaced with universal method by mobile terminal using runtime functions, and in universal method
Adding method is called, to realize that function a little is buried in addition.
In embodiments of the present invention, by obtaining configuration file from server, then the analytic method in tool-class is passed through
The configuration file is parsed, the adding method in configuration file is then replaced with to the universal method in base class, then in general side
The adding method in the configuration file is called in method, with add respectively it is corresponding with adding method it is to be added bury a little, without should
Point code is buried with being added in the installation file of program, avoids producing the unnecessary exploitation buried point code and improve application program
Efficiency.
Referring to Fig. 2, Fig. 2 is the implementation process schematic diagram for burying an adding method that one embodiment of the invention provides, the party
Method can be applied in mobile terminal, and mobile terminal includes:Smart mobile phone, tablet personal computer, notebook computer etc. can make on the move
Electronic data-processing equipment.As shown in Fig. 2 this method mainly includes the following steps that:
201st, in application program launching, judge locally to whether there is configuration file;Specifically, in application program launching, sentence
It is disconnected locally to whether there is configuration file.The configuration file be in the application program for configuring mobile terminal bury a little, for
Counting user uses the user behavior data during application program, i.e., user is in the operation note of application client, such as use
Specific keys are clicked at family or user accesses specific webpage etc..If local be not present configuration file, step 202 is performed:Obtain
In application program after the configuration file to be added buried a little, step 206 is then performed.
If the 202, local be not present configuration file, the configuration file to be added buried a little in application program is obtained;
Specifically, if local be not present configuration file, the configuration file to be added buried a little in application program, configuration text are obtained
Part may be provided in the installation file of application program, and in application program launching, mobile severe is from application program installation file
The configuration file is obtained, and then reads the configuration file.The configuration file may also set up in the server, then mobile terminal need to be from
The configuration file is obtained in server, and then reads the configuration file.
If the 203, local have configuration file, detection configuration file is in the server with the presence or absence of renewal;
Specifically, if local have configuration file, then in application program launching, whether the configuration file in detection service device
In the presence of renewal.If the configuration file in server has renewal, step 204 is performed.If the configuration file in server is not deposited
Updating, then performing step 205.
If the configuration file the 204, in server has renewal, the configuration file after renewal is obtained from server;
Specifically, if the configuration file in server has renewal, illustrate that current mobile terminal is to be added new and bury a little, that is, need
New user behavior is counted, then obtains the configuration file after renewal from server.Whenever new configuration file uploads onto the server
When, old configuration file can be replaced by new configuration file, therefore the configuration file in server only has one, therefore mobile
Terminal can directly send to server and ask, to obtain the configuration file.
If the 205, renewal is not present in the configuration file in server, the operation added and buried a little is not performed;
Specifically, if renewal is not present in configuration file in server, illustrate that current mobile terminal is not required to that addition is new to bury a little, i.e.,
New user behavior need not be counted, so mobile terminal does not perform the operation added and buried a little, does not obtain configuration text from server
Part, start application program.
206th, tool-class and base class are created in the application;
Specifically, mobile terminal is pre-created tool-class, analytic method is included in the tool-class.In actual applications, it is mobile whole
End access tool class first, therefrom obtains analytic method, to perform subsequent step.Preferably, mobile terminal can be according to tool-class
Title access tool class, analytic method is obtained according to the title of analytic method after access tool class, the title of the tool-class and
The title of analytic method obtains during tool-class is pre-created.
Mobile terminal is pre-created base class, and universal method is included in the base class.Preferably, base class is NSObject classes, then
In actual applications, mobile terminal accesses base class first, therefrom obtains universal method, to perform subsequent step.It is preferably, mobile
Terminal can according to the title of base class access base class, access base class after according to the title of universal method obtain universal method, the base class
Title and the title of universal method obtained during base class is pre-created.
207th, configuration file is parsed using the analytic method in tool-class, obtains multiple addition classes and multiple user's rows
For description information;Specifically, including multiple addition classes in configuration file, add and adding method is included in class, addition class is with treating
An one-to-one corresponding is buried in addition.Configuration file is parsed using analytic method, obtains multiple addition classes.Wherein, in configuration file also
The description information of multiple user behaviors is included, the description information of user behavior buries an one-to-one corresponding with to be added, then utilizes solution
Analysis method parses configuration file, can obtain the description information of multiple user behaviors.
208th, multiple addition classes are accessed and obtain corresponding multiple adding methods;Specifically, because included in addition class
Adding method, addition class bury an one-to-one corresponding with to be added, then adding method buries an one-to-one corresponding with to be added.Wherein,
Mobile terminal adds class by accessing, and obtains multiple adding methods.In actual applications, addition class can be included in configuration file
Title and method name, then mobile terminal according to addition class title access addition class, access addition class after according to adding method
Title obtain adding method.
The 209th, each adding method is replaced with to the universal method in base class, each adding method is called in universal method, with
Each to be added bury a little is added in the application;
It is in order that all classes all have specifically, the adding method in configuration file to be replaced with to the universal method in base class
There is a general method, and then the method in each class can be called in universal method.First wife is called to put in universal method
Adding method in file, to add, respectively class is corresponding to be added buries a little with addition, i.e., corresponding with adding method to be added
Bury a little.Exemplary, adding method a a little is buried in existing addition, has method b in class S, the method b in class S is replaced with into method
A, then class S is just provided with the function of adding and bury a little, but class S is both not desired to lose original function, wants that retaining addition buries a little again
Function, then after the method b in class S replaces with method a, then the call method b in method a.
It should be understood that contain adding method in the addition class of configuration file, in order to obtain the work(of universal method in base class
Can, therefore the adding method added in class is replaced with into universal method in base class so that addition class has universal method
Function, but add class and think that function a little is buried in the original addition of reservation again, therefore addition is called in the universal method of addition class
Method, with add it is respectively corresponding with adding method to be added bury a little, i.e., class is corresponding to be added buries a little with each addition, has added
To be added the burying added is a little successfully buried a little for addition.
210th, access tool class, method for uploading is obtained;Specifically, mobile terminal creates instrument in client-side program in advance
Class, method for uploading is also included in the tool-class, then mobile terminal access tool class first, therefrom obtains method for uploading, to perform
Subsequent step.In actual applications, mobile terminal can be according to the title access tool class of tool-class, according to upper after access tool class
The title of transmission method obtains method for uploading, and the title of the tool-class and the title of method for uploading are being pre-created the process of tool-class
Middle acquisition.
Optionally, method for uploading can be called in universal method, uploads and successfully buries a little corresponding user's row with addition
For description information to server.Specifically, the description information of user behavior buries an one-to-one corresponding with to be added, thus it is mobile
After terminal is by the way that the adding method in configuration file to be replaced with to the universal method in base class, upload side is called in universal method
Method, the description information that a little corresponding user behavior is successfully buried with adding is uploaded onto the server using method for uploading, with logical
Know server addition successfully buries which a little has.It should be understood that contain method for uploading in tool-class, for upload user behavior
Description information to server, therefore addition class universal method in call method for uploading, to upload the description of user behavior
Information is to server.
211st, method for uploading is called in universal method, uploads and the user behavior number a little collected is successfully buried by addition
According to server.
Specifically, when it is to be added bury add successfully after, will be uploaded with burying the description information of a little corresponding user behavior
To server, when mobile terminal once again listens for the user behavior, it will pass through method for uploading and upload by addition successfully
The user behavior data that a little collects is buried to server.Exemplary, if the description information of user behavior is pressed for click is specific
Key, then when listening to user and clicking on the specific keys, mobile terminal uploads the description information of the user behavior to server, by
The description information of the server statistics user behavior, that is, count the number of clicks of specific keys and analyzed, to improve application
Program.
In embodiments of the present invention, by obtaining the configuration file buried a little to be added in application program, then instrument is passed through
Analytic method in class parses the configuration file, and the adding method in configuration file is then replaced with to the general side in base class
Method, the adding method in the configuration file is then called in universal method, it is respectively corresponding with adding method to be added to add
Bury a little, bury point code without being added in the installation file of application program, avoid producing and unnecessary bury point code and raising
The development efficiency of application program.And the method for uploading in universal method in calls tool class, to upload and add success
The description information for burying a little user behavior relative to that to server, so as to the server statistics user behavior, and improve
Application program.
Referring to Fig. 3, Fig. 3 is the structural representation for the mobile terminal that one embodiment of the invention provides.Movement shown in Fig. 3
Terminal mainly includes:
Acquisition module 301, for obtaining the configuration file buried a little to be added in application program, add in configuration file comprising multiple
Add class, add and adding method is included in class, addition class buries an one-to-one corresponding with to be added.
Parsing module 302, for parsing configuration file using the analytic method in tool-class, obtain multiple addition classes.
Access modules 303, corresponding multiple adding methods are obtained for accessing multiple addition classes.
Replacement module 304, for each adding method to be replaced with to the universal method in base class.
Calling module 305, it is each to be added to add in the application for calling each adding method in universal method
Bury a little.
The details of the present embodiment not to the greatest extent, refers to the description of foregoing embodiment illustrated in fig. 1, here is omitted.
In embodiments of the present invention, by obtaining the configuration file buried a little to be added in application program, then instrument is passed through
Analytic method in class parses the configuration file, and the adding method in configuration file is then replaced with to the general side in base class
Method, the adding method in the configuration file is then called in universal method, it is respectively corresponding with adding method to be added to add
Bury a little, bury point code without being added in the installation file of application program, avoid producing and unnecessary bury point code and raising
The development efficiency of application program.
Referring to Fig. 4, Fig. 4 is the structural representation for the mobile terminal that another embodiment of the present invention provides.Shown in Fig. 3
Mobile terminal unlike, as shown in figure 4, in the present embodiment:
Further, the description information of multiple user behaviors is also included in configuration file, the description information of user behavior adds with waiting
What is added buries an one-to-one corresponding, and method for uploading is also included in tool-class;
Access modules 303, access tool class is additionally operable to, obtains method for uploading.
Calling module 305, it is additionally operable to call method for uploading in universal method, is successfully buried a little relatively with uploading and adding
The description information for the user behavior answered is to server.
Further, mobile terminal also includes:
Judge module 401, in application program launching, judging locally to whether there is configuration file.
Acquisition module 301, if be additionally operable to judge module 401 be judged as be not present when, perform obtain application program in treats
The operation for burying configuration file a little of addition.
Further, mobile terminal also includes:
Detection module 402, if in the presence of being judged as judge module 401, whether detection configuration file is deposited in the server
Updating.
Acquisition module 301, if be additionally operable to detection module 402 be detected as exist renewal when, from server obtain renewal after
Configuration file.
Further, mobile terminal also includes:
Standby module 403, if be detected as being not present renewal for detection module 402, do not perform the operation added and buried a little.
Creation module 404, for creating the tool-class and the base class in the application program;
Calling module 305, it is additionally operable to call method for uploading in universal method, uploads and successfully bury what is a little collected by addition
User behavior data is to server.
The details of the present embodiment not to the greatest extent, refers to description of the earlier figures 1 to embodiment illustrated in fig. 3, here is omitted.
In embodiments of the present invention, by obtaining the configuration file buried a little to be added in application program, then instrument is passed through
Analytic method in class parses the configuration file, and the adding method in configuration file is then replaced with to the general side in base class
Method, the adding method in the configuration file is then called in universal method, it is respectively corresponding with adding method to be added to add
Bury a little, bury point code without being added in the installation file of application program, avoid producing and unnecessary bury point code and raising
The development efficiency of application program.And the method for uploading in universal method in calls tool class, to upload and add success
The description information for burying a little user behavior relative to that to server, so as to the server statistics user behavior, and improve
Application program.
Referring to Fig. 5, Fig. 5 is the hardware structure diagram for the mobile terminal that one embodiment of the invention provides.
Mobile terminal described in the present embodiment, including:
Memory 51, processor 52 and the computer program that can be run on memory 51 and on the processor 52 is stored in, handled
When device 52 performs the computer program, realize and bury an adding method described in earlier figures 1 and embodiment illustrated in fig. 2.
Further, the mobile terminal also includes:
At least one input equipment 53 and at least one output equipment 54.
Above-mentioned memory 51, processor 52, input equipment 53 and output equipment 54, are connected by bus 55.
Wherein, input equipment 53 concretely camera, contact panel, physical button or mouse etc..Output equipment
54 concretely display screens.
Memory 51 can be high random access memory body(RAM, Random Access Memory)Memory, also may be used
For non-labile memory(non-volatile memory), such as magnetic disk storage.Memory 51 is used for one group of storage can
Configuration processor code, processor 52 couple with memory 51.
Further, the embodiment of the present invention additionally provides a kind of computer-readable recording medium(Storage is may be simply referred to as to be situated between
Matter), the computer-readable recording medium can be disposed in the mobile terminal in the various embodiments described above, and this is computer-readable to deposit
Storage media can be the memory in foregoing embodiment illustrated in fig. 5.Computer journey is stored with the computer-readable recording medium
Sequence, the program is realized when being executed by processor buries an adding method described in earlier figures 1 and embodiment illustrated in fig. 2.Further
, the computer can storage medium can also be USB flash disk, mobile hard disk, read-only storage(ROM, Read-Only Memory)、
RAM, magnetic disc or CD etc. are various can be with the medium of store program codes.
In multiple embodiments provided herein, it should be understood that disclosed mobile terminal and method, Ke Yitong
Other modes are crossed to realize.For example, embodiments described above is only schematical, for example, the division of the module, only
Only a kind of division of logic function, there can be other dividing mode when actually realizing, such as multiple module or components can be tied
Another system is closed or is desirably integrated into, or some features can be ignored, or do not perform.It is another, it is shown or discussed
Mutual coupling or direct-coupling or communication linkage can be by some interfaces, the INDIRECT COUPLING or communication chain of module
Connect, can be electrical, mechanical or other forms.
The module illustrated as separating component can be or may not be physically separate, show as module
The part shown can be or may not be physical module, you can with positioned at a place, or can also be distributed to multiple
On mixed-media network modules mixed-media.Some or all of module therein can be selected to realize the mesh of this embodiment scheme according to the actual needs
's.
In addition, each functional module in each embodiment of the present invention can be integrated in a processing module, can also
That modules are individually physically present, can also two or more modules be integrated in a module.Above-mentioned integrated mould
Block can both be realized in the form of hardware, can also be realized in the form of software function module.
It should be noted that for foregoing each method embodiment, in order to which simplicity describes, therefore it is all expressed as a series of
Combination of actions, but those skilled in the art should know, the present invention is not limited by described sequence of movement because
According to the present invention, some steps can use other orders or carry out simultaneously.Secondly, those skilled in the art should also know
Know, embodiment described in this description belongs to preferred embodiment, and involved action and module might not all be this hairs
Necessary to bright.
In the above-described embodiments, the description to each embodiment all emphasizes particularly on different fields, and does not have the portion being described in detail in some embodiment
Point, it may refer to the associated description of other embodiments.
It is that an adding method, mobile terminal and the computer-readable recording medium provided by the present invention of burying is retouched above
State, for those of ordinary skill in the art, according to the thought of the embodiment of the present invention, in specific embodiments and applications
There will be changes, to sum up, this specification content should not be construed as limiting the invention.
Claims (10)
1. one kind buries an adding method, it is characterised in that methods described includes:
The configuration file buried a little to be added in application program is obtained, multiple addition classes are included in the configuration file, it is described to add
Add and adding method is included in class, the addition class corresponds with to be added bury;
The configuration file is parsed using the analytic method in tool-class, obtains multiple addition classes;
Access multiple addition classes and obtain corresponding multiple adding methods;
Each adding method is replaced with to the universal method in base class, each addition side is called in the universal method
Method, to add each described to be added bury a little in the application program.
2. bury an adding method as claimed in claim 1, it is characterised in that multiple user's rows are also included in the configuration file
For description information, the description information of the user behavior corresponds with to be added bury, in the tool-class also
Comprising method for uploading, then methods described also includes:
The tool-class is accessed, obtains the method for uploading;
It is described that each adding method is called in the universal method, it is each described to be added to be added in the application program
Bury a little after, in addition to:
The method for uploading is called in the universal method, successfully a little corresponding user's row is buried with adding to upload
For description information to the server.
3. bury an adding method as claimed in claim 1, it is characterised in that to be added in the acquisition application program to bury a little
Configuration file before, in addition to:
In application program launching, judge locally to whether there is the configuration file;
If being not present, the operation for burying configuration file a little to be added in the acquisition application program is performed;
If in the presence of, detect the configuration file in the server with the presence or absence of renewal;
If renewal be present, the configuration file after renewal is obtained from the server, and according to after the renewal
Configuration file, perform the analytic method using in tool-class and parse the configuration file, obtain multiple addition classes
Step;
If in the absence of renewal, the operation added and buried a little is not performed.
4. bury an adding method as claimed in claim 1, it is characterised in that methods described also includes:
The tool-class and the base class are created in the application program.
5. bury an adding method as claimed in claim 2, it is characterised in that described that each adding method is replaced with into base class
In universal method, each adding method is called in the universal method, it is each described to be added in the application program
It is to be added bury a little after, in addition to:
The method for uploading is called in the universal method, uploads and the user's row a little collected is successfully buried by the addition
For data to the server.
6. a kind of mobile terminal, it is characterised in that the mobile terminal includes:
Acquisition module, for obtaining the configuration file buried a little to be added in application program, included in the configuration file multiple
Class is added, adding method include in the addition class, the addition class to be added buries an one-to-one corresponding with described;
Parsing module, for parsing the configuration file using the analytic method in tool-class, obtain multiple addition classes;
Access modules, corresponding multiple adding methods are obtained for accessing multiple addition classes;
Replacement module, for each adding method to be replaced with to the universal method in base class;
Calling module, it is each to be added in the application program for calling each adding method in the universal method
Described to be added buries a little.
7. mobile terminal as claimed in claim 6, it is characterised in that also comprising multiple user behaviors in the configuration file
Description information, the description information of the user behavior are corresponded with to be added bury, also included in the tool-class
Method for uploading;
The access modules, it is additionally operable to access the tool-class, obtains the method for uploading;
The calling module, it is additionally operable to call the method for uploading in the universal method, is successfully buried with uploading and adding
The description information of the corresponding user behavior of point is to the server.
8. mobile terminal as claimed in claim 6, it is characterised in that the mobile terminal also includes:
Judge module, in application program launching, judging locally to whether there is the configuration file;
The acquisition module, if be additionally operable to judge module be judged as be not present when, perform it is described acquisition application program in wait to add
The operation for burying configuration file a little added;
The mobile terminal also includes:
Detection module, if in the presence of being judged as judge module, detecting the configuration file and whether there is in the server
Renewal;
The acquisition module, if be additionally operable to detection module be detected as exist renewal when, from the server obtain renewal after
The configuration file;
The mobile terminal also includes:
Standby module, if be detected as being not present renewal for detection module, do not perform the operation added and buried a little;
Creation module, for creating the tool-class and the base class in the application program;
The calling module, it is additionally operable to call the method for uploading in the universal method, uploads and added successfully by described
Bury the user behavior data that a little collects to the server.
9. a kind of mobile terminal, including:Memory, processor and storage are on a memory and the calculating that can run on a processor
Machine program, it is characterised in that described in the computing device during computer program, realize any one of claim 1 to 5 institute
That states buries an adding method.
10. a kind of computer-readable recording medium, is stored thereon with computer program, it is characterised in that the computer program
When being executed by processor, realize and bury an adding method described in any one of claim 1 to 5.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711142263.6A CN107894945A (en) | 2017-11-17 | 2017-11-17 | Bury an adding method, mobile terminal and computer-readable recording medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711142263.6A CN107894945A (en) | 2017-11-17 | 2017-11-17 | Bury an adding method, mobile terminal and computer-readable recording medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107894945A true CN107894945A (en) | 2018-04-10 |
Family
ID=61804375
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711142263.6A Pending CN107894945A (en) | 2017-11-17 | 2017-11-17 | Bury an adding method, mobile terminal and computer-readable recording medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107894945A (en) |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108733548A (en) * | 2018-05-23 | 2018-11-02 | 北京五八信息技术有限公司 | One kind burying a setting method, device, equipment and computer readable storage medium |
CN109542529A (en) * | 2018-10-26 | 2019-03-29 | 深圳壹账通智能科技有限公司 | Point methods, device, computer equipment and storage medium are buried based on function name |
CN110750431A (en) * | 2019-10-24 | 2020-02-04 | 阿里巴巴(中国)有限公司 | Data buried point configuration method and device |
CN111124906A (en) * | 2019-12-17 | 2020-05-08 | 支付宝(杭州)信息技术有限公司 | Tracking method, compiling method and device based on dynamic embedded points and electronic equipment |
CN111639007A (en) * | 2020-05-29 | 2020-09-08 | 北京金山云网络技术有限公司 | Data processing method, device, terminal and computer readable storage medium |
CN111930422A (en) * | 2020-09-02 | 2020-11-13 | 上海优扬新媒信息技术有限公司 | Information acquisition method, device, server and storage medium |
CN111639007B (en) * | 2020-05-29 | 2024-05-03 | 北京金山云网络技术有限公司 | Data processing method, device, terminal and computer readable storage medium |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1399737A (en) * | 1999-09-24 | 2003-02-26 | 凤凰技术有限公司 | Software development system for facilitating selection of components |
CN1652078A (en) * | 2004-02-05 | 2005-08-10 | 华为技术有限公司 | Method for implementing remote-call by application program interface system on database |
CN104572043A (en) * | 2013-10-16 | 2015-04-29 | 阿里巴巴集团控股有限公司 | Method and device for embedding points for controls of client application in real time |
CN105607986A (en) * | 2015-01-06 | 2016-05-25 | 北京志翔科技股份有限公司 | Acquisition method and device of user behavior log data |
EP3164802A1 (en) * | 2014-07-03 | 2017-05-10 | Realeyes OÜ | Method of collecting and processing computer user data during interaction with web-based content |
CN106775617A (en) * | 2016-11-09 | 2017-05-31 | 深圳市中润四方信息技术有限公司 | The service logic collocation method and configuration system of a kind of application software |
CN106776247A (en) * | 2016-11-23 | 2017-05-31 | 腾云天宇科技(北京)有限公司 | Method, server and system for monitoring control in application |
-
2017
- 2017-11-17 CN CN201711142263.6A patent/CN107894945A/en active Pending
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1399737A (en) * | 1999-09-24 | 2003-02-26 | 凤凰技术有限公司 | Software development system for facilitating selection of components |
CN1652078A (en) * | 2004-02-05 | 2005-08-10 | 华为技术有限公司 | Method for implementing remote-call by application program interface system on database |
CN104572043A (en) * | 2013-10-16 | 2015-04-29 | 阿里巴巴集团控股有限公司 | Method and device for embedding points for controls of client application in real time |
EP3164802A1 (en) * | 2014-07-03 | 2017-05-10 | Realeyes OÜ | Method of collecting and processing computer user data during interaction with web-based content |
CN105607986A (en) * | 2015-01-06 | 2016-05-25 | 北京志翔科技股份有限公司 | Acquisition method and device of user behavior log data |
CN106775617A (en) * | 2016-11-09 | 2017-05-31 | 深圳市中润四方信息技术有限公司 | The service logic collocation method and configuration system of a kind of application software |
CN106776247A (en) * | 2016-11-23 | 2017-05-31 | 腾云天宇科技(北京)有限公司 | Method, server and system for monitoring control in application |
Non-Patent Citations (3)
Title |
---|
富强 朝旭 吴凯: ""美团点评前端无痕埋点实践"", 《HTTPS://TECH.MEITUAN.COM/2017/03/02/MT-MOBILE-ANALYTICS-PRACTICE.HTML》 * |
朱翀宇: ""基于指令和混合的前端通用埋点方案"", 《HTTPS://ZHUANLAN.ZHIHU.COM/P/27659302》 * |
美团技术团队: ""美团点评前端无痕埋点实践"", 《HTTPS://ZHUANLAN.ZHIHU.COM/P/26211623》 * |
Cited By (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108733548A (en) * | 2018-05-23 | 2018-11-02 | 北京五八信息技术有限公司 | One kind burying a setting method, device, equipment and computer readable storage medium |
CN109542529A (en) * | 2018-10-26 | 2019-03-29 | 深圳壹账通智能科技有限公司 | Point methods, device, computer equipment and storage medium are buried based on function name |
CN109542529B (en) * | 2018-10-26 | 2022-04-05 | 深圳壹账通智能科技有限公司 | Function name-based point burying method and device, computer equipment and storage medium |
CN110750431A (en) * | 2019-10-24 | 2020-02-04 | 阿里巴巴(中国)有限公司 | Data buried point configuration method and device |
CN110750431B (en) * | 2019-10-24 | 2023-11-03 | 阿里巴巴(中国)有限公司 | Data embedded point configuration method and device |
CN111124906A (en) * | 2019-12-17 | 2020-05-08 | 支付宝(杭州)信息技术有限公司 | Tracking method, compiling method and device based on dynamic embedded points and electronic equipment |
CN111124906B (en) * | 2019-12-17 | 2022-06-28 | 蚂蚁财富(上海)金融信息服务有限公司 | Tracking method, compiling method and device based on dynamic embedded points and electronic equipment |
CN111639007A (en) * | 2020-05-29 | 2020-09-08 | 北京金山云网络技术有限公司 | Data processing method, device, terminal and computer readable storage medium |
CN111639007B (en) * | 2020-05-29 | 2024-05-03 | 北京金山云网络技术有限公司 | Data processing method, device, terminal and computer readable storage medium |
CN111930422A (en) * | 2020-09-02 | 2020-11-13 | 上海优扬新媒信息技术有限公司 | Information acquisition method, device, server and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107894945A (en) | Bury an adding method, mobile terminal and computer-readable recording medium | |
CN110908879B (en) | Reporting method, reporting device, reporting terminal and recording medium of buried point data | |
CN103765423B (en) | Gathering transaction data associated with locally stored data files | |
CN106105160B (en) | Prefetch the application data for disconnecting the period | |
CN103501340B (en) | Information push method, device and client | |
CN103729425B (en) | Operate response method, client, browser and system | |
CN104253741B (en) | A kind of method for sending information, relevant apparatus and system | |
CN105122760B (en) | Page operation processing method, device and terminal | |
CN110806934A (en) | RPA technology-based intelligent all-in-one machine development and multi-service rapid processing method | |
CN104426944B (en) | Information feedback method, device and terminal | |
CN101917673A (en) | The method of operation of portable terminal and system | |
CN102955694A (en) | Client implementation method based on WebKit browser and client | |
CN102904797B (en) | Method and system for implementing mutual information recording in instant messaging | |
EP2862338A1 (en) | Method, server, and client for pushing and displaying splash screen | |
CN107066188A (en) | A kind of method and terminal for sending screenshot picture | |
CN101388891A (en) | Apparatus and method for managing presence information of a presentity | |
CN104601683A (en) | File download management method, mobile terminal and communication system | |
CN106202578A (en) | A kind of browser local information synchronization processing method and device | |
CN103906012A (en) | Information sending method and device | |
CN101984717B (en) | A kind of method of data synchronization, mobile terminal and data synchronous system | |
CN105550179A (en) | Webpage collection method and browser plug-in | |
US10140377B2 (en) | Data processing, data collection | |
CN105094857B (en) | Method and system for application load | |
CN106850838A (en) | The control method and system of mobile terminal cloud application | |
CN110442819A (en) | Data processing method, device, storage medium and terminal |
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 | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20180410 |
|
WD01 | Invention patent application deemed withdrawn after publication |