CN108984221A - A kind of acquisition method and device of multi-platform User action log - Google Patents

A kind of acquisition method and device of multi-platform User action log Download PDF

Info

Publication number
CN108984221A
CN108984221A CN201710399416.9A CN201710399416A CN108984221A CN 108984221 A CN108984221 A CN 108984221A CN 201710399416 A CN201710399416 A CN 201710399416A CN 108984221 A CN108984221 A CN 108984221A
Authority
CN
China
Prior art keywords
log
platform
acquisition
script
acquisition module
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.)
Granted
Application number
CN201710399416.9A
Other languages
Chinese (zh)
Other versions
CN108984221B (en
Inventor
高伟
王海旭
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Jingdong Century Trading Co Ltd
Beijing Jingdong Shangke Information Technology Co Ltd
Original Assignee
Beijing Jingdong Century Trading Co Ltd
Beijing Jingdong Shangke Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Jingdong Century Trading Co Ltd, Beijing Jingdong Shangke Information Technology Co Ltd filed Critical Beijing Jingdong Century Trading Co Ltd
Priority to CN201710399416.9A priority Critical patent/CN108984221B/en
Publication of CN108984221A publication Critical patent/CN108984221A/en
Application granted granted Critical
Publication of CN108984221B publication Critical patent/CN108984221B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files
    • G06F9/4451User profiles; Roaming

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The present invention provides the acquisition method and device, electronic equipment and computer-readable medium of a kind of multi-platform User action log, can reduce the maintenance cost of JS script, and overall architecture is clear, and maintainable strong, improves readability, continues expansible.The acquisition method of multi-platform User action log of the invention includes: the script for obtaining the acquisition User action log of multiple platforms, and the information of acquisition basic business log and the information of the peculiar business diary of acquisition platform are extracted from multiple script;Basic log acquisition module is generated according to the information of acquisition basic business log, particular service log acquisition module is generated according to the information of the peculiar business diary of acquisition platform;In to multiple platforms when a default platform acquisition User action log, according to the corresponding particular service log acquisition module of the peculiar business configuration of default platform, and the script for acquiring the User action log of the default platform is generated according to basic log acquisition module and the particular service log acquisition module of configuration.

Description

A kind of acquisition method and device of multi-platform User action log
Technical field
The present invention relates to field of computer technology more particularly to a kind of acquisition methods and dress of multi-platform User action log It sets, electronic equipment and computer-readable medium.
Background technique
User's quickly and easily shopping experience is given, the access to user is needed for precisely operation user in Internet era User behaviors log is acquired, and carries out following process, processing and analysis, is also accessed on the lines such as browsing, click, purchase of original subscriber Track.As the application scenarios of mobile Internet in recent years are more universal, the log collection on mobile terminal is also required to gradually reinforce With it is perfect, just can solve user the phenomenon that multi-platform frequent turnover uses, more more completely acquisition user in different platform On behavioral data.
The existing scheme for acquiring user behavior data on each platform is mainly as follows:
PC (personal computer) holds each browser: by writing JS (JavaScript) script, acquiring user on PC User behaviors log, this scheme is relatively mature at present;
Mobile terminal (including mobile phone terminal browser, the similar mobile terminal application such as wechat): mainly by continuing to use the end PC acquisition row It for the JS script of log, and runs business into particular one micro-adjustment to the JS script, is adapted to relevant parameter, if any particular service demand, it is special to acquire Service fields need correspondingly to be modified and increased in JS script.
In conclusion there are mainly two types of overall technical architectures at present: one is more set JS scripts are generated, acquiring different type Log;One is a set of JS scripts, but can include many different service logics.
In realizing process of the present invention, at least there are the following problems in the prior art: existing two kinds of sides for inventor's discovery All there are the unfavorable factors such as readable poor, poor expandability, maintenance cost height in case.
Summary of the invention
In view of this, the embodiment of the present invention provides the acquisition method and device, electronics of a kind of multi-platform User action log Equipment and computer-readable medium can reduce the maintenance cost of JS (JavaScript) script, and overall architecture is clear, and can tie up Shield property is strong, improves readability, the processing of particular service standalone module is lasting expansible, and can increase for different application scene Rapidly and accurately Function Extension can be realized by adjusting configuration file in real time in business module.
To achieve the above object, according to an aspect of an embodiment of the present invention, a kind of multi-platform user behavior day is provided The acquisition method of will.
A kind of acquisition method of multi-platform User action log, comprising: obtain the acquisition User action log of multiple platforms Script, and from multiple script extract acquisition basic business log information and the peculiar business diary of acquisition platform letter Breath;Basic log acquisition module is generated according to the information of the acquisition basic business log, and, it is special according to the acquisition platform There is the information of business diary to generate particular service log acquisition module;A default platform acquires user in the multiple platform When user behaviors log, according to the corresponding particular service log acquisition module of the peculiar business configuration of the default platform, and according to institute The particular service log acquisition module for stating basic log acquisition module and configuration generates the user behavior day for acquiring the default platform The script of will.
Optionally, the information of the acquisition basic business log includes the base word of the multiple script acquisition user behavior The minimal set of section further includes the shared service logic of the multiple script and corresponding reports field;The acquisition platform is special The information for having business diary includes the distinctive service logic of each script and corresponding reporting field in the multiple script.
Optionally, the script of the User action log of the default platform is acquired according to one of them in the multiple script Log reporting schemes as defined in script acquire log.
Optionally, the multiple platform includes fixed clients platform and mobile client platform.
Optionally, the fixed clients platform includes the end PC platform, and the mobile client platform includes that mobile phone M holds level with both hands Platform.
Optionally, it is adopted by configuration file according to the corresponding particular service log of peculiar business configuration of the default platform Collecting module, the configuration file further includes the sequence that executes of the particular service log acquisition module of the defined configuration, and The information of the function of the basic log acquisition module of the configuration and each particular service log acquisition module description and logical specification.
Other side according to an embodiment of the present invention provides a kind of acquisition device of multi-platform User action log.
A kind of acquisition device of multi-platform User action log, comprising: extraction module, for obtaining the acquisition of multiple platforms The script of User action log, and the information and the peculiar industry of acquisition platform for acquiring basic business log are extracted from multiple script The information of business log;Generation module, for generating basic log acquisition module according to the information of the acquisition basic business log, And particular service log acquisition module is generated according to the information of the peculiar business diary of the acquisition platform;Configuration module is used for In to the multiple platform when a default platform acquisition User action log, according to the peculiar business configuration of the default platform Corresponding particular service log acquisition module, and according to the particular service log collection of the basic log acquisition module and configuration Module generates acquisition, and this presets the script of the User action log of platform.
Optionally, the information of the acquisition basic business log includes the base word of the multiple script acquisition user behavior The minimal set of section further includes the shared service logic of the multiple script and corresponding reports field;The acquisition platform is special The information for having business diary includes the distinctive service logic of each script and corresponding reporting field in the multiple script.
Optionally, the script of the User action log of the default platform is acquired according to one of them in the multiple script Log reporting schemes as defined in script acquire log.
Optionally, the multiple platform includes fixed clients platform and mobile client platform.
Optionally, the fixed clients platform includes the end PC platform, and the mobile client platform includes that mobile phone M holds level with both hands Platform.
Optionally, the configuration module is special accordingly according to the peculiar business configuration of the default platform by configuration file Different business diary acquisition module, the configuration file further include holding for the particular service log acquisition module of the defined configuration The function description and logic of the basic log acquisition module and each particular service log acquisition module of row sequence and the configuration The information of explanation.
Another aspect according to an embodiment of the present invention, provides a kind of electronic equipment.
A kind of electronic equipment, comprising: one or more processors;Memory works as institute for storing one or more programs It states one or more programs to be executed by one or more of processors, so that one or more of processors realize that one kind is more The acquisition method of platform user user behaviors log.
Another aspect according to an embodiment of the present invention provides a kind of computer-readable medium.
A kind of computer-readable medium is stored thereon with computer program, one is realized when described program is executed by processor The acquisition method of the multi-platform User action log of kind.
One embodiment in foregoing invention has the following advantages that or the utility model has the advantages that from the acquisition user behavior of multiple platforms The information of acquisition basic business log and the information of the peculiar business diary of acquisition platform are extracted in the script of log, according to acquisition base The information of plinth business diary generates basic log acquisition module, generates special industry according to the information of the peculiar business diary of acquisition platform It is engaged in log acquisition module, in multiple platforms when a default platform acquisition User action log, according to the peculiar of default platform The corresponding particular service log acquisition module of business configuration, and according to the particular service log of basic log acquisition module and configuration Acquisition module generates acquisition, and this presets the script of the User action log of platform.So as to reduce JS (JavaScript) script Maintenance cost so that overall architecture is clear, and maintainable strong, and improve readability by each functional areas of modularization, lead to Cross particular service standalone module processing, realize it is persistently expansible, and can for different application scene increase business module, pass through Rapidly and accurately Function Extension can be realized in adjustment configuration file in real time.
Further effect possessed by above-mentioned non-usual optional way adds hereinafter in conjunction with specific embodiment With explanation.
Detailed description of the invention
Attached drawing for a better understanding of the present invention, does not constitute an undue limitation on the present invention.Wherein:
Fig. 1 is the key step schematic diagram of the acquisition method of multi-platform User action log according to an embodiment of the present invention;
Fig. 2 is the schematic diagram in code module pond according to an embodiment of the present invention;
Fig. 3 is the main modular schematic diagram of the acquisition device of multi-platform User action log according to an embodiment of the present invention;
Fig. 4 is adapted for the structural schematic diagram for the computer system for realizing the electronic equipment of the embodiment of the present invention.
Specific embodiment
Below in conjunction with attached drawing, an exemplary embodiment of the present invention will be described, including the various of the embodiment of the present invention Details should think them only exemplary to help understanding.Therefore, those of ordinary skill in the art should recognize It arrives, it can be with various changes and modifications are made to the embodiments described herein, without departing from scope and spirit of the present invention.Together Sample, for clarity and conciseness, descriptions of well-known functions and structures are omitted from the following description.
Fig. 1 is the key step schematic diagram of the acquisition method of multi-platform User action log according to an embodiment of the present invention.
As shown in Figure 1, the acquisition method of the multi-platform User action log of the embodiment of the present invention mainly includes following step Rapid S11 to step S13.
Step S11: the script of the acquisition User action log of multiple platforms is obtained, and extracts acquisition from multiple script The information of the peculiar business diary of information and acquisition platform of basic business log.
Multiple platforms may include fixed clients platform and mobile client platform, wherein fixed clients platform can wrap The end PC platform is included, mobile client platform may include the end mobile phone M (mobile client) platform.The embodiment of the present invention assumes that PC holds level with both hands All there is different JS scripts in platform, the end M platform (such as h5 page (the html5 page)) platform, but except remaining of the end PC platform is flat The JS script of platform is derived by the JS script of the end PC platform.
Wherein, the information for acquiring basic business log can be the minimum common factor of each platform JS script, mainly include The minimal set of the basic field of multiple script acquisition user behavior further includes the shared service logic of multiple script and right That answers reports field.The minimal set of the basic field of multiple script acquisition user behaviors is mainly some basic content fields, Such as may include access time, access address, visitor mark, accession page some basic informations, such as webpage t itle, Browser model and version, screen resolution etc., complete and detailed basic content field can be according to specifically needing to formulate.Pass through The basic information of user's access platform, such as the page of user related information, access can be collected by configuring these basic content fields Face basic information etc..The shared service logic of multiple scripts is mainly to acquire the corresponding business of log of the common business of each platform Logic, for example, it is assumed that statistical report user identifier is fixed clients platform and the common service logic of mobile client platform, Then the field that the service logic of the statistical report user identifier and corresponding report of user identify is extracted, as acquisition base A part of the information of plinth business diary.
The information of the peculiar business diary of acquisition platform includes the distinctive service logic of each script and right in multiple script That answers reports field.For example, it is assumed that the rank of report of user accession page is the distinctive service logic of mobile client platform, then The field of page level is reported to extract as adopting by the service logic of the rank of the report of user accession page and accordingly Collect a part of the information of the peculiar business diary of platform.
Step S12: generating basic log acquisition module according to the information of acquisition basic business log, and, according to acquisition The information of the peculiar business diary of platform generates particular service log acquisition module.
Basic log acquisition module is generated according to the relevant processing logic of message composition of acquisition basic business log, according to The relevant processing logic of the message composition of the peculiar business diary of acquisition platform forms particular service log acquisition module, allows to The log content acquired by modular component according to business demand flexible configuration.The basic log acquisition module of generation and spy Different business diary acquisition module is stored in a code module pond, which can be the form encapsulation such as jar packet Function library.
Fig. 2 is the schematic diagram in code module pond according to an embodiment of the present invention.It is every in code module pond as shown in Figure 2 A particular service log acquisition module can also be stored according to platform identification and the Business Name of module, such as the spy of the end M platform Different business diary acquisition module is stored as M+aa, and aa indicates the distinctive aa business of the end M platform.
Step S13: in multiple platforms when a default platform acquisition User action log, according to the peculiar of default platform The corresponding particular service log acquisition module of business configuration, and according to the particular service log of basic log acquisition module and configuration Acquisition module generates acquisition, and this presets the script of the User action log of platform.
It wherein, can be by configuration file according to the corresponding particular service log collection mould of peculiar business configuration of default platform Block.Configuration file may be performed as the container of log acquisition module, must be comprising basic log acquisition module, if configuration file Only comprising basic log acquisition module, then the basic information of user's access, such as the page of user related information, access can be collected Face basic information etc..If containing particular service log acquisition module in configuration file, can increase in basic reporting schemes Content information is reported, for example collects the result information of search commercial articles in website, (price has the build-in attribute on merchandise display page State out of stock, commercial specification size etc.) information etc..Particular service log acquisition module is option, and different platform can be used each From the corresponding particular service log acquisition module of peculiar business, can increase in configuration file or adjust configuration particular service Log acquisition module, for example, can be adopted according to the variation corresponding particular service log of logic Modification when business demand changes Collect module, when there is new business demand to increase, can also write relevant treatment logic, and modular storage is new particular service Log acquisition module.
Configuration file further includes the sequence that executes of the defined particular service log acquisition module configured, and configure The information of the function of basic log acquisition module and each particular service log acquisition module description and logical specification.
The function description and logical specification information for convenience of configuration file particular service log acquisition module and sequence Selection provides enough information, and function description can also be referred to and supplemented when newly-increased particular service log acquisition module and is patrolled It collects and illustrates information, so as to reduce code maintenance cost, improve research and development engineer's working efficiency.
According to the corresponding particular service log acquisition module of the peculiar business configuration of default platform, and adopted according to basic log Collect module and configuration particular service log acquisition module generate the acquisition default platform User action log script, when holding When row log collection, which calls the configuration file, and execution sequence executes basic log acquisition module and matches according to the rules The particular service log acquisition module set, wherein the particular service log acquisition module of configuration can be according to each module in configuration text The sequence configured in part executes.As needed, the script for acquiring the User action log of the default platform can also increase abnormal feelings The mechanism of condition processing, and introduce the library etc. of standard input and output.
In addition, the script that the User action log of platform is preset in the acquisition can be according to wherein one in above-mentioned multiple scripts Log reporting schemes as defined in a script acquire log.The log reporting schemes of each script for example may include one by one log request It reports, a plurality of packing reports, together using individually calling independent interface function or call directly JS script in JS script In report interface function to report, different reporting schemes also can be used in different Log Types, and the reporting schemes specifically used can It is arranged in basic log acquisition module, determines that one such reporting schemes are from the reporting schemes of multiple platform scripts It can.
It is safeguarded using overall code framework in configuration file, reduces code maintenance cost, by basis, the log of particular service Acquisition module independently, is independent of each other, and by these modules of configuration file management, framework clear and rational and easily integration are mentioned It is high readable, it can be directed to different application scene, write independent particular service log acquisition module, and increase phase in configuration file The particular service log acquisition module answered, scalability are strong.
Fig. 3 is the main modular schematic diagram of the acquisition device of multi-platform User action log according to an embodiment of the present invention.
As shown in figure 3, the acquisition device 30 of the multi-platform User action log of the embodiment of the present invention specifically includes that extraction mould Block 301, generation module 302, configuration module 303.Wherein, multiple platforms may include that fixed clients platform and mobile client are held level with both hands Platform, fixed clients platform may include the end PC platform, and mobile client platform may include the end mobile phone M platform.
Extraction module 301 is used to obtain the script of the acquisition User action log of multiple platforms, and from multiple script Extract the information of acquisition basic business log and the information of the peculiar business diary of acquisition platform.
Wherein, the information for acquiring basic business log includes that above-mentioned multiple scripts acquire the basic field of user behavior most Small set further includes the shared service logic of multiple script and corresponding reports field;The peculiar business diary of acquisition platform Information includes the distinctive service logic of each script and corresponding reporting field in multiple script.
Generation module 302 is used to generate basic log acquisition module according to the information of acquisition basic business log, and, root Particular service log acquisition module is generated according to the information of the peculiar business diary of acquisition platform.
When configuration module 303 is used for a default platform acquisition User action log in the multiple platform, according to institute The corresponding particular service log acquisition module of peculiar business configuration of default platform is stated, and according to the basic log acquisition module Generating acquisition with the particular service log acquisition module of configuration, this presets the script of the User action log of platform.
Specifically, configuration module 303 can be special accordingly according to the peculiar business configuration of default platform by configuration file Business diary acquisition module, configuration file further include as defined in the particular service log acquisition module that is configured execute sequence, And the letter of the function description and logical specification of the basic log acquisition module and each particular service log acquisition module configured Breath.
The script that the User action log of platform is preset in the acquisition can be advised according to script one of in above-mentioned multiple scripts Fixed log reporting schemes acquire log.
Below with reference to Fig. 4, it illustrates the computer systems 400 for the electronic equipment for being suitable for being used to realize the embodiment of the present application Structural schematic diagram.Electronic equipment shown in Fig. 4 is only an example, function to the embodiment of the present application and should not use model Shroud carrys out any restrictions.
As shown in figure 4, computer system 400 includes central processing unit (CPU) 401, it can be read-only according to being stored in Program in memory (ROM) 402 or be loaded into the program in random access storage device (RAM) 403 from storage section 408 and Execute various movements appropriate and processing.In RAM 403, also it is stored with system 400 and operates required various programs and data. CPU 401, ROM 402 and RAM 403 are connected with each other by bus 404.Input/output (I/O) interface 405 is also connected to always Line 404.
I/O interface 405 is connected to lower component: the importation 406 including keyboard, mouse etc.;It is penetrated including such as cathode The output par, c 407 of spool (CRT), liquid crystal display (LCD) etc. and loudspeaker etc.;Storage section 408 including hard disk etc.; And the communications portion 409 of the network interface card including LAN card, modem etc..Communications portion 409 via such as because The network of spy's net executes communication process.Driver 410 is also connected to I/O interface 405 as needed.Detachable media 411, such as Disk, CD, magneto-optic disk, semiconductor memory etc. are mounted on as needed on driver 410, in order to read from thereon Computer program be mounted into storage section 408 as needed.
Particularly, disclosed embodiment according to the present invention, the acquisition method of multi-platform User action log above it is main The process of step schematic diagram description may be implemented as computer software programs.For example, embodiment disclosed by the invention includes one Kind computer program product comprising carry computer program on a computer-readable medium, which includes to use In the program code for executing method shown in the key step schematic diagram.In such embodiments, which can be with It is downloaded and installed from network by communications portion 409, and/or is mounted from detachable media 411.In the computer program When being executed by central processing unit (CPU) 401, the above-mentioned function of limiting in the system of the application is executed.
It should be noted that computer-readable medium shown in the present invention can be computer-readable signal media or meter Calculation machine readable storage medium storing program for executing either the two any combination.Computer readable storage medium for example can be --- but not Be limited to --- electricity, magnetic, optical, electromagnetic, infrared ray or semiconductor system, device or device, or any above combination.Meter The more specific example of calculation machine readable storage medium storing program for executing can include but is not limited to: have the electrical connection, just of one or more conducting wires Taking formula computer disk, hard disk, random access storage device (RAM), read-only memory (ROM), erasable type may be programmed read-only storage Device (EPROM or flash memory), optical fiber, portable compact disc read-only memory (CD-ROM), light storage device, magnetic memory device, Or above-mentioned any appropriate combination.In this application, computer readable storage medium can be it is any include or storage journey The tangible medium of sequence, the program can be commanded execution system, device or device use or in connection.And at this In application, computer-readable signal media may include in a base band or as carrier wave a part propagate data-signal, Wherein carry computer-readable program code.The data-signal of this propagation can take various forms, including but unlimited In electromagnetic signal, optical signal or above-mentioned any appropriate combination.Computer-readable signal media can also be that computer can Any computer-readable medium other than storage medium is read, which can send, propagates or transmit and be used for By the use of instruction execution system, device or device or program in connection.Include on computer-readable medium Program code can transmit with any suitable medium, including but not limited to: wireless, electric wire, optical cable, RF etc. are above-mentioned Any appropriate combination.
Key step schematic diagram in attached drawing illustrates system, method and computer according to the various embodiments of the application The architecture, function and operation in the cards of program product.In this regard, each box in key step schematic diagram can To represent a part of a module, program segment or code, a part of above-mentioned module, program segment or code include one or Multiple executable instructions for implementing the specified logical function.It should also be noted that in some implementations as replacements, box Middle marked function can also occur in a different order than that indicated in the drawings.For example, two boxes succeedingly indicated It can actually be basically executed in parallel, they can also be executed in the opposite order sometimes, and this depends on the function involved. It, can be with it is also noted that the combination of each box in key step schematic diagram and the box in key step schematic diagram It is realized with the dedicated hardware based system for executing defined functions or operations, or specialized hardware and computer can be used The combination of instruction is realized.
Being described in module involved in the embodiment of the present invention can be realized by way of software, can also be by hard The mode of part is realized.Described module also can be set in the processor, for example, can be described as: a kind of processor packet Include extraction module 301, generation module 302, configuration module 303.Wherein, the title of these modules is not constituted under certain conditions Restriction to the module itself, for example, extraction module 301 is also described as " for obtaining the acquisition user of multiple platforms The script of user behaviors log, and the information and the peculiar business day of acquisition platform for acquiring basic business log are extracted from multiple script The module of the information of will ".
As on the other hand, the present invention also provides a kind of computer-readable medium, which be can be Included in equipment described in above-described embodiment;It is also possible to individualism, and without in the supplying equipment.Above-mentioned calculating Machine readable medium carries one or more program, when said one or multiple programs are executed by the equipment, makes Obtaining the equipment includes: the script for obtaining the acquisition User action log of multiple platforms, and acquisition base is extracted from multiple script The information of the peculiar business diary of information and acquisition platform of plinth business diary;Base is generated according to the information of acquisition basic business log Plinth log acquisition module, and, particular service log acquisition module is generated according to the information of the peculiar business diary of acquisition platform;When It is special accordingly according to the peculiar business configuration of default platform when in multiple platforms one default platform acquisition User action log Business diary acquisition module, and generating acquisition according to basic log acquisition module and the particular service log acquisition module of configuration should The script of the User action log of default platform.
Technical solution according to an embodiment of the present invention is extracted from the script of the acquisition User action log of multiple platforms and is adopted Collect the information of basic business log and the information of the peculiar business diary of acquisition platform, the information according to acquisition basic business log is raw At basic log acquisition module, particular service log acquisition module is generated according to the information of the peculiar business diary of acquisition platform, when It is special accordingly according to the peculiar business configuration of default platform when in multiple platforms one default platform acquisition User action log Business diary acquisition module, and generating acquisition according to basic log acquisition module and the particular service log acquisition module of configuration should The script of the User action log of default platform.So as to reduce the maintenance cost of JS (JavaScript) script, pass through mould Each functional areas of blockization so that overall architecture is clear, and maintainable strong, and improve readability, pass through particular service independence mould Block processing, realize it is persistently expansible, and can for different application scene increase business module, by adjusting configuration file in real time Rapidly and accurately Function Extension can be realized.
Above-mentioned specific embodiment, does not constitute a limitation on the scope of protection of the present invention.Those skilled in the art should be bright It is white, design requirement and other factors are depended on, various modifications, combination, sub-portfolio and substitution can occur.It is any Made modifications, equivalent substitutions and improvements etc. within the spirit and principles in the present invention, should be included in the scope of the present invention Within.

Claims (14)

1. a kind of acquisition method of multi-platform User action log characterized by comprising
The script of the acquisition User action log of multiple platforms is obtained, and extracts acquisition basic business log from multiple script Information and the peculiar business diary of acquisition platform information;
Basic log acquisition module is generated according to the information of the acquisition basic business log, and, according to the acquisition platform The information of peculiar business diary generates particular service log acquisition module;
In to the multiple platform when a default platform acquisition User action log, according to the peculiar business of the default platform Corresponding particular service log acquisition module is configured, and according to the particular service log of the basic log acquisition module and configuration Acquisition module generates acquisition, and this presets the script of the User action log of platform.
2. the method according to claim 1, wherein the information of the acquisition basic business log includes described more The minimal set of the basic field of a script acquisition user behavior further includes the multiple script shared service logic and correspondence Report field;The information of the peculiar business diary of acquisition platform includes each distinctive business of script in the multiple script Logic and corresponding report field.
3. the method according to claim 1, wherein the script of the User action log of the acquisition default platform Log is acquired according to log reporting schemes as defined in one of script in the multiple script.
4. the method according to claim 1, wherein the multiple platform includes fixed clients platform and movement Client platform.
5. described according to the method described in claim 4, it is characterized in that, the fixed clients platform includes the end PC platform Mobile client platform includes the end mobile phone M platform.
6. the method according to claim 1, wherein by configuration file according to the peculiar industry of the default platform Business configures corresponding particular service log acquisition module, and the configuration file further includes the particular service day of the defined configuration The basic log acquisition module for executing sequence and the configuration of will acquisition module and each particular service log acquisition module The information of function description and logical specification.
7. a kind of acquisition device of multi-platform User action log characterized by comprising
Extraction module, the script of the acquisition User action log for obtaining multiple platforms, and extract and adopt from multiple script Collect the information of basic business log and the information of the peculiar business diary of acquisition platform;
Generation module, for the basic log acquisition module of information generation according to the acquisition basic business log, and, according to The information of the peculiar business diary of acquisition platform generates particular service log acquisition module;
Configuration module, in the multiple platform when a default platform acquisition User action log, according to described default The corresponding particular service log acquisition module of the peculiar business configuration of platform, and according to the basic log acquisition module and configuration Particular service log acquisition module generate the acquisition default platform User action log script.
8. device according to claim 7, which is characterized in that the information of the acquisition basic business log includes described more The minimal set of the basic field of a script acquisition user behavior further includes the multiple script shared service logic and correspondence Report field;The information of the peculiar business diary of acquisition platform includes each distinctive business of script in the multiple script Logic and corresponding report field.
9. device according to claim 7, which is characterized in that the script of the User action log of the acquisition default platform Log is acquired according to log reporting schemes as defined in one of script in the multiple script.
10. device according to claim 7, which is characterized in that the multiple platform includes fixed clients platform and shifting Dynamic client platform.
11. device according to claim 10, which is characterized in that the fixed clients platform includes the end PC platform, institute Stating mobile client platform includes the end mobile phone M platform.
12. device according to claim 7, which is characterized in that the configuration module is by configuration file according to described pre- If the corresponding particular service log acquisition module of the peculiar business configuration of platform, the configuration file further include as defined in described match The basic log acquisition module for executing sequence and the configuration for the particular service log acquisition module set and each particular service The information of the function description and logical specification of log acquisition module.
13. a kind of electronic equipment characterized by comprising
One or more processors;
Memory, for storing one or more programs,
When one or more of programs are executed by one or more of processors, so that one or more of processors are real Now such as method as claimed in any one of claims 1 to 6.
14. a kind of computer-readable medium, is stored thereon with computer program, which is characterized in that described program is held by processor Such as method as claimed in any one of claims 1 to 6 is realized when row.
CN201710399416.9A 2017-05-31 2017-05-31 Method and device for acquiring multi-platform user behavior logs Active CN108984221B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710399416.9A CN108984221B (en) 2017-05-31 2017-05-31 Method and device for acquiring multi-platform user behavior logs

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710399416.9A CN108984221B (en) 2017-05-31 2017-05-31 Method and device for acquiring multi-platform user behavior logs

Publications (2)

Publication Number Publication Date
CN108984221A true CN108984221A (en) 2018-12-11
CN108984221B CN108984221B (en) 2021-07-20

Family

ID=64501522

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710399416.9A Active CN108984221B (en) 2017-05-31 2017-05-31 Method and device for acquiring multi-platform user behavior logs

Country Status (1)

Country Link
CN (1) CN108984221B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112181419A (en) * 2020-12-03 2021-01-05 成都极米科技股份有限公司 Interface generation method and device and storage medium
CN117369906A (en) * 2023-12-07 2024-01-09 成都市楠菲微电子有限公司 Pcie verification platform, method and device, storage medium and electronic equipment

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1536327A2 (en) * 2003-10-24 2005-06-01 Microsoft Corporation Programming interface for a computer platform
CN1645336A (en) * 2005-01-20 2005-07-27 上海复旦光华信息科技股份有限公司 Automatic extraction and analysis for formwork based on heterogenerous logbook
CN1968154A (en) * 2006-09-15 2007-05-23 华为技术有限公司 System and method for service expansion using plug
WO2010034035A1 (en) * 2008-09-22 2010-03-25 Advanced Micro Devices, Inc. Gpu assisted garbage collection
CN102164050A (en) * 2011-05-16 2011-08-24 北京星网锐捷网络技术有限公司 Log parsing method and log parsing node device
CN103577586A (en) * 2013-11-08 2014-02-12 北京国双科技有限公司 Method and device for processing log records

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1536327A2 (en) * 2003-10-24 2005-06-01 Microsoft Corporation Programming interface for a computer platform
CN1645336A (en) * 2005-01-20 2005-07-27 上海复旦光华信息科技股份有限公司 Automatic extraction and analysis for formwork based on heterogenerous logbook
CN1968154A (en) * 2006-09-15 2007-05-23 华为技术有限公司 System and method for service expansion using plug
WO2010034035A1 (en) * 2008-09-22 2010-03-25 Advanced Micro Devices, Inc. Gpu assisted garbage collection
CN102164050A (en) * 2011-05-16 2011-08-24 北京星网锐捷网络技术有限公司 Log parsing method and log parsing node device
CN103577586A (en) * 2013-11-08 2014-02-12 北京国双科技有限公司 Method and device for processing log records

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112181419A (en) * 2020-12-03 2021-01-05 成都极米科技股份有限公司 Interface generation method and device and storage medium
CN117369906A (en) * 2023-12-07 2024-01-09 成都市楠菲微电子有限公司 Pcie verification platform, method and device, storage medium and electronic equipment
CN117369906B (en) * 2023-12-07 2024-02-09 成都市楠菲微电子有限公司 Pcie verification platform, method and device, storage medium and electronic equipment

Also Published As

Publication number Publication date
CN108984221B (en) 2021-07-20

Similar Documents

Publication Publication Date Title
CN108255847B (en) Page generation method and device
CN105320572A (en) Browser abnormity processing method, device and system
CN109766082A (en) The method and apparatus that the application program page jumps
CN106469196A (en) Data processing method and its device, method of insuring and its system of insuring
US20210255914A1 (en) Proactive learning of network software problems
CN109981322A (en) The method and apparatus of cloud resource management based on label
CN109829765A (en) Method, system and device based on Flink and Kafka real time monitoring sales data
CN109446274A (en) The method and apparatus of big data platform BI metadata management
CN110020329A (en) For generating the methods, devices and systems of webpage
CN113297288A (en) User real-time label generation method and device and electronic equipment
CN109002282A (en) A kind of method and apparatus for realizing animation effect in web page exploitation
CN109389182A (en) Method and apparatus for generating information
CN106503111A (en) Webpage code-transferring method, device and client terminal
CN109840192A (en) The method and apparatus of automatic test
CN108804445A (en) Heating power drawing generating method and device
CN109002385A (en) Method for testing pressure and device for data flow system
CN110263279B (en) Page generation method and device, electronic equipment and computer readable storage medium
CN108984221A (en) A kind of acquisition method and device of multi-platform User action log
CN109814957A (en) A kind of label addition method and device for IOS system
CN112926008B (en) Method, device, electronic equipment and storage medium for generating form page
CN108845864A (en) A kind of JVM rubbish recovering method and device based on spring frame
CN116911572A (en) Page automation assembly method, system, computer equipment and storage medium
CN109901934A (en) The method and apparatus for generating interface help document
CN113792039B (en) Data processing method and device, electronic equipment and storage medium
CN109634866A (en) Data test method, apparatus, medium and electronic equipment

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