CN106886397A - Information collecting method, gateway device and server - Google Patents

Information collecting method, gateway device and server Download PDF

Info

Publication number
CN106886397A
CN106886397A CN201510946564.9A CN201510946564A CN106886397A CN 106886397 A CN106886397 A CN 106886397A CN 201510946564 A CN201510946564 A CN 201510946564A CN 106886397 A CN106886397 A CN 106886397A
Authority
CN
China
Prior art keywords
terminal
request
gateway device
accessing page
server
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201510946564.9A
Other languages
Chinese (zh)
Inventor
牛学虎
吴丽梅
宋杰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CN201510946564.9A priority Critical patent/CN106886397A/en
Priority to PCT/CN2016/096403 priority patent/WO2017101494A1/en
Publication of CN106886397A publication Critical patent/CN106886397A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/40Network security protocols
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/76Adapting program code to run in a different environment; Porting
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses a kind of information collecting method, including:Gateway device returns to default parametric statistics script to the terminal when the accessing page request of terminal transmission is received, wherein, the parametric statistics script is used to gather the parameter information of the terminal;The gateway device receives the parameter information of the terminal to report.The invention also discloses a kind of gateway device and server.The present invention therefore ensure that the parameter information of acquisition is more accurate due to the parameter information by the way that default parametric statistics script run simultaneously direct access terminal in terminal;As long as further, since receiving the accessing page request of terminal transmission, it is possible to gather the parameter information of the terminal, therefore the terminal user of collection is more comprehensive.

Description

