CN103488719A - Method and device for counting behavior of website users - Google Patents

Method and device for counting behavior of website users Download PDF

Info

Publication number
CN103488719A
CN103488719A CN201310415904.6A CN201310415904A CN103488719A CN 103488719 A CN103488719 A CN 103488719A CN 201310415904 A CN201310415904 A CN 201310415904A CN 103488719 A CN103488719 A CN 103488719A
Authority
CN
China
Prior art keywords
request
website
user
mentioned
wap
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
CN201310415904.6A
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 CN201310415904.6A priority Critical patent/CN103488719A/en
Publication of CN103488719A publication Critical patent/CN103488719A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/958Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention provides a method and a device for counting behavior of website users. The method includes transmitting a first wap (wireless application protocol) website access request to a wap website; transmitting a second user behavior counting request to a counting server in a procedure for loading business contents. The first request is only used for requesting for the business contents. According to the technical scheme, the method and the device have the advantages that technical problems of low user access request speed and system resource utilization rate in the prior art are solved, an effect of improving the maintainability and the expandability of a system can be realized, the follow-up maintenance cost can be saved, and the business or counting data reconstruction efficiency can be improved.

Description

A kind of method of website user's behavioral statistics and device
Technical field
The present invention relates to the network statistics field, more particularly, is a kind of method and device of website user's behavioral statistics.
Background technology
At present for the user at WAP (wireless application protocol) (wireless application procotol, referred to as wap) generation and the collection of user behavior statistics on website, because the wap agreement is supported not javascript, when statistics, can't submit to user journal to generate request with the javascript script.Using more statistics way at present is that user access request is initiated mainly with the GET mode greatly, then in service end operation technique means, user access request URL is recorded, and generates access log; Subsequently access log is resolved to warehouse-in, generate statistical report form.This statistics way has two serious shortcomings:
(1) user's required parameter transmits in the get mode, and the statistics desired parameters also needs to be included in URL(uniform resource locator) (Uniform Rescource Locator, referred to as URL) in the get mode, transmit, cause the URL of each request all can be very long, easily exceed URL length restriction when get is asked under some complicated business scene.
(2) parameter of the required parameter of user's access websites page and website statistics user behavior all can only be blended in the request URL transmission, causes service code and statistics codes mixed in together, can't effectively carry out differentiation in logic.Be easy to occur impact each other in system development and follow-up maintenance process, reduced system maintainability, increased cost of development, follow-up business reconstruct and maintenance all are difficult to carry out.And when service end is resolved request, need Operational Visit required parameter and statistical parameter to be resolved, reduced the treatment effeciency of user's access. simultaneously
For the problems referred to above in correlation technique, effective solution is not yet proposed at present.
Summary of the invention
In correlation technique, low, the cost of development high-technology problem of user's access process efficiency in website user's behavioral statistics method, the invention provides a kind of method and device of website user's behavioral statistics, at least to solve the problems of the technologies described above.
According to an aspect of the present invention, provide a kind of method of website user's behavioral statistics, having comprised: to the wap website, send for accessing the first request of above-mentioned wap website, wherein, above-mentioned the first request is only for the requested service content;
In the process that loads above-mentioned business tine, send the second request for the counting user behavioural information.
Preferably, before sending the first request for accessing above-mentioned wap website to the wap website, comprising: by user access request, for the statistical parameter of counting user behavior and the service parameter corresponding with above-mentioned business tine, split; Above-mentioned service parameter and above-mentioned statistical parameter are carried on respectively in above-mentioned the first request and above-mentioned the second request.
Preferably, send above-mentioned the first request by get or post mode.
Preferably, send above-mentioned the second request by get or post mode.
Preferably, send the second request for the counting user behavioural information, comprising: implicit expression sends above-mentioned the second request.
According to another aspect of the present invention, provide a kind of device of website user's behavioral statistics, having comprised: the first sending module, for sending to the wap website for accessing the first request of above-mentioned wap website, wherein, above-mentioned the first request is only for the requested service content; Load-on module, for loading above-mentioned business tine; The second sending module, for the process loading above-mentioned business tine, send the second request for the counting user behavioural information.
Preferably, said apparatus also comprises: split module, for by user access request, split for the statistical parameter of counting user behavior and the service parameter corresponding with above-mentioned business tine; Module is set, for above-mentioned service parameter and above-mentioned statistical parameter are carried on respectively to above-mentioned the first request and above-mentioned the second request.
Preferably, above-mentioned the first sending module, for sending above-mentioned the first request by get or post mode.
Preferably, above-mentioned the second sending module, for sending above-mentioned the second request by get or post mode.
Preferably, above-mentioned the second sending module, also send above-mentioned the second request for implicit expression.
By the present invention, the technical matters such as employing will be added up the technological means that request is sent respectively with service request, solve in correlation technique, and user access request speed is low, and resource utilization ratio is poor.The request that the request of access that makes the user is the counting user behavior with website distinguishes mutually, avoided influencing each other of two kinds of requests, also guaranteed the isolation of user's access websites request with the statistics issued transaction, thereby reached the effect of elevator system maintainability and extensibility, save the follow-up maintenance cost, improved business or statistics reconstruct efficiency.
The accompanying drawing explanation
Accompanying drawing described herein is used to provide a further understanding of the present invention, forms the application's a part, and schematic description and description of the present invention the present invention does not form inappropriate limitation of the present invention for explaining.In the accompanying drawings:
Fig. 1 is the process flow diagram according to the method for website user's behavioral statistics of the embodiment of the present invention;
Fig. 2 is the process flow diagram of the method for website user's behavioral statistics according to the preferred embodiment of the invention;
Fig. 3 is the structured flowchart according to the device of website user's behavioral statistics of the embodiment of the present invention;
Fig. 4 is the structured flowchart according to the device of website user's behavioral statistics of the embodiment of the present invention.
Embodiment
Hereinafter with reference to accompanying drawing, also describe the present invention in detail in conjunction with the embodiments.It should be noted that, in the situation that do not conflict, embodiment and the feature in embodiment in the application can combine mutually.
Following examples can be applied in computing machine, for example are applied in PC.Also can be applied to current the employing in the mobile terminal in the intelligent operating system, and be not limited to this.
In the present embodiment, provide a kind of method of website user's behavioral statistics, Fig. 1 is the process flow diagram according to the method for website user's behavioral statistics of the embodiment of the present invention 1.As shown in Figure 1, the method comprises:
Step S102, send to the wap website for accessing the first request of this wap website, and wherein, this first request is only for the requested service content;
Before implementing this step, also comprise: by user access request, for the statistical parameter of counting user behavior and the service parameter corresponding with above-mentioned business tine, split; Above-mentioned service parameter and above-mentioned statistical parameter are carried on respectively in above-mentioned the first request and above-mentioned the second request.As can be seen here, the user accesses in the first request that the wap website sends, and does not comprise statistical parameter, thereby has reduced the complexity of request URL, avoids the length of request URL to exceed length restriction.
In the present embodiment, can send above-mentioned the first request by get or post mode.
Step S104, in the process that loads above-mentioned business tine, send the second request for the counting user behavior;
Wherein, the transmission of the second request can adopt dominant transmission, in order to make the user understand process, certainly for the user, generally do not pay close attention to the flow process of statistics, only pay close attention to the business tine loaded, therefore, can also send above-mentioned the second request to above-mentioned statistical server implicit expression.
Preferably, send above-mentioned the second request by get or post mode.
In step S102 and S104, the object that sends the first request and the second request is server, to server, sends the first request and second and asks, and server herein can be two different servers independently, can be also identical server, be for example same server.
Take the http request as example, above-mentioned processing procedure be described:
Cardinal rule is that a http request of common practices is split as to twice http request, and the mode split with request guarantees that service request is separate with the statistics request, does not interfere with each other.The http request can be that the get mode can be also the post mode, for convenient for example, in the step explanation, all in the get mode, initiates:
The HTTP GET request of common practices is as follows:
http://192.168.1.1/contentToDetail.action?userid=111&catid=106626&pageid=1602562&channelid=18000000&cntindex=266185&discountindex=
In this HTTP GET request, in fact business processing only needs http: // 192.168.1.1/contentToDetail.action cntindex=266185& Discountindex=
The parameters such as userid, catid, pageid, channelid all belong to the only statistics parameter that just needs are used, and business processing is not paid close attention to; But due to for once request, thus statistical parameter and business processing desired parameters all need to be coupled, cause asking elongated, follow-up business reconstruct and safeguard and all to be difficult to carry out.
Therefore in this implementation process, this HTTP GET request is split, a HTTP GET request is split as to twice HTTP GET request: HTTP GET request is for the first time initiatively initiated by browser for the user; After obtaining the returning of HTTP GET request, browser loads in the process of returned content, by browser implicit expression, initiates request for the second time, with this, guarantees the user is experienced without impact-in user's operation or need to carry out one time business operation.
In correlation technique, produce user access request speed low, the reason of the poor problem of resource utilization ratio is, Operational Visit required parameter and the transmission mixed in together of website statistics parameter during the wap website statistics, for addressing this problem, the present embodiment is only paid close attention to calling service (being the request of loading business tine) itself in cataloged procedure, and statistics is called to (i.e. statistics request), extracts separately in page loading procedure and initiates.The statistics request can be sent to separately statistical server, guarantees to add up to call with calling service can not interact.That is to say, access in the request (i.e. the first request) of wap Website page the user, do not comprise the statistical dependence parameter.After the user asks the wap Website page, in page loading procedure, by the page, send statistics request (i.e. the second request) to statistical server voluntarily.
Fig. 2 is the process flow diagram of the method for website user's behavioral statistics according to the preferred embodiment of the invention, and the http request can be that the get mode can be also the post mode, is convenient for example, below all in the get mode, initiates.
As shown in Figure 2, the method comprises:
Step S200: client browser is submitted request of access to server end wap server 192.168.1.1; The HTTP GET request now initiated is as follows, now, for HTTP GET request for the first time, by the user, operates initiation
http://192.168.1.1/contentToDetail.action?cntindex=266185&discountindex=。Now executive agent is client browser.
Step S202: server end wap server 192.168.1.1 responds this request, and returns to request content to client browser;
Figure BDA0000381234290000041
Wherein, executive agent is server end wap server.
Step S204: during the response contents of client browser load server end wap server 192.168.1.1, trigger the http request to server end statistical server 192.168.2.1;
In this step, while loading http link label, trigger once to the sightless http get request of user, now by the initiation of browser implicit expression, to user's unaware.Request content is: http: // 192.168.2.1/stat/userpv/1981596318 myurl=contentToDetail.action userid=111& Catid=106626& Pageid=1602562& Channelid=18000000& Cntindex=266185& Discountindex=.
Step S206: the above-mentioned http request in server end statistical server 192.168.2.1 reception analyzing step S204 is also put correlation parameter in storage;
Step S208: the server end statistical server is integrated the ASSOCIATE STATISTICS parameter, the output statistical report form.
In the present embodiment, above-mentioned processing procedure is as follows in the processing mode of software section:
Using the exploitation of j2ee as example, statistical server IP address is 192.168.2.1, in conjunction with the jsp page technology, we can be by<img > Tag Packaging is in the index.jsp page, and arrange should<img height and the width of label be all 0, invisible while namely the user being used to this wap of browser access site page.
<imgid="stat01"src="http://192.168.2.1/stat/userpv/1981596318?myurl=index.jsp&useri?d=111&catid=106626&pageid=1602562&channelid=18000000&cntindex=266185&discounti?ndex="width="0"height="0"style="display:none"/>
Src properties point in this img label be a certain specific service of statistical server, when request is submitted to the service of this statistics, this service can be resolved this required parameter, and by each parameter value warehouse-in.
Index.jsp is distributed under wap server in station 192.168.1.1, and now the user passes through http: // 192.168.1.1/index.jsp accesses this wap site page.When the wap website receives this request of access, the index.jsp content of pages is returned to user browser, by user browser, carry out the content loading.In user browser load page process, to load id be stat01<img will trigger the request to statistical server during label.
As can be seen here, in above-mentioned processing procedure, above-mentioned http get request is split, a http get request is split as to twice http get request: http get request is for the first time initiatively initiated by browser for the user; After obtaining the returning of http get request, browser loads in the process of returned content, by browser implicit expression, initiates request for the second time, with this, guarantees the user is experienced without impact-in user's operation or need to carry out one time business operation.
A kind of device of website user's behavioral statistics is provided in the present embodiment, for realizing above-described embodiment and preferred implementation, had carried out repeating no more of explanation, below the module related in this device has been described.As used below, the combination of software and/or the hardware of predetermined function can be realized in term " module ".Although the described device of following examples is preferably realized with software, hardware, or the realization of the combination of software and hardware also may and be conceived.Fig. 3 is the structured flowchart according to the method for website user's behavioral statistics of the embodiment of the present invention 2.As shown in Figure 3, this device comprises:
The first sending module 30, be connected to load-on module 32, and for sending to the wap website for accessing the first request of above-mentioned wap website, wherein, above-mentioned the first request is only for the requested service content;
Load-on module 32, be connected to the second sending module 34, for loading above-mentioned business tine;
The second sending module 34, for the process loading above-mentioned business tine, send the second request for the counting user behavioural information.
In the present embodiment, as shown in Figure 4, said apparatus also comprises: split module 36, be connected to module 38 is set, for by user access request, split for the statistical parameter of counting user behavior and the service parameter corresponding with above-mentioned business tine; Module 38 is set, for above-mentioned service parameter and above-mentioned statistical parameter are carried on respectively to above-mentioned the first request and above-mentioned the second request.
Wherein, above-mentioned the first sending module, for sending above-mentioned the first request by get or post mode.
Wherein, above-mentioned the second sending module, for sending above-mentioned the second request by get or post mode.
In addition, above-mentioned the second sending module, also send above-mentioned the second request for implicit expression.
As mentioned above, the above-mentioned modules related in the present embodiment can be realized by hardware correspondingly.For example, above-mentioned modules all can be in processor, for example: above-mentioned modules is all in a processor: a kind of processor comprises: above-mentioned the first sending module 30, load-on module 32, and the second sending module 34; Above-mentioned modules is respectively in the processor in a correspondence: above-mentioned the first sending module 30 is arranged in first processor; Above-mentioned load-on module 32 is arranged in the second processor; Above-mentioned the second sending module 34 is arranged in the 3rd processor.Can certainly at least two processing modules wherein be arranged in same processor.
In addition, by above-mentioned flow process, realized that user's Operational Visit request and user's statistics request have just realized logic isolation each other, Batch Processing processing server and statistical processing server also can be disposed respectively, the subsequent treatment be independent of each other separately, realize the decoupling zero of business processing and statistical treatment, promoted maintainability and treatment effeciency.
The technical scheme that the above embodiment of the present invention provides, reached the effect that promotes maintainable and extensibility, saved the follow-up maintenance cost, improved business or statistics reconstruct efficiency etc.Simultaneously, service request and statistics request isolation mutually, can point to respectively different servers, realized the decoupling zero (i.e. isolation) between business processing and statistical treatment.Thereby can allow the website operator divide according to the time period of the idle busy of business processing, in the idle of business processing to statistical treatment inclinometer operator resource, busy in business processing tilts computational resource to business processing, effectively the elevator system resource utilization, also promoted system performance.
In another embodiment, also provide a kind of software, the technical scheme that this software is described for carrying out above-described embodiment and preferred implementation.
In another embodiment, also provide a kind of storage medium, stored above-mentioned software in this storage medium, this storage medium includes but not limited to: CD, floppy disk, hard disk, scratch pad memory etc.
Obviously, those skilled in the art should be understood that, above-mentioned each module of the present invention or each step can realize with general calculation element, they can concentrate on single calculation element, perhaps be distributed on the network that a plurality of calculation elements form, alternatively, they can be realized with the executable program code of calculation element, thereby, they can be stored in memory storage and be carried out by calculation element, and in some cases, can carry out step shown or that describe with the order be different from herein, perhaps they are made into respectively to each integrated circuit modules, perhaps a plurality of modules in them or step being made into to the single integrated circuit module realizes.Like this, the present invention is not restricted to any specific hardware and software combination.
These are only the preferred embodiments of the present invention, be not limited to the present invention, for a person skilled in the art, the present invention can have various modifications and variations.Within the spirit and principles in the present invention all, any modification of doing, be equal to replacement, improvement etc., within all should being included in protection scope of the present invention.

