CN107193825B - Page statistical method and device - Google Patents

Page statistical method and device Download PDF

Info

Publication number
CN107193825B
CN107193825B CN201610144165.5A CN201610144165A CN107193825B CN 107193825 B CN107193825 B CN 107193825B CN 201610144165 A CN201610144165 A CN 201610144165A CN 107193825 B CN107193825 B CN 107193825B
Authority
CN
China
Prior art keywords
page
request
custom
gif
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.)
Active
Application number
CN201610144165.5A
Other languages
Chinese (zh)
Other versions
CN107193825A (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

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
    • 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

Abstract

The invention discloses a page statistical method and a page statistical device. The method, when executed by a client, comprises: receiving a page access request, and sending the page access request to a server to request the server to return a page corresponding to the page access request, a custom variable for performing page statistics and a corresponding value; receiving the page, the custom variable and the corresponding value returned by the server, storing the custom variable and the corresponding value by using an array, and loading the page; forming a GIF request from a trigger event in a page according to the user-defined variable and the corresponding value; and sending the GIF request to a server to request the server to count the URL in the GIF request to obtain a page counting result. The invention can support a plurality of user-defined variables, realizes the multi-dimensional statistics of the page, and enhances the expansibility and flexibility of the user-defined variables in the page.

Description

Page statistical method and device
Technical Field
The embodiment of the invention relates to a network technology, in particular to a page statistical method and a page statistical device.
Background
In a trading website, some traffic data and user behavior data of a web page are usually required to be counted in order to know the preference of a user for a product. For example, the click quantity and the number of visitors of a login user in Beijing to access the detail page of the IT-type book commodity are counted.
The conventional page statistical system (such as Baidu statistics, Google analysis and the like) is weak in statistical support for custom variables, and the number of the supported custom variables is limited, namely the statistical dimensions are limited, only single-dimension statistics can be performed, and two dimensions or even multiple dimensions cannot be simultaneously performed. Therefore, the prior art has the defect that the custom variables are not easy to expand.
Disclosure of Invention
In view of this, embodiments of the present invention provide a page statistical method and apparatus, so as to enhance extensibility of a user-defined variable in a page.
In a first aspect, an embodiment of the present invention provides a page statistics method, where the method is executed by a client, and the method includes:
receiving a page access request, and sending the page access request to a server to request the server to return a page corresponding to the page access request, a custom variable for performing page statistics and a corresponding value;
receiving the page, the custom variable and the corresponding value returned by the server, storing the custom variable and the corresponding value by using an array, and loading the page;
forming a GIF request from a trigger event in a page according to the user-defined variable and the corresponding value;
and sending the GIF request to a server to request the server to count the URL in the GIF request to obtain a page counting result.
In a second aspect, an embodiment of the present invention further provides a page statistics apparatus, where the apparatus is applied in a client, and the apparatus includes:
the access request sending module is used for receiving a page access request and sending the page access request to a server so as to request the server to return a page corresponding to the page access request, a custom variable for page statistics and a corresponding value;
the page variable receiving module is used for receiving the page, the custom variable and the corresponding value returned by the server, storing the custom variable and the corresponding value by using an array and loading the page;
the GIF request forming module is used for forming the trigger event in the page into a GIF request according to the custom variable and the corresponding value;
and the GIF sending module is used for sending the GIF request to a server so as to request the server to carry out statistics on the URL in the GIF request to obtain a page statistical result.
In a third aspect, an embodiment of the present invention provides a page statistical method, where the method is executed by a server, and the method includes:
receiving a page access request sent by a client,
generating a custom variable for page statistics according to the page access request, and acquiring a value of the custom variable;
sending the page corresponding to the page access request, the custom variable and the corresponding value to a client to indicate the client to store the custom variable and the corresponding value by using an array, and forming a GIF request by a trigger event related to the custom variable in the page and returning the GIF request;
and receiving the GIF request, and carrying out statistics on the URL in the GIF request to obtain a page statistical result.
In a fourth aspect, an embodiment of the present invention further provides a page statistics apparatus, where the apparatus is applied in a server, and the apparatus includes:
an access request receiving module, configured to receive a page access request sent by a client,
the user-defined variable generation module is used for generating a user-defined variable for carrying out page statistics according to the page access request and acquiring the value of the user-defined variable;
the page variable sending module is used for sending the page corresponding to the page access request, the custom variable and the corresponding value to the client so as to indicate the client to store the custom variable and the corresponding value by using an array, and forming a GIF request by the trigger event related to the custom variable in the page and returning the GIF request;
and the page counting module is used for receiving the GIF request, counting the URLs in the GIF request and obtaining a page counting result.
According to the technical scheme, after the page access request is received, the page access request is sent to the server, the page corresponding to the page access request, the custom variables used for page statistics and the corresponding values returned by the server are received, the custom variables and the corresponding values are stored by using the arrays and loaded, the trigger events related to the custom variables and the corresponding values in the page form the GIF request, the GIF request is sent to the server, the server performs statistics on the URL in the GIF request to obtain the page statistical result, a plurality of custom variables can be supported, multi-dimensional statistics on the page is achieved, and the expansibility and the flexibility of the custom variables in the page are enhanced.
Drawings
Fig. 1 is a flowchart of a page statistical method according to an embodiment of the present invention;
FIG. 2 is a flowchart of a page statistical method according to a second embodiment of the present invention;
fig. 3 is a schematic structural diagram of a page statistical apparatus according to a third embodiment of the present invention;
fig. 4 is a flowchart of a page statistical method according to a fourth embodiment of the present invention;
fig. 5 is a schematic structural diagram of a page statistical apparatus according to a fifth embodiment of the present invention;
fig. 6 is a flowchart of a page statistical method according to a sixth embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some but not all of the relevant aspects of the present invention are shown in the drawings.
Example one
Fig. 1 is a flowchart of a page statistical method according to an embodiment of the present invention, where the embodiment is applicable to a case of counting click volumes or numbers of visitors of a page according to a custom variable, and the method may be executed by a client, and specifically includes the following steps:
s110, receiving a page access request, and sending the page access request to a server to request the server to return a page corresponding to the page access request, a custom variable for performing page statistics and a corresponding value.
When a user accesses a network page, a page access request is generated by inputting a website or clicking a corresponding link, after the client receives the page access request, the page access request is sent to a server to request the server to return a page corresponding to the page access request, and when the click quantity or the number of visitors in the page needs to be counted, the server also returns a custom variable and a corresponding value for page counting.
The custom variable is generated according to the purpose of statistics, and the value of the custom variable is obtained by analyzing the page access request. The custom variables may include at least one of city, page identification, user rating, and traffic channel source. The value of the custom variable city can be Beijing, namely counting the click rate from the Beijing; when the user-defined variable is the page identification, the click rate or the visitor number of a certain page is counted, and the value of the user-defined variable is the page identification of the page corresponding to the page access request; the user grade is the click rate of the user with the corresponding user grade or the number of the users with the grade (namely the visitor number of the users with the grade); the flow channel source is used for counting the click rate or the visitor number of a user from a certain channel, if the click rate of the user from the hectometer bar is counted, the self-defined variable is the flow channel source, and the value of the self-defined variable is the hectometer bar.
S120, receiving the page, the custom variable and the corresponding value returned by the server, storing the custom variable and the corresponding value by using an array, and loading the page.
And after receiving the page, the custom variable and the corresponding value returned by the server, the client stores the custom variable and the corresponding value by using the array and loads the page at the same time. When the client stores the custom variable and the corresponding value by using the array, the client can store the custom variable and the corresponding value by using the two-dimensional array; one array can be used for storing the custom variable, and the value of the custom variable is stored in the corresponding position of the other array. The array is used for storing the custom variables, the custom variables can be supported, and multidimensional page data can be counted.
When the page data is counted, the user can use the JavaScript point distribution to realize the counting, so that when the user-defined variable is stored, the user-defined variable can be stored by using the JavaScript variable. In order to avoid adding too many event processing functions (namely JavaScript codes) into an HTML (Hyper Text Mark-up Language) page, a section of JavaScript codes is executed at the tail of the page, the implementation is realized by binding a mousedown function for all elements (self-defined variables and related elements) with bi tags, and a jquery method is adopted for traversal when all the elements with bi tags are traversed, so that the performance time consumption of the page can be reduced. The bi tag is a tag allocated to the user-defined variable and the related element in the JavaScript code.
And S130, forming a GIF request from the trigger event in the page according to the custom variable and the corresponding value.
And the client forms a GIF (Graphics Interchange Format) request for the trigger event related to the custom variable and the corresponding value in the page according to the custom variable and the corresponding value so that the server can count the page data according to the GIF request. The GIF request includes a URL (Uniform Resource Locator), which is a URL of a page clicked by a user, and also includes a custom variable and a corresponding value. The triggering event in the page comprises the completion of page loading and the received events of clicking a button in the page by a user and the like.
Wherein, the forming of the GIF request by the trigger event in the page according to the self-defined variable and the corresponding value preferably comprises:
after the page is loaded, forming a GIF request according to the custom variable and the corresponding value; and/or
And when the click operation of the user is received, forming a GIF request according to the self-defined variable and the corresponding value.
The GIF request may include a page request and/or an event request, among others. After the page loading is finished, a page request can be sent, wherein the page request is used for counting data such as click quantity or visitor number in the page; when the page triggers an event (e.g., triggers a login or register button in the page), an event request is sent.
S140, the GIF request is sent to a server so as to request the server to count the URL in the GIF request to obtain a page counting result.
And sending the GIF request to a server to request the server to carry out statistics on page data such as the click rate of a page or the number of visitors and the like on the URL in the GIF request.
Custom variables may include page attributes and user attributes. For example, when counting page access flow and click operation flow of a login user, the user-defined variable is a user identifier, the corresponding value is encrypted data for identifying the ID of the user, and the GIF request for counting the value of the user-defined variable can obtain pages accessed by the user in sequence and click operation on the pages.
In the prior art, due to the limitation on the number of the custom variables, after a client sends out a GIF request related to the custom variables and corresponding values, the custom variables and corresponding values are cleared, and when the custom variables and corresponding values are needed, the custom variables and corresponding values are retransmitted to the client by a server. In the embodiment of the invention, after the GIF request is sent out, the user-defined variable and the corresponding value are not required to be repeatedly obtained, so that the statistical time can be saved.
In the technical scheme of this embodiment, after receiving a page access request, the page access request is sent to a server, a page corresponding to the page access request, a custom variable for performing page statistics, and a corresponding value returned by the server are received, the custom variable and the corresponding value are stored by using an array, loading the page, forming a GIF request by the trigger event related to the self-defined variable and the corresponding value in the page, sending the GIF request to a server, the request server counts the URL in the GIF request to obtain a page statistical result, can support a plurality of user-defined variables, realize the multi-dimensional statistics of the page, enhance the expansibility and flexibility of the user-defined variables in the page, therefore, the website can be conveniently counted in all directions, and the condition of the whole website can be counted from multiple dimensions.
On the basis of the technical scheme, forming the GIF request of the trigger event in the page according to the user-defined variable and the corresponding value comprises the following steps:
and forming a GIF request by the trigger event in the area corresponding to the area identifier in the page according to the user-defined variable and the corresponding value.
By dividing the page into regions and allocating the region identifiers, the trigger events in the regions corresponding to the region identifiers needing to be counted in the page can form the GIF request, so that the trigger events in the regions can be counted. In the prior art, when a plurality of clicked buttons are arranged in a page, an identifier needs to be allocated to each button, and then the click quantity of each different identifier needs to be counted, so that the names of the buttons are more, the counting is troublesome, and the change of the page is larger. And by distributing the area identification, the statistical process is simplified, the added statistical codes are fewer, and the page maintenance is facilitated.
Example two
Fig. 2 is a flowchart of a page statistical method provided in the second embodiment of the present invention, where this embodiment optimizes the first embodiment, and specifically includes the following steps:
s210, receiving a page access request, and sending the page access request to a server to request the server to return a page corresponding to the page access request, a custom variable for performing page statistics and a corresponding value.
S220, receiving the page, the custom variable and the corresponding value returned by the server, storing the custom variable and the corresponding value by using an array, and loading the page.
And S230, forming a GIF request from the trigger event in the page according to the custom variable and the corresponding value.
S240, the GIF request is sent to a server so as to request the server to carry out statistics on the URL in the GIF request to obtain a page statistical result.
S250, clearing temporary variables and corresponding values in the custom variables stored in the array.
Because a plurality of click events can occur in one page, if invalid parameters such as temporary variables and corresponding values in the user-defined variables are not cleared, the variables on the page are more and more, and the condition of parameter overlapping can occur in the following click events, so that the statistical data of the click events is inaccurate; on the other hand, as more and more variables are in the array, the URL length of the GIF request becomes longer and longer, and since the URL length of the GIF request is limited, it is impossible to add variables to the array without limitation. Therefore, invalid parameters such as temporary variables and corresponding values in the user-defined process need to be cleared regularly, the situation that the statistical data are inaccurate is avoided, and the validity of the URL in the GIF request is guaranteed.
In the technical solution of this embodiment, on the basis of the first embodiment, after the GIF request is sent to the server, the temporary variables and the corresponding values in the custom variables stored in the array are cleared, so that the occurrence of inaccurate statistical data can be avoided and the validity of the URL in the GIF request can be ensured.
EXAMPLE III
Fig. 3 is a schematic structural diagram of a page statistics apparatus according to a third embodiment of the present invention, where the apparatus is applied to a client, as shown in fig. 3, the page statistics apparatus according to the present embodiment includes: an access request transmitting module 310, a page variable receiving module 320, a GIF request forming module 330, and a GIF request transmitting module 340.
The access request sending module 310 is configured to receive a page access request, and send the page access request to a server, so as to request the server to return a page corresponding to the page access request, a custom variable used for performing page statistics, and a corresponding value;
the page variable receiving module 320 is configured to receive the page, the custom variable, and the corresponding value returned by the server, store the custom variable and the corresponding value by using an array, and load the page;
the GIF request forming module 330 is configured to form a GIF request from the trigger event in the page according to the custom variable and the corresponding value;
the GIF request sending module 340 is configured to send the GIF request to a server, so as to request the server to perform statistics on the URL in the GIF request to obtain a page statistical result.
Preferably, the GIF request formation module is specifically configured to:
after the page is loaded, forming a GIF request according to the custom variable and the corresponding value; and/or
And when the click operation of the user is received, forming a GIF request according to the self-defined variable and the corresponding value.
Preferably, the method further comprises the following steps:
and the temporary variable clearing module is used for clearing the temporary variables and the corresponding values in the custom variables stored in the array after the GIF request is sent to the server.
Preferably, the GIF request formation module includes:
and the area GIF request forming unit is used for forming the GIF request by the trigger event in the area corresponding to the area identifier in the page according to the self-defined variable and the corresponding value.
Wherein the custom variable may include at least one of a city, a page identification, a user rating, and a traffic channel source.
In the technical scheme of the embodiment, after the access request sending module receives the page access request, sending the page access request to a server, receiving a page corresponding to the page access request, a custom variable for page statistics and a corresponding value returned by the server by a page variable receiving module, storing the custom variable and the corresponding value by an array, loading the page, forming a GIF request by the GIF request forming module according to the trigger events related to the self-defined variables and the corresponding values in the page, sending the GIF request to the server by the GIF request sending module, the request server counts the URL in the GIF request to obtain a page statistical result, the method can support a plurality of user-defined variables, realizes the multi-dimensional statistics of the page, and enhances the expansibility and flexibility of the user-defined variables in the page.
Example four
Fig. 4 is a flowchart of a page statistical method according to a fourth embodiment of the present invention, where this embodiment is applicable to a case of counting the click rate or the number of visitors of a page according to a custom variable, and the method may be executed by a server, and specifically includes the following steps:
s410, receiving a page access request sent by a client.
And S420, generating a custom variable for page statistics according to the page access request, and acquiring the value of the custom variable.
The server analyzes the page access request, generates a custom variable for performing page statistics, and obtains a value of the custom variable, for example, by analyzing the page access request, the generated custom variable may have an IP address, a city, and the like, so that the obtained values are respectively the IP address of the client sending the page access request and the city where the client is located.
And S430, sending the page corresponding to the page access request, the custom variable and the corresponding value to the client, so as to instruct the client to store the custom variable and the corresponding value by using the array, and forming a GIF request by using the trigger event related to the custom variable in the page and returning the GIF request.
And the client is instructed to store the custom variable and the corresponding value by using the array, so that the expansion of the custom variable is facilitated, and the value of the custom variable is stored. And when a trigger event occurs in the page, forming a GIF request by the trigger event related to the self-defined variable, wherein the URL of the GIF request comprises the value of the self-defined variable, so that the dimension represented by the self-defined variable is counted conveniently according to the GIF request.
S440, receiving the GIF request, and carrying out statistics on the URL in the GIF request to obtain a page statistical result.
The URL of the GIF request comprises the value of the custom variable, so that the page statistical result related to the custom variable can be obtained by counting the URL in the GIF request. For example, when counting click events, data of multiple dimensions consisting of a plurality of custom variables on a page, such as a city where a user is located, a page identifier, a user level, a traffic channel source and the like, are included in the URL of a corresponding GIF request, so that statistics can be performed to obtain the maximum click rate of the user in which city, the minimum click rate of which page, the maximum click rate of the user in which channel and the like.
According to the technical scheme of the embodiment, after a page access request sent by a client is received, a custom variable for performing page statistics is generated according to the page access request, the value of the custom variable is obtained, a page corresponding to the page access request, the custom variable and the corresponding value are sent to the client to indicate the client to store the custom variable and the corresponding value by using an array, a GIF request is formed by trigger events related to the custom variable in the page and returned, the GIF request is received, URLs in the GIF request are counted to obtain a page statistical result, a plurality of custom variables can be supported, multi-dimensional statistics of the page is realized, the expansibility and flexibility of the custom variable in the page are enhanced, and therefore, the website can be conveniently and comprehensively counted, the situation of the whole website is counted from multiple dimensions.
On the basis of the technical scheme, generating a custom variable for page statistics according to the page access request, and acquiring the value of the custom variable comprises the following steps:
dividing the page corresponding to the page access request into at least two areas, and distributing area identifications for the divided areas;
and generating a custom variable of the region corresponding to the region identifier according to the region identifier, and acquiring the value of the custom variable.
When trigger events such as click events and the like of a certain area in one page need to be counted, the page can be divided into areas, the page corresponding to the page access request is divided into at least two areas, area identifiers are distributed to the divided areas, custom variables generated in the areas corresponding to the area identifiers are analyzed according to the area identifiers of the page needing to be counted, and values of the custom variables are obtained. By dividing the page into regions, the added statistical codes are fewer, and the page is convenient to maintain.
EXAMPLE five
Fig. 5 is a schematic structural diagram of a page statistics apparatus according to a fifth embodiment of the present invention, where the apparatus according to the present embodiment is applied to a server, and as shown in fig. 3, the page statistics apparatus according to the present embodiment includes: an access request receiving module 510, a custom variable generating module 520, a page variable transmitting module 530, and a page statistics module 540.
The access request receiving module 510 is configured to receive a page access request sent by a client;
the custom variable generation module 520 is configured to generate a custom variable for performing page statistics according to the page access request, and obtain a value of the custom variable;
the page variable sending module 530 is configured to send the page corresponding to the page access request, the custom variable, and the corresponding value to the client, so as to instruct the client to store the custom variable and the corresponding value by using an array, and form a GIF request for a trigger event related to the custom variable in the page and return the GIF request;
the page statistics module 540 is configured to receive the GIF request, and perform statistics on the URL in the GIF request to obtain a page statistics result.
Preferably, the custom variable generation module includes:
the area dividing unit is used for dividing the page corresponding to the page access request into at least two areas and distributing area identifications for the divided areas;
and the custom variable generation unit is used for generating a custom variable of the area corresponding to the area identifier according to the area identifier and acquiring the value of the custom variable.
In the technical scheme of the embodiment, a page access request sent by a client is received by an access request receiving module, a custom variable generating module generates a custom variable for page statistics according to the page access request and acquires a value of the custom variable, a page variable sending module sends a page corresponding to the page access request, the custom variable and a corresponding value to the client so as to instruct the client to store the custom variable and the corresponding value by using an array, and a GIF request is formed by a trigger event related to the custom variable in the page and returned, a page statistics module receives the GIF request and performs statistics on a URL in the GIF request to obtain a page statistics result, so that a plurality of custom variables can be supported, multi-dimensional statistics on the page is realized, and the expansibility and flexibility of the custom variable in the page are enhanced, therefore, the website can be conveniently counted in all directions, and the condition of the whole website can be counted from multiple dimensions.
EXAMPLE six
Fig. 6 is a flowchart of a page statistical method according to a sixth embodiment of the present invention, where this embodiment is applicable to a case of counting click volumes or visitor numbers of pages according to a custom variable, and the method may be executed by a client and a server in cooperation, and specifically includes the following steps:
s610, the client receives the page access request and sends the page access request to the server.
S620, the server receives the page access request sent by the client.
S630, the server generates a user-defined variable for page statistics according to the page access request, and obtains the value of the user-defined variable.
And S640, the server sends the page corresponding to the page access request, the custom variable and the corresponding value to the client.
S650, the client receives the page, the custom variable and the corresponding value returned by the server, stores the custom variable and the corresponding value by using an array, and loads the page.
And S660, the client forms the trigger event in the page into a GIF request according to the custom variable and the corresponding value.
And S670, the client sends the GIF request to a server.
And S680, the server receives the GIF request, and counts the URLs in the GIF request to obtain a page counting result.
According to the technical scheme, a server receives a page access request sent by a client, a custom variable used for page statistics is generated, a value of the custom variable is obtained, a page corresponding to the page access request, the custom variable and a corresponding value are sent to the client, the client stores the custom variable and the corresponding value by using an array and loads the page, a GIF request is formed by a trigger event in the page and is sent to the server, and the server performs statistics on URLs in the GIF request after receiving the GIF request to obtain a page statistical result. The embodiment can support a plurality of user-defined variables, realizes the multi-dimensional statistics of the page, and enhances the expansibility and flexibility of the user-defined variables in the page, so that the website can be conveniently counted in all directions, and the condition of the whole website can be counted in multiple dimensions.
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (14)

1. A method for page statistics, the method comprising:
receiving a page access request, and sending the page access request to a server to request the server to return a page corresponding to the page access request, at least two custom variables for performing page statistics and corresponding values;
receiving the page, the custom variables and the corresponding values returned by the server, storing the at least two custom variables and the corresponding values by using an array, and loading the page;
forming a trigger event in a page into an image interchange format GIF request according to the user-defined variable and the corresponding value;
and sending the GIF request to a server to request the server to count the Uniform Resource Locator (URL) in the GIF request to obtain a page statistical result.
2. The method of claim 1, wherein forming a GIF request for a trigger event in a page according to the custom variable and a corresponding value comprises:
after the page is loaded, forming a GIF request according to the custom variable and the corresponding value; and/or
And when the click operation of the user is received, forming a GIF request according to the self-defined variable and the corresponding value.
3. The method of claim 1, further comprising, after sending the GIF request to a server:
and clearing temporary variables and corresponding values in the custom variables stored in the array.
4. The method of claim 1, wherein forming trigger events in a page into a GIF request according to the custom variables and corresponding values comprises:
and forming a GIF request by the trigger event in the area corresponding to the area identifier in the page according to the user-defined variable and the corresponding value.
5. The method of any of claims 1-4, wherein the custom variables include at least one of city, page identification, user rating, and source of traffic channel.
6. A page statistics apparatus, characterized in that the apparatus comprises:
the access request sending module is used for receiving a page access request and sending the page access request to a server so as to request the server to return a page corresponding to the page access request, at least two custom variables for carrying out page statistics and corresponding values;
the page variable receiving module is used for receiving the page, the custom variables and the corresponding values returned by the server, storing the at least two custom variables and the corresponding values by using an array, and loading the page;
the GIF request forming module is used for forming the trigger event in the page into a GIF request according to the custom variable and the corresponding value;
and the GIF request sending module is used for sending the GIF request to a server so as to request the server to carry out statistics on the URL in the GIF request to obtain a page statistical result.
7. The apparatus of claim 6, wherein the GIF request formation module is specifically configured to:
after the page is loaded, forming a GIF request according to the custom variable and the corresponding value; and/or
And when the click operation of the user is received, forming a GIF request according to the self-defined variable and the corresponding value.
8. The apparatus of claim 6, further comprising:
and the temporary variable clearing module is used for clearing the temporary variables and the corresponding values in the custom variables stored in the array after the GIF request is sent to the server.
9. The apparatus of claim 6, wherein the GIF request formation module comprises:
and the area GIF request forming unit is used for forming the GIF request by the trigger event in the area corresponding to the area identifier in the page according to the self-defined variable and the corresponding value.
10. The apparatus of any of claims 6-9, wherein the custom variables comprise at least one of city, page identification, user rating, and source of traffic channel.
11. A method for page statistics, the method comprising:
receiving a page access request sent by a client;
generating at least two custom variables for carrying out page statistics according to the page access request, and acquiring values of the custom variables;
sending the page corresponding to the page access request, the custom variables and the corresponding values to a client to indicate the client to store the at least two custom variables and the corresponding values by using an array, and forming a GIF request by the trigger events related to the custom variables in the page and returning the GIF request;
and receiving the GIF request, and carrying out statistics on the URL in the GIF request to obtain a page statistical result.
12. The method of claim 11, wherein generating a custom variable for page statistics based on the page access request, and obtaining a value of the custom variable comprises:
dividing the page corresponding to the page access request into at least two areas, and distributing area identifications for the divided areas;
and generating a custom variable of the region corresponding to the region identifier according to the region identifier, and acquiring the value of the custom variable.
13. A page statistics apparatus, characterized in that the apparatus comprises:
the access request receiving module is used for receiving a page access request sent by a client;
the user-defined variable generation module is used for generating at least two user-defined variables for carrying out page statistics according to the page access request and acquiring the values of the user-defined variables;
the page variable sending module is used for sending the page corresponding to the page access request, the custom variables and the corresponding values to the client so as to indicate the client to store the at least two custom variables and the corresponding values by using an array, and forming the trigger events related to the custom variables in the page into a GIF request and returning the GIF request;
and the page counting module is used for receiving the GIF request, counting the URLs in the GIF request and obtaining a page counting result.
14. The apparatus of claim 13, wherein the custom variable generation module comprises:
the area dividing unit is used for dividing the page corresponding to the page access request into at least two areas and distributing area identifications for the divided areas;
and the custom variable generation unit is used for generating a custom variable of the area corresponding to the area identifier according to the area identifier and acquiring 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 CN107193825A (en) 2017-09-22
CN107193825B true 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)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102904765A (en) * 2011-07-26 2013-01-30 腾讯科技(深圳)有限公司 Method and equipment for data reporting
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

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101477539B (en) * 2008-12-31 2011-09-28 杭州华三通信技术有限公司 Information acquisition method and device
CN102314455A (en) * 2010-06-30 2012-01-11 百度在线网络技术(北京)有限公司 Method and system for calculating click flow of web page
US20130204860A1 (en) * 2012-02-03 2013-08-08 TrueMaps LLC Apparatus and Method for Comparing and Statistically Extracting Commonalities and Differences Between Different Websites
CN104657372B (en) * 2013-11-20 2018-11-06 腾讯科技(深圳)有限公司 page operation data processing method and device
CN103686354B (en) * 2013-12-04 2017-01-11 青岛海信电器股份有限公司 Smart television terminal and method for counting reporting key use behaviors

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102904765A (en) * 2011-07-26 2013-01-30 腾讯科技(深圳)有限公司 Method and equipment for data reporting
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
Analysis of Networking and Application Layer Derived Metrics for Web Quality of Experience;Le Thu Nguyen等;《2012 IEEE CONSUMER COMMUNICATIONS AND NETWORKING CONFERENCE (CCNC)》;20121231;全文 *
网站流量统计分析技术研究;单哲;《中国优秀硕士学位论文全文数据库信息科技辑》;20130215(第21期);全文 *