Information collecting method, gateway device and server
Technical field
The present invention relates to communication technical field, more particularly to a kind of information collecting method, gateway device and clothes Business device.
Background technology
With the development of Internet technology, user is each by what is provided in various types of terminal access networks Service is planted, the application installed on user terminal also emerges in an endless stream.In order to improve Consumer's Experience, various applications It is required for carrying out corresponding adapting operation to user terminal, was so accomplished by before development and application to various The corresponding various parameters of user terminal of type are acquired, and according to the parameter development application of collection, The application after exploitation and various types of terminal adaptations can be enabled.
The existing acquisition method to end message substantially has two kinds:
First method is, when the access request of user terminal is received, to record carrying in the access request User-agent headers, the various of the corresponding user terminal of user-agent headers are then searched again Parameter information.Because the user-agent headers that user terminal is reported can be forged, especially some mountain vallage hands Machine often reports the user-agent headers of mistake, thus results in user-agent headers and is inaccurate, The parameter information in turn resulting in the user terminal searched according to user-agent headers is also inaccurate.Additionally, Due to the parameter information of corresponding user terminal must be searched according to user-agent headers, therefore it is System must prestore the contrast relationship of user-agent headers and user terminal parameter information, if what is prestored is right It is not comprehensive according to relation, it will to cause that parameter information corresponding with user-agent headers cannot be found;
Second method is the integrated related plug-in unit in other application, carries out the collection of terminal parameter information, The integrated relevant information statistical tool for example in the SDK kits of development and application, the parameter that then will be gathered In information user's application to be developed.The defect of the method is that must gather user's end by means of other application The parameter information at end, and user must install this application, therefore with certain limitation, cause to adopt The parameter information of the user terminal of collection is not comprehensive enough.
The content of the invention
It is a primary object of the present invention to provide a kind of information collecting method, gateway device and server, purport The technical problem of the parameter information of user terminal must not accurately and be comprehensively collected in solution.
The information collecting method that the present invention is provided is comprised the following steps:
Gateway device returns to default parametric statistics pin when the accessing page request of terminal transmission is received Originally to the terminal, wherein, the parametric statistics script is used to gather the parameter information of the terminal;
The gateway device receives the parameter information of the terminal to report.
Preferably, the gateway device is returned default when the accessing page request of terminal transmission is received Parametric statistics script to the terminal the step of include:
Gateway device is when the accessing page request of terminal transmission is received, it is determined whether between Preset Time The accessing page request was received every interior;
When the gateway device determines not receiving the accessing page request within a preset time interval, return Concurrent request is returned to instruct to the terminal, so that the terminal is when the concurrent request instruction is received, Send the accessing page request again within a preset time interval, and send the statistics pin that gets parms simultaneously This request;
The gateway device receive it is described get parms statistics script request when, return to default parameter Count script to the terminal;
When the gateway device determines to receive the accessing page request within a preset time interval, access The corresponding address of the accessing page request.
Preferably, when the gateway device determines not repeating to receive the accessing page request, return concurrent The step of request instruction to terminal, includes:
The gateway device when it is determined that not repeating to receive the accessing page request, by the page access Request is redirected to server, so that the server returns to concurrent request instruction;
The concurrent request is instructed and forwarded by the gateway device when the concurrent request instruction is received To the terminal.
Preferably, the gateway device, will be described when it is determined that not repeating to receive the accessing page request The step of accessing page request is redirected to server includes:
The gateway device is not when it is determined that repeat to receive the accessing page request, it is determined whether it is right to need The accessing page request is redirected;
When it is determined that needs are redirected to the accessing page request, the accessing page request is redirected To server.
Preferably, the gateway device receive it is described get parms statistics script request when, return pre- If parametric statistics script to the terminal the step of include:
The gateway device receive it is described get parms statistics script request when, got parms described Statistics script request is forwarded to server, so that the server returns to default parametric statistics script;
The gateway device when the default parametric statistics script is received, by the default parameter Statistics script is forwarded to the terminal.
Additionally, the present invention further provides information collecting method comprise the following steps:
Server receive gateway device transmission get parms statistics script request when, by the ginseng for prestoring Number statistics script is sent to the gateway device, wherein, the gateway device is receiving terminal transmission It is described get parms statistics script request when, to the server send obtain statistics script request;
Server receives the parameter information of the terminal to report, wherein, the terminal is united by the parameter Meter script gathers the parameter information of the terminal.
Preferably, the server receive gateway device transmission get parms statistics script request when, The parametric statistics script for prestoring is sent to before the step of the gateway device, described information acquisition method Also include:
Server returns to concurrent request instruction when the accessing page request of gateway device redirection is received To the gateway device, wherein, the gateway device when the accessing page request of terminal transmission is received, The accessing page request is redirected to the server, and the gateway device is by the concurrent request Instruction is forwarded to the terminal.
Additionally, the gateway device that the present invention is provided includes:
First returns to module, for when the accessing page request of terminal transmission is received, returning default Parametric statistics script to the terminal, wherein, the parametric statistics script is used to gather the ginseng of the terminal Number information;
First receiver module, the parameter information for receiving the terminal to report.
Preferably, the first return module includes:
Determination sub-module, for when the accessing page request of terminal transmission is received, it is determined whether pre- If receiving the accessing page request in time interval;It is additionally operable to it is determined that not connecing within a preset time interval When receiving the accessing page request, return to concurrent request and instruct to the terminal, so that the terminal is connecing When receiving the concurrent request instruction, the accessing page request is sent again within a preset time interval, And the statistics script request that gets parms is sent simultaneously;It is additionally operable to it is determined that receiving within a preset time interval During the accessing page request, the corresponding address of the accessing page request is accessed;
Return to submodule, for receive it is described get parms statistics script request when, return default Parametric statistics script is to the terminal.
Preferably, the determination sub-module includes:
Unit is redirected, for when it is determined that not repeating to receive the accessing page request, by the page Access request is redirected to server, so that the server returns to concurrent request instruction;
First retransmission unit, for when the concurrent request instruction is received, the concurrent request being referred to Order is forwarded to the terminal.
Preferably, the redirection unit includes:
Determination subelement, for when it is determined that not repeating to receive the accessing page request, according to default Strategy is redirected to determine the need for redirecting the accessing page request;
Subelement is redirected, for when it is determined that needs are redirected to the accessing page request, by described in Accessing page request is redirected to server.
Preferably, the return submodule includes:
Second retransmission unit, for receive it is described get parms statistics script request when, obtained described Take parametric statistics script request and be forwarded to server, so that the server returns to default parametric statistics pin This;
3rd retransmission unit, for when the default parametric statistics script is received, described will preset Parametric statistics script be forwarded to the terminal.
Additionally, the present invention further provides server include:
Sending module, for receive gateway device transmission get parms statistics script request when, will The parametric statistics script for prestoring is sent to the gateway device, wherein, the gateway device is receiving end End send it is described get parms statistics script request when, sent to the server obtain statistics script please Ask;
Second receiver module, the parameter information for receiving the terminal to report, wherein, the terminal is led to Cross the parameter information that the parametric statistics script gathers the terminal.
Preferably, the server also includes:
Second returns to module, for when the accessing page request of gateway device redirection is received, returning Concurrent request is instructed to the gateway device, wherein, the gateway device is receiving the page of terminal transmission During the access request of face, the accessing page request is redirected to the server, and the gateway device Concurrent request instruction is forwarded to the terminal.
Information collecting method, gateway device and server that the present invention is provided, are being received by gateway device During the accessing page request sent to terminal, default parametric statistics script is returned to the terminal, wherein, The parametric statistics script is used to gather the parameter information of the terminal;The gateway device receives the end The parameter information that end reports, so as to complete the collection to terminal parameter information.Due to by that will preset Parametric statistics script run in terminal and direct access terminal parameter information, therefore ensure that acquisition Parameter information it is more accurate;As long as further, since receive terminal transmission accessing page request, just The parameter information of the terminal can be gathered, therefore the terminal user of collection is more comprehensive.
Brief description of the drawings
Fig. 1 is the schematic flow sheet of information collecting method first embodiment of the present invention;
Fig. 2 is the high-level schematic functional block diagram of gateway device first embodiment of the present invention;
Fig. 3 is that the refinement functional module of the first return module in gateway device second embodiment of the present invention is illustrated Figure;
Fig. 4 is the schematic flow sheet of information collecting method 3rd embodiment of the present invention;
Fig. 5 is the schematic flow sheet of information collecting method fourth embodiment of the present invention;
Fig. 6 is the high-level schematic functional block diagram of server first embodiment of the present invention;
Fig. 7 is the high-level schematic functional block diagram of server second embodiment of the present invention.
The realization of the object of the invention, functional characteristics and advantage will be done further referring to the drawings in conjunction with the embodiments Explanation.
Specific embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, limit is not used to The fixed present invention.
The present invention provides a kind of information collecting method, and the information collecting method can be based on user terminal and net Pass equipment is realized, is also based on user terminal, gateway device and server and realizes.Gateway device can Think WAP gateway equipment.User terminal can be mobile phone, PAD, computer or other-end equipment. Server can be the server of operator, or be that the user with information gathering demand is specially set Server.
Reference picture 1, Fig. 1 is the schematic flow sheet of information collecting method first embodiment of the present invention, this implementation The information collecting method that example is provided can be applied in gateway device, and described information acquisition method includes following step Suddenly:
Step S10, gateway device returns to default ginseng when the accessing page request of terminal transmission is received Number counts script to the terminal, wherein, the parametric statistics script is used to gather the parameter of the terminal Information.
In the present embodiment, the terminal runs the parameter system when the parametric statistics script is received Meter script, the parameter information of the terminal is gathered by the parametric statistics script, and reports the parameter Information.
In the present embodiment, terminal can (such as QQ, wechat, weather be pre- based on the application program of its installation Report software, news software or) or be directly based upon browser send accessing page request.
Gateway device can prestore parametric statistics script, or can also be got parms statistics to server Script.
Parametric statistics script can be a shell script, such as shell script based on JavaScript.In order to Shorten the time of information gathering, shell script can only be included and collect associated statistical information script truly The method of location, the method for the true destination address of re-request user and request statistical information script of mourning in silence. Additionally, realized using JavaScript program, by the use of the browser in terminal as performing environment, both Eliminate and the cumbersome of application is installed, also solving various applications needs to obtain the application of System Privileges, while There is good compatibility to various operating systems.
Terminal automatic will be based on browser execution parameter system when parametric statistics script is received on backstage Meter script, you can with the parametric statistics script of the automatic running in the case of user's unaware, and gather end The parameter information at end.
Step S20, the gateway device receives the parameter information of the terminal to report.
After the completion of terminal collection above-mentioned parameter information, above-mentioned parameter information will be reported automatically.Terminal can be with Parameter information is reported into gateway device, it is also possible to report to predetermined server via gateway device.
The information collecting method that the present invention is provided, the page visit that terminal sends is being received by gateway device When asking request, default parametric statistics script is returned to the terminal, wherein, the terminal is being received During the parametric statistics script, the parametric statistics script is run, adopted with by the parametric statistics script Collect the parameter information of the terminal, and report the parameter information, the gateway device receives the terminal The parameter information for reporting, so as to complete the collection to terminal parameter information.Due to by will be default Parametric statistics script runs the parameter information of simultaneously direct access terminal in terminal, therefore ensure that acquisition Parameter information is more accurate;As long as further, since receiving the accessing page request of terminal transmission, so that it may To gather the parameter information of the terminal, therefore the terminal user of collection is more comprehensive.
Further, the first embodiment based on information collecting method of the present invention, the invention allows for letter The second embodiment of acquisition method is ceased, step S10 includes:
Gateway device is when the accessing page request of terminal transmission is received, it is determined whether between Preset Time The accessing page request was received every interior;
When the gateway device determines not receiving the accessing page request within a preset time interval, return Concurrent request is returned to instruct to the terminal, so that the terminal is when the concurrent request instruction is received, Send the accessing page request again within a preset time interval, and send the statistics pin that gets parms simultaneously This request;
The gateway device receive it is described get parms statistics script request when, return to default parameter Count script to the terminal;
When the gateway device determines to receive the accessing page request within a preset time interval, access The corresponding address of the accessing page request.
In the present embodiment, concurrent request can be returned to using following two modes to instruct:
Mode one, gateway device generation concurrent request instruction, and the concurrent request instruction of generation is sent to Terminal.Preferably, control strategy can be pre-set in gateway device, the control strategy can be included extremely Few one default network address, accessing page request it is corresponding to access network address be default network address when, then gateway device Concurrent request is returned to instruct to terminal;When the corresponding access network address of accessing page request is for default network address, Then gateway device normal will access corresponding network address according to accessing page request.
Mode two, the gateway device, will be described when it is determined that not repeating to receive the accessing page request Accessing page request is redirected to server, so that the server returns to concurrent request instruction;The net Concurrent request instruction is forwarded to the terminal by pass equipment when the concurrent request instruction is received.
In the present embodiment, it is possible to use the redirection function of gateway device itself, it is not necessary to change gateway The framework of equipment, it is more cost-effective.
Gateway device can be redirected to server to all accessing page requests that terminal sends, and so may be used It is more comprehensive with the user terminal for the parameter information for obtaining is covered.
Optionally, in order to improve the efficiency of system, gateway device can also be only to partial page access request Redirect.For example, gateway device can configure redirection strategy, the redirection strategy can be preset Have at least one default network address, accessing page request it is corresponding to access network address be default network address when, then gateway The accessing page request is redirected to server by equipment;In the corresponding access network address of accessing page request When not for default network address, then gateway device normal will access corresponding network address according to accessing page request.On Stating default network address can select rate of people logging in network address higher, such as search engine homepage, door homepage etc., The range of terminal when carrying out parametric statistics so as to meet so that the end that the parameter information of acquisition is covered End is more comprehensive.
Specifically, the gateway device, will be described when it is determined that not repeating to receive the accessing page request Accessing page request is redirected to server, is wrapped so that the server is returned the step of concurrent request is instructed Include:The gateway device resets when it is determined that not repeating to receive the accessing page request according to default Determine the need for redirecting the accessing page request to strategy;It is determined that needing to visit the page When asking that request is redirected, the accessing page request is redirected to server.
Specifically, the data processing platform (DPP) of gateway device receive terminal transmission accessing page request when, The information package of user's this visit is then sent to the strategic control module of gateway device, inquiry is redirected Strategy.Strategic control module inquires about the redirection request from data processing platform (DPP), and is accessed according to user Information and default redirection strategy, it is determined whether redirect, and result is returned into data Processing platform.Data processing platform (DPP) is then obtained when it is determined that result is to need to redirect to server Concurrent request is instructed, and the concurrent request instruction of acquisition is returned into terminal.
In the present embodiment, gateway device to terminal return concurrent request instruct, terminal receive concurrently please When asking instruction, two requests will be sent to gateway device simultaneously, one of request is accessing page request, Gateway device will access the page and visit when the accessing page request that the terminal sends again is received Ask request corresponding address;And gateway device receive it is described get parms statistics script request when, return Return default parametric statistics script to the terminal.Therefore, will not be due to the statistics that gets parms in end side Script and influence the speed of page access, i.e. normal accession page can be realized in end side, end side The parametric statistics script of gateway device return can be received in the case of user's unaware, and completes parameter Collection, the experience of user is more preferable.
In the present embodiment, script can be counted using following two mode return parameters:
Mode one, gateway device can prestore parametric statistics script, and receive the statistics that gets parms During script request, the parametric statistics script that return prestores to the terminal.
Mode two, gateway device can receive get parms statistics script request when, obtained to server Parametric statistics script is taken, optionally, step S12 includes:
The gateway device receive it is described get parms statistics script request when, got parms described Statistics script request is forwarded to server, so that the server returns to default parametric statistics script;
The gateway device when the default parametric statistics script is received, by the default parameter Statistics script is forwarded to the terminal.
In the manner, it is not necessary to change the framework of gateway device, gateway device only needs to be obtained to server Take parametric statistics script, it is only necessary to real by increasing corresponding program on the former framework of gateway device It is existing, it is more cost-effective.
The information collecting method that the present embodiment is provided has further the advantage that:The information collecting method can be answered For operator, operator can be according to the statistical analysis situation of user terminal, and customer position information phase With reference to come obtain user behavior analysis report, it is to grasp hobby of the different regions user to terminal and then right The marketing activity of operator is adjusted, so as to reach the value-added purpose of business.
The present invention further provides a kind of gateway device.
Reference picture 2, Fig. 2 is the high-level schematic functional block diagram of gateway device first embodiment of the present invention, the present invention The gateway device of offer includes:
First returns to module 10, for when the accessing page request of terminal transmission is received, returning default Parametric statistics script to the terminal, wherein, the parametric statistics script be used for gather the terminal Parameter information.
In the present embodiment, the terminal runs the parameter system when the parametric statistics script is received Meter script, the parameter information of the terminal is gathered by the parametric statistics script, and reports the parameter Information.
In the present embodiment, terminal can (such as QQ, wechat, weather be pre- based on the application program of its installation Report software, news software or) or be directly based upon browser send accessing page request.
Gateway device can prestore parametric statistics script, or can also be got parms statistics to server Script.
Parametric statistics script can be a shell script, such as shell script based on JavaScript.In order to Shorten the time of information gathering, shell script can only be included and collect associated statistical information script truly The method of location, the method for the true destination address of re-request user and request statistical information script of mourning in silence. Additionally, realized using JavaScript program, by the use of the browser in terminal as performing environment, both Eliminate and the cumbersome of application is installed, also solving various applications needs to obtain the application of System Privileges, while There is good compatibility to various operating systems.
Terminal automatic will be based on browser execution parameter system when parametric statistics script is received on backstage Meter script, you can with the parametric statistics script of the automatic running in the case of user's unaware, and gather end The parameter information at end.
In the present embodiment, terminal can (such as QQ, wechat, weather be pre- based on the application program of its installation Report software, news software or) or be directly based upon browser send accessing page request.
Gateway device can prestore parametric statistics script, or can also be got parms statistics to server Script.
Parametric statistics script can be a shell script, such as shell script based on JavaScript.In order to Shorten the time of information gathering, shell script can only be included and collect associated statistical information script truly The method of location, the method for the true destination address of re-request user and request statistical information script of mourning in silence. Additionally, realized using JavaScript program, by the use of the browser in terminal as performing environment, both Eliminate and the cumbersome of application is installed, also solving various applications needs to obtain the application of System Privileges, while There is good compatibility to various operating systems.
Terminal automatic will be based on browser execution parameter system when parametric statistics script is received on backstage Meter script, you can with the parametric statistics script of the automatic running in the case of user's unaware, and gather end The parameter information at end.
First receiver module 20, the parameter information for receiving the terminal to report.
After the completion of terminal collection above-mentioned parameter information, above-mentioned parameter information will be reported automatically.Terminal can be with Parameter information is reported into gateway device, it is also possible to report to predetermined server via gateway device.
The gateway device that the present invention is provided, by when the accessing page request that terminal sends is received, returning Default parametric statistics script is returned to the terminal, wherein, the terminal is receiving the parametric statistics During script, the parametric statistics script is run, the terminal is gathered with by the parametric statistics script Parameter information, and the parameter information is reported, the gateway device receives the ginseng of the terminal to report Number information, so as to complete the collection to terminal parameter information.Due to by by default parametric statistics script The parameter information of operation and direct access terminal in terminal, therefore ensure that the parameter information of acquisition compares Accurately;As long as further, since receiving the accessing page request of terminal transmission, it is possible to gather the terminal Parameter information, therefore collection terminal user it is more comprehensive.
Further, the first embodiment based on gateway device of the present invention, sets the invention allows for gateway Standby second embodiment, reference picture 3, Fig. 3 is the first return mould in gateway device second embodiment of the present invention The refinement high-level schematic functional block diagram of block, the first return module 10 includes:
Determination sub-module 11, during for the accessing page request for receiving terminal transmission, it is determined whether pre- If receiving the accessing page request in time interval;It is additionally operable to it is determined that not connecing within a preset time interval When receiving the accessing page request, return to concurrent request and instruct to the terminal, so that the terminal is connecing When receiving the concurrent request instruction, the accessing page request is sent again within a preset time interval, And the statistics script request that gets parms is sent simultaneously;It is additionally operable to it is determined that receiving within a preset time interval During the accessing page request, the corresponding address of the accessing page request is accessed;
In the present embodiment, determination sub-module 11 can return to concurrent request and instruct using following two modes:
Mode one, the generation concurrent request instruction of determination sub-module 11, and the concurrent request that will be generated instructs hair Give terminal.Preferably, control strategy can be pre-set in gateway device, the control strategy can be wrapped At least one default network address is included, is when presetting network address in the corresponding network address that accesses of accessing page request, it is determined that Submodule 11 returns to concurrent request and instructs to terminal;It is not pre- in the corresponding network address that accesses of accessing page request If during network address, then gateway device normal will access corresponding network address according to accessing page request.
Mode two, the determination sub-module 11 includes:
Unit is redirected, for when it is determined that not repeating to receive the accessing page request, by the page Access request is redirected to server, so that the server returns to concurrent request instruction;
First retransmission unit, for when the concurrent request instruction is received, the concurrent request being referred to Order is forwarded to the terminal.
In the present embodiment, it is possible to use the redirection function of gateway device itself, it is not necessary to change gateway The framework of equipment, it is more cost-effective.
Redirecting unit can be redirected to server to all accessing page requests that terminal sends, so Can cause that the user terminal that the parameter information for obtaining is covered is more comprehensive.
Optionally, in order to improve the efficiency of system, redirecting that unit can also be accessed only partial page please Ask and redirect.For example, gateway device can configure redirection strategy, the redirection strategy can be pre- At least one default network address is provided with, is when presetting network address, then to weigh in the corresponding network address that accesses of accessing page request The accessing page request is redirected to server by directed element;In the corresponding access of accessing page request When network address is not for default network address, then gateway device normal will access corresponding network address according to accessing page request. Above-mentioned default network address can select rate of people logging in network address higher, such as search engine homepage, door homepage etc., The range of terminal when carrying out parametric statistics so as to meet so that the end that the parameter information of acquisition is covered End is more comprehensive.
Specifically, the redirection unit includes:
Determination subelement, for when it is determined that not repeating to receive the accessing page request, according to default Strategy is redirected to determine the need for redirecting the accessing page request;
Subelement is redirected, for when it is determined that needs are redirected to the accessing page request, by described in Accessing page request is redirected to server.
In the present embodiment, the data processing platform (DPP) of gateway device please in the page access for receiving terminal transmission When asking, then the information package of user's this visit is sent to the strategic control module of gateway device, inquired about Redirect strategy.Strategic control module inquire about from data processing platform (DPP) redirection request, and according to Family access information and default redirection strategy, it is determined whether redirect, and result is returned To data processing platform (DPP).Data processing platform (DPP) it is determined that result for need redirect when, then to service Device obtains concurrent request instruction, and the concurrent request instruction of acquisition is returned into terminal.
Return to submodule 12, for receive it is described get parms statistics script request when, return default Parametric statistics script to the terminal.
In the present embodiment, gateway device to terminal return concurrent request instruct, terminal receive concurrently please When asking instruction, two requests will be sent to gateway device simultaneously, one of request is accessing page request, Gateway device will access the page and visit when the accessing page request that the terminal sends again is received Ask request corresponding address;And gateway device receive it is described get parms statistics script request when, return Return default parametric statistics script to the terminal.Therefore, will not be due to the statistics that gets parms in end side Script and influence the speed of page access, i.e. normal accession page can be realized in end side, end side The parametric statistics script of gateway device return can be received in the case of user's unaware, and completes parameter Collection, the experience of user is more preferable.
In the present embodiment, returning to submodule 12 can count script using following two mode return parameters:
Mode one, gateway device can prestore parametric statistics script, and receive the statistics that gets parms During script request, the parametric statistics script that the return return of submodule 12 prestores to the terminal.
Mode two, gateway device can receive get parms statistics script request when, obtained to server Parametric statistics script is taken, optionally, the return submodule 12 includes:
Second retransmission unit, for receive it is described get parms statistics script request when, obtained described Take parametric statistics script request and be forwarded to server, so that the server returns to default parametric statistics pin This;
3rd retransmission unit, for when the default parametric statistics script is received, described will preset Parametric statistics script be forwarded to the terminal.
In the manner, it is not necessary to change the framework of gateway device, gateway device only needs to be obtained to server Take parametric statistics script, it is only necessary to real by increasing corresponding program on the former framework of gateway device It is existing, it is more cost-effective.
The gateway device that the present embodiment is provided has further the advantage that:The gateway device can apply to operation Business, operator can be combined to obtain according to the statistical analysis situation of user terminal, and customer position information User behavior analysis report is taken, to grasp hobby of the different regions user to terminal, and then to operator Marketing activity is adjusted, so as to reach the value-added purpose of business.
The present invention further provides a kind of information collecting method, server is applied to.
Reference picture 4, Fig. 4 is the schematic flow sheet of information collecting method 3rd embodiment of the present invention, the present invention The information collecting method of offer is comprised the following steps:
Step S30, server receive gateway device transmission get parms statistics script request when, will The parametric statistics script for prestoring is sent to the gateway device, wherein, the gateway device is receiving end End send it is described get parms statistics script request when, sent to the server obtain statistics script please Ask;
Optionally, the gateway device is returned concurrent when the accessing page request of terminal transmission is received Request instruction is to the terminal;The terminal sends institute again when the concurrent request instruction is received Accessing page request is stated, and sends the statistics script request to the gateway device that gets parms simultaneously;It is described The parametric statistics script for prestoring also is forwarded to the terminal by gateway device;
In the present embodiment, server prestores parametric statistics script, the specific reality of the parametric statistics script The mode of applying can be will not be repeated here with parameter above-described embodiment.
In the present embodiment, the interaction between terminal and gateway device can refer to above-described embodiment Description, will not be repeated here.
Step S40, server receives the parameter information of the terminal to report, wherein, the terminal passes through institute State the parameter information that parametric statistics script gathers the terminal.
In the present embodiment, the terminal runs the parameter when the parametric statistics script is received Statistics script, to gather the parameter information of the terminal by the parametric statistics script.
In the present embodiment, end side receives the configuration processor and related introduction after parametric statistics script The description of above-described embodiment is can refer to, be will not be repeated here.
In due to the present embodiment, script is counted by server return parameters, therefore gateway need not be changed The framework of equipment, it is more cost-effective.
The information collecting method that the present invention is provided, the acquisition that gateway device is forwarded is being received by server During parametric statistics script request, the parametric statistics script for prestoring is sent to the gateway device, wherein, The gateway device returns to concurrent request and instructs to institute when the accessing page request of terminal transmission is received State terminal;, when the concurrent request instruction is received, the page access is sent again please for the terminal Ask, and send the statistics script request to the gateway device that gets parms simultaneously;The gateway device will also The parametric statistics script for prestoring is forwarded to the terminal;Server receives the parameter of the terminal to report Information, wherein, the terminal runs the parametric statistics pin when the parametric statistics script is received This, to gather the parameter information of the terminal by the parametric statistics script, so that complete paired terminal is joined The collection of number information.Due to being run in terminal and direct access end by by default parametric statistics script The parameter information at end, therefore ensure that the parameter information of acquisition is more accurate;As long as further, since gateway Equipment receives the accessing page request of terminal transmission, and server can just gather the parameter information of the terminal, Therefore the terminal user of collection is more comprehensive.
Further, the 3rd embodiment based on described information acquisition method, the invention allows for information The fourth embodiment of acquisition method, reference picture 5, Fig. 5 is information collecting method fourth embodiment of the present invention Schematic flow sheet, before step S30, described information acquisition method also includes:
Step S50, server is returned concurrent when the accessing page request of gateway device redirection is received Request instruction is to the gateway device;
Wherein, the gateway device receive terminal transmission accessing page request when, by the page Access request is redirected to the server, and be forwarded to for concurrent request instruction by the gateway device The terminal.
In the present embodiment, the process that gateway device is redirected, and gateway device, terminal and server Between interaction be referred to above-described embodiment, will not be repeated here.
In due to the present embodiment, concurrent request is sent by server and is instructed, therefore can set using gateway The standby redirection function of itself, it is not necessary to change the framework of gateway device, it is more cost-effective.
Optionally, server can first carry out duplicate checking treatment after parameter information is received, that is, search and work as Before terminal type corresponding to the parameter information that receives it is whether corresponding with currently stored parameter information Terminal type it is consistent, when consistent, then the parameter information that will be currently received is abandoned, when inconsistent, The parameter information being then currently received is preserved.
Optionally, because server can be multiple, therefore one can also be set for parameter information Database.After each server receives the parameter information of terminal to report, parameter letter can will be received Breath is sent into database, and above-mentioned duplicate checking treatment is carried out by database.
The present invention further provides a kind of server.
Reference picture 6, Fig. 6 is the high-level schematic functional block diagram of server first embodiment of the present invention, and the present invention is carried The server of confession includes:
Sending module 30, for receive gateway device transmission get parms statistics script request when, The parametric statistics script for prestoring is sent to the gateway device, wherein, the gateway device is being received Terminal send it is described get parms statistics script request when, sent to the server and obtain statistics script Request;
Optionally, the gateway device is returned concurrent when the accessing page request of terminal transmission is received Request instruction is to the terminal;The terminal sends institute again when the concurrent request instruction is received Accessing page request is stated, and sends the statistics script request to the gateway device that gets parms simultaneously;It is described The parametric statistics script for prestoring also is forwarded to the terminal by gateway device;
In the present embodiment, server prestores parametric statistics script, the specific reality of the parametric statistics script The mode of applying can be will not be repeated here with parameter above-described embodiment.
In the present embodiment, the interaction between terminal and gateway device can refer to above-described embodiment Description, will not be repeated here.
Second receiver module 40, the parameter information for receiving the terminal to report, wherein, the terminal The parameter information of the terminal is gathered by the parametric statistics script.
In the present embodiment, the terminal runs the parameter when the parametric statistics script is received Statistics script, to gather the parameter information of the terminal by the parametric statistics script.
In the present embodiment, end side receives the configuration processor and related introduction after parametric statistics script The description of above-described embodiment is can refer to, be will not be repeated here.
In due to the present embodiment, script is counted by server return parameters, therefore gateway need not be changed The framework of equipment, it is more cost-effective.
The server that the present invention is provided, by receiving the statistics script that gets parms that gateway device is forwarded During request, the parametric statistics script for prestoring is sent to the gateway device, wherein, the gateway device When the accessing page request of terminal transmission is received, return to concurrent request and instruct to the terminal;It is described Terminal sends the accessing page request, and send out simultaneously again when the concurrent request instruction is received Send the statistics script request to the gateway device that gets parms;The gateway device is also by the ginseng for prestoring Number statistics script is forwarded to the terminal;Server receives the parameter information of the terminal to report, wherein, The terminal runs the parametric statistics script, with by institute when the parametric statistics script is received The parameter information that parametric statistics script gathers the terminal is stated, so as to complete the collection to terminal parameter information. Due to the parameter information by the way that default parametric statistics script to be run simultaneously direct access terminal in terminal, Therefore ensure that the parameter information of acquisition is more accurate;As long as further, since gateway device receives terminal The accessing page request of transmission, server can just gather the parameter information of the terminal, therefore the end for gathering End subscriber is more comprehensive.
Further, the first embodiment based on server of the present invention, the invention allows for server Second embodiment, reference picture 7, Fig. 7 is the high-level schematic functional block diagram of server second embodiment of the present invention, The server also includes:
Second returns to module 50, for when the accessing page request of gateway device redirection is received, returning Concurrent request is returned to instruct to the gateway device, wherein, the gateway device is receiving terminal transmission During accessing page request, the accessing page request is redirected to the server, and the gateway sets It is standby that concurrent request instruction is forwarded to the terminal.
In the present embodiment, the process that gateway device is redirected, and gateway device, terminal and server Between interaction be referred to above-described embodiment, will not be repeated here.
In due to the present embodiment, concurrent request is sent by server and is instructed, therefore can set using gateway The standby redirection function of itself, it is not necessary to change the framework of gateway device, it is more cost-effective.
Optionally, server can first carry out duplicate checking treatment after parameter information is received, that is, search and work as Before terminal type corresponding to the parameter information that receives it is whether corresponding with currently stored parameter information Terminal type it is consistent, when consistent, then the parameter information that will be currently received is abandoned, when inconsistent, The parameter information being then currently received is preserved.
Optionally, because server can be multiple, therefore one can also be set for parameter information Database.After each server receives the parameter information of terminal to report, parameter letter can will be received Breath is sent into database, and above-mentioned duplicate checking treatment is carried out by database.
It should be noted that herein, term " including ", "comprising" or its any other variant Be intended to including for nonexcludability so that process, method, article including a series of key elements or Person's device not only includes those key elements, but also other key elements including being not expressly set out, or also Including being this process, method, article or the intrinsic key element of device.In the feelings without more limitations Under condition, the key element limited by sentence "including a ...", it is not excluded that the process including the key element, Also there is other identical element in method, article or device.
The embodiments of the present invention are for illustration only, and the quality of embodiment is not represented.
Through the above description of the embodiments, those skilled in the art can be understood that above-mentioned Embodiment method can add the mode of required general hardware platform to realize by software, naturally it is also possible to logical Cross hardware, but the former is more preferably implementation method in many cases.It is of the invention based on such understanding The part that technical scheme substantially contributes to prior art in other words can in the form of software product body Reveal and, the computer software product is stored in storage medium (such as ROM/RAM, magnetic disc, a light Disk) in, including some instructions are used to so that a station terminal equipment (can be mobile phone, computer, service Device, air-conditioner, or network equipment etc.) perform method described in each embodiment of the invention.
The preferred embodiments of the present invention are these are only, the scope of the claims of the invention is not thereby limited, it is every The equivalent structure or equivalent flow conversion made using description of the invention and accompanying drawing content, or directly or Connect and be used in other related technical fields, be included within the scope of the present invention.