Claims (10)

1. the method for website user's behavioral statistics, is characterized in that, comprising:
To WAP (wireless application protocol) wap website, send for accessing the first request of described wap website, wherein, described the first request is only for the requested service content;
In the process that loads described business tine, send the second request for the counting user behavioural information.
2. method according to claim 1, is characterized in that, before sending the first request for accessing described wap website to the wap website, comprising:
By in user access request, for the statistical parameter of counting user behavior and the service parameter corresponding with described business tine, split;
Described service parameter and described statistical parameter are carried on respectively in described the first request and described the second request.
3. method according to claim 1, is characterized in that, by get or post mode, sends described the first request.
4. method according to claim 1, is characterized in that, by get or post mode, sends described the second request.
5. according to the described method of claim 1 to 4 any one, it is characterized in that, send the second request for the counting user behavioural information, comprising:
Implicit expression sends described the second request.
6. the device of website user's behavioral statistics, is characterized in that, comprising:
The first sending module, for sending to WAP (wireless application protocol) wap website for accessing the first request of described wap website, wherein, described the first request is only for the requested service content;
Load-on module, for loading described business tine;
The second sending module, for the process loading described business tine, send the second request for the counting user behavioural information.
7. according to the described device of claim 6, it is characterized in that, also comprise:
Split module, for by user access request, split for the statistical parameter of counting user behavior and the service parameter corresponding with described business tine;
Module is set, for described service parameter and described statistical parameter are carried on respectively to described the first request and described the second request.
8. according to the described device of claim 6, it is characterized in that, described the first sending module, for sending described the first request by get or post mode.
9. according to the described device of claim 6, it is characterized in that, described the second sending module, for sending described the second request by get or post mode.
10. according to the described device of claim 6 to 9 any one, it is characterized in that described the second sending module also sends described the second request for implicit expression.
CN201310415904.6A 2013-09-12 2013-09-12 Method and device for counting behavior of website users Pending CN103488719A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310415904.6A CN103488719A (en) 2013-09-12 2013-09-12 Method and device for counting behavior of website users

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310415904.6A CN103488719A (en) 2013-09-12 2013-09-12 Method and device for counting behavior of website users

