CN104156487A - Webpage data statistics method and device - Google Patents

Webpage data statistics method and device Download PDF

Info

Publication number
CN104156487A
CN104156487A CN201410433482.XA CN201410433482A CN104156487A CN 104156487 A CN104156487 A CN 104156487A CN 201410433482 A CN201410433482 A CN 201410433482A CN 104156487 A CN104156487 A CN 104156487A
Authority
CN
China
Prior art keywords
address
web
data
trigger pip
page
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
CN201410433482.XA
Other languages
Chinese (zh)
Other versions
CN104156487B (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 Gridsum Technology Co Ltd
Original Assignee
Beijing Gridsum 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 Gridsum Technology Co Ltd filed Critical Beijing Gridsum Technology Co Ltd
Priority to CN201410433482.XA priority Critical patent/CN104156487B/en
Publication of CN104156487A publication Critical patent/CN104156487A/en
Application granted granted Critical
Publication of CN104156487B publication Critical patent/CN104156487B/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

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention discloses a webpage data statistics method and device. The webpage data statistics method comprises the steps of receiving trigger signals, acquiring a preset starting address and a preset target address, acquiring an actual arriving address at which the webpage data are sent to a target webpage from the current webpage through the preset starting address, comparing the preset target address and the actual arriving address, judging whether the actual arriving address and the preset target address are the same or not, conducting statistics on trigger operation corresponding to the webpage data which correspond to the trigger data if the preset target address and the actual arriving address are the same. According to the webpage data statistics method and device, the times for sharing a webpage can be accurately counted.

Description

Web data statistical method and device
Technical field
The present invention relates to data processing field, in particular to a kind of web data statistical method and device.
Background technology
At present the promising user of institute provides the webpage of sharing function to have the statistical function that client's webpage is shared number of times, and the statistics of using is all with regard to recording to be shared, to be correlated with social media once after user triggers the sharing function of client's Webpage opportunity.This user trigger share rear first record share number of times, after what jump to that the statistical of sharing platform counts on is that user triggers the number of times of sharing on client's webpage, be not the real number of times of sharing.
After operation is shared in user's triggering, if user directly turns off and shares the page, clicks to cancel and share button or do not share because of certain reason, do not carry out real sharing, but the record of sharing social platform completes, the number of times of sharing counting so does not conform to the real number of times of sharing.Meanwhile, because the entrance of sharing is at present all to access in Get mode, that is to say that all parameters of sharing are all in URL, by copy, URL can repeatedly share.But the statistics of sharing at present number of times but occurs in client's webpage, therefore, even share address by copy, repeatedly share, added up and successfully shared also for once.
For the webpage of adding up in correlation technique, share number of times and truly share the problem that number of times is not inconsistent, statistics accuracy is low, not yet proposing at present effective solution.
Summary of the invention
For the webpage of prior art statistics, share number of times and propose the present invention with truly sharing the problem that number of times is not inconsistent, statistics accuracy is low, for this reason, fundamental purpose of the present invention is to provide a kind of web data statistical method and device, to address the above problem.
To achieve these goals, according to an aspect of the present invention, provide a kind of web data statistical method.The method comprises: receive trigger pip, wherein, trigger pip is web data to be sent to the signal of target web from current web page; 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; 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.
Further, obtaining default start address comprises with goal-selling address: 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.
The data of the target web carrying according to trigger pip further, determine that target web comprises: 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.
Further, by default start address, obtaining the actual arrival address that web data is sent to target web from current web page comprises: 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.
Further, by default start address, obtaining the actual arrival address that web data is sent to target web from current web page comprises: using 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, 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; 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.
To achieve these goals, according to a further aspect in the invention, provide a kind of web data statistic device, this device comprises: receiving element, be used for receiving trigger pip, wherein, trigger pip is web data to be sent to the signal of target web from current web page; The first acquiring unit, 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; Second acquisition unit, for being obtained and web data sent to the actual arrival address of target web from current web page by default start address; Comparing unit, for goal-selling address and actual arrival address are contrasted, judges that whether actual arrival address is identical with goal-selling address; And statistic unit, when identical with actual arrival address in goal-selling address, trigger action corresponding to web data corresponding to statistics trigger pip.
Further, the first acquiring unit comprises: the first acquisition module, for obtain unification according to trigger pip, share the page, 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 first determination module, determines target web for the data of the target web that carries according to trigger pip; And enquiry module, 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.
Further, the first determination module comprises: parsing module, the data of carrying for resolving trigger pip; The second acquisition module, for obtaining the data of the target web that data that trigger pip carries comprise; And second determination module, for the data according to target web, determine target web.
Further, second acquisition unit comprises: the 3rd acquisition module, for using default start address as web data is sent to the actual start address of target web from current web page; And the 4th acquisition module, for obtaining and web data sent to the actual arrival address of target web from current web page by default start address.
Further, second acquisition unit comprises: the 5th acquisition module, for sharing using default start address as unification with the initial Reference-links address properties value of the Iframe control of the page; Monitoring modular, for monitoring the variation of the Reference-links address properties value of Iframe control; The 6th acquisition module, 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; And the 7th acquisition module, 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.
By the present invention, adopt the method comprising the following steps: receive trigger pip, wherein, trigger pip is web data to be sent to the signal of target web from current web page; 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; 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, solved webpage and shared statistics number and truly share the problem that number of times is not inconsistent, statistics accuracy is low, and then the number of times that can share by this method accurate statistics webpage.
Accompanying drawing explanation
The accompanying drawing that forms the application's a part is used to provide a further understanding of the present invention, and schematic description and description of the present invention is used for explaining the present invention, does not form inappropriate limitation of the present invention.In the accompanying drawings:
Fig. 1 is according to the process flow diagram of the first embodiment of web data statistical method of the present invention;
Fig. 2 is according to the process flow diagram of the second embodiment of web data statistical method of the present invention;
Fig. 3 is according to the process flow diagram of the 3rd embodiment of web data statistical method of the present invention;
Fig. 4 is according to the process flow diagram of the 4th embodiment of web data statistical method of the present invention;
Fig. 5 is according to the process flow diagram of the 5th embodiment of web data statistical method of the present invention;
Fig. 6 is according to the process flow diagram of the preferred embodiment of web data statistical method of the present invention;
Fig. 7 is according to the structured flowchart of the first embodiment of web data statistic device of the present invention;
Fig. 8 is according to the structured flowchart of the second embodiment of web data statistic device of the present invention;
Fig. 9 is according to the structured flowchart of the 4th embodiment of web data statistic device of the present invention; And
Figure 10 is according to the structured flowchart of the 5th embodiment of web data statistic device of the present invention.
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.

Claims (10)

1. a web data statistical method, is characterized in that, comprising:
Receive trigger pip, wherein, described trigger pip is web data to be sent to the signal of target web from current web page;
Obtain default start address and goal-selling address, wherein, described default start address is that described trigger pip is resolved to the start address and the described start address that obtain is that described web data is sent to the entry address of described target web by described current web page, and described goal-selling address is that described trigger pip is resolved to the destination address and the described destination address that obtain is that described web data is sent to the destination address of described target web by described current web page;
By described default start address, obtain and described web data is sent to the actual arrival address of described target web from described current web page;
Described goal-selling address and described actual arrival address are contrasted, judge that whether described actual arrival address is identical with described goal-selling address; And
If described goal-selling address is identical with described actual arrival address, add up trigger action corresponding to web data corresponding to described trigger pip.
2. method according to claim 1, is characterized in that, obtains described default start address and described goal-selling address comprises:
According to described trigger pip, obtain unification and share the page, wherein, it is to receive the page that web data is all shown from current web page sends to the trigger pip of arbitrary target webpage that the page is shared in described unification;
The data of the described target web carrying according to described trigger pip are determined described target web; And
According to described target web inquiry, described web data is shared to described default start address and the described goal-selling address of described target web from described current web page.
3. method according to claim 2, is characterized in that, the data of the described target web carrying according to described trigger pip determine that described target web comprises:
Resolve the data that described trigger pip is carried;
Obtain the data of the described target web comprising in the data that described trigger pip carries; And
According to the data of described target web, determine described target web.
4. method according to claim 1, is characterized in that, obtains the actual arrival address that described web data is sent to described target web from described current web page comprise by described default start address:
Using described default start address as described web data is sent to the actual start address of described target web from described current web page; And
By described default start address, obtain and described web data is sent to the actual arrival address of described target web from described current web page.
5. method according to claim 1, is characterized in that, obtains the actual arrival address that described web data is sent to described target web from described current web page comprise by described default start address:
The initial Reference-links address properties value of sharing using described default start address as described unification with the Iframe control in the page;
Monitor the variation of the Reference-links address properties value of described Iframe control;
Obtain the final Reference-links address properties value of described Iframe control, wherein, the final Reference-links address properties value of described Iframe control is by the chained address property value of described web data Iframe control from described current web page sends to described target web; And
Using the final Reference-links address properties value of described Iframe control as described web data is sent to the described actual arrival address of described target web from described current web page.
6. a web data statistic device, is characterized in that, comprising:
Receiving element, for receiving trigger pip, wherein, described trigger pip is web data to be sent to the signal of target web from current web page;
The first acquiring unit, be used for obtaining default start address and goal-selling address, wherein, described default start address is that described trigger pip is resolved to the start address and the described start address that obtain is that described web data is sent to the entry address of described target web by described current web page, and described goal-selling address is that described trigger pip is resolved to the destination address and the described destination address that obtain is that described web data is sent to the destination address of described target web by described current web page;
Second acquisition unit, sends to described web data the actual arrival address of described target web for obtaining by described default start address from described current web page;
Comparing unit, for described goal-selling address and described actual arrival address are contrasted, judges that whether described actual arrival address is identical with described goal-selling address; And
Statistic unit, when identical with described actual arrival address in described goal-selling address, adds up trigger action corresponding to web data corresponding to described trigger pip.
7. device according to claim 6, is characterized in that, described the first acquiring unit comprises:
The first acquisition module, shares the page for obtain unification according to described trigger pip, and wherein, it is to receive the page that web data is all shown from current web page sends to the trigger pip of arbitrary target webpage that the page is shared in described unification;
The first determination module, determines described target web for the data of the described target web that carries according to described trigger pip; And
Enquiry module, for sharing described web data described default start address and the described goal-selling address of described target web according to described target web inquiry from described current web page.
8. device according to claim 7, is characterized in that, described the first determination module comprises:
Parsing module, the data of carrying for resolving described trigger pip;
The second acquisition module, for obtaining the data of the described target web that data that described trigger pip carries comprise; And
The second determination module, for determining described target web according to the data of described target web.
9. device according to claim 6, is characterized in that, described second acquisition unit comprises:
The 3rd acquisition module, for using described default start address as described web data is sent to the actual start address of described target web from described current web page; And
The 4th acquisition module, sends to described web data the actual arrival address of described target web for obtaining by described default start address from described current web page.
10. device according to claim 6, is characterized in that, described second acquisition unit comprises:
The 5th acquisition module, for sharing using described default start address as described unification with the initial Reference-links address properties value of the Iframe control of the page;
Monitoring modular, for monitoring the variation of the Reference-links address properties value of described Iframe control;
The 6th acquisition module, for obtaining the final Reference-links address properties value of described Iframe control, wherein, the final Reference-links address properties value of described Iframe control is by the chained address property value of described web data Iframe control from described current web page sends to described target web; And
The 7th acquisition module, for using the final Reference-links address properties value of described Iframe control as described web data is sent to the described actual arrival address of described target web from described current web page.
CN201410433482.XA 2014-08-28 2014-08-28 Web data statistical method and device Active CN104156487B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410433482.XA CN104156487B (en) 2014-08-28 2014-08-28 Web data statistical method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410433482.XA CN104156487B (en) 2014-08-28 2014-08-28 Web data statistical method and device

Publications (2)

Publication Number Publication Date
CN104156487A true CN104156487A (en) 2014-11-19
CN104156487B CN104156487B (en) 2017-10-03

Family

ID=51881985

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410433482.XA Active CN104156487B (en) 2014-08-28 2014-08-28 Web data statistical method and device

Country Status (1)

Country Link
CN (1) CN104156487B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104461828A (en) * 2014-12-10 2015-03-25 北京国双科技有限公司 Method and device for recording shared events
CN105447139A (en) * 2015-11-20 2016-03-30 广州华多网络科技有限公司 Data acquisition statistical method, and system, terminal and service equipment thereof
CN106126538A (en) * 2016-06-14 2016-11-16 百度在线网络技术(北京)有限公司 The transformation processing method of the page and device
CN106708679A (en) * 2015-11-17 2017-05-24 深圳市中兴微电子技术有限公司 System-on-chip bus behavior detection method and apparatus
CN110347465A (en) * 2019-06-28 2019-10-18 北京明略软件系统有限公司 A kind of data maintaining method and device

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7730107B1 (en) * 2007-08-17 2010-06-01 Oclc Online Computer Library Center, Inc. System and method for updating and sharing private library profile data to facilitate delivery of electronic content to libraries
CN102012812A (en) * 2010-11-24 2011-04-13 Tcl集团股份有限公司 Device, terminal and method for implementing application resource sharing
CN102279786A (en) * 2011-08-25 2011-12-14 百度在线网络技术(北京)有限公司 Method and device for monitoring effective access amount of application program
CN103001856A (en) * 2012-12-05 2013-03-27 华为软件技术有限公司 Information sharing method and system and instant messaging (IM) client and server
CN103853767A (en) * 2012-12-04 2014-06-11 腾讯科技(深圳)有限公司 Method and device for sharing social circle based on browser
US20140215349A1 (en) * 2013-01-30 2014-07-31 Google Inc. Personalized content suggestions for subscribers of a channel of a content sharing platform

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7730107B1 (en) * 2007-08-17 2010-06-01 Oclc Online Computer Library Center, Inc. System and method for updating and sharing private library profile data to facilitate delivery of electronic content to libraries
CN102012812A (en) * 2010-11-24 2011-04-13 Tcl集团股份有限公司 Device, terminal and method for implementing application resource sharing
CN102279786A (en) * 2011-08-25 2011-12-14 百度在线网络技术(北京)有限公司 Method and device for monitoring effective access amount of application program
CN103853767A (en) * 2012-12-04 2014-06-11 腾讯科技(深圳)有限公司 Method and device for sharing social circle based on browser
CN103001856A (en) * 2012-12-05 2013-03-27 华为软件技术有限公司 Information sharing method and system and instant messaging (IM) client and server
US20140215349A1 (en) * 2013-01-30 2014-07-31 Google Inc. Personalized content suggestions for subscribers of a channel of a content sharing platform

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
张慕华等: "基于社会化语义网的教育资源共建共_省略_以构建高校数字化学习资源中心为例", 《现代教育技术》 *

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104461828A (en) * 2014-12-10 2015-03-25 北京国双科技有限公司 Method and device for recording shared events
CN104461828B (en) * 2014-12-10 2017-06-06 北京国双科技有限公司 Recording method and device for being shared event
CN106708679A (en) * 2015-11-17 2017-05-24 深圳市中兴微电子技术有限公司 System-on-chip bus behavior detection method and apparatus
CN105447139A (en) * 2015-11-20 2016-03-30 广州华多网络科技有限公司 Data acquisition statistical method, and system, terminal and service equipment thereof
CN105447139B (en) * 2015-11-20 2021-05-11 广州华多网络科技有限公司 Data acquisition statistical method and system, terminal and service equipment thereof
CN106126538A (en) * 2016-06-14 2016-11-16 百度在线网络技术(北京)有限公司 The transformation processing method of the page and device
CN106126538B (en) * 2016-06-14 2020-09-29 百度在线网络技术(北京)有限公司 Page conversion processing method and device
CN110347465A (en) * 2019-06-28 2019-10-18 北京明略软件系统有限公司 A kind of data maintaining method and device

Also Published As

Publication number Publication date
CN104156487B (en) 2017-10-03

Similar Documents

Publication Publication Date Title
CN104156487A (en) Webpage data statistics method and device
TWI650668B (en) Web browser fingerprinting
AU2016213858B2 (en) Methods and apparatus to integrate tagged media impressions with panelist information
CN102724190B (en) Malice URL tackles reminding method and device
CN107124430B (en) Page hijacking monitoring method, device, system and storage medium
CN103618696B (en) Method and server for processing cookie information
CN107766358B (en) Page sharing method and related device
CN104239356A (en) Webpage commenting method and system and browser
CN105635073A (en) Access control method and device and network access equipment
CN104303189A (en) Determining application vulnerabilities
CN104657659A (en) Storage cross-site attack script vulnerability detection method, device and system
CN104394041A (en) Access log generation method and device
CN104834588A (en) Permanent residence cross site script vulnerability detection method and apparatus
CN103744941A (en) Method and device for determining website evaluation result based on website attribute information
CN103701779A (en) Method and device for accessing website for second time and firewall equipment
KR20180083897A (en) Method and apparatus for obtaining IP address
CN104679798A (en) Webpage detection method and device
CN111106983A (en) Method and device for detecting network connectivity
CN104717226A (en) Method and device for detecting website address
CN104375935A (en) Method and device for testing SQL injection attack
CN104462242A (en) Webpage reflow quantity counting method and device
CN110071926A (en) A kind of data processing method and device
CN103544288A (en) Browser webpage loading control method and device
Alonso et al. Iot solution for data sensing in a smart campus using smartphone sensors
CN105721632A (en) Wireless access method and wireless access device based on DNS (Domain Name System) mechanism

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
PE01 Entry into force of the registration of the contract for pledge of patent right

Denomination of invention: Webpage data statistics method and device

Effective date of registration: 20190531

Granted publication date: 20171003

Pledgee: Shenzhen Black Horse World Investment Consulting Co., Ltd.

Pledgor: Beijing Guoshuang Technology Co.,Ltd.

Registration number: 2019990000503

PE01 Entry into force of the registration of the contract for pledge of patent right
CP02 Change in the address of a patent holder

Address after: 100083 No. 401, 4th Floor, Haitai Building, 229 North Fourth Ring Road, Haidian District, Beijing

Patentee after: Beijing Guoshuang Technology Co.,Ltd.

Address before: 100086 Beijing city Haidian District Shuangyushu Area No. 76 Zhichun Road cuigongfandian 8 layer A

Patentee before: Beijing Guoshuang Technology Co.,Ltd.

CP02 Change in the address of a patent holder