The content of the invention
It is a primary object of the present invention to provide the loading method and device of a kind of webpage thermodynamic, to solve prior art
Use the problem of webpage thermodynamic loading is inaccurate during access from different devices same web page.
To achieve these goals, according to an aspect of the invention, there is provided a kind of loading method of webpage thermodynamic.
The loading method of the webpage thermodynamic includes:Determine webpage loading equipemtn and webpage to be loaded;It is corresponding to obtain webpage loading equipemtn
User agent;Webpage to be loaded is redirected to by target web according to user agent;Obtain the click volume of target web;According to
The click volume of target web obtains the thermodynamic chart of target web;Webpage to be loaded is loaded by the thermodynamic chart of loaded targets webpage
Thermodynamic chart.
Further, user agent corresponding to acquisition webpage loading equipemtn includes:Obtain and acted on behalf of corresponding to webpage to be loaded
Webpage, wherein, agent webpage is used to load the thermodynamic chart of target web and target web corresponding to webpage to be loaded;Obtain agency
Query argument in webpage, wherein, the query argument of agent webpage includes the network address of webpage to be loaded and webpage loading is set
Standby device identification;The query argument in agent webpage is parsed, obtains the network address and webpage loading equipemtn of webpage to be loaded
Device identification;The equipment mark of webpage loading equipemtn is obtained according to the corresponding relation of the device identification and user agent prestored
User agent corresponding to knowledge.
Further, webpage loading is obtained according to the corresponding relation of the device identification and subscriber proxy server prestored
User agent corresponding to the device identification of equipment includes:Obtain the device identification set of webpage suitable device to be loaded;Traversal is set
Standby logo collection, it is the device identification distributing user agency in device identification set, wherein, device identification and user agent are one by one
It is corresponding;By device identification, user agent corresponding to device identification, device identification is corresponding with user agent's corresponding to device identification
Relation is stored;Webpage loading is obtained according to the corresponding relation of the device identification of storage user agent corresponding with device identification
User agent corresponding to the device identification of equipment.
Further, webpage to be loaded is redirected to target web bag by user agent according to corresponding to webpage loading equipemtn
Include:User agent corresponding to webpage loading equipemtn is added in the header parameter of webpage to be loaded;Webpage to be loaded is according to head
User agent corresponding to webpage loading equipemtn in portion's parameter determines the device identification of webpage loading equipemtn;According to what is prestored
Device identification and the corresponding relation of webpage, webpage to be loaded is redirected to net corresponding to the device identification of webpage loading equipemtn
Page.
Further, according to the device identification prestored and the corresponding relation of webpage, webpage to be loaded is redirected to
Webpage corresponding to the device identification of webpage loading equipemtn includes:The network address of target web is obtained, wherein, the net of target web
Network address is the network address for the webpage that webpage to be loaded deforms according to device identification;Obtain setting for webpage suitable device to be loaded
Standby logo collection;Travel through device identification set, the device identification established in device identification set and the network address of target web
Corresponding relation;By device identification, the network address of target web, device identification is corresponding with the network address of target web to close
System is stored;Webpage loading equipemtn is obtained according to the corresponding relation of the device identification of storage and the network address of target web
The network address of target web corresponding to device identification;Load the net of target web corresponding to the device identification of webpage loading equipemtn
Webpage corresponding to network address.
To achieve these goals, according to another aspect of the present invention, there is provided a kind of loading device of webpage thermodynamic.
The loading device of the webpage thermodynamic includes:First determining module, for determining webpage loading equipemtn and webpage to be loaded;First
Acquisition module, for obtaining user agent corresponding to webpage loading equipemtn;Redirection module, for will be to be added according to user agent
Contained network page is redirected to target web;Second acquisition module, for obtaining the click volume of target web;3rd acquisition module, use
In obtaining the thermodynamic chart of target web according to the click volume of target web;First load-on module, for passing through loaded targets webpage
Thermodynamic chart load the thermodynamic chart of webpage to be loaded.
Further, the first acquisition module includes:First acquisition submodule, for obtaining agency corresponding to webpage to be loaded
Webpage, wherein, agent webpage is used to load the thermodynamic chart of target web and target web corresponding to webpage to be loaded;Second obtains
Submodule, for obtaining the query argument in agent webpage, wherein, the query argument of agent webpage includes the net of webpage to be loaded
Network address and the device identification of webpage loading equipemtn;Parsing module, for parsing the query argument in agent webpage, obtain to be added
The network address of contained network page and the device identification of webpage loading equipemtn;3rd acquisition submodule, for being set according to what is prestored
The corresponding relation of standby mark and user agent obtain user agent corresponding to the device identification of webpage loading equipemtn.
Further, the 3rd acquisition submodule includes:4th acquisition submodule, for obtaining webpage suitable device to be loaded
Device identification set;Distribute module, it is that the device identification distribution in device identification set is used for traveling through device identification set
Family is acted on behalf of, wherein, device identification corresponds with user agent;First memory module, for by device identification, device identification pair
The user agent answered, the corresponding relation of device identification user agent corresponding with device identification are stored;5th obtains submodule
Block, the corresponding relation for the user agent corresponding with device identification of the device identification according to storage obtain webpage loading equipemtn
User agent corresponding to device identification.
Further, redirection module includes:Add module, for user agent corresponding to webpage loading equipemtn to be added
Into the header parameter of webpage to be loaded;Second determining module, for webpage loading of the webpage to be loaded in header parameter
User agent corresponding to equipment determines the device identification of webpage loading equipemtn;First redirects submodule, is deposited in advance for basis
The device identification of storage and the corresponding relation of webpage, webpage to be loaded is redirected to corresponding to the device identification of webpage loading equipemtn
Webpage.
Further, the first redirection submodule includes:6th acquisition submodule, for obtaining the network of target web
Location, wherein, the network address of target web is the network address for the webpage that webpage to be loaded deforms according to device identification;7th obtains
Submodule is taken, for obtaining the device identification set of webpage suitable device to be loaded;Module is established, for traveling through device identification collection
Close, the device identification established in device identification set and the corresponding relation of the network address of target web;Second memory module, use
In by device identification, the network address of target web, the corresponding relation of the network address of device identification and target web is deposited
Storage;8th acquisition submodule, net is obtained for the corresponding relation of the device identification according to storage and the network address of target web
The network address of target web corresponding to the device identification of page loading equipemtn;Second load-on module, set for loading webpage loading
Webpage corresponding to the network address of target web corresponding to standby device identification.
By the present invention, using determination webpage loading equipemtn and webpage to be loaded;Obtain and used corresponding to webpage loading equipemtn
Act on behalf of at family;Webpage to be loaded is redirected to by target web according to user agent;Obtain the click volume of target web;According to target
The click volume of webpage obtains the thermodynamic chart of target web;The heating power of webpage to be loaded is loaded by the thermodynamic chart of loaded targets webpage
Figure, solve the problems, such as that webpage thermodynamic loading is inaccurate when prior art uses access from different devices same web page.By this
The loading method visitor of the webpage thermodynamic of invention need not access different networks when using different web pages loading equipemtn
Address, can be according to the webpage loading equipemtn that visitor uses automatically by visitor's weight when Accessor Access's same network address
Different webpages is directed to, different content displayings is provided for different webpage loading equipemtns.Meanwhile the invention by adding automatically
Target web corresponding to contained network page loading equipemtn loads the thermodynamic chart of the target web to realize to webpage heating power to be loaded automatically
The loading of figure, and then ensure that the accuracy loaded using webpage thermodynamic during access from different devices same web page.
Embodiment
It should be noted that in the case where not conflicting, the feature in embodiment and embodiment in the application can phase
Mutually combination.Describe the present invention in detail below with reference to the accompanying drawings and in conjunction with the embodiments.
In order that those skilled in the art more fully understand application scheme, below in conjunction with the embodiment of the present application
Accompanying drawing, the technical scheme in the embodiment of the present application is clearly and completely described, it is clear that described embodiment is only
The embodiment of the application part, rather than whole embodiments.Based on the embodiment in the application, ordinary skill people
The every other embodiment that member is obtained under the premise of creative work is not made, it should all belong to the model of the application protection
Enclose.
It should be noted that term " first " in the description and claims of this application and above-mentioned accompanying drawing, "
Two " etc. be for distinguishing similar object, without for describing specific order or precedence.It should be appreciated that so use
Data can exchange in the appropriate case, so as to embodiments herein described herein.In addition, term " comprising " and " tool
Have " and their any deformation, it is intended that cover it is non-exclusive include, for example, containing series of steps or unit
Process, method, system, product or equipment are not necessarily limited to those steps clearly listed or unit, but may include without clear
It is listing to Chu or for the intrinsic other steps of these processes, method, product or equipment or unit.
The present invention is intended to provide the loading method and device of a kind of webpage thermodynamic.
Fig. 1 is the flow chart of the loading method of webpage thermodynamic according to embodiments of the present invention.As shown in figure 1, the webpage
The loading method of thermodynamic chart includes steps S101 to step S106:
Step S101, determine webpage loading equipemtn and webpage to be loaded.
Webpage to be loaded can be any webpage in any one browser, such as the homepage of Sohu's browser, Baidu
The search and webpage in library etc..Webpage loading equipemtn can be computer, tablet personal computer, iPhone, or Android mobile phone etc..Phase
The content that same webpage is shown on different webpage loading equipemtns is different, such as, the homepage of baidu browser is on computers
The content and display that the homepage of position and baidu browser where the content and display content of display is shown on iPhone
Position where content is different.Content that identical webpage is shown on the webpage loading equipemtn of one species different model or
The position of display content also differs, for example the content that mobile phone of the identical webpage in different model is shown also differs, apple
The mobile phone of the mobile phone of fruit IOS systems and Android system shows that the display mode of Baidu's homepage is different.Browser net is designed in exploitation
During page, the webpage suitable for being shown on different web pages loading equipemtn is devised according to the different exploitations of webpage loading equipemtn.Than
Such as, type during webpage loading equipemtn has 3, respectively equipment 1, equipment 2 and equipment 3, website designer is respectively for this class in 3
The equipment of type devises 3 kinds of different deformation webpages of webpage to be loaded, respectively webpage 1, webpage 2 and webpage 3, i.e., ought set
Show webpage 1 during standby 1 loading webpage to be loaded, webpage 2 shown when equipment 2 loads webpage to be loaded, when equipment 3 load it is to be added
Webpage 3 is shown during contained network page.
Step S102, obtain user agent corresponding to webpage loading equipemtn.
Web analytics platform provides the mode for the thermodynamic chart for loading every kind of webpage loading equipemtn for webpage to be loaded.It is preferred that
Ground, the loading method of the webpage thermodynamic of the embodiment load the heating power of webpage to be loaded by any of which load mode
During figure, user agent corresponding to acquisition webpage loading equipemtn specifically includes:Agent webpage corresponding to webpage to be loaded is obtained, its
In, agent webpage is used to load the thermodynamic chart of target web and target web corresponding to webpage to be loaded;Obtain in agent webpage
Query argument, wherein, the query argument of agent webpage includes the network address of webpage to be loaded and setting for webpage loading equipemtn
Standby mark;The query argument in agent webpage is parsed, obtains the network address of webpage to be loaded and the equipment of webpage loading equipemtn
Mark;The device identification that webpage loading equipemtn is obtained according to the corresponding relation of the device identification and user agent prestored is corresponding
User agent.
Preferably, webpage loading is obtained according to the corresponding relation of the device identification and subscriber proxy server that prestore to set
User agent corresponding to standby device identification includes:Obtain the device identification set of webpage suitable device to be loaded;Travel through equipment
Logo collection, it is the device identification distributing user agency in device identification set, wherein, a pair of device identification and user agent 1
Should;By device identification, user agent corresponding to device identification, device identification is corresponding with user agent corresponding to device identification to close
System is stored;Webpage loading is obtained according to the corresponding relation of the device identification of storage user agent corresponding with device identification to set
User agent corresponding to standby device identification.The loading method of the webpage thermodynamic of the embodiment can be by device identification, equipment
User agent corresponding to mark, the corresponding relation of device identification user agent corresponding with device identification are stored in database,
Can be by device identification, user agent corresponding to device identification, device identification is corresponding with user agent's corresponding to device identification
Relation is stored in other storage mediums.For example the device identification set of webpage suitable device to be loaded includes equipment 1, equipment 2
And equipment 3, for user agent corresponding to equipment 1 for agency 1, user agent corresponding to equipment 2 is agency 2, is used corresponding to equipment 3
Family agency is agency 3.When equipment 1 loads webpage to be loaded, according to the device identification prestored and the correspondence of user agent
Relation can directly obtain user agent corresponding to the equipment 1 as agency 1.
Step S103, webpage to be loaded is redirected to by target web according to user agent.
Webpage to be loaded is redirected into target web according to user agent corresponding to webpage loading equipemtn includes:By webpage
User agent corresponding to loading equipemtn is added in the header parameter of webpage to be loaded;Webpage to be loaded is according in header parameter
User agent corresponding to webpage loading equipemtn determines the device identification of webpage loading equipemtn;According to the device identification that prestores with
The corresponding relation of webpage, webpage to be loaded is redirected to webpage corresponding to the device identification of webpage loading equipemtn.
According to the device identification prestored and the corresponding relation of webpage, webpage to be loaded is redirected to webpage loading and set
Webpage corresponding to standby device identification includes:The network address of target web is obtained, wherein, the network address of target web is to treat
The network address for the webpage that loading webpage deforms according to device identification;Obtain the device identification collection of webpage suitable device to be loaded
Close;Device identification set is traveled through, the device identification established in device identification set is corresponding with the network address of target web to close
System;By device identification, the network address of target web, the corresponding relation of the network address of device identification and target web is deposited
Storage;The device identification of webpage loading equipemtn is obtained according to the corresponding relation of the device identification of storage and the network address of target web
The network address of corresponding target web;Load the network address pair of target web corresponding to the device identification of webpage loading equipemtn
The webpage answered.The loading method of the webpage thermodynamic of the embodiment can be by device identification, the network address of target web, equipment
The corresponding relation of mark and the network address of target web is stored in database, can also be by device identification, the net of target web
The corresponding relation of the network address of network address, device identification and target web is stored in other storage mediums.Such as contained network to be added
The device identification set of page suitable device includes equipment 1, equipment 2 and equipment 3, the device identification prestored and webpage
Corresponding relation is that equipment 1 shows webpage 1 when loading webpage to be loaded, and equipment 2 shows webpage 2, equipment 3 when loading webpage to be loaded
Webpage 3 is shown when loading webpage to be loaded.It can be obtained according to the device identification prestored and the corresponding relation of user agent
User agent is that the device identification of webpage loading equipemtn corresponding to agency 1 is equipment 1, according to the device identification and net prestored
Page corresponding relation obtain webpage loading equipemtn device identification be equipment 1 corresponding to target web be webpage 1.
Step S104, obtain the click volume of target web.
When user accesses webpage to be loaded by webpage loading equipemtn, according to the device identification and webpage prestored
The webpage to be loaded that corresponding relation accesses webpage loading equipemtn is redirected to target web, the behavioral data meeting that the user accesses
It is recorded in database, wherein, data foundation of the behavioral data that the user accesses as web analytics, it can specifically include
The access duration of user, number of clicks and click location etc..Preferably, the loading method of the webpage thermodynamic of the embodiment will
Target web is divided into the region of multiple 10*10 pixel sizes, and the click data of optional position will all be used as the area in this region
The click data of domain top left co-ordinate point.For example coordinate position will be used as where the coordinate points for the click data at (11,15) place
Region coordinate position be (10,10) place click data.Webpage to be loaded is accessed by same webpage loading equipemtn
User can have one, it is possibility to have multiple.Same user is in the click volume bag corresponding to webpage to be loaded on target web
Include click volume of the user in the target web different zones.All click datas of all users of front end script collection, including
Number of clicks and click location of user etc., and these click datas will be stored into database.
Step S105, the thermodynamic chart of target web is obtained according to the click volume of target web.
Preferably, the loading method of the webpage thermodynamic of the embodiment inquires about mesh from the database for be stored with click data
The click volume in each region in webpage is marked, gray-scale map is drawn according to the click volume of target web.The target web is divided into more
The region of individual 10*10 pixel sizes, at the coordinate points in the arbitrary region of target web, centered on this coordinate points, paint
A round region is made, grey color depth shares 255 grades, and the depth of click volume highest point is 255 in the circle region, click volume 0
The depth of point be 0, click volumes of other points are scaled any depth value between 0-255 in proportion.Painted to target web
It is the transfer color to grayscale images of the target web after gray-scale map processed, the grey color depth of each pixel is obtained first, in the range of 0-
255, this scope is divided into 5 grades, each grade corresponds to different colors, and with grade from low to high, color constantly becomes
It is deep, thus just obtain the thermodynamic chart of target web.Thermodynamic chart reflects the click volume of target web arbitrary region, in thermodynamic chart
The click volume of target web is more corresponding to the deeper region of color, target web corresponding to the shallower region of color in thermodynamic chart
Click volume it is less.
Step S106, the thermodynamic chart of webpage to be loaded is loaded by the thermodynamic chart of loaded targets webpage.
After the thermodynamic chart of target web is obtained according to the click volume of target web, agent webpage is first according to equipment mark
Know target web corresponding with the corresponding relation of webpage loading webpage loading equipemtn, the target network is then loaded on target web
The thermodynamic chart of page.The loading method of the webpage thermodynamic of the embodiment is according to device identification and the corresponding relation of webpage, by webpage
The loading equipemtn webpage to be loaded to be loaded is redirected to target web.By agent webpage loaded targets webpage, according to mesh
The click volume for marking webpage obtains the thermodynamic chart of target web, and then the thermodynamic chart of loaded targets webpage comes in fact on the target web
Existing network page loading equipemtn loads the thermodynamic chart of webpage to be loaded, and webpage heating power to be loaded is loaded so as to improve webpage loading equipemtn
The degree of accuracy of figure.
The loading method of the webpage thermodynamic of the embodiment is using determination webpage loading equipemtn and webpage to be loaded;Obtain net
User agent corresponding to page loading equipemtn;Webpage to be loaded is redirected to by target web according to user agent;Obtain target network
The click volume of page;The thermodynamic chart of target web is obtained according to the click volume of target web;Pass through the thermodynamic chart of loaded targets webpage
The thermodynamic chart of webpage to be loaded is loaded, webpage thermodynamic when prior art uses access from different devices same web page is solved and loads
The problem of inaccurate, the effect for the accuracy for improving the thermodynamic chart that webpage loading equipemtn loads webpage to be loaded is reached.
As can be seen from the above description, the loading method of the webpage thermodynamic of the embodiment of the present invention according to depositing in advance
The device identification of storage and the corresponding relation of the webpage webpage to be loaded to be loaded to webpage loading equipemtn are redirected to target network
Page, the thermodynamic chart of target web is obtained after obtaining the click volume of target web, and webpage to be loaded is loaded by using the page is acted on behalf of
Corresponding target pages, then on target pages the loaded targets page thermodynamic chart come realize webpage loading equipemtn loading it is to be added
The thermodynamic chart of contained network page, solves webpage thermodynamic loading inaccuracy when prior art uses access from different devices same web page
Problem.The thermodynamic chart that different webpage loading equipemtns loads the webpage to be loaded obtained during the thermodynamic chart of webpage to be loaded is different,
The effect for improving the accuracy that webpage loading equipemtn loads webpage thermodynamic to be loaded is reached.
It should be noted that can be in such as one group of computer executable instructions the flow of accompanying drawing illustrates the step of
Performed in computer system, although also, show logical order in flow charts, in some cases, can be with not
The order being same as herein performs shown or described step.
The embodiment of the present invention additionally provides a kind of loading device of webpage thermodynamic.It should be noted that the webpage heating power
The loading device of figure can be used for the loading method for performing the webpage thermodynamic of the embodiment of the present invention.
Fig. 2 is the schematic diagram of the loading device of webpage thermodynamic according to embodiments of the present invention.As shown in Fig. 2 the webpage
The loading device of thermodynamic chart includes:First determining module 10, the first acquisition module 20, redirection module 30, the second acquisition module
40, the 3rd acquisition module 50 and the first load-on module 60.
First determining module 10, for determining webpage loading equipemtn and webpage to be loaded.
First acquisition module 20, for obtaining user agent corresponding to webpage loading equipemtn.
Preferably, the first acquisition module 20 includes:First acquisition submodule, for obtaining agency corresponding to webpage to be loaded
Webpage, wherein, agent webpage is used to load the thermodynamic chart of target web and target web corresponding to webpage to be loaded;Second obtains
Submodule, for obtaining the query argument in agent webpage, wherein, the query argument of agent webpage includes the net of webpage to be loaded
Network address and the device identification of webpage loading equipemtn;Parsing module, for parsing the query argument in agent webpage, obtain to be added
The network address of contained network page and the device identification of webpage loading equipemtn;3rd acquisition submodule, for being set according to what is prestored
The corresponding relation of standby mark and user agent obtain user agent corresponding to the device identification of webpage loading equipemtn.Preferably,
Three acquisition submodules include:4th acquisition submodule, for obtaining the device identification set of webpage suitable device to be loaded;Distribution
Module, it is the device identification distributing user agency in device identification set for traveling through device identification set, wherein, equipment mark
Know and corresponded with user agent;First memory module, for by device identification, user agent corresponding to device identification, equipment
The corresponding relation of mark user agent corresponding with device identification is stored;5th acquisition submodule, for according to storage
The corresponding relation of device identification user agent corresponding with device identification is obtained and used corresponding to the device identification of webpage loading equipemtn
Act on behalf of at family.
Redirection module 30, for webpage to be loaded to be redirected into target web according to user agent.
Preferably, redirection module 30 includes:Add module, for user agent corresponding to webpage loading equipemtn to be added
Into the header parameter of webpage to be loaded;Second determining module, for webpage loading of the webpage to be loaded in header parameter
User agent corresponding to equipment determines the device identification of webpage loading equipemtn;First redirects submodule, is deposited in advance for basis
The device identification of storage and the corresponding relation of webpage, webpage to be loaded is redirected to corresponding to the device identification of webpage loading equipemtn
Webpage.Preferably, the first redirection submodule includes:6th acquisition submodule, for obtaining the network address of target web, its
In, the network address of target web is the network address for the webpage that webpage to be loaded deforms according to device identification;7th obtains son
Module, for obtaining the device identification set of webpage suitable device to be loaded;Module is established, for traveling through device identification set,
The device identification established in device identification set and the corresponding relation of the network address of target web;Second memory module, is used for
By device identification, the network address of target web, the corresponding relation of the network address of device identification and target web is stored;
8th acquisition submodule, obtain webpage for the corresponding relation of the device identification according to storage and the network address of target web and add
Carry the network address of target web corresponding to the device identification of equipment;Second load-on module, for loading webpage loading equipemtn
Webpage corresponding to the network address of target web corresponding to device identification.
Second acquisition module 40, for obtaining the click volume of target web.
3rd acquisition module 50, for obtaining the thermodynamic chart of target web according to the click volume of target web.
First load-on module 60, for loading the thermodynamic chart of webpage to be loaded by the thermodynamic chart of loaded targets webpage.
The loading device of the webpage thermodynamic of the embodiment includes the first determining module 10, the first acquisition module 20, resets
To module 30, the second acquisition module 40, the 3rd acquisition module 50 and the first load-on module 60.Pass through the webpage heating power of the embodiment
The loading device of figure solves prior art and loads inaccurate ask using webpage thermodynamic during access from different devices same web page
Topic.
Obviously, those skilled in the art should be understood that above-mentioned each module of the invention or each step can be with general
Computing device realize that they can be concentrated on single computing device, or be distributed in multiple computing devices and formed
Network on, alternatively, they can be realized with the program code that computing device can perform, it is thus possible to they are stored
Performed in the storage device by computing device, either they are fabricated to respectively each integrated circuit modules or by they
In multiple modules or step be fabricated to single integrated circuit module to realize.So, the present invention is not restricted to any specific
Hardware and software combines.
The preferred embodiments of the present invention are the foregoing is only, are not intended to limit the invention, for the skill of this area
For art personnel, the present invention can have various modifications and variations.Within the spirit and principles of the invention, that is made any repaiies
Change, equivalent substitution, improvement etc., should be included in the scope of the protection.