Publications (1)

Publication Number Publication Date
CN103488719A true CN103488719A (en) 2014-01-01

Family

ID=49828945

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310415904.6A Pending CN103488719A (en) 2013-09-12 2013-09-12 Method and device for counting behavior of website users

Country Status (1)

Country Link
CN (1) CN103488719A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104915852A (en) * 2014-03-14 2015-09-16 中国移动通信集团广东有限公司 Service promotion page realization method and system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104915852A (en) * 2014-03-14 2015-09-16 中国移动通信集团广东有限公司 Service promotion page realization method and system

Similar Documents

Publication Publication Date Title
CN107733972B (en) Short link analysis method, device and equipment
RU2498520C2 (en) Method of providing peer-to-peer communication on web page
CN109067728A (en) Access control method, device, server and the storage medium of application programming interfaces
Ahmad et al. A view from the other side: Understanding mobile phone characteristics in the developing world
CN102783119A (en) Access control method and system, and access terminal
CN103268319A (en) Cloud browser based on webpages
JP2014534498A (en) Apparatus, method and computer readable storage medium for protecting JavaScript
CN113612686A (en) Traffic scheduling method and device and electronic equipment
CN108737343B (en) Method and device for realizing secure access to network
CN103716319B (en) A kind of apparatus and method of web access optimization
CN114567600B (en) Traffic management method and related equipment
AU2016352211A1 (en) Method and apparatus for acquiring IP address
CN112261111A (en) Method and system for realizing cross-domain access of browser in application program
CN109495553A (en) A kind of webpage display control method, system and Reverse Proxy
WO2015123990A1 (en) Page push method, device, server and system
CN108664493B (en) Method and device for counting validity of URL (Uniform resource locator), electronic equipment and storage medium
CN111953718B (en) Page debugging method and device
CN102137168A (en) Double-browsing mode supporting client, mobile internet browsing system and browsing method
CN112073366A (en) Data processing method for railway financial system and data center
CN109698832B (en) Method for rapidly providing Portal authentication and rapidly popping Portal authentication page and related equipment
CN103488719A (en) Method and device for counting behavior of website users
CN110633432A (en) Method, device, terminal equipment and medium for acquiring data
CN106487861B (en) Network data providing method and device
CN103457980B (en) Terminal unit data acquisition methods
CN103181140A (en) Method, media server and terminal device for identifying service request type

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20140101

RJ01 Rejection of invention patent application after publication