Also Published As

Publication number Publication date
CN107193825A (en) 2017-09-22

Similar Documents

Publication Publication Date Title
CN108717435B (en) Webpage loading method, information processing method, computer equipment and storage medium
CN108712519B (en) Method and device for positioning IP address and storage medium
US20100017486A1 (en) System analyzing program, system analyzing apparatus, and system analyzing method
EP2447864A1 (en) Update notification method and system
US8826122B2 (en) Method, system and device for displaying a web page
JP2019074843A (en) Information providing apparatus, information providing method, and program
CN104283723A (en) Network access log processing method and device
CN102741827A (en) Information processing device
CN108737252B (en) Information pushing method and device based on block chain
JP2009151811A (en) Hot site presentation system
US8458247B2 (en) System and method for generating web analytic reports
JP2013058108A (en) Tag management device and tag management program
CN113542420B (en) Processing method and device of hot spot file, electronic equipment and medium
CN106789147B (en) Flow analysis method and device
CN104503983A (en) Method and device for providing website certification data for search engine
CN112437148B (en) Service request processing method and device, service server and system
CN107193825B (en) Page statistical method and device
CN110120918B (en) Identification analysis method and device
US20100017401A1 (en) Recording medium storing system analyzing program, system analyzing apparatus, and system analyzing method
Aivalis et al. Evolving analytics for e-commerce applications: Utilizing big data and social media extensions
CN105701232B (en) Hypertext link list pushing system based on APP information data
CN112231566A (en) Information pushing method, device and system and readable storage medium
CN111400608A (en) Data processing method and device, storage medium and electronic equipment
CN111159196A (en) Block chain data storage and acquisition method and device based on fragmentation
CN105468678A (en) Information push method and device

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