CN107193825A - Page statistical method and device - Google Patents

Page statistical method and device Download PDF

Info

Publication number
CN107193825A
CN107193825A CN201610144165.5A CN201610144165A CN107193825A CN 107193825 A CN107193825 A CN 107193825A CN 201610144165 A CN201610144165 A CN 201610144165A CN 107193825 A CN107193825 A CN 107193825A
Authority
CN
China
Prior art keywords
page
custom variable
gif
request
variable
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201610144165.5A
Other languages
Chinese (zh)
Other versions
CN107193825B (en
Inventor
吴锦龙
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Baidu Netcom Science and Technology Co Ltd
Original Assignee
Beijing Baidu Netcom Science and Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Baidu Netcom Science and Technology Co Ltd filed Critical Beijing Baidu Netcom Science and Technology Co Ltd
Priority to CN201610144165.5A priority Critical patent/CN107193825B/en
Publication of CN107193825A publication Critical patent/CN107193825A/en
Application granted granted Critical
Publication of CN107193825B publication Critical patent/CN107193825B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/02Marketing; Price estimation or determination; Fundraising
    • G06Q30/0201Market modelling; Market analysis; Collecting market data

Landscapes

  • Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Strategic Management (AREA)
  • Development Economics (AREA)
  • Finance (AREA)
  • Accounting & Taxation (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • General Physics & Mathematics (AREA)
  • Physics & Mathematics (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Databases & Information Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Game Theory and Decision Science (AREA)
  • Economics (AREA)
  • Marketing (AREA)
  • General Business, Economics & Management (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses a kind of page statistical method and device.This method by client executing when include:Accessing page request is received, and the accessing page request is sent to server, the page corresponding with the accessing page request, the custom variable for carrying out page statistics and corresponding value are returned to request server;The page, the custom variable and corresponding value that the reception server is returned, using custom variable described in storage of array and corresponding value, and load the page;According to the custom variable and corresponding value, by the trigger event formation GIF requests in the page;GIF requests are sent to server, the URL in being asked with request server the GIF count obtaining page statistical result.The present invention can support multiple custom variables, realize the statistics to the various dimensions of the page, enhance autgmentability and the flexibility of custom variable in the page.

Description

Page statistical method and device
Technical field
The present embodiments relate to network technology, more particularly to a kind of page statistical method and device.
Background technology
In business site, it usually needs some datas on flows and user behavior data to Webpage are carried out Statistics, to recognize hobby of the user to product.Such as statistics Pekinese's login user accesses IT class books The click volume and visitor's number of commodity details page.
Existing page statistical system (such as Baidu's statistics, Google's analysis) is directed to the statistics branch of custom variable Hold very weak, the number of the custom variable of support is restricted, that is, it is restricted to the dimension of statistics, can only Counted for single latitude, it is impossible to while being counted for two dimensions even more than dimension.Cause This, prior art has the defect for being difficult to extend custom variable.
The content of the invention
In view of this, the embodiment of the present invention provides a kind of page statistical method and device, to strengthen in the page The autgmentability of custom variable.
In a first aspect, the embodiments of the invention provide a kind of page statistical method, this method is held by client OK, this method includes:
Accessing page request is received, and the accessing page request is sent to server, with request server Return to corresponding with the accessing page request page, the custom variable for carrying out page statistics and corresponding Value;
The page, the custom variable and corresponding value that the reception server is returned, utilize storage of array The custom variable and corresponding value, and load the page;
According to the custom variable and corresponding value, by the trigger event formation GIF requests in the page;
GIF requests are sent to server, the URL in being asked with request server the GIF enters Row statistics obtains page statistical result.
Second aspect, the embodiment of the present invention additionally provides a kind of page statistic device, and the device is applied to client In end, the device includes:
Access request sending module, sends for receiving accessing page request, and by the accessing page request To server, the page corresponding with the accessing page request is returned to, for carrying out the page with request server The custom variable of statistics and corresponding value;
Page variable receiving module, for the reception server return the page, the custom variable and Corresponding value, using custom variable described in storage of array and corresponding value, and loads the page;
GIF asks to form module, for according to the custom variable and corresponding value, by touching in the page The formation GIF requests of hair event;
GIF sending modules, for GIF requests to be sent to server, with request server to described URL in GIF requests count obtaining page statistical result.
The third aspect, the embodiments of the invention provide a kind of page statistical method, this method is held by server OK, this method includes:
The accessing page request that client is sent is received,
According to the accessing page request, produce for carrying out the custom variable of page statistics, and obtain institute State the value of custom variable;
The corresponding page of the accessing page request, the custom variable and corresponding value are sent to client End, with indicate client utilize custom variable described in storage of array and corresponding value, and by the page with The relevant trigger event formation GIF of the custom variable is asked and returned;
The GIF requests are received, the URL in asking the GIF is counted, obtain page statistics knot Really.
Fourth aspect, the embodiment of the present invention additionally provides a kind of page statistic device, and the device is applied to service In device, the device includes:
Access request receiving module, for receiving the accessing page request that client is sent,
Custom variable generation module, is used to carry out page system for according to the accessing page request, producing The custom variable of meter, and obtain the value of the custom variable;
Page variable sending module, for by the corresponding page of the accessing page request, it is described it is self-defined become Amount and corresponding value are sent to client, to indicate that client utilizes custom variable described in storage of array and right The value answered, and the trigger event formation GIF relevant with the custom variable in the page is asked and returned Return;
Page statistical module, for receiving the GIF requests, the URL in asking the GIF unites Meter, obtains page statistical result.
The technical scheme of the embodiment of the present invention, by the way that after accessing page request is received, the page is visited Ask that request is sent to server, the page corresponding with the accessing page request of the reception server return, use In the custom variable and corresponding value that carry out page statistics, custom variable described in storage of array and right is utilized The value answered, and the page is loaded, by the triggering thing relevant with corresponding value with custom variable in the page Part formation GIF requests, and GIF requests are sent to server, server is to the URL in GIF requests Progress, which is counted, obtains page statistical result, can support multiple custom variables, realize the multidimensional to the page The statistics of degree, enhances autgmentability and the flexibility of custom variable in the page.
Brief description of the drawings
Fig. 1 is a kind of flow chart for page statistical method that the embodiment of the present invention one is provided;
Fig. 2 is a kind of flow chart for page statistical method that the embodiment of the present invention two is provided;
Fig. 3 is a kind of structural representation for page statistic device that the embodiment of the present invention three is provided;
Fig. 4 is a kind of flow chart for page statistical method that the embodiment of the present invention four is provided;
Fig. 5 is a kind of structural representation for page statistic device that the embodiment of the present invention five is provided;
Fig. 6 is a kind of flow chart for page statistical method that the embodiment of the present invention six is provided.
Embodiment
The present invention is described in further detail with reference to the accompanying drawings and examples.It is understood that this The specific embodiment of place description is used only for explaining the present invention, rather than limitation of the invention.Also need in addition It is noted that illustrate only part related to the present invention for the ease of description, in accompanying drawing and it is not all in Hold.
Embodiment one
Fig. 1 is a kind of flow chart for page statistical method that the embodiment of the present invention one is provided, and the present embodiment can be fitted For situation about being counted according to custom variable to the click volume or visitor's number of the page, this method can be with Performed, specifically included as follows by client:
S110, receives accessing page request, and the accessing page request is sent to server, to ask Server returns to the page corresponding with the accessing page request, the custom variable for carrying out page statistics With corresponding value.
User, by inputting network address or clicking on corresponding link, just generates when accessing a Webpage Accessing page request, client is received after the accessing page request, by the accessing page request send to Server, the page corresponding with the accessing page request is returned with request server, is being needed to the page In click volume or visitor's number when being counted, server also return simultaneously for carry out page statistics from Defined variable and corresponding value.
Wherein, the custom variable is produced according to the purpose of statistics, and the value of custom variable is to pass through Analysis accessing page request is obtained.The custom variable can include city, page iden-tity, user etc. At least one of level and flow channel source.Then the value in custom variable city can be Beijing, that is, count From Pekinese's click volume;Custom variable represent to count when being page iden-tity the click volume of a certain page or Visitor's number, the value of the custom variable is the page iden-tity of the corresponding page of accessing page request;User gradation Quantity (the i.e. use of the grade of the user of click volume or the grade for the user that counts relative users grade Visitor's number at family);Click volume or visitor of the flow channel source for user of the statistics from a certain channel Number, such as counts the click volume of the user from Baidu's mhkc, then custom variable is originated for flow channel, should The value of custom variable is Baidu's mhkc.
S120, the page, the custom variable and corresponding value that the reception server is returned, utilizes number Group stores the custom variable and corresponding value, and loads the page.
Client receive server return the page, the custom variable and corresponding value after, Using custom variable described in storage of array and corresponding value, while loading the page.Client is being utilized When custom variable described in storage of array and corresponding value, it is possible to use the two-dimensional array storage self-defined change Amount and corresponding value;Can also be using custom variable described in a storage of array, in pair of another array Position is answered to store the value of the custom variable.Using storage of array custom variable, it can support self-defined Variable, can count the page data of various dimensions.
When counting page data, layout to realize by using JavaScript, thus it is self-defined storing During variable, it is possible to use custom variable described in JavaScript variable storages.In order to not in HTML (Hyper Text Mark-up Language, HTML) excessive event handling function is added (i.e. in the page JavaScript code), sampling performs one section of JavaScript code in page footing, by for all band bi The element (custom variable and relevant element) of label binds a mousedown function to realize, Traveled through during the element for traveling through all band bi labels using jquery methods, can so reduce the property of the page Can be time-consuming.Wherein, it is custom variable and relevant Elemental partition in JavaScript code that bi labels, which are, Label.
S130, please by the trigger event formation GIF in the page according to the custom variable and corresponding value Ask.
Client according to the custom variable and corresponding value, by the page with custom variable and corresponding The relevant trigger event formation GIF (Graphics Interchange Format, graphic interchange format) of value please Ask, in order to which server is counted according to GIF requests to page data.The GIF requests include URL (Uniform Resource Locator, URL), in addition to custom variable and right The value answered, URL is the URL for the page that user clicks on.Trigger event includes page loading completion and connect in the page The user received clicks on the events such as the button in the page.
Wherein, the trigger event formation GIF in the page is asked according to the custom variable and corresponding value Preferably include:
After the completion of page loading, GIF requests are formed according to the custom variable and corresponding value;And/or
When receiving the clicking operation of user, forming GIF according to the custom variable and corresponding value please Ask.
Wherein, GIF requests can include page request and/or event request., can after the completion of page loading To send page request, page request is to count the data such as click volume or visitor's number in the page;When When the page triggers an event (such as triggering the login in the page or registration button), just sending event please Ask.
S140, GIF requests is sent to server, in being asked with request server the GIF URL count obtaining page statistical result.
GIF requests are sent to server, the URL in being asked with request server the GIF enters Row obtains the statistical result of the page datas such as the click volume or visitor's number of the page.
Custom variable can include page properties and user property.Such as, the page of a login user is counted When access stream and clicking operation stream, custom variable is that user identifies, and its corresponding value is then to identify the user ID encryption data, count the custom variable value GIF request, it is possible to obtain the user according to The page of sequential access and the clicking operation on the page.
In the prior art, due to the limitation of the quantity to custom variable, client is will be with custom variable After the GIF requests relevant with corresponding value is sent, the custom variable and corresponding value are just removed, works as needs When the custom variable and corresponding value, then client is re-transmitted to by server.And the embodiment of the present invention In, after GIF requests are sent, custom variable and corresponding value can not be removed, without repeating to obtain Custom variable and corresponding value, can save timing statisticses.
The technical scheme of the present embodiment, by the way that after accessing page request is received, the page access is asked Transmission is asked to server, the page corresponding with the accessing page request that the reception server is returned, be used for into The custom variable and corresponding value of row page statistics, utilize custom variable described in storage of array and corresponding Value, and the page is loaded, by the trigger event shape relevant with corresponding value with custom variable in the page Sent into GIF requests, and by GIF requests to server, in being asked with request server the GIF URL count obtaining page statistical result, can support multiple custom variables, realize to the page The statistics of various dimensions, enhances autgmentability and the flexibility of custom variable in the page, so as to very square Just the situation that comprehensive statistics is carried out to website, realizes from the whole website of various dimensions statistics.
On the basis of above-mentioned technical proposal, according to the custom variable and corresponding value, by the page Trigger event formation GIF requests include:
According to the custom variable and corresponding value, by touching in the corresponding region of area identification in the page The formation GIF requests of hair event.
, can be by the region with needing statistics in the page by the way that to page division region, simultaneously distribution region is identified The trigger event formation GIF requests in corresponding region are identified, so as to count the trigger event in the region. And in the prior art, when the click button in a page is more, it is necessary to distribute mark for each button Know, then count the click volume of each different identification, so name to button is relatively more, statistics is got up It is cumbersome and larger to the change of the page.And identified by distribution region, statistical flowsheet is simplified, The statistics codes of addition are less, are easy to safeguard the page.
Embodiment two
Fig. 2 is a kind of flow chart for page statistical method that the embodiment of the present invention two is provided, and the present embodiment is to reality Apply example one to be optimized, specifically include as follows:
S210, receives accessing page request, and the accessing page request is sent to server, to ask Server returns to the page corresponding with the accessing page request, the custom variable for carrying out page statistics With corresponding value.
S220, the page, the custom variable and corresponding value that the reception server is returned, utilizes number Group stores the custom variable and corresponding value, and loads the page.
S230, please by the trigger event formation GIF in the page according to the custom variable and corresponding value Ask.
S240, GIF requests is sent to server, in being asked with request server the GIF URL count obtaining page statistical result.
S250, removes the temporary variable and corresponding value in the custom variable stored in the array.
Due to many click events can occur in a page, if do not removed interim in custom variable The Invalid parameter such as variable and corresponding value, then can make it that the variable on the page is more and more, click thing below The overlapping situation of parameter occurs in part, causes the statistics of click event inaccurate;On the other hand, number is worked as When variable in group is more and more, the URL length of GIF requests can be increasingly longer, the URL asked due to GIF Length is limited, it is impossible to unconfined toward adding variable in array.Therefore, to interim in self-defined The Invalid parameter such as variable and corresponding value will be removed regularly, it is to avoid cause the inaccurate situation of statistics to occur And ensure the validity of the URL in GIF requests.
The technical scheme of the present embodiment, on the basis of embodiment one, by asking the GIF to send To server, the temporary variable and corresponding value in the custom variable stored in the array are removed, The situation for causing statistics inaccurate can be avoided to occur and ensure the validity of the URL in GIF requests.
Embodiment three
Fig. 3 is a kind of structural representation for page statistic device that the embodiment of the present invention three is provided, the present embodiment Described device is applied in client, as shown in figure 3, the page statistic device bag described in the present embodiment Include:Access request sending module 310, page variable receiving module 320, GIF ask to form the and of module 330 GIF request sending modules 340.
Wherein, access request sending module 310 is used to receive accessing page request, and by the page access Request is sent to server, is returned to the page corresponding with the accessing page request with request server, is used for Carry out the custom variable and corresponding value of page statistics;
Page variable receiving module 320 is used for the page, the custom variable that the reception server is returned With corresponding value, using custom variable described in storage of array and corresponding value, and the page is loaded;
GIF, which asks to be formed module 330, to be used for according to the custom variable and corresponding value, will be in the page touch The formation GIF requests of hair event;
GIF request sending modules 340 are used to send GIF requests to server, with request server pair URL in the GIF requests count obtaining page statistical result.
It is preferred that, the GIF ask to be formed module specifically for:
After the completion of page loading, GIF requests are formed according to the custom variable and corresponding value;And/or
When receiving the clicking operation of user, forming GIF according to the custom variable and corresponding value please Ask.
It is preferred that, in addition to:
Temporary variable removes module, for after GIF requests are sent to server, removing described Temporary variable and corresponding value in the custom variable stored in array.
It is preferred that, the GIF, which asks to form module, to be included:
Region GIF asks to form unit, for according to the custom variable and corresponding value, by the page The corresponding region of area identification in trigger event formation GIF request.
Wherein, the custom variable can come including city, page iden-tity, user gradation and flow channel At least one of source.
The technical scheme of the present embodiment, by access request sending module after accessing page request is received, The accessing page request is sent to server, page variable receiving module the reception server return with institute The corresponding page of accessing page request, the custom variable for carrying out page statistics and corresponding value are stated, profit With custom variable described in storage of array and corresponding value, and the page is loaded, GIF asks to form module , please by GIF by the trigger event formation GIF request relevant with corresponding value with custom variable in the page Sending module is asked to send GIF requests to server, the URL in being asked with request server the GIF Progress, which is counted, obtains page statistical result, can support multiple custom variables, realize the multidimensional to the page The statistics of degree, enhances autgmentability and the flexibility of custom variable in the page.
Example IV
Fig. 4 is a kind of flow chart for page statistical method that the embodiment of the present invention four is provided, and the present embodiment can be fitted For situation about being counted according to custom variable to the click volume or visitor's number of the page, this method can be with Performed, specifically included as follows by server:
S410, receives the accessing page request that client is sent.
S420, according to the accessing page request, produces the custom variable for carrying out page statistics, and Obtain the value of the custom variable.
Server is analyzed accessing page request, produces the custom variable for carrying out page statistics, And obtain the value of the custom variable, such as by analyzing accessing page request, generation it is self-defined Variable can have IP address, city etc., so that it is respectively to send the accessing page request to obtain corresponding value The IP address of client and the city at place.
S430, the corresponding page of the accessing page request, the custom variable and corresponding value are sent To client, to indicate that client utilizes custom variable described in storage of array and corresponding value, and by the page In relevant with custom variable trigger event formation GIF ask and return.
Indicate that client utilizes custom variable described in storage of array and corresponding value, be conducive to becoming to self-defined The extension of amount, and preserve the value of custom variable.When trigger event occurs in the page, it will be made by oneself with described The relevant trigger event formation GIF requests of adopted variable, the URL of GIF requests includes the custom variable Value, consequently facilitating according to the GIF ask to custom variable represent dimension count.
S440, receives the GIF requests, and the URL in asking the GIF is counted, and obtains the page Statistical result.
The URL of GIF requests includes the value of custom variable, so that the URL in by asking GIF is carried out Statistics, can obtain the page statistical result relevant with custom variable.Such as, when counting click event, To the data for a variety of dimensions being made up of on the page many custom variables, city, page mark where such as user Knowledge, user gradation and flow channel source etc., can include these numbers in the URL that corresponding GIF is asked According to, obtain the user clicks in which city at most so as to count, the click volume of which page is minimum, Which channel come user click volume at most etc..
The technical scheme of the present embodiment, by after the accessing page request that client is sent is received, root According to the accessing page request, the custom variable for carrying out page statistics is produced, and made by oneself described in acquisition The value of adopted variable, the corresponding page of the accessing page request, the custom variable and corresponding value are sent out Client is delivered to, to indicate that client utilizes custom variable described in storage of array and corresponding value, and by page The trigger event formation GIF relevant with the custom variable in face is asked and returned, and receives the GIF Request, the URL in asking the GIF is counted, and is obtained page statistical result, can be supported multiple Custom variable, realizes the statistics to the various dimensions of the page, enhances the expansion of the custom variable in the page Malleability and flexibility, so as to very easily carry out comprehensive statistics to website, are realized from various dimensions system Count the situation of whole website.
On the basis of above-mentioned technical proposal, according to the accessing page request, produce what is counted for the page Custom variable, and obtain the value of the custom variable and include:
It is at least two regions by the corresponding page division of the accessing page request, and is the region after dividing Distribution region is identified;
According to the area identification, the custom variable in region corresponding with the area identification is produced, and is obtained Take the value of the custom variable.
, can be to the page when needing to count the trigger events such as the click event in some region in a page The division in region is carried out, is at least two regions by the corresponding page division of the accessing page request, and be Region distribution region mark after division, the area identification of the page counted as needed results from the region The custom variable in corresponding region is identified, by analyzing the page, the custom variable is obtained Value.By carrying out the division in region to the page, the statistics codes of addition are less, are easy to tie up the page Shield.
Embodiment five
Fig. 5 is a kind of structural representation for page statistic device that the embodiment of the present invention five is provided, the present embodiment Described device is applied in server, as shown in figure 3, the page statistic device bag described in the present embodiment Include:Access request receiving module 510, custom variable generation module 520, page variable sending module 530 With page statistical module 540.
Wherein, access request receiving module 510 is used to receive the accessing page request that client is sent;
Custom variable generation module 520 is used for according to the accessing page request, produces for carrying out the page The custom variable of statistics, and obtain the value of the custom variable;
Page variable sending module 530 is used for the corresponding page of the accessing page request, described self-defined Variable and corresponding value are sent to client, with indicate client using custom variable described in storage of array and Corresponding value, and the trigger event formation GIF relevant with the custom variable in the page is asked and returned Return;
Page statistical module 540 is used to receive the GIF requests, and the URL in asking the GIF is carried out Statistics, obtains page statistical result.
It is preferred that, the custom variable generation module includes:
Area division unit, for being at least twoth area by the corresponding page division of the accessing page request Domain, and be the region distribution region mark after dividing;
Custom variable generation unit, for according to the area identification, producing corresponding with the area identification Region custom variable, and obtain the value of the custom variable.
The technical scheme of this implementation, the page access that client is sent is received by access request receiving module Request, custom variable generation module is produced for carrying out page statistics according to the accessing page request Custom variable, and obtain the value of the custom variable, page variable sending module is by the page access The corresponding page, the custom variable and corresponding value is asked to send to client, to indicate client profit With custom variable described in storage of array and corresponding value, and will be relevant with the custom variable in the page Trigger event formation GIF ask and returns, page statistical module receives the GIF and asked, to the GIF URL in request is counted, and obtains page statistical result, can support multiple custom variables, is realized To the statistics of the various dimensions of the page, autgmentability and the flexibility of custom variable in the page are enhanced, from And comprehensive statistics can be very easily carried out to website, the situation of whole website is counted from various dimensions.
Embodiment six
Fig. 6 is a kind of flow chart for page statistical method that the embodiment of the present invention six is provided, and the present embodiment can be fitted For situation about being counted according to custom variable to the click volume or visitor's number of the page, this method can be with Performed, specifically included as follows by client and server cooperation:
S610, client receives accessing page request, and the accessing page request is sent to server.
S620, server receives the accessing page request that client is sent.
S630, server produces the self-defined change for carrying out page statistics according to the accessing page request Amount, and obtain the value of the custom variable.
S640, server is by the corresponding page of the accessing page request, the custom variable and corresponding Value is sent to client.
S650, the page, the custom variable and corresponding value that client the reception server is returned, Using custom variable described in storage of array and corresponding value, and load the page.
S660, client is formed the trigger event in the page according to the custom variable and corresponding value GIF is asked.
S670, client sends GIF requests to server.
S680, server receives the GIF requests, and the URL in asking the GIF is counted, obtained To page statistical result.
The technical scheme of the present embodiment, the accessing page request that client is sent is received by server, production The raw value for being used to carry out the custom variable of page statistics and obtain the custom variable, the page is visited Ask that the corresponding page of request, the custom variable and corresponding value are sent to client, client utilizes number Group stores the custom variable and corresponding value, and loads the page, by the trigger event shape in the page Into GIF requests, and send to server, server is received after the GIF requests, please to the GIF URL in asking is counted, and obtains page statistical result.The present embodiment can support multiple self-defined changes Amount, realizes the statistics to the various dimensions of the page, enhances autgmentability and the spirit of custom variable in the page Activity, so as to very easily carry out comprehensive statistics to website, realizes from various dimensions and counts whole net Situation about standing.
Note, above are only presently preferred embodiments of the present invention and institute's application technology principle.Those skilled in the art It will be appreciated that the invention is not restricted to specific embodiment described here, can enter for a person skilled in the art Row it is various it is obvious change, readjust and substitute without departing from protection scope of the present invention.Therefore, though So the present invention is described in further detail by above example, but the present invention be not limited only to Upper embodiment, without departing from the inventive concept, can also include other more equivalent embodiments, And the scope of the present invention is determined by scope of the appended claims.

Claims (14)

1. a kind of page statistical method, it is characterised in that methods described includes:
Accessing page request is received, and the accessing page request is sent to server, with request server Return to corresponding with the accessing page request page, the custom variable for carrying out page statistics and corresponding Value;
The page, the custom variable and corresponding value that the reception server is returned, utilize storage of array The custom variable and corresponding value, and load the page;
According to the custom variable and corresponding value, by the trigger event formation graphic interchange format in the page GIF is asked;
GIF requests are sent to server, the unified money in being asked with request server the GIF Source finger URL URL count obtaining page statistical result.
2. according to the method described in claim 1, it is characterised in that according to the custom variable and right The value answered includes the trigger event formation GIF requests in the page:
After the completion of page loading, GIF requests are formed according to the custom variable and corresponding value;With/ Or
When receiving the clicking operation of user, forming GIF according to the custom variable and corresponding value please Ask.
3. according to the method described in claim 1, it is characterised in that sent by GIF requests to clothes It is engaged in after device, in addition to:
Remove the temporary variable and corresponding value in the custom variable stored in the array.
4. according to the method described in claim 1, it is characterised in that according to the custom variable and right The value answered, the trigger event formation GIF requests in the page are included:
According to the custom variable and corresponding value, by touching in the corresponding region of area identification in the page The formation GIF requests of hair event.
5. according to any described methods of claim 1-4, it is characterised in that the custom variable bag Include at least one of city, page iden-tity, user gradation and flow channel source.
6. a kind of page statistic device, it is characterised in that described device includes:
Access request sending module, sends for receiving accessing page request, and by the accessing page request To server, the page corresponding with the accessing page request is returned to, for carrying out the page with request server The custom variable of statistics and corresponding value;
Page variable receiving module, for the reception server return the page, the custom variable and Corresponding value, using custom variable described in storage of array and corresponding value, and loads the page;
GIF asks to form module, for according to the custom variable and corresponding value, by touching in the page The formation GIF requests of hair event;
GIF request sending modules, for GIF requests to be sent to server, with request server pair URL in the GIF requests count obtaining page statistical result.
7. device according to claim 6, it is characterised in that the GIF asks to form module specific For:
After the completion of page loading, GIF requests are formed according to the custom variable and corresponding value;With/ Or
When receiving the clicking operation of user, forming GIF according to the custom variable and corresponding value please Ask.
8. device according to claim 6, it is characterised in that also include:
Temporary variable removes module, for after GIF requests are sent to server, removing described Temporary variable and corresponding value in the custom variable stored in array.
9. device according to claim 6, it is characterised in that the GIF asks to form module bag Include:
Region GIF asks to form unit, for according to the custom variable and corresponding value, by the page The corresponding region of area identification in trigger event formation GIF request.
10. according to any described devices of claim 6-9, it is characterised in that the custom variable bag Include at least one of city, page iden-tity, user gradation and flow channel source.
11. a kind of page statistical method, it is characterised in that methods described includes:
Receive the accessing page request that client is sent;
According to the accessing page request, produce for carrying out the custom variable of page statistics, and obtain institute State the value of custom variable;
The corresponding page of the accessing page request, the custom variable and corresponding value are sent to client End, with indicate client utilize custom variable described in storage of array and corresponding value, and by the page with The relevant trigger event formation GIF of the custom variable is asked and returned;
The GIF requests are received, the URL in asking the GIF is counted, obtain page statistics knot Really.
12. method according to claim 11, it is characterised in that please according to the page access Ask, producing the custom variable counted for the page, and obtain the value of the custom variable includes:
It is at least two regions by the corresponding page division of the accessing page request, and is the region after dividing Distribution region is identified;
According to the area identification, the custom variable in region corresponding with the area identification is produced, and is obtained Take the value of the custom variable.
13. a kind of page statistic device, it is characterised in that described device includes:
Access request receiving module, for receiving the accessing page request that client is sent;
Custom variable generation module, is used to carry out page system for according to the accessing page request, producing The custom variable of meter, and obtain the value of the custom variable;
Page variable sending module, for by the corresponding page of the accessing page request, it is described it is self-defined become Amount and corresponding value are sent to client, to indicate that client utilizes custom variable described in storage of array and right The value answered, and the trigger event formation GIF relevant with the custom variable in the page is asked and returned Return;
Page statistical module, for receiving the GIF requests, the URL in asking the GIF unites Meter, obtains page statistical result.
14. device according to claim 13, it is characterised in that the custom variable produces mould Block includes:
Area division unit, for being at least twoth area by the corresponding page division of the accessing page request Domain, and be the region distribution region mark after dividing;
Custom variable generation unit, for according to the area identification, producing corresponding with the area identification Region custom variable, and obtain the value of the custom variable.
CN201610144165.5A 2016-03-14 2016-03-14 Page statistical method and device Active CN107193825B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610144165.5A CN107193825B (en) 2016-03-14 2016-03-14 Page statistical method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610144165.5A CN107193825B (en) 2016-03-14 2016-03-14 Page statistical method and device

Publications (2)

Publication Number Publication Date
CN107193825A true CN107193825A (en) 2017-09-22
CN107193825B CN107193825B (en) 2021-03-19

Family

ID=59870722

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610144165.5A Active CN107193825B (en) 2016-03-14 2016-03-14 Page statistical method and device

Country Status (1)

Country Link
CN (1) CN107193825B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109447598A (en) * 2018-09-25 2019-03-08 平安科技(深圳)有限公司 Payment data processing method, device, computer equipment and storage medium

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101477539A (en) * 2008-12-31 2009-07-08 杭州华三通信技术有限公司 Information acquisition method and device
CN102314455A (en) * 2010-06-30 2012-01-11 百度在线网络技术(北京)有限公司 Method and system for calculating click flow of web page
CN102904765A (en) * 2011-07-26 2013-01-30 腾讯科技(深圳)有限公司 Method and equipment for data reporting
US20130204860A1 (en) * 2012-02-03 2013-08-08 TrueMaps LLC Apparatus and Method for Comparing and Statistically Extracting Commonalities and Differences Between Different Websites
CN103686354A (en) * 2013-12-04 2014-03-26 青岛海信电器股份有限公司 Smart television terminal and method for counting reporting key use behaviors
CN104504077A (en) * 2014-12-22 2015-04-08 北京国双科技有限公司 Web access data statistical method and the device
CN104601408A (en) * 2015-01-30 2015-05-06 迈普通信技术股份有限公司 Website data statistics and analysis method and system used for non-open network environment
CN104657372A (en) * 2013-11-20 2015-05-27 腾讯科技(深圳)有限公司 Page operation data processing method and device
CN105138599A (en) * 2015-08-06 2015-12-09 丁大砾 Method for automatically monitoring click volume of each link point in all pages of website

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101477539A (en) * 2008-12-31 2009-07-08 杭州华三通信技术有限公司 Information acquisition method and device
CN102314455A (en) * 2010-06-30 2012-01-11 百度在线网络技术(北京)有限公司 Method and system for calculating click flow of web page
CN102904765A (en) * 2011-07-26 2013-01-30 腾讯科技(深圳)有限公司 Method and equipment for data reporting
US20130204860A1 (en) * 2012-02-03 2013-08-08 TrueMaps LLC Apparatus and Method for Comparing and Statistically Extracting Commonalities and Differences Between Different Websites
CN104657372A (en) * 2013-11-20 2015-05-27 腾讯科技(深圳)有限公司 Page operation data processing method and device
CN103686354A (en) * 2013-12-04 2014-03-26 青岛海信电器股份有限公司 Smart television terminal and method for counting reporting key use behaviors
CN104504077A (en) * 2014-12-22 2015-04-08 北京国双科技有限公司 Web access data statistical method and the device
CN104601408A (en) * 2015-01-30 2015-05-06 迈普通信技术股份有限公司 Website data statistics and analysis method and system used for non-open network environment
CN105138599A (en) * 2015-08-06 2015-12-09 丁大砾 Method for automatically monitoring click volume of each link point in all pages of website

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
LE THU NGUYEN等: "Analysis of Networking and Application Layer Derived Metrics for Web Quality of Experience", 《2012 IEEE CONSUMER COMMUNICATIONS AND NETWORKING CONFERENCE (CCNC)》 *
单哲: "网站流量统计分析技术研究", 《中国优秀硕士学位论文全文数据库信息科技辑》 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109447598A (en) * 2018-09-25 2019-03-08 平安科技(深圳)有限公司 Payment data processing method, device, computer equipment and storage medium

Also Published As

Publication number Publication date
CN107193825B (en) 2021-03-19

Similar Documents

Publication Publication Date Title
CN104317938B (en) Web page interlinkage validation verification method and device
CN102737019B (en) Machine behavior determines method, web browser and web page server
CN103455522B (en) Recommendation method and system of application extension tools
CN105589956B (en) A kind of method and device of user's portrait
CN103678321A (en) Webpage element determination method and device and user behavior route determination method and device
CN105989074A (en) Method and device for recommending cold start through mobile equipment information
CN103618773B (en) Display method, device and system for thermodynamic diagrams
CN104133618B (en) Carry out the method and system that terminal device recommends page presentation
US20150302466A1 (en) Data determination method and device for a thermodynamic chart
CN107688568A (en) Acquisition method and device based on web page access behavior record
CN101364928A (en) Method and system enhancing network information resource distribution
CN103186670A (en) Method and system for integrally acquiring webpage information
CN103823907B (en) A kind of method, apparatus and engine for integrating online video resource address
CN104142975B (en) Microblog information promotion method, device and system
EP2974326A1 (en) Methods and apparatus to integrate tagged media impressions with panelist information
CN104063401A (en) Webpage style address merging method and device
CN103455405A (en) Method and system for preventing button from being clicked repeatedly and method and system for unlocking button
CN107357903A (en) User behavior data integration method, device and electronic equipment
CN109977296A (en) A kind of information-pushing method, device, equipment and storage medium
US9524511B2 (en) Method and a system for analysing traffic on a website by means of path analysis
CN106874502A (en) A kind of method of video search, device and terminal
CN104462242B (en) Webpage capacity of returns statistical method and device
CN104202418B (en) Recommend the method and system of the content distributing network of business for content supplier
CN109409985A (en) A kind of information displaying method, device, equipment and storage medium
CN105930385A (en) Data crawling method and system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
EE01 Entry into force of recordation of patent licensing contract

Application publication date: 20170922

Assignee: SHANGHAI YOUYANG NEW MEDIA INFORMATION TECHNOLOGY Co.,Ltd.

Assignor: BEIJING BAIDU NETCOM SCIENCE AND TECHNOLOGY Co.,Ltd.

Contract record no.: X2019110000005

Denomination of invention: Page statistical method and apparatus

License type: Common License

Record date: 20191119

EE01 Entry into force of recordation of patent licensing contract
GR01 Patent grant
GR01 Patent grant