Embodiment
It should be noted that, in the situation that not conflicting, embodiment and the feature in embodiment in the application can combine mutually.Describe below with reference to the accompanying drawings and in conjunction with the embodiments the present invention in detail.
Fig. 1 is according to the process flow diagram of the first embodiment of web data statistical method of the present invention.As shown in Figure 1, the method comprises the steps:
Step S102, receives trigger pip, and wherein, trigger pip is web data to be sent to the signal of target web from current web page.
Trigger pip is the signal that user triggers specific region on webpage, and representative of consumer will send to target web by the data on this specific region.The information of the target web that has carried the information of current web page in this trigger pip and will send to.Such as: the special sign that has " being forwarded to B webpage " on A webpage, when user's wish is forwarded to B webpage by certain information on A webpage, only need to trigger the special sign of " being forwarded to B webpage " of showing under this information, give one of system and this information is sent to the command signal of target web from current web page.
Step S104, obtain default start address and goal-selling address, wherein, default start address is that trigger pip is resolved to the start address and the start address that obtain is that web data is sent to the entry address of target web by current web page, and goal-selling address is that trigger pip is resolved to the destination address and the destination address that obtain is that web data is sent to the destination address of target web by current web page.
The web data of take is shared as example and is described.Sharing function raising website is to provide can share for the head of a station's third party the website of plug-in unit, and the head of a station just can share social media by the content of own website by embedding this plug-in unit on the website of oneself.Sharing function provides the configuration file that contains of website, in this configuration file, has recorded info web is shared to sharing entry address and really completing the path of sharing of each target pages.By trigger pip is resolved, can determine current page and target pages, that in configuration file, searches so corresponding above-mentioned target pages shares entry address and destination address, is about to info web and shares by entry address the true path that destination address need be passed through.
Step S106, is obtained and web data is sent to the actual arrival address of target web from current web page by default start address.
Really info web is being shared from current web page target web process, set default start address as the entry address of data sharing, detecting webpage and shared the address that rear web data is sent to, this address is actual arrival address.
Step S108, contrasts goal-selling address and actual arrival address, judges that whether actual arrival address is identical with goal-selling address.
Whether the web page address that the judgement of this step sends to web data is the default destination address of sharing that completes in configuration file, to detect, whether really completes webpage and shares.
Step S110, if goal-selling address is identical with actual arrival address, adds up trigger action corresponding to web data corresponding to trigger pip.
If two addresses are identical, illustrate that it is that default start address from configuration file has been shared goal-selling address really that this webpage is shared process, can be used as and carries out quantity statistics sharing of once really completing.
This embodiment is owing to having taked following steps: receive trigger pip; Obtain default start address and goal-selling address; By default start address, obtain and web data is sent to the actual arrival address of target web from current web page; Goal-selling address and actual arrival address are contrasted, judge that whether actual arrival address is identical with goal-selling address; And if goal-selling address is identical with actual arrival address, add up trigger action corresponding to web data corresponding to trigger pip, the statistics that makes webpage share number of times is to obtain with default contrast of sharing path based on truly sharing path, only under the identical condition in two paths, just can share behavior to this webpage and add up, and be no longer after user triggers webpage, to record immediately, carry out again webpage and share.Thereby can obtain webpage accurately and share statistics number.
Fig. 2 is according to the process flow diagram of the second embodiment of web data statistical method of the present invention.This embodiment can be used as a kind of preferred implementation embodiment illustrated in fig. 1, and as shown in Figure 2, this web data statistical method comprises:
Step S201, receives trigger pip, and wherein, trigger pip is web data to be sent to the signal of target web from current web page.
This step is equal to step S102, repeats no more here.
Step S202, obtains unification according to trigger pip and shares the page, and wherein, the unified page of sharing is to receive the page that web data is all shown from current web page sends to the trigger pip of arbitrary target webpage.
Sharing function provides website that the portal page of sharing of a unification is provided.When the webpage sharing function of client web site is triggered, no matter be to share which target pages, all by jumping to sharing function, provide the portal page of sharing of unification that website provides.First encapsulate the entrance of sharing of a unification, and then load each target pages real share entry address.
Step S204, the data of the target web carrying according to trigger pip are determined target web.
Some information about target pages in trigger pip, have been carried, such as the key word of target pages, such as " Sina " etc.The data of the target web carrying by parsing trigger pip, the target pages that can clearly will share.
Step S206, according to target web, default start address and the goal-selling address of target web are shared web data in inquiry from current web page.
According to target pages definite in step S204, in the configuration file that provides website to provide at sharing function, search corresponding by web data from current page share this target web set in advance share successfully path, from default start address, share goal-selling address.
Step S208, is obtained and web data is sent to the actual arrival address of target web from current web page by default start address.
This step is identical with step S106, repeats no more here.
Step S210, contrasts goal-selling address and actual arrival address, judges that whether actual arrival address is identical with goal-selling address.
This step is equal to step S108, repeats no more here.
Step S212, if goal-selling address is identical with actual arrival address, adds up trigger action corresponding to web data corresponding to trigger pip.
This step is equal to step S110, repeats no more here.
In this embodiment, the concrete steps of obtaining default start address and goal-selling address have been provided: according to trigger pip, obtain the unified page of sharing, wherein, the unified page of sharing is to receive the page that web data is all shown from current web page sends to the trigger pip of arbitrary target webpage; The data of the target web carrying according to trigger pip are determined target web; According to target web, default start address and the goal-selling address of target web are shared web data in inquiry from current web page.By above-mentioned steps, can be obtained and real from current web page to target web, be shared path, for the webpage in practical operation, sharing path provides reference, thereby improved webpage, shares number of times statistical accuracy.
Fig. 3 is according to the process flow diagram of the 3rd embodiment of web data statistical method of the present invention.This embodiment can be used as a kind of preferred implementation embodiment illustrated in fig. 1, and as shown in Figure 3, this web data statistical method comprises:
Step S301, receives trigger pip, and wherein, trigger pip is web data to be sent to the signal of target web from current web page.
This step is equal to step S102, repeats no more here.
Step S302, obtains unification according to trigger pip and shares the page, and wherein, the unified page of sharing is to receive the page that web data is all shown from current web page sends to the trigger pip of arbitrary target webpage.
This step is equal to step S202, repeats no more here.
Step S304, resolves the data that trigger pip is carried.
In trigger pip, carried current web page that webpage shares and the information of target web, by resolving clearly this webpage, shared operation and specifically where web data will be shared.
Step S306, obtains the data of the target web comprising in the data that trigger pip carries.
The data of this target web can be that the address of target web or other can be distinguished the data of this webpage and other webpages.
Step S307, determines target web according to the data of target web.
This step is according to the data about target web of carrying in trigger pip, parses specifically which webpage of this webpage.Such as the packet of this target web is containing www.sina.com and some other data about this target web, by resolving, can know that this target web is Sina website.
Step S308, according to target web, default start address and the goal-selling address of target web are shared web data in inquiry from current web page.
This step is equal to step S206, repeats no more here.
Step S309, is obtained and web data is sent to the actual arrival address of target web from current web page by default start address.
This step is identical with step S106, repeats no more here.
Step S310, contrasts goal-selling address and actual arrival address, judges that whether actual arrival address is identical with goal-selling address.
This step is equal to step S108, repeats no more here.
Step S312, if goal-selling address is identical with actual arrival address, adds up trigger action corresponding to web data corresponding to trigger pip.
This step is equal to step S110, repeats no more here.
In this embodiment, the data that provided the target web carrying according to trigger pip are determined the concrete steps of target web: resolve the data that trigger pip is carried; Obtain the data of the target web comprising in the data that trigger pip carries; According to the data of target web, determine target web.The data of carrying by parsing trigger pip can obtain target web information exactly, thereby are conducive to the number of times of sharing of accurate statistics web data.
Fig. 4 is according to the process flow diagram of the 4th embodiment of web data statistical method of the present invention.This embodiment can be used as a kind of preferred implementation embodiment illustrated in fig. 1, and as shown in Figure 4, this web data statistical method comprises:
Step S401, receives trigger pip, and wherein, trigger pip is web data to be sent to the signal of target web from current web page.
This step is equal to step S102, repeats no more here.
Step S402, obtain default start address and goal-selling address, wherein, default start address is that trigger pip is resolved to the start address and the start address that obtain is that web data is sent to the entry address of target web by current web page, and goal-selling address is that trigger pip is resolved to the destination address and the destination address that obtain is that web data is sent to the destination address of target web by current web page.
This step is equal to step S104, repeats no more here.
Step S403, using default start address as web data is sent to the actual start address of target web from current web page.
Whether specifying default start address is here the start address that web data is shared, investigate the webpage starting from this start address and share and really complete.It should be noted that, the start address of named web page data sharing is the default start address in configuration file here, is that contrasting more easily two shares path below in order to make.
Step S404, is obtained and web data is sent to the actual arrival address of target web from current web page by default start address.
After having determined the start address that webpage is shared, the process of sharing by monitoring whole webpage, can obtain and web data be sent to the actual arrival address of target web from current web page.
Step S406, contrasts goal-selling address and actual arrival address, judges that whether actual arrival address is identical with goal-selling address.
This step is equal to step S108, repeats no more here.
Step S408, if goal-selling address is identical with actual arrival address, adds up trigger action corresponding to web data corresponding to trigger pip.
This step is equal to step S110, repeats no more here.
In this embodiment, provided by default start address and obtained and web data is sent to the concrete steps of the actual arrival address of target web from current web page: using default start address as web data is sent to the actual start address of target web from current web page; By default start address, obtain and web data is sent to the actual arrival address of target web from current web page.By above step, can take the starting point that the default start address that parses shares as webpage, the actual arrival address that only needs examination webpage to share, is webpage by goal-selling address to actual arrival address and shares path.By the method, can obtain webpage convenient, exactly and share path, for statistical web page efficiently, share number of times very favourable.
Fig. 5 is according to the process flow diagram of the 5th embodiment of web data statistical method of the present invention.This embodiment can be used as a kind of preferred implementation embodiment illustrated in fig. 1, and as shown in Figure 5, this web data statistical method comprises:
Step S501, receives trigger pip, and wherein, trigger pip is web data to be sent to the signal of target web from current web page.
This step is equal to step S102, repeats no more here.
Step S502, obtain default start address and goal-selling address, wherein, default start address is that trigger pip is resolved to the start address and the start address that obtain is that web data is sent to the entry address of target web by current web page, and goal-selling address is that trigger pip is resolved to the destination address and the destination address that obtain is that web data is sent to the destination address of target web by current web page.
This step is equal to step S104, repeats no more here.
Step S504, using default start address as the unified initial Reference-links address properties value of sharing the Iframe control in the page.
Iframe is html tag, and effect is the document in document, or unsteady framework (Frame).Iframe element can create the inline frame (inner frame at once) that comprises another one document.The conventional attribute of Iframe comprises: src-Reference-links attribute; The width of width-framework; The height of height-framework; The width on the border, left and right that in frameborder-definition frame, html file shows, default value determines by going sight-seeing device; Whether srolling-arranges or obtains framework and can be scrolled etc.
What wherein, the initial Reference-links address properties value (src) of Iframe control was described is the URL of the HTLM file of Iframe demonstration, the i.e. position at file place.The grammer of src is: src=url, wherein url can be relative address, can be also specific address.
Using default start address as the unified initial Reference-links address properties value of sharing the Iframe control in the page, thereby detect the situation of change of the Reference-links address properties value of Iframe control based on this.
Step S506, the variation of the Reference-links address properties value of monitoring Iframe control.
In the unload of Iframe event, monitor the variation of the Reference-links address properties value of Iframe, dynamically read the Reference-links address properties value of Iframe control.
Step S508, obtains the final Reference-links address properties value of Iframe control, and wherein, the final Reference-links address properties value of Iframe control is by the chained address property value of web data Iframe control from current web page sends to target web.
After the webpage that this trigger pip causes is shared event and is completed, the final Reference-links address properties value of checking Iframe control.
Step S510, using the final Reference-links address properties value of Iframe control as web data is sent to the actual arrival address of target web from current web page.
The final Reference-links address properties value of Iframe control is exactly that final web data sends (sharing) and arrives to obtain the address at webpage place.
Step S512, contrasts goal-selling address and actual arrival address, judges that whether actual arrival address is identical with goal-selling address.
This step is equal to step S108, repeats no more here.
Step S514, if goal-selling address is identical with actual arrival address, adds up trigger action corresponding to web data corresponding to trigger pip.
This step is equal to step S110, repeats no more here.
In this embodiment, provided by default start address and obtained web data is sent to the concrete steps of the actual arrival address of target web from current web page: will default start address as the unified initial Reference-links address properties value of sharing the Iframe control the page; The variation of the Reference-links address properties value of monitoring Iframe control; Obtain the final Reference-links address properties value of Iframe control; Using the final Reference-links address properties value of Iframe control as web data is sent to the actual arrival address of target web from current web page.Above step, by the variation of the Reference-links address properties value of dynamic monitoring Iframe control, has improved efficiency and the accuracy of obtaining actual arrival address, is conducive to efficient accurately geo-statistic web data and shares number of times.
Fig. 6 is according to the process flow diagram of the preferred embodiment of web data statistical method of the present invention.In the figure, client web site is equal to the equipment with web data sending function, share and be equal to web data transmission, the platform of sharing is equal to the equipment that receives web data, sharing platform entrance is equal to the entrance that sends web data to the equipment that receives web data, and sharing successfully path is that web data sends successful path.
In this embodiment, by webpage being shared to true path, share path and contrast with default, and judge whether to share number of times statistics, thus make final obtain to share statistics number more accurate.
Fig. 7 is according to the process flow diagram of the first embodiment of web data statistic device of the present invention.As shown in Figure 7, this web data statistic device comprises:
Receiving element 22, for receiving trigger pip, wherein, trigger pip is web data to be sent to the signal of target web from current web page.
Trigger pip is the signal that user triggers specific region on webpage, and representative of consumer will send to target web by the data on this specific region.The information of the target web that has carried the information of current web page in this trigger pip and will send to.Such as: the special sign that has " being forwarded to B webpage " on A webpage, when user's wish is forwarded to B webpage by certain information on A webpage, only need to trigger the special sign of " being forwarded to B webpage " of showing under this information, give one of system and this information is sent to the command signal of target web from current web page.
The first acquiring unit 24, be used for obtaining default start address and goal-selling address, wherein, default start address is that trigger pip is resolved to the start address and the start address that obtain is that web data is sent to the entry address of target web by current web page, and goal-selling address is that trigger pip is resolved to the destination address and the destination address that obtain is that web data is sent to the destination address of target web by current web page.
The web data of take is shared as example and is described.Sharing function raising website is to provide can share for the head of a station's third party the website of plug-in unit, and the head of a station just can share social media by the content of own website by embedding this plug-in unit on the website of oneself.Sharing function provides the configuration file that contains of website, in this configuration file, has recorded info web is shared to sharing entry address and really completing the path of sharing of each target pages.The first acquiring unit 24 is by resolving trigger pip, can determine current page and target pages, that in configuration file, searches so corresponding above-mentioned target pages shares entry address and destination address, is about to info web and shares by entry address the true path that destination address need be passed through.
Second acquisition unit 26, for being obtained and web data sent to the actual arrival address of target web from current web page by default start address.
Really info web is being shared target web process from current web page, second acquisition unit 26 is preset start address as the entry address of data sharing by setting, detection completes webpage and shares the address that rear web data is sent to, and this address is actual arrival address.
Comparing unit 28, for goal-selling address and actual arrival address are contrasted, judges that whether actual arrival address is identical with goal-selling address.
Whether the web page address that this unit judges sends to web data is the default destination address of sharing that completes in configuration file, to detect, whether really completes webpage and shares.
Statistic unit 30, when identical with actual arrival address in goal-selling address, trigger action corresponding to web data corresponding to statistics trigger pip.
If two addresses are identical, illustrate that this web data process of transmitting is that default start address from configuration file has sent to goal-selling address really, statistic unit 30 can carry out quantity statistics as the process of transmitting once really completing using it.
This device is owing to having with lower unit: receiving element 22, the first acquiring unit 24, second acquisition unit 26, comparing unit 28 and statistic unit 30, the statistics that makes web data transmission times is that the contrast based on true transmit path and default transmit path obtains, only under the identical condition in two paths, just can add up this web data transmission behavior, and be no longer after user triggers webpage, to record immediately, carry out again web data transmission.Thereby can obtain web data accurately and send statistics number.
Fig. 8 is according to the process flow diagram of the second embodiment of web data statistic device of the present invention.This embodiment can be used as a kind of preferred implementation embodiment illustrated in fig. 7, and as shown in Figure 8, this web data statistic device comprises:
Receiving element 22, the first acquiring unit 24, second acquisition unit 26, comparing unit 28 and statistic unit 30, wherein, receiving element 22, second acquisition unit 26, comparing unit 28 and statistic unit 30 are identical with Fig. 6, repeat no more here.The first acquiring unit 24 can also comprise:
The first acquisition module 32, shares the page for obtain unification according to trigger pip, and wherein, the unified page of sharing is to receive the page that web data is all shown from current web page sends to the trigger pip of arbitrary target webpage.
Sending function provides website, can provide website for sharing function, and the portal page of sharing of a unification is provided.When the web data sending function of client web site is triggered, no matter be to send to which target pages, all by the unified transmission portal page that jumps to sending function and provide website to provide.First encapsulate a unified transmission entrance, and then load each target pages real transmit into port address.
The first determination module 34, determines target web for the data of the target web that carries according to trigger pip.
Some information about target pages in trigger pip, have been carried, such as the key word of target pages, such as " Sina " etc.The data of the target web carrying by parsing trigger pip, the target pages that can clearly will send to.
Enquiry module 36, for inquiring about and web data shared to default start address and the goal-selling address of target web from current web page according to target web.
According to definite target pages, the corresponding transmission the setting in advance success path of this target web that web data is sent to from current page is provided in the configuration file that enquiry module 36 provides website to provide at sending function, from default start address, sends to goal-selling address.
In this embodiment, the concrete module that has provided the first acquiring unit 24 forms: the first acquisition module 32, the first determination module 34 and enquiry module 36.By the effect with upper module, can obtain the real transmit path from current web page to target web, for the web data transmit path in practical operation provides reference, thereby improve web data transmission times statistical accuracy.
According to the process flow diagram of the 3rd embodiment of web data statistic device of the present invention below.This embodiment can be used as a kind of preferred implementation embodiment illustrated in fig. 8.This web data statistic device comprises:
Receiving element 22, the first acquiring unit 24, second acquisition unit 26, comparing unit 28 and statistic unit 30, wherein, receiving element 22, second acquisition unit 26, comparing unit 28 and statistic unit 30, the first acquiring unit 24 also comprises the first acquisition module 32, the first determination module 34 and enquiry module 36, except the remaining element of the first determination module 34 is identical with Fig. 7 with module, repeat no more here.The first determination module 34 can also comprise:
Parsing module, the data of carrying for resolving trigger pip.
In trigger pip, carried current web page that webpage shares and the information of target web, the parsing by parsing module 42 clearly this web data transmit operation specifically will send to web data where.
The second acquisition module, for obtaining the data of the target web that data that trigger pip carries comprise.
The data of this target web can be that the address of target web or other can be distinguished the data of this webpage and other webpages.
The second determination module, determines target web for the data according to target web.
This module is according to the data about target web of carrying in trigger pip, parses specifically which webpage of this webpage.Such as the packet of this target web is containing www.sina.com and some other data about this target web, this module can know that this target web is Sina website.
In this embodiment, provided the concrete module that the first determination module 34 comprises: parsing module, the second acquisition module and the second determination module.By parsing module, resolve the data that trigger pip carries and can obtain exactly target web information, thereby be conducive to the number of times of sharing of accurate statistics web data.
Fig. 9 is according to the process flow diagram of the 4th embodiment of web data statistic device of the present invention.This embodiment can be used as a kind of preferred implementation embodiment illustrated in fig. 7, and as shown in Figure 9, this web data statistic device comprises:
Receiving element 22, the first acquiring unit 24, second acquisition unit 26, comparing unit 28 and statistic unit 30, wherein identical described in receiving element 22, the first acquiring unit 24, comparing unit 28 and statistic unit 30 and Fig. 6, repeat no more here.Second acquisition unit 26 can also comprise:
The 3rd acquisition module 52, for using default start address as web data is sent to the actual start address of target web from current web page.
Whether the 3rd acquisition module 52 is specified and is preset the start address that start address is web data transmission here, investigate the web data transmission starting from this start address and really complete.It should be noted that, the start address that named web page data send is here the default start address in configuration file, is that contrasting more easily two shares path below in order to make.
The 4th acquisition module 54, for being obtained and web data sent to the actual arrival address of target web from current web page by default start address.
After having determined the start address that webpage is shared, the process of sharing by monitoring whole webpage, the 4th acquisition module 54 can obtain and web data be sent to the actual arrival address of target web from current web page.
In this embodiment, provided the concrete module that second acquisition unit 26 comprises: the 3rd acquisition module 52 and the 4th acquisition module 54.By can take the default start address that parses with upper module, be the starting point that web data sends, the actual arrival address that only needs examination web data to send, is the path of web data transmission to actual arrival address by goal-selling address.By the method, can obtain convenient, exactly web data transmit path, for statistical web page data transmission times is very favourable efficiently.
Figure 10 is according to the process flow diagram of the 5th embodiment of web data statistic device of the present invention.This embodiment can be used as a kind of preferred implementation embodiment illustrated in fig. 7, and as shown in figure 10, this web data statistic device comprises:
Receiving element 22, the first acquiring unit 24, second acquisition unit 26, comparing unit 28 and statistic unit 30, wherein identical described in receiving element 22, the first acquiring unit 24, comparing unit 28 and statistic unit 30 and Fig. 7, repeat no more here.Second acquisition unit 26 can also comprise:
The 5th acquisition module 62, for sharing using default start address as unification with the initial Reference-links address properties value of the Iframe control of the page.
Iframe is html tag, and effect is the document in document, or unsteady framework (Frame).Iframe element can create the inline frame (inner frame at once) that comprises another one document.The conventional attribute of Iframe comprises: src-Reference-links attribute; The width of width-framework; The height of height-framework; The width on the border, left and right that in frameborder-definition frame, html file shows, default value determines by going sight-seeing device; Whether srolling-arranges or obtains framework and can be scrolled etc.
What wherein, the initial Reference-links address properties value (src) of Iframe control was described is the URL of the HTLM file of Iframe demonstration, the i.e. position at file place.The grammer of src is: src=url, wherein url can be relative address, can be also specific address.
The 5th acquisition module 62 is using default start address as the unified initial Reference-links address properties value of sharing the Iframe control in the page, thereby monitoring modular 64 can detect based on this situation of change of the Reference-links address properties value of Iframe control.
Monitoring modular 64, for monitoring the variation of the Reference-links address properties value of Iframe control.
This module is monitored the variation of the Reference-links address properties value of Iframe in the unload of Iframe event, dynamically reads the Reference-links address properties value of Iframe control.
The 6th acquisition module 66, for obtaining the final Reference-links address properties value of Iframe control, wherein, the final Reference-links address properties value of Iframe control is by the chained address property value of web data Iframe control from current web page sends to target web.
After the webpage that this trigger pip causes is shared event and completed, the 6th acquisition module 66 can obtain the final Reference-links address properties value of Iframe control.
The 7th acquisition module 68, for using the final Reference-links address properties value of Iframe control as web data is sent to the actual arrival address of target web from current web page.
The final Reference-links address properties value of Iframe control is exactly that final web data sends (sharing) and arrives to obtain the address at webpage place.
In this embodiment, provided the concrete module composition of second acquisition unit 26: the 5th acquisition module 62, monitoring modular 64, the 6th acquisition module 66 and the 7th acquisition module 68.With upper module, by the variation of the Reference-links address properties value of dynamic monitoring Iframe control, improve efficiency and the accuracy of obtaining actual arrival address, be conducive to efficient accurately geo-statistic web data transmission times.
Obviously, those skilled in the art should be understood that, above-mentioned each module of the present invention or each step can realize with general calculation element, they can concentrate on single calculation element, or be distributed on the network that a plurality of calculation elements form, alternatively, they can be realized with the executable program code of calculation element, thereby, they can be stored in memory storage and be carried out by calculation element, or they are made into respectively to each integrated circuit modules, or a plurality of modules in them or step are made into single integrated circuit module to be realized.Like this, the present invention is not restricted to any specific hardware and software combination.
These are only the preferred embodiments of the present invention, be not limited to the present invention, for a person skilled in the art, the present invention can have various modifications and variations.Within the spirit and principles in the present invention all, any modification of doing, be equal to replacement, improvement etc., within all should being included in protection scope of the present invention.