Claims (14)

1. a kind of information collecting method, it is characterised in that described information acquisition method is comprised the following steps:
Gateway device returns to default parametric statistics pin when the accessing page request of terminal transmission is received Originally to the terminal, wherein, the parametric statistics script is used to gather the parameter information of the terminal;
The gateway device receives the parameter information of the terminal to report.
2. information collecting method as claimed in claim 1, it is characterised in that the gateway device is connecing When receiving the accessing page request of terminal transmission, the step of default parametric statistics script to the terminal is returned Suddenly include:
Gateway device is when the accessing page request of terminal transmission is received, it is determined whether between Preset Time The accessing page request was received every interior;
When the gateway device determines not receiving the accessing page request within a preset time interval, return Concurrent request is returned to instruct to the terminal, so that the terminal is when the concurrent request instruction is received, Send the accessing page request again within a preset time interval, and send the statistics pin that gets parms simultaneously This request;
The gateway device receive it is described get parms statistics script request when, return to default parameter Count script to the terminal;
When the gateway device determines to receive the accessing page request within a preset time interval, access The corresponding address of the accessing page request.
3. information collecting method as claimed in claim 2, it is characterised in that the gateway device determines When not repeating to receive the accessing page request, returning the step of concurrent request is instructed to the terminal includes:
The gateway device when it is determined that not repeating to receive the accessing page request, by the page access Request is redirected to server, so that the server returns to concurrent request instruction;
The concurrent request is instructed and forwarded by the gateway device when the concurrent request instruction is received To the terminal.
4. information collecting method as claimed in claim 3, it is characterised in that the gateway device is true When determining not repeating to receive the accessing page request, the accessing page request is redirected to server Step includes:
The gateway device is not when it is determined that repeat to receive the accessing page request, it is determined whether it is right to need The accessing page request is redirected;
When it is determined that needs are redirected to the accessing page request, the accessing page request is redirected To server.
5. the information collecting method as described in any one of claim 2 to 4, it is characterised in that the net Pass equipment receive it is described get parms statistics script request when, return to default parametric statistics script extremely The step of terminal, includes:
The gateway device receive it is described get parms statistics script request when, got parms described Statistics script request is forwarded to server, so that the server returns to default parametric statistics script;
The gateway device when the default parametric statistics script is received, by the default parameter Statistics script is forwarded to the terminal.
6. a kind of information collecting method, it is characterised in that described information acquisition method is comprised the following steps:
Server receive gateway device transmission get parms statistics script request when, by the ginseng for prestoring Number statistics script is sent to the gateway device, wherein, the gateway device is receiving terminal transmission It is described get parms statistics script request when, to the server send obtain statistics script request;
Server receives the parameter information of the terminal to report, wherein, the terminal is united by the parameter Meter script gathers the parameter information of the terminal.
7. information collecting method as claimed in claim 6, it is characterised in that the server is being received To gateway device send get parms statistics script request when, by the parametric statistics script for prestoring send to Before the step of gateway device, described information acquisition method also includes:
Server returns to concurrent request instruction when the accessing page request of gateway device redirection is received To the gateway device, wherein, the gateway device when the accessing page request of terminal transmission is received, The accessing page request is redirected to the server, and the gateway device is by the concurrent request Instruction is forwarded to the terminal.
8. a kind of gateway device, it is characterised in that the gateway device includes:
First returns to module, for when the accessing page request of terminal transmission is received, returning default Parametric statistics script to the terminal, wherein, the parametric statistics script is used to gather the ginseng of the terminal Number information;
First receiver module, the parameter information for receiving the terminal to report.
9. gateway device as claimed in claim 8, it is characterised in that the first return module includes:
Determination sub-module, for when the accessing page request of terminal transmission is received, it is determined whether pre- If receiving the accessing page request in time interval;It is additionally operable to it is determined that not connecing within a preset time interval When receiving the accessing page request, return to concurrent request and instruct to the terminal, so that the terminal is connecing When receiving the concurrent request instruction, the accessing page request is sent again within a preset time interval, And the statistics script request that gets parms is sent simultaneously;It is additionally operable to it is determined that receiving within a preset time interval During the accessing page request, the corresponding address of the accessing page request is accessed;
Return to submodule, for receive it is described get parms statistics script request when, return default Parametric statistics script is to the terminal.
10. gateway device as claimed in claim 9, it is characterised in that the determination sub-module includes:
Unit is redirected, for when it is determined that not repeating to receive the accessing page request, by the page Access request is redirected to server, so that the server returns to concurrent request instruction;
First retransmission unit, for when the concurrent request instruction is received, the concurrent request being referred to Order is forwarded to the terminal.
11. gateway devices as claimed in claim 10, it is characterised in that the redirection unit includes:
Determination subelement, for when it is determined that not repeating to receive the accessing page request, it is determined whether need The accessing page request is redirected;
Subelement is redirected, for when it is determined that needs are redirected to the accessing page request, by described in Accessing page request is redirected to server.
12. gateway device as described in any one of claim 9 to 11, it is characterised in that the return Submodule includes:
Second retransmission unit, for receive it is described get parms statistics script request when, obtained described Take parametric statistics script request and be forwarded to server, so that the server returns to default parametric statistics pin This;
3rd retransmission unit, for when the default parametric statistics script is received, described will preset Parametric statistics script be forwarded to the terminal.
13. a kind of servers, it is characterised in that the server includes:
Sending module, for receive gateway device transmission get parms statistics script request when, will The parametric statistics script for prestoring is sent to the gateway device, wherein, the gateway device is receiving end End send it is described get parms statistics script request when, sent to the server obtain statistics script please Ask;
Second receiver module, the parameter information for receiving the terminal to report, wherein, the terminal is led to Cross the parameter information that the parametric statistics script gathers the terminal.
14. servers as claimed in claim 13, it is characterised in that the server also includes:
Second returns to module, for when the accessing page request of gateway device redirection is received, returning Concurrent request is instructed to the gateway device, wherein, the gateway device is receiving the page of terminal transmission During the access request of face, the accessing page request is redirected to the server, and the gateway device Concurrent request instruction is forwarded to the terminal.
CN201510946564.9A 2015-12-16 2015-12-16 Information collecting method, gateway device and server Pending CN106886397A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201510946564.9A CN106886397A (en) 2015-12-16 2015-12-16 Information collecting method, gateway device and server
PCT/CN2016/096403 WO2017101494A1 (en) 2015-12-16 2016-08-23 Information collection method, gateway device and server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510946564.9A CN106886397A (en) 2015-12-16 2015-12-16 Information collecting method, gateway device and server

