CN109446038A - The statistical method and terminal device of page access duration - Google Patents
The statistical method and terminal device of page access duration Download PDFInfo
- Publication number
- CN109446038A CN109446038A CN201811017862.XA CN201811017862A CN109446038A CN 109446038 A CN109446038 A CN 109446038A CN 201811017862 A CN201811017862 A CN 201811017862A CN 109446038 A CN109446038 A CN 109446038A
- Authority
- CN
- China
- Prior art keywords
- page
- html page
- time
- access
- html
- 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.)
- Pending
Links
- 238000007619 statistical method Methods 0.000 title claims abstract description 24
- 230000006870 function Effects 0.000 claims description 35
- 238000000034 method Methods 0.000 claims description 19
- 238000004590 computer program Methods 0.000 claims description 14
- 239000011159 matrix material Substances 0.000 claims description 6
- 230000007704 transition Effects 0.000 claims description 5
- 230000008569 process Effects 0.000 description 6
- 238000012545 processing Methods 0.000 description 5
- 238000001514 detection method Methods 0.000 description 4
- 238000010586 diagram Methods 0.000 description 4
- 230000006399 behavior Effects 0.000 description 3
- 230000008859 change Effects 0.000 description 3
- 230000007246 mechanism Effects 0.000 description 3
- 238000004364 calculation method Methods 0.000 description 2
- 238000011161 development Methods 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 241001269238 Data Species 0.000 description 1
- PEDCQBHIVMGVHV-UHFFFAOYSA-N Glycerine Chemical compound OCC(O)CO PEDCQBHIVMGVHV-UHFFFAOYSA-N 0.000 description 1
- 230000003213 activating effect Effects 0.000 description 1
- 238000004458 analytical method Methods 0.000 description 1
- 230000001174 ascending effect Effects 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000005611 electricity Effects 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 238000009434 installation Methods 0.000 description 1
- 238000012423 maintenance Methods 0.000 description 1
- 230000000644 propagated effect Effects 0.000 description 1
- 230000009467 reduction Effects 0.000 description 1
- 230000002787 reinforcement Effects 0.000 description 1
- 238000012216 screening Methods 0.000 description 1
- 238000000926 separation method Methods 0.000 description 1
- 238000012163 sequencing technique Methods 0.000 description 1
- 238000012360 testing method Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/34—Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment
- G06F11/3438—Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment monitoring of user actions
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/34—Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment
- G06F11/3452—Performance evaluation by statistical analysis
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/34—Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment
- G06F11/3466—Performance evaluation by tracing or monitoring
- G06F11/3476—Data logging
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- Quality & Reliability (AREA)
- General Physics & Mathematics (AREA)
- Computer Hardware Design (AREA)
- Life Sciences & Earth Sciences (AREA)
- Bioinformatics & Cheminformatics (AREA)
- Bioinformatics & Computational Biology (AREA)
- Evolutionary Biology (AREA)
- Probability & Statistics with Applications (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The present invention is suitable for Internet technical field, provide statistical method, terminal device and the computer readable storage medium of page access duration, it include: by when detecting load hypertext markup language html page, the settling time queue in the html page, successively obtained according to time queue the html page it is accessed during, at the beginning of at each access interface in the html page and end time, finally according at the beginning of all and end time, the access duration of the page is determined.The present embodiment is according to the access order and logical order of interface each in html page, first in, first out principle based on queue, completely, uniformly record entire html page it is accessed during, at the beginning of the access interface called and end time, the statistical efficiency and accuracy of html page access duration are improved.
Description
Technical field
The invention belongs to Internet technical field more particularly to the statistical methods and terminal device of page access duration.
Background technique
During network development, test or maintenance, in many cases it needs to be determined that hypertext markup language page
The access duration of (Hyper Text Mark-up Language, HTML), for evaluate the page user's service condition or
Page operating condition, the length of time for accessing duration is an important indicator of web analytics, commonly used in assessing the use of website
Family experience, can be used for instructing the improvement of website and the page.It is longer to access duration, then illustrating website or the page to user's
Attraction is stronger, and energy band is more to the useful information of user, and user more likes.Conversely, the attraction to user is poorer, it is available
Useful information is fewer, also illustrates that website needs to optimize or all add useful information.Existing access duration acquisition methods are logical
One interface of setting in webpage is crossed, state change moment of each page during accessed is obtained by this interface,
By identification different moments corresponding state, the access duration of the page is determined.
This mode needs ceaselessly to detect and obtain by interface in the biggish situation of data volume developed and safeguarded
The state change moment of each page, and a large amount of state change time data will cause data processing amount increase, cause to count
Time delay occurs according to handling and accessing duration determination process, can undoubtedly reduce the efficiency of access duration statistics, increase workload and work
Make cost.
Summary of the invention
It can in view of this, the embodiment of the invention provides the statistical method of page access duration, terminal device and computers
Storage medium is read, to solve to access duration statistical efficiency in the prior art in the biggish situation of data volume developed and safeguarded
The problem of reduction.
The first aspect of the embodiment of the present invention provides a kind of statistical method of page access duration, comprising:
When detecting load hypertext markup language html page, the creation time queue in the html page;Institute
Time queue is stated for recording the access time of the html page;
Based on the time queue, at the beginning of successively obtaining each access interface called in the html page and
End time;
According to each access interface corresponding start time and the end time, the html page is determined
Access duration.
The second aspect of the embodiment of the present invention provides a kind of terminal device, including memory, processor and is stored in
In the memory and the computer program that can run on the processor, when the processor executes the computer program
It performs the steps of
When detecting load hypertext markup language html page, the creation time queue in the html page;Institute
Time queue is stated for recording the access time of the html page;
Based on the time queue, at the beginning of successively obtaining each access interface called in the html page and
End time;
According to each access interface corresponding start time and the end time, the html page is determined
Access duration.
The third aspect of the embodiment of the present invention provides a kind of computer readable storage medium, the computer storage medium
It is stored with computer program, the computer program includes program instruction, and described program instruction makes institute when being executed by a processor
State the method that processor executes above-mentioned first aspect.
Existing beneficial effect is the embodiment of the present invention compared with prior art:
The embodiment of the present invention in the html page by building when detecting load hypertext markup language html page
Vertical time queue, successively obtained according to time queue the html page it is accessed during, each visit in the html page
At the beginning of asking interface and end time, finally according at the beginning of all and end time, the access of the page is determined
Duration.The present embodiment first enters elder generation based on queue according to the access order and logical order of each interface in a html page
Principle out, completely, uniformly record the html page it is accessed during, at the beginning of the access interface called and terminate
Moment improves the statistical efficiency and accuracy of html page access duration.
Detailed description of the invention
It to describe the technical solutions in the embodiments of the present invention more clearly, below will be to embodiment or description of the prior art
Needed in attached drawing be briefly described, it should be apparent that, the accompanying drawings in the following description is only of the invention some
Embodiment for those of ordinary skill in the art without any creative labor, can also be according to these
Attached drawing obtains other attached drawings.
Fig. 1 is the flow chart of the statistical method for the page access duration that the embodiment of the present invention one provides;
Fig. 2 is the flow chart of the statistical method of page access duration provided by Embodiment 2 of the present invention;
Fig. 3 is the flow chart of the statistical method for the page access duration that the embodiment of the present invention three provides;
Fig. 4 is the schematic diagram for the terminal device that the embodiment of the present invention four provides;
Fig. 5 is the schematic diagram for the terminal device that the embodiment of the present invention five provides.
Specific embodiment
In being described below, for illustration and not for limitation, the tool of such as particular system structure, technology etc is proposed
Body details, to understand thoroughly the embodiment of the present invention.However, it will be clear to one skilled in the art that there is no these specific
The present invention also may be implemented in the other embodiments of details.In other situations, it omits to well-known system, device, electricity
The detailed description of road and method, in case unnecessary details interferes description of the invention.
In order to illustrate technical solutions according to the invention, the following is a description of specific embodiments.
It is the flow chart of the statistical method for the page access duration that the embodiment of the present invention one provides referring to Fig. 1, Fig. 1.This reality
The executing subject for applying the method that the page is shown in example is terminal.Terminal includes but is not limited to smart phone, tablet computer, wearable
The mobile terminals such as equipment can also be desktop computer etc..The statistical method of page access duration as shown in Figure 1 may include with
Lower step:
In S101, when detecting load hypertext markup language html page, when being created in the html page
Between queue;The time queue is used to record the access time of the html page.
A media documents on WWW are referred to as a page, as a tissue or it is personal on the world wide web (www
The page for placing starting point is known as homepage or homepage, and the finger for being directed toward other related pages or other nodes is generally included in homepage
Needle is exactly a kind of uniform resource locator pointer by activating it clicks it by user, can make browser easily
Obtain new webpage.This is also that HTML obtains one of widely applied most important reason.The essence of webpage is exactly supertext
Markup language, by combined use others Web technology, such as: scripting language, common gateway interface, component can create
Powerful webpage.Thus, HyperText Markup Language is the basis of WWW programming, that is to say, that WWW is built upon
On hypertext basis.
Hypertext markup language is an application under standard generalized markup language, and the structure of hypertext markup language includes
" head " part and " main body " part, wherein " head " portion provides the information about webpage, " main body " part provides the specific interior of webpage
Hold.HyperText Markup Language document compiling be not it is very complicated, but powerful, support the file of different data format to be bumped into,
This is also WWW one of reason prevailing, and main feature is as follows: simplification, and HyperText Markup Language edition upgrading uses
Superset mode, thus more flexible and convenient;Scalability: the extensive use of HyperText Markup Language brings reinforcement function,
Increase identifier etc. to require, HyperText Markup Language takes the mode of subclass element, is system expansion bands to guarantee;Platform without
Guan Xing: although personal computer is propagated its belief on a large scale, using other machines such as MAC, there are plenty of such people, and HyperText Markup Language can
So that this is also WWW reason prevailing on extensive platform;Versatility: in addition, HTML is the logical of network
With language, a kind of simple, general full tagging language.It allows webpage making people to establish the complexity that text is combined with picture
The page, these pages can be browsed to by any other online people, no matter use what kind of computer or browser.
In practical applications, the statistics of html page access duration is for a web site operator, extension worker and competing
For the people of valence, many information consultations can be provided, it can be with the understanding of let us quicklook using website statistics tool
The growth trend figure of website visiting amount, user access the highest period, the most webpage of access, residence time, user use
Search engine, chief word, incoming road, entrance, browsing depth, language used, time zone, browser type used, period access
The fundamental analysis of the website visitation datas such as amount statistical analysis, day section amount of access statistical analysis and all moon amount of access statistical analysis.
Website statistics are that user information, user group are collected in website, reinforce linking up, and improve and improve Web Hosting and be of great significance.
Wherein, most importantly html page access duration statistics.Access duration refer to user when browsing a html page,
The residence time in this html page, this period further include, user click the access interface in this html page into
Enter the access time of another page.
In the present embodiment, set a time queue mechanism, in this mechanism, according to html page be accessed when
Between sequencing according to the principle of first in, first out record each access interface in the html page accessed time.Specifically
, first detect whether load html page, if so, when loading the html page, the creation time in the html page
Queue, for recording the access time of the page;If the case where load html page is not detected, does not make any behavior.
In the case where detecting load html page, the mode of creation time queue in the html page can be with
Guarantee the real-time and accuracy of the acquisition of html page access time, and will not influence the normal load time of html page.
In S102, it is based on the time queue, successively obtains and calls each access interface in the html page
Start time and end time.
After creating time queue in the html page, it is based on the time queue, is successively obtained in the html page
Each access interface at the beginning of and end time.In the present embodiment, access interface, which refers to, is defined agreement
Reference type, to guarantee that they support corresponding operation.The specified member that must be provided by class of interface or other for realizing it connect
Mouthful.Similar to class, interface may include method, attribute, index and event as member.Access interface is some pre-defined
Function, it is therefore an objective to provide application program and developer based on certain software or hardware be able to access one group of routine ability, and
It is not necessarily to access source code again, or understands the details of internal work mechanism.
Application Internet-based just becomes more and more popular, and in this process, has more websites by the money of itself
Source opens to developer and calls.The access interface externally provided calls so that the content relevance between website is stronger, simultaneously
These open platforms are also that user, developer and medium and small website bring bigger value.Access interface belongs to a kind of operation
System, routine interface or Graphic Operating System.Sometimes development company can be using access interface as its public open system, also
It is to say, company formulates the system interface standard of oneself, when needing to be implemented the operations such as system combination, the application of customized and program,
All members of company can call source code by the interface standard, which is referred to as open access interface.
Further, step S102 can specifically include S1021~S1023:
In S1021, if in the time queue there is no the first access interface is called at the beginning of, from described
Detected in html page the first access interface it is called when time, and at the beginning of being identified as the html page;
First access interface is used for the corresponding access interface of first function for indicating to show in the html page.
In each html page, all there are many access interfaces, each interface has the function of different, passes through difference
Interface may also enter different html pages in, show new html page information or data.Therefore in order to distinguish
The type and function of access interface in each html page, according to all access interfaces in each html page in implementation procedure
In sequence sequence, the corresponding access interface of first function showed in html page is the first access interface.
Illustratively, in all html pages, title interface is all the equal of a function in each html page
Can interface, for identifying the function or attribute of the html page, at the same its mark be again it is unique, therefore, can be in HTML
A time queue is created in the page come at the beginning of recording the html page and end time.
At the beginning of obtaining each access interface in html page based on time queue and when end time, Ke Yixian
It detects in current time queue with the presence or absence of at the beginning of the first access interface.If detecting, there is no the in time queue
At the beginning of one access interface, then illustrate at the beginning of the first access interface is not present in the time queue, such case
Under, then at the time of when first access interface is exited in detection, and at the time of the moment is identified as the first access interface.It examines later
At the beginning of surveying and determining the second access interface and finish time.
Illustratively, it when measurand enters first page, whether detects in current queue in record first page
At the beginning of V1_T_start, if it is not, then record V1_T_start at the beginning of current page, and by the start time
It stores into time queue.When measurand enters next page from first page, according to the first in, first out principle of queue, note
Vx_T_start at the beginning of record next page.
In S1022, if detection exits described the there are at the beginning of the first access interface in the time queue
At the time of when one access interface, and it is identified as the end time of first access interface, detects later and determines second
At the beginning of access interface and finish time.
It is arranged side by side with step S1021, obtain each access interface in html page based on time queue at the beginning of
When with end time, can first it detect in current time queue with the presence or absence of at the beginning of the first access interface.If it exists,
Then illustrate to have been recorded in the time queue at the beginning of current first access interface, next only needs to detect and remember
Record is identified as the end time of the first access interface at the time of exit the first access interface, detects later and determines the
It determines and is somebody's turn to do until receiving the accessed message terminated of the html page with finish time at the beginning of two access interfaces
The access finish time of html page.
Illustratively, it when measurand enters first page, whether detects in current queue in record first page
At the beginning of V1_T_start, if so, detect current page terminate when, record the end time V1_ of current page
T_end, and the end time is stored into time queue, detect later and determines V2_ at the beginning of the second access interface
T_start and finish time V2_T_end, until Vn_T_start and finish time Vn_ at the beginning of n-th of access interface
T_end。
In S1023, successively obtain each of be called in the html page at the beginning of the access interface and
End time, until exiting the html page.
After increasing a time queue in html page in advance, when measurand enters first page, detection
In current queue whether at the beginning of recording first page V1_T_start, if it is not, then recording the beginning of current page
Moment V1_T_start;If so, the end time V1_T_end of current page is recorded when detecting that current page terminates,
And when measurand enters next page from first page, according to the first in, first out principle of queue, opening for next page is recorded
Begin moment Vx_T_start;And so on, at the beginning of obtaining each page and end time, until exiting the HTML page
Face.
In S103, according to each access interface corresponding start time and the end time, institute is determined
State the access duration of html page.
In getting html page at the beginning of each access interface and after the end time, according to each visit
At the beginning of asking interface and end time, the end time of each interface is subtracted into start time and obtains the residence time, then
The residence time of all access interfaces is added to the access duration that can obtain the html page.
In actual use, it is contemplated that the phenomenon that having overlapping between the residence time of many access interfaces generation, for example,
After one access interface of a calling, another access interface is called, is then checked simultaneously or using two access
Information in the corresponding html page of interface can merge the access time of two access interfaces, Huo Zhexuan in this case
Select residence time common as the two access interfaces residence time of the later access interface of end time.
Further, as soon as since many times user stops at this html page after point opens a html page,
Associated button will not be clicked again and is entered in next html page.Therefore, a browsing time threshold value is set, for by being somebody's turn to do
Threshold value determines the access time of the last one html page.Illustratively, the browsing time threshold value is set as 2 hours, in user
It opens some html page and does not enter into next html page, and be more than or equal to 2 in the residence time of the html page
In the case of small, determine 2 hours a length of in the access of the html page.In this way, it avoids and is not accessing
In the case that interface is called, mistake occurs at the end of record moment, ensure that access time statistical accuracy and uniformly
Property.
Above scheme, by being established in the html page when detecting load hypertext markup language html page
Time queue, successively obtained according to time queue the html page it is accessed during, each access in the html page
At the beginning of interface and end time, finally according at the beginning of all and end time, when determining the access of the page
It is long.Access order and logical order of the present embodiment according to each interface in a html page, the first in, first out based on queue
Principle, completely, uniformly record the html page it is accessed during, at the beginning of the access interface called and when terminating
It carves, improves the statistical efficiency and accuracy of html page access duration.
Referring to fig. 2, Fig. 2 is the flow chart of the statistical method of page access duration provided by Embodiment 2 of the present invention.This reality
The executing subject for applying the method that the page is shown in example is terminal.Terminal includes but is not limited to smart phone, tablet computer, wearable
The mobile terminals such as equipment can also be desktop computer etc..The statistical method of page access duration as shown in Figure 2 may include with
Lower step:
The executive mode of step S201~S203 is identical as the executive mode of S101~S103 in embodiment one, please specifically join
See the implementation steps in embodiment one, details are not described herein again.
In S201, when detecting load hypertext markup language html page, when being created in the html page
Between queue;The time queue is used to record the access time of the html page.
In S202, it is based on the time queue, successively obtains and calls each access interface in the html page
Start time and end time.
In S203, according to each access interface corresponding start time and the end time, institute is determined
State the access duration of html page.
In S204, according to the time queue, the page of all html pages loaded within a preset time is obtained
At the beginning of mark and each html page.
In an application software or a webpage, there are various types of functions and its corresponding html pages, and
In executive mode in example 1, just in a html page, the access duration of the html page is determined.In reality
Other more html pages are opened in use, user can open a html page in border again later, this to be answered using network
A possibility that mode is opened there are many html pages, and the attribute due to user, use habit, use environment etc. are each
Different reason, when the same html page is opened, it is understood that there may be different html pages is opened as next
The page.
By being determined that the access duration an of html page presets one in the present embodiment in example 1
A time threshold accesses situation as preset time, for obtaining the html page within this period, obtains in the time threshold
The page iden-tity of all html pages loaded within value and its start time.Page iden-tity by obtaining html page can
For indicating the coding of the html page, the institute being determined at the beginning of obtaining html page within time threshold
The sequence for having html page accessed.
It should be noted that in the present embodiment, the page iden-tity of html page can be the html page in entire net
Page number in network application, is also possible to the page title in html page, herein without limitation.
In S205, according to all html page marks and the start time, predict next to be visited
The page iden-tity of html page.
It is getting the page iden-tity for all html pages being accessed within preset time and its after start time, is leading to
Cross the page iden-tity of the next html page that may be accessed of these information predictions.
Further, step S205 can be specifically included:
It is calculated by the following formula html page s in the preset timeiAnd sjBe connected the probability occurred:
Wherein, S={ s1,s2,…,si,sj,…,snFor indicate the n that is successively accessed in the preset time it is described
The set of html page;s1,s2,…,si,sj,…,snFor indicating the page iden-tity of each html page;SijFor table
Show html page siAnd sjBe connected the number occurred;StFor indicating the page status in t moment, St-1For indicating in t-1
The page status at quarter;
Calculate the transition matrix between the html page are as follows:
If vector H (t-1)=(0 ... ..., 1 ..., 0) is the page status vector at the t-1 moment, pass through following formula
Calculate the page status probability vector in t moment:
M (t)=H (t-1) A;
The corresponding page iden-tity of the maximum column of probability value in the html page state probability vector is predicted as in t moment
The page iden-tity of html page to be visited.
Specifically, in the present embodiment, each html page is the sequence arrangement ascending according to its start time,
Obtain S={ s1,s2,…,si,sj,…,sn, the sequence being accessed for indicating the html page within preset time.According to
The sequence determines the connected probability P occurred of two pagesij, the transition matrix A between all html pages is determined later.According to
The html page mark at t-1 moment determines current page status vector are as follows: H (t-1)=(0 ... ..., 1 ..., 0).Last root
According to page status vector sum transform matrix calculations t moment page status probability vector M (t).After calculating M (t), choosing
Select the prediction result that the corresponding page iden-tity of maximum column vector is the page iden-tity of t moment.Quilt is determined by most probable value
Object is surveyed in the state of t moment, next page can be performed corresponding processing, such as targetedly user data is carried out
Acquisition, to study the use habit of user;Or advertisement is launched, to reach the commercial object of developer.
Above scheme, by obtaining the page iden-tity of the html page loaded within a preset time according to time queue
And its start time, and according to html page mark and the start time, predict next html page to be visited
Page iden-tity.By predicting user behavior, the degree of understanding to network application and user behavior is improved, while may be used also
To make corresponding popularization, the exploitation income of network application is improved.
It is the flow chart of the statistical method for the page access duration that the embodiment of the present invention three provides referring to Fig. 3, Fig. 3.This reality
The executing subject for applying the method that the page is shown in example is terminal.Terminal includes but is not limited to smart phone, tablet computer, wearable
The mobile terminals such as equipment can also be desktop computer etc..The statistical method of page access duration as shown in Figure 3 may include with
Lower step:
The executive mode of step S301~S303 is identical as the executive mode of S101~S103 in embodiment one, please specifically join
See the implementation steps in embodiment one, details are not described herein again.
In S301, when detecting load hypertext markup language html page, when being created in the html page
Between queue;The time queue is used to record the access time of the html page.
In S302, it is based on the time queue, successively obtains and calls each access interface in the html page
Start time and end time.
In S303, according to each access interface corresponding start time and the end time, institute is determined
State the access duration of html page.
In S304, determine that the access duration is greater than the html page of preset access duration threshold value, and described in determination
The start time of each of html page access interface and the end time.
An access duration threshold value is preset in the present embodiment, for measuring user in the access on a html page
Between length, if it is greater than or be equal to the duration threshold value, then illustrate user the html page go out residence time it is longer, should
The function of html page or content therein have certain attraction to user.Some places can be done to the html page
Science and engineering is made.
In actual use, after determining the access duration to html page, determine that access duration is greater than preset visit
It asks the html page of duration threshold value, and determines the start time and the institute of each of the html page access interface
State end time.By determine the biggish html page of access duration and its in access process at the beginning of and the end
The only moment can determine the user's service condition for accessing the html page.
In S305, the use for accessing the user of the html page is determined according to the start time and the end time
Family habit and user preferences.
At the beginning of access time longer html page has been determined and after end time, when according to the beginning
It carves and the end time determines the user's habit and user preferences for accessing the user of the html page.
Illustratively, after access time longer html page has been determined, pass through the page iden-tity of the html page
With and its page function, determine corresponding with page function user demand, user determined according to start time and end time
Using the time of the function, determine that user preferences and user are accustomed to further according to user demand and using the time.
In S306, push and user habit and the matched html page function of the user preferences.
It is corresponding with the user preferences according to user preferences determination after user preferences and user's habit have been determined
The page function is extended to the terminal device used by a user by the page function of html page, while according to the user
User be accustomed to determining the time of push, to push suitable function to terminal device used by a user in the suitable time,
Guarantee the success rate of page function push and user's viscosity of network application.
Above scheme, by determining access time longer html page and the page at the beginning of and when terminating
It carves, and according to html page function, start time and the end time, determines that the user for accessing the user of the html page practises
Used and user preferences determine the page function and push for being suitble to the user preferences finally according to user habit and user preferences
Time, to push suitable function to terminal device used by a user in the suitable time, guarantee the push of page function at
Power and user's viscosity of network application.
Referring to fig. 4, Fig. 4 is a kind of schematic diagram for terminal device that the embodiment of the present invention four provides.Each list that terminal includes
Member is for executing each step in the corresponding embodiment of FIG. 1 to FIG. 3.Referring specifically in the corresponding embodiment of FIG. 1 to FIG. 3
Associated description.For ease of description, only the parts related to this embodiment are shown.The terminal device 400 of the present embodiment wraps
It includes:
Queue creating unit 401, for detect load hypertext markup language html page when, in the HTML page
Creation time queue in face;The time queue is used to record the access time of the html page;
First acquisition unit 402 successively obtains for being based on the time queue and calls each of described html page
At the beginning of access interface and end time;
Duration determination unit 403, for according to each access interface corresponding start time and the termination
Moment determines the access duration of the html page.
Further, terminal device 400 can also include:
Second acquisition unit, for when according to each access interface corresponding start time and the termination
It carves, after the access duration for determining the html page, according to the time queue, obtains the institute loaded within a preset time
At the beginning of the page iden-tity and each html page that have html page;
Web page predicting unit, for predicting next according to all html page marks and the start time
The page iden-tity of html page to be visited.
Further, terminal device 400 can also include:
Page screening unit, for when according to each access interface corresponding start time and the termination
It carves, after the access duration for determining the html page, determines that the access duration is greater than preset access duration threshold value
Html page, and the start time of each of determining described html page access interface and the end time;
Attribute determining unit accesses the html page for determining according to the start time and the end time
The user of user is accustomed to and user preferences;
Function push unit, for pushing and user habit and the matched html page function of the user preferences.
Further, first acquisition unit 402 specifically can be used for:
If being examined from the html page in the time queue there is no at the beginning of the first access interface of calling
Survey the first access interface it is called when time, and at the beginning of being identified as the html page;First access
Interface is used for the corresponding access interface of first function for indicating to show in the html page;
If first access interface is exited in detection there are at the beginning of the first access interface in the time queue
When at the time of, and be identified as the end time of first access interface, detect simultaneously determine the second access interface later
Start time and finish time;
It successively obtains and each of is called in the html page at the beginning of the access interface and end time, directly
To exiting the html page.
Further, the Web page predicting unit specifically can be used for:
It is calculated by the following formula html page s in the preset timeiAnd sjBe connected the probability occurred:
Wherein, S={ s1,s2,…,si,sj,…,snFor indicate the n that is successively accessed in the preset time it is described
The set of html page;s1,s2,…,si,sj,…,snFor indicating the page iden-tity of each html page;SijFor table
Show html page siAnd sjBe connected the number occurred;StFor indicating the page status in t moment, St-1For indicating in t-1
The page status at quarter;
Calculate the transition matrix between the html page are as follows:
If vector H (t-1)=(0 ... ..., 1 ..., 0) is the page status vector at the t-1 moment, pass through following formula
Calculate the page status probability vector in t moment:
M (t)=H (t-1) A;
The corresponding page iden-tity of the maximum column of probability value in the html page state probability vector is predicted as in t moment
The page iden-tity of html page to be visited.
Above scheme, by being established in the html page when detecting load hypertext markup language html page
Time queue, successively obtained according to time queue the html page it is accessed during, each access in the html page
At the beginning of interface and end time, finally according at the beginning of all and end time, when determining the access of the page
It is long.Access order and logical order of the present embodiment according to each interface in a html page, the first in, first out based on queue
Principle, completely, uniformly record the html page it is accessed during, at the beginning of the access interface called and when terminating
It carves, improves the statistical efficiency and accuracy of html page access duration.
Fig. 5 is the schematic diagram for the terminal device that the embodiment of the present invention five provides.As shown in figure 5, the terminal of the embodiment is set
Standby 5 include: processor 50, memory 51 and are stored in the meter that can be run in the memory 51 and on the processor 50
Calculation machine program 52.The processor 50 realizes that the statistical method of above-mentioned page access duration is real when executing the computer program 52
Apply the step in example, such as step 101 shown in FIG. 1 is to 103.Alternatively, the processor 50 executes the computer program 52
The function of each module/unit in the above-mentioned each Installation practice of Shi Shixian, such as the function of unit 401 to 403 shown in Fig. 4.
Illustratively, the computer program 52 can be divided into one or more module/units, it is one or
Multiple module/units are stored in the memory 51, and are executed by the processor 50, to complete the present invention.Described one
A or multiple module/units can be the series of computation machine program instruction section that can complete specific function, which is used for
Implementation procedure of the computer program 52 in the terminal device 5 is described.
The terminal device may include, but be not limited only to, processor 50, memory 51.Those skilled in the art can manage
Solution, Fig. 5 is only the example of terminal device 5, does not constitute the restriction to terminal device 5, may include more or more than illustrating
Few component perhaps combines certain components or different components, such as the terminal device can also be set including input and output
Standby, network access equipment, bus etc..
Alleged processor 50 can be central processing unit (Central Processing Unit, CPU), can also be
Other general processors, digital signal processor (Digital Signal Processor, DSP), specific integrated circuit
(Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field-
Programmable Gate Array, FPGA) either other programmable logic device, discrete gate or transistor logic,
Discrete hardware components etc..General processor can be microprocessor or the processor is also possible to any conventional processor
Deng.
The memory 51 can be the internal storage unit of the terminal device 5, such as the hard disk or interior of terminal device 5
It deposits.The memory 51 is also possible to the External memory equipment of the terminal device 5, such as be equipped on the terminal device 5
Plug-in type hard disk, intelligent memory card (Smart Media Card, SMC), secure digital (Secure Digital, SD) card dodge
Deposit card (Flash Card, FC) etc..Further, the memory 51 can also have been deposited both the inside including the terminal device 5
Storage unit also includes External memory equipment.The memory 51 is for storing the computer program and terminal device institute
Other programs and data needed.The memory 51 can be also used for temporarily storing the number that has exported or will export
According to.
It is apparent to those skilled in the art that for convenience of description and succinctly, only with above-mentioned each function
Can unit, module division progress for example, in practical application, can according to need and by above-mentioned function distribution by different
Functional unit, module are completed, i.e., the internal structure of described device is divided into different functional unit or module, more than completing
The all or part of function of description.Each functional unit in embodiment, module can integrate in one processing unit, can also
To be that each unit physically exists alone, can also be integrated in one unit with two or more units, it is above-mentioned integrated
Unit both can take the form of hardware realization, can also realize in the form of software functional units.In addition, each function list
Member, the specific name of module are also only for convenience of distinguishing each other, the protection scope being not intended to limit this application.Above system
The specific work process of middle unit, module, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
In the above-described embodiments, it all emphasizes particularly on different fields to the description of each embodiment, is not described in detail or remembers in some embodiment
The part of load may refer to the associated description of other embodiments.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit
The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple
In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme
's.
If the integrated module/unit be realized in the form of SFU software functional unit and as independent product sale or
In use, can store in a computer readable storage medium.Based on this understanding, the present invention realizes above-mentioned implementation
All or part of the process in example method, can also instruct relevant hardware to complete, the meter by computer program
Calculation machine program can be stored in a computer readable storage medium.
Embodiment described above is merely illustrative of the technical solution of the present invention, rather than its limitations;Although referring to aforementioned reality
Applying example, invention is explained in detail, those skilled in the art should understand that: it still can be to aforementioned each
Technical solution documented by embodiment is modified or equivalent replacement of some of the technical features;And these are modified
Or replacement, the spirit and scope for technical solution of various embodiments of the present invention that it does not separate the essence of the corresponding technical solution should all
It is included within protection scope of the present invention.
Claims (10)
1. a kind of statistical method of page access duration characterized by comprising
When detecting load hypertext markup language html page, the creation time queue in the html page;When described
Between queue be used to record access time of the html page;
Based on the time queue, at the beginning of successively obtaining each access interface called in the html page and terminate
Moment;
According to each access interface corresponding start time and the end time, the visit of the html page is determined
Ask duration.
2. the statistical method of page access duration as described in claim 1, which is characterized in that described to be based on the time team
Column, at the beginning of successively obtaining each access interface called in the html page and end time, comprising:
If in the time queue there is no the first access interface is called at the beginning of, the is detected from the html page
Time when one access interface is called, and at the beginning of being identified as the html page;First access interface
The corresponding access interface of first function for indicating to show in the html page;
If being detected when exiting first access interface in the time queue there are at the beginning of the first access interface
Moment, and it is identified as the end time of first access interface, detect and determine later the beginning of the second access interface
Moment and finish time;
It successively obtains and each of is called in the html page at the beginning of the access interface and end time, until moving back
The html page out.
3. the statistical method of page access duration as described in claim 1, which is characterized in that described according to each access
The interface corresponding start time and the end time after the access duration for determining the html page, can also wrap
It includes:
According to the time queue, obtain all html pages loaded within a preset time page iden-tity and each institute
At the beginning of stating html page;
According to all html page marks and the start time, the page of next html page to be visited is predicted
Mark.
4. the statistical method of page access duration as claimed in claim 3, which is characterized in that described according to all HTML
Page iden-tity and the start time predict the page iden-tity of next html page to be visited, comprising:
It is calculated by the following formula html page s in the preset timeiAnd sjBe connected the probability occurred:
Wherein, S={ s1,s2,…,si,sj,…,snFor indicating the n that successively accesses in the preset time HTML pages
The set in face;s1,s2,…,si,sj,…,snFor indicating the page iden-tity of each html page;SijFor indicating HTML
Page siAnd sjBe connected the number occurred;StFor indicating the page status in t moment, St-1For indicating the page at the t-1 moment
Surface state;
Calculate the transition matrix between the html page are as follows:
If vector H (t-1)=(0 ... ..., 1 ..., 0) is the page status vector at the t-1 moment, it is calculated by the following formula
In the page status probability vector of t moment:
M (t)=H (t-1) A;
The corresponding page iden-tity of the maximum column of probability value in the html page state probability vector is predicted as waiting visiting in t moment
The page iden-tity for the html page asked.
5. the statistical method of page access duration according to any one of claims 1-4, which is characterized in that the basis is each
The access interface corresponding start time and the end time, after the access duration for determining the html page,
Further include:
It determines that the access duration is greater than the html page of preset access duration threshold value, and determines every in the html page
The start time of a access interface and the end time;
The user's habit for accessing the user of the html page and user are determined according to the start time and the end time
Hobby;
Push and user habit and the matched html page function of the user preferences.
6. a kind of terminal device, which is characterized in that including memory and processor, being stored in the memory can be described
The computer program run on processor, which is characterized in that when the processor executes the computer program, realize following step
It is rapid:
When detecting load hypertext markup language html page, the creation time queue in the html page;When described
Between queue be used to record access time of the html page;
Based on the time queue, at the beginning of successively obtaining each access interface called in the html page and terminate
Moment;
According to each access interface corresponding start time and the end time, the visit of the html page is determined
Ask duration.
7. terminal device as claimed in claim 6, which is characterized in that it is described to be based on the time queue, it successively obtains and calls
At the beginning of each access interface in the html page and end time, comprising:
If in the time queue there is no the first access interface is called at the beginning of, the is detected from the html page
Time when one access interface is called, and at the beginning of being identified as the html page;First access interface
The corresponding access interface of first function for indicating to show in the html page;
If being detected when exiting first access interface in the time queue there are at the beginning of the first access interface
Moment, and it is identified as the end time of first access interface, detect and determine later the beginning of the second access interface
Moment and finish time;
It successively obtains and each of is called in the html page at the beginning of the access interface and end time, until moving back
The html page out.
8. terminal device as claimed in claim 6, which is characterized in that described corresponding described according to each access interface
Start time and the end time after the access duration for determining the html page, can also include:
According to the time queue, obtain all html pages loaded within a preset time page iden-tity and each institute
At the beginning of stating html page;
According to all html page marks and the start time, the page of next html page to be visited is predicted
Mark.
9. terminal device as claimed in claim 8, which is characterized in that described according to all html page marks and institute
Start time is stated, predicts the page iden-tity of next html page to be visited, comprising:
It is calculated by the following formula html page s in the preset timeiAnd sjBe connected the probability occurred:
Wherein, S={ s1,s2,…,si,sj,…,snFor indicating the n that successively accesses in the preset time HTML pages
The set in face;s1,s2,…,si,sj,…,snFor indicating the page iden-tity of each html page;SijFor indicating HTML
Page siAnd sjBe connected the number occurred;StFor indicating the page status in t moment, St-1For indicating the page at the t-1 moment
Surface state;
Calculate the transition matrix between the html page are as follows:
If vector H (t-1)=(0 ... ..., 1 ..., 0) is the page status vector at the t-1 moment, it is calculated by the following formula
In the page status probability vector of t moment:
M (t)=H (t-1) A;
The corresponding page iden-tity of the maximum column of probability value in the html page state probability vector is predicted as waiting visiting in t moment
The page iden-tity for the html page asked.
10. a kind of computer readable storage medium, the computer-readable recording medium storage has computer program, and feature exists
In when the computer program is executed by processor the step of any one of such as claim 1 to 5 of realization the method.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811017862.XA CN109446038A (en) | 2018-09-03 | 2018-09-03 | The statistical method and terminal device of page access duration |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811017862.XA CN109446038A (en) | 2018-09-03 | 2018-09-03 | The statistical method and terminal device of page access duration |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109446038A true CN109446038A (en) | 2019-03-08 |
Family
ID=65530930
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811017862.XA Pending CN109446038A (en) | 2018-09-03 | 2018-09-03 | The statistical method and terminal device of page access duration |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109446038A (en) |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110071912A (en) * | 2019-03-26 | 2019-07-30 | 阿里巴巴集团控股有限公司 | Data checking method, device and system |
CN110516188A (en) * | 2019-08-28 | 2019-11-29 | 北京百度网讯科技有限公司 | Method and apparatus for generating information |
CN110633412A (en) * | 2019-08-15 | 2019-12-31 | 平安普惠企业管理有限公司 | Page stay intention analysis method and device, computer equipment and storage medium |
CN110768835A (en) * | 2019-10-25 | 2020-02-07 | 杭州迪普科技股份有限公司 | Application duration statistical method, device, equipment and storage medium |
CN112463520A (en) * | 2020-11-05 | 2021-03-09 | 广州博恒信息科技有限责任公司 | Page full life cycle statistical method and equipment based on Flutter and storage medium |
CN113127742A (en) * | 2021-04-30 | 2021-07-16 | 康键信息技术(深圳)有限公司 | User behavior path extraction method, device, equipment and storage medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103001805A (en) * | 2012-12-17 | 2013-03-27 | 重庆邮电大学 | Web user flow producing method based on user behavior analysis |
CN103281217A (en) * | 2013-05-23 | 2013-09-04 | 中国科学院计算机网络信息中心 | User page stay time measuring method |
CN103605714A (en) * | 2013-11-14 | 2014-02-26 | 北京国双科技有限公司 | Method and device for identifying abnormal data of websites |
US20150371142A1 (en) * | 2014-06-20 | 2015-12-24 | Amazon Technologies, Inc. | Predicting next web pages |
CN108052387A (en) * | 2017-11-15 | 2018-05-18 | 青海大学 | Resource allocation Forecasting Methodology and system in a kind of mobile cloud computing |
-
2018
- 2018-09-03 CN CN201811017862.XA patent/CN109446038A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103001805A (en) * | 2012-12-17 | 2013-03-27 | 重庆邮电大学 | Web user flow producing method based on user behavior analysis |
CN103281217A (en) * | 2013-05-23 | 2013-09-04 | 中国科学院计算机网络信息中心 | User page stay time measuring method |
CN103605714A (en) * | 2013-11-14 | 2014-02-26 | 北京国双科技有限公司 | Method and device for identifying abnormal data of websites |
US20150371142A1 (en) * | 2014-06-20 | 2015-12-24 | Amazon Technologies, Inc. | Predicting next web pages |
CN108052387A (en) * | 2017-11-15 | 2018-05-18 | 青海大学 | Resource allocation Forecasting Methodology and system in a kind of mobile cloud computing |
Non-Patent Citations (1)
Title |
---|
李倩青著: "《拥抱大数据 新常态下的数据分析典型案例》", 华中师范大学出版社, pages: 93 - 100 * |
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110071912A (en) * | 2019-03-26 | 2019-07-30 | 阿里巴巴集团控股有限公司 | Data checking method, device and system |
CN110071912B (en) * | 2019-03-26 | 2021-05-04 | 创新先进技术有限公司 | Data inspection method, device and system |
CN110633412A (en) * | 2019-08-15 | 2019-12-31 | 平安普惠企业管理有限公司 | Page stay intention analysis method and device, computer equipment and storage medium |
CN110516188A (en) * | 2019-08-28 | 2019-11-29 | 北京百度网讯科技有限公司 | Method and apparatus for generating information |
CN110768835A (en) * | 2019-10-25 | 2020-02-07 | 杭州迪普科技股份有限公司 | Application duration statistical method, device, equipment and storage medium |
CN110768835B (en) * | 2019-10-25 | 2022-03-25 | 杭州迪普科技股份有限公司 | Application duration statistical method, device, equipment and storage medium |
CN112463520A (en) * | 2020-11-05 | 2021-03-09 | 广州博恒信息科技有限责任公司 | Page full life cycle statistical method and equipment based on Flutter and storage medium |
CN113127742A (en) * | 2021-04-30 | 2021-07-16 | 康键信息技术(深圳)有限公司 | User behavior path extraction method, device, equipment and storage medium |
CN113127742B (en) * | 2021-04-30 | 2023-10-20 | 康键信息技术(深圳)有限公司 | User behavior path extraction method, device, equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109446038A (en) | The statistical method and terminal device of page access duration | |
CN109086409B (en) | Microservice data processing method and device, electronic equipment and computer readable medium | |
CN110651251B (en) | System and method for adaptive user interface | |
US8612418B2 (en) | Mobile web browser for pre-loading web pages | |
US8244766B2 (en) | Applying a model of a persona to search results | |
US9245030B2 (en) | Analytics based on pipes programming model | |
CN109144856A (en) | A kind of UI automated testing method calculates equipment and storage medium | |
CN108293081A (en) | Pass through the program playback deep linking of user interface event to mobile application state | |
CN112256886B (en) | Probability calculation method and device in atlas, computer equipment and storage medium | |
US11526575B2 (en) | Web browser with enhanced history classification | |
US20220058707A1 (en) | Product recommendation based on machine learning | |
CN110598135A (en) | Network request processing method and device, computer readable medium and electronic equipment | |
US20110264678A1 (en) | User modification of a model applied to search results | |
US8255380B2 (en) | System and method for ontology-based location of expertise | |
CN106055567A (en) | Providing app store search results | |
US20230088581A1 (en) | Predicting microservices required for incoming requests | |
US20180322126A1 (en) | Rank-based calculation for keyword searches | |
CN111681032B (en) | Method and device for configuring additional resources and electronic equipment | |
CN109783755A (en) | Browser operation analogy method, device, readable storage medium storing program for executing and terminal device | |
CN111488386B (en) | Data query method and device | |
US11157532B2 (en) | Hierarchical target centric pattern generation | |
CN110554892A (en) | Information acquisition method and device | |
US11915063B2 (en) | Managing a presentation mode for application programming interface functions | |
CN115687452A (en) | Knowledge service prediction method, knowledge service prediction device, knowledge service prediction equipment and storage medium | |
CN115185798A (en) | Data acquisition and analysis method and device, electronic equipment and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190308 |