Publications (1)

Publication Number Publication Date
CN106886397A true CN106886397A (en) 2017-06-23

Family

ID=59055658

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510946564.9A Pending CN106886397A (en) 2015-12-16 2015-12-16 Information collecting method, gateway device and server

Country Status (2)

Country Link
CN (1) CN106886397A (en)
WO (1) WO2017101494A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107390992A (en) * 2017-07-21 2017-11-24 北京三快在线科技有限公司 Webpage manipulation exchange method, device and Website server

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108536469A (en) * 2018-05-28 2018-09-14 苏州德姆斯信息技术有限公司 Internet of Things data resolution system based on configuration script and analytic method

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9015226B2 (en) * 2011-01-06 2015-04-21 Oracle International Corporation Techniques for detecting new browser windows
CN103166917B (en) * 2011-12-12 2016-02-10 阿里巴巴集团控股有限公司 Network equipment personal identification method and system
CN103618639A (en) * 2013-11-15 2014-03-05 北京国双科技有限公司 Method, device and system for monitoring media data
CN104683124B (en) * 2013-11-26 2018-11-20 华为技术有限公司 Terminal type recognition methods and device
CN104636278A (en) * 2015-01-30 2015-05-20 北京京东尚科信息技术有限公司 Method and device for acquiring mobile terminal data

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107390992A (en) * 2017-07-21 2017-11-24 北京三快在线科技有限公司 Webpage manipulation exchange method, device and Website server

Also Published As

Publication number Publication date
WO2017101494A1 (en) 2017-06-22

Similar Documents

Publication Publication Date Title
US7702317B2 (en) System and method to query wireless network offerings
CN103348335B (en) Aggregate multiple function into single platform
EP3226477B1 (en) Content distribution network (cdn)-based website acceleration method and system
CN105264859B (en) For generating the method and apparatus known clearly to the customer experience of the application based on web
JP5873188B2 (en) Method, device and system for monitoring quality of internet access service of mobile terminal
CN105279087B (en) Apply method of testing and test system in test software
US8255491B1 (en) Determining a particular type of wireless device to be emulated
CN103257989B (en) Web page download time is analyzed
EP1993263A1 (en) Allocation system and method
WO2009070748A1 (en) System for collecting and analyzing data on application-level activity on a mobile data network
US10277475B2 (en) System and method for dynamically testing networked target systems
CN105610993B (en) A kind of domain name analytic method, apparatus and system
EP1314280A2 (en) System and method for measuring wireless device and network usage and performance metrics
EP2719153A1 (en) Model-based method for managing information derived from network traffic
WO2013039834A2 (en) A method for segmenting users of mobile internet
CN103167044A (en) Intelligent analysis method of domain name system (DNS) and poking measurement device and system
CN106911523A (en) The method and system that mobile interchange network users are positioned by LTE indulging in the internet
US10798185B2 (en) Systems and methods for automated session identifier propagation
CN103200231B (en) Policy control method and system
CN107943697A (en) Problem distribution method, device, system, server and computer-readable storage medium
CN106067879B (en) The detection method and device of information
US9806940B1 (en) Device metering
CN106886397A (en) Information collecting method, gateway device and server
CN103139004A (en) Method and system for simulating network bandwidth by using network rate-limiting tool
CN109428733A (en) A kind of method and device orienting charge on traffic

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20170623