CN110889065A - Page stay time determining method, device and equipment - Google Patents
Page stay time determining method, device and equipment Download PDFInfo
- Publication number
- CN110889065A CN110889065A CN201810931262.8A CN201810931262A CN110889065A CN 110889065 A CN110889065 A CN 110889065A CN 201810931262 A CN201810931262 A CN 201810931262A CN 110889065 A CN110889065 A CN 110889065A
- Authority
- CN
- China
- Prior art keywords
- page
- time
- duration
- target
- preset
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 60
- 238000012937 correction Methods 0.000 claims description 38
- 238000004590 computer program Methods 0.000 claims description 18
- 238000003860 storage Methods 0.000 claims description 11
- 238000012545 processing Methods 0.000 claims description 8
- 238000012986 modification Methods 0.000 description 19
- 230000004048 modification Effects 0.000 description 19
- 238000010586 diagram Methods 0.000 description 14
- 238000004364 calculation method Methods 0.000 description 12
- 238000013480 data collection Methods 0.000 description 7
- 230000014759 maintenance of location Effects 0.000 description 6
- 230000006399 behavior Effects 0.000 description 5
- 230000009286 beneficial effect Effects 0.000 description 4
- 230000006870 function Effects 0.000 description 4
- 230000008569 process Effects 0.000 description 4
- 230000001960 triggered effect Effects 0.000 description 3
- 230000005856 abnormality Effects 0.000 description 2
- 238000004458 analytical method Methods 0.000 description 2
- 230000000694 effects Effects 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 230000001788 irregular Effects 0.000 description 2
- 230000004044 response Effects 0.000 description 2
- 230000002159 abnormal effect Effects 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 238000006243 chemical reaction Methods 0.000 description 1
- 238000007405 data analysis Methods 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000005457 optimization Methods 0.000 description 1
- 238000012827 research and development Methods 0.000 description 1
- 230000011218 segmentation Effects 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 239000013589 supplement Substances 0.000 description 1
Images
Classifications
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D10/00—Energy efficient computing, e.g. low power processors, power management or thermal management
Landscapes
- Information Transfer Between Computers (AREA)
Abstract
The invention provides a method, a device and equipment for determining the dwell time of a page, wherein the method comprises the following steps: acquiring the access starting time of a target page, the access starting time of the next page adjacent to the target page and the page loading duration of the next page; and determining the page dwell time of the target page according to the access starting time of the target page, the access starting time of the next page and the page loading time of the next page. The technical scheme provided by the invention can reduce the error of the calculated page staying time length and improve the accuracy of the calculated result of the page staying time length.
Description
Technical Field
The invention relates to the technical field of computer networks, in particular to a method, a device and equipment for determining the retention time of a page.
Background
At present, a plurality of website systems can monitor the behaviors of users, and the data obtained by monitoring the behaviors of the users are analyzed, so that enterprises can know the behavior habits of the users in more detail and clearly, the problems of enterprise marketing environments such as websites and popularization channels are found out, the enterprises are helped to explore pages with high conversion rate, and the purpose of improving the advertising income of the enterprises while improving the user experience is achieved.
The page stay time is the stay time of the user on the website page, reflects the viscosity of the website to a certain extent, and is important analysis data in user behavior analysis. At present, when calculating the page dwell time of a user, the access start time of a next page is subtracted from the access start time of a previous page to be used as the page dwell time of the previous page.
However, when the page loading duration is increased due to network problems, slow response of websites, irregular operation of users, or the like, the page staying duration calculated by the method has a large error.
Disclosure of Invention
In view of this, the present invention provides a method, an apparatus, and a device for determining a page staying time, which are used to improve the accuracy of a page staying time calculation result.
In order to achieve the above object, in a first aspect, an embodiment of the present invention provides a method for determining a page dwell time, including:
acquiring the access starting time of a target page, the access starting time of the next page adjacent to the target page and the page loading duration of the next page;
and determining the page dwell time of the target page according to the access starting time of the target page, the access starting time of the next page and the page loading time of the next page.
The method comprises the steps of obtaining the access starting time of a target page, the access starting time of the next page adjacent to the target page and the page loading duration of the next page; and determining the page staying time of the target page according to the access starting time of the target page, the access starting time of the next page and the page loading time of the next page, namely considering the page loading time when determining the page staying time of the target page, so that the error of the calculated page staying time can be reduced, and the accuracy of the calculation result of the page staying time can be improved.
As an optional implementation manner of the embodiment of the present invention, before determining the page staying time of the target page, the method further includes:
judging whether the target page is a preset page, wherein the preset page is as follows: a first page or a single-page webpage in the multi-page webpage;
if the target page is not the preset page, determining the page staying time of the target page according to the access starting time of the target page, the access starting time of the next page and the page loading time of the next page, wherein the steps of:
subtracting the access starting time of the target page from the access starting time of the next page, and subtracting the page loading duration of the next page to obtain a time difference;
if the time difference is larger than zero, determining the time difference as the page staying time of the target page; and/or the presence of a gas in the gas,
and if the time difference is less than or equal to zero, determining the page dwell time of the target page as zero.
By adopting different determination methods for different pages when determining the page stay time of the target page, the accuracy of the calculation result of the page stay time can be improved.
As an optional implementation manner of the embodiment of the present invention, before determining the page staying time of the target page, the method further includes:
judging whether the target page is a preset page, wherein the preset page is as follows: a first page or a single-page webpage in the multi-page webpage;
if the target page is a preset page, acquiring the page loading duration of the target page;
determining the page dwell time of the target page according to the access starting time of the target page, the access starting time of the next page and the page loading time of the next page, wherein the page dwell time of the target page comprises the following steps:
subtracting the access starting time of the target page from the access starting time of the next page, and subtracting the page loading duration of the next page to obtain a time difference;
judging whether the time difference is greater than the page loading duration of the target page or not;
if the time difference is larger than the page loading duration of the target page, determining the time difference as the page staying duration of the target page; and/or
And if the time difference is less than or equal to the page loading duration of the target page, determining the page loading duration of the target page as the page staying duration of the target page.
By correcting the page stay time of the preset page, the accuracy of the calculation result of the page stay time can be improved.
As an optional implementation manner in the embodiment of the present invention, after obtaining the page loading duration, the method further includes:
judging whether the page loading time length is within a preset time interval with a first preset time length and a second preset time length as endpoints, wherein the second preset time length is greater than the first preset time length;
if the page loading duration is not within the preset time interval, correcting the page loading duration to a first correction duration when the page loading duration is less than the first preset duration, wherein the first correction duration is greater than or equal to the first preset duration and is less than or equal to a second preset duration; and/or the presence of a gas in the gas,
and if the page loading time length is not in the preset time interval, correcting the page loading time length into a second correction time length when the page loading time length is greater than the second preset time length, wherein the second correction time length is greater than or equal to the first preset time length and less than or equal to the second preset time length.
By correcting the page loading time, the accuracy of the page loading time can be improved, and the accuracy of the calculation result of the page staying time can be further improved.
As an optional implementation manner of the embodiment of the present invention, after the page loading duration is modified to the first modification duration or the second modification duration, the method further includes:
adding a correction identifier for the corrected page loading duration; and/or the presence of a gas in the gas,
and storing the page loading duration before correction as the associated information of the page loading duration after correction.
By adding the correction identifier to the corrected page loading time, the page loading time can be conveniently distinguished from the corrected page loading time; the page loading duration before correction is stored as the associated information of the page loading duration after correction, so that the data analysis of the page loading duration in the later period can be facilitated, and data support is provided for the acquisition method for optimizing the page loading duration.
In a second aspect, an embodiment of the present invention provides a device for determining a dwell time of a page, including:
the acquisition module is used for acquiring the access starting time of the target page, the access starting time of the next page adjacent to the target page and the page loading duration of the next page;
and the determining module is used for determining the page staying time of the target page according to the access starting time of the target page, the access starting time of the next page and the page loading time of the next page.
As an optional implementation manner of the embodiment of the present invention, the apparatus further includes:
the judging module is used for judging whether the target page is a preset page or not, wherein the preset page is as follows: a first page or a single-page webpage in the multi-page webpage;
the determination module is specifically configured to: when the judging module judges that the target page is not the preset page, subtracting the access starting time of the next page from the access starting time of the target page and then subtracting the page loading duration of the next page to obtain a time difference; when the time difference is greater than zero, determining the time difference as the page staying time of the target page; and/or when the time difference is less than or equal to zero, determining the page stay time of the target page as zero.
As an optional implementation manner of the embodiment of the present invention, the apparatus further includes:
the judging module is used for judging whether the target page is a preset page or not, wherein the preset page is as follows: a first page or a single-page webpage in the multi-page webpage;
the obtaining module is further used for obtaining the page loading duration of the target page when the judging module judges that the target page is the preset page;
the determination module is specifically configured to: judging whether the time difference is greater than the page loading duration of the target page or not; if the time difference is larger than the page loading duration of the target page, determining the time difference as the page staying duration of the target page; and/or determining the page loading duration of the target page as the page staying duration of the target page if the time difference is less than or equal to the page loading duration of the target page.
As an optional implementation manner of the embodiment of the present invention, the apparatus further includes:
the correction module is used for judging whether the page loading time length is within a preset time interval with a first preset time length and a second preset time length as endpoints, wherein the second preset time length is greater than the first preset time length; if the page loading duration is not within the preset time interval, correcting the page loading duration to a first correction duration when the page loading duration is less than the first preset duration, wherein the first correction duration is greater than or equal to the first preset duration and is less than or equal to a second preset duration; and/or if the page loading duration is not within the preset time interval, correcting the page loading duration to a second correction duration when the page loading duration is longer than the second preset duration, wherein the second correction duration is longer than or equal to the first preset duration and is shorter than or equal to the second preset duration.
As an optional implementation manner of the embodiment of the present invention, the modification module is further configured to add a modification identifier to the modified page loading duration; and/or the presence of a gas in the gas,
and the storage module is used for storing the page loading duration before correction as the associated information of the page loading duration after correction.
The advantages of the apparatus provided by the second aspect and the possible embodiments of the second aspect may refer to the advantages brought by the possible embodiments of the first aspect and the first aspect, and are not described herein again.
In a third aspect, an embodiment of the present invention provides a device for determining a dwell time of a page, including: a memory for storing a computer program and a processor; the processor is configured to perform the method of the first aspect or any of the embodiments of the first aspect when the computer program is invoked.
The beneficial effects of the apparatus provided by the third aspect and each possible implementation manner of the third aspect may refer to the beneficial effects brought by each possible implementation manner of the first aspect, and are not described herein again.
In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the method according to the first aspect or any embodiment of the first aspect.
The beneficial effects of the computer-readable storage medium provided by the fourth aspect and the possible embodiments of the fourth aspect may refer to the beneficial effects brought by the first aspect and the possible embodiments of the first aspect, and are not described herein again.
Drawings
Fig. 1 is a schematic flow chart of a method for determining a dwell time of a page according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of page access time provided by an embodiment of the present invention;
fig. 3 is a schematic flowchart of another method for determining a dwell time of a page according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a page dwell time determining apparatus according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of a page dwell time determining device according to an embodiment of the present invention.
Detailed Description
In the current method for calculating the page dwell time, the access start time of the previous page is subtracted from the access start time of the next page to be used as the page dwell time of the previous page, that is, the page dwell time includes the page loading time of the next page. Therefore, under the ideal condition, the page loading time is very short and is far shorter than the page staying time, so that the page loading time can be ignored; but in some special cases, such as: the page loading time length is increased due to network problems, slow response of a website or irregular operation of a user, and the like, so that the page staying time length calculated by the method has larger errors.
Aiming at the technical problem that the error of the page staying time calculated by the conventional page staying time calculation method is large, the embodiment of the invention provides a page staying time determination method, a device and equipment, which mainly obtain the access starting time of a target page, the access starting time of the next page adjacent to the target page and the page loading time of the next page; and determining the page staying time of the target page according to the access starting time of the target page, the access starting time of the next page and the page loading time of the next page, so as to reduce the error of the calculated page staying time and improve the accuracy of the calculation result of the page staying time.
Embodiments of the present invention will be described below with reference to the accompanying drawings.
Fig. 1 is a schematic flow chart of a method for determining a page staying time period according to an embodiment of the present invention, where an execution subject of the method may be a page staying time period determining device, as shown in fig. 1, the method according to the embodiment may include the following steps S101 to S102:
s101, obtaining the access starting time of the target page, the access starting time of the next page adjacent to the target page and the page loading duration of the next page.
In this embodiment, when the page dwell time is calculated, the page loading time is taken into account, and before the page dwell time is calculated, the access start time of the target page to be calculated, the access start time of the next page adjacent to the target page, and the page loading time of the next page are obtained.
In specific implementation, the information may be acquired by the data collection server, where the data collection server may record an event generated by an operation behavior of a user on a website to form a log, and the page staying time duration determination device may acquire log information from the data collection server to obtain an access start time of a target page, an access start time of a next page adjacent to the target page, and a page loading time duration of the next page. For ease of understanding, the following illustrates these time information.
FIG. 2 is a schematic diagram of page access time provided by an embodiment of the present invention, as shown in the figure2, user is at t1Click page 1 at time, page 1 is at t2The loading is successful all the time, the user starts to access the page 1, namely the page loading time of the page 1 is T1(i.e. t)2-t1) The access start time of page 1 is t2. The user is again at t3Click page 2 (i.e. the next page adjacent to page 1) at time, page 2 being at t4The loading is successful all the time, namely the page loading time length of the page 2 is T2(i.e. t)4-t3) The access start time of page 2 is t4. Similarly, page 3 (i.e., the next page adjacent to page 2) has a page load duration of T3(i.e. t)6-t5) The access start time of page 3 is t6The page loading time length of the page n is Tn(i.e. t)2n-t2n-1) The access start time of page n is t2n. The target page may be any one of pages 1 to n, and in specific implementation, the page dwell time may be calculated by sequentially using each page as the target page according to the page access time context of each page collected in the log.
S102, determining the page staying time of the target page according to the access starting time of the target page, the access starting time of the next page and the page loading time of the next page.
Specifically, after the access start time of the target page, the access start time of the next page adjacent to the target page, and the page loading duration of the next page are obtained, the page staying duration of the target page can be calculated according to the time information. Namely, when the page staying time length is determined, the page loading time length is taken into account so as to reduce the error brought to the calculation result of the page staying time length by the page loading time length and improve the accuracy of the calculation result of the page staying time length.
Specifically, when the page dwell time of the target page is determined, the access start time of the next page may be subtracted by the access start time of the target page and the page loading time to obtain a time difference, where as shown in fig. 2, if the target page is page 1, the time difference is t4-t2-T1Then, determining the time difference as the page staying time of the target page; the page staying time of the target page may also be determined according to the time difference, and the specific implementation manner of this embodiment is not particularly limited.
In the method for determining the page staying time provided by this embodiment, the access start time of the target page, the access start time of the next page adjacent to the target page, and the page loading time of the next page are obtained; and determining the page staying time of the target page according to the access starting time of the target page, the access starting time of the next page and the page loading time of the next page, namely considering the page loading time when determining the page staying time of the target page, so that the error of the calculated page staying time can be reduced, and the accuracy of the calculation result of the page staying time can be improved.
Fig. 3 is a schematic flow chart of another method for determining a dwell time of a page according to an embodiment of the present invention, and this embodiment is mainly a further optimization supplement to the embodiment shown in fig. 1. On the basis of the embodiment shown in fig. 1, as shown in fig. 3, the method provided by this embodiment may include one or more of the following steps S201 to S211:
s201, obtaining the access starting time of the target page, the access starting time of the next page adjacent to the target page and the page loading duration of the next page.
This step can refer to the description of step S101 corresponding to the embodiment shown in fig. 1, and is not described herein again.
S202, judging whether the target page is a preset page or not; if not, executing step S203; if yes, go to step S207.
Wherein, the preset page is: a first page or a single-page web page of a multi-page web page. Usually, a website is composed of multiple web pages, and when a user clicks a link in one web page, the user will jump to the next web page, and the main page of the website is often the first page of the multiple web pages. For example, when a shopping website having a plurality of pages, such as jingdong and naobao, is logged in, the website homepage is the first page of the website, and when a certain commodity is clicked, the user will jump to a specific information page of the commodity. Certainly, some websites are composed of a single page, the page is mainly used for information introduction and display, no link exists on the webpage, and the website cannot jump to other webpages through the webpage, and the page corresponding to the website is also the first page.
Specifically, for the first page in the multi-page web page or the special page such as the single-page web page, even if the user clicks the next page quickly, the sight line of the user may still be switched back to the special page, so that before determining the dwell time of the page, it may be determined whether the target page is the special page (i.e. the preset page) or not, and if the target page is the special page, special processing may be performed on the special page, that is, for different determination results, when the step S102 is implemented, different page dwell time determination methods are used to implement the determination.
When judging whether the target page is the first page, the determination may be made according to a specific field of the page in the log sent by the data collection server, for example: when the data collection server determines that a certain page is a first page according to parameters such as page attributes, the page is identified in the log, for example, a field is added in the description information of the page, and the field is set to be 1; if it is determined that a certain page is not a home page, the field may not be added to the description information of the page, and of course, other manners may also be used to determine whether the target page is a home page, which is not particularly limited in this embodiment.
When judging whether the target page is a single-page webpage, the method can also be determined according to the log. Specifically, a user accessing a website has a series of operations, and the data collection server can perform session segmentation on the operations. In specific implementation, the data collection server may determine the user operation according to some relevant attributes (e.g., user identity, user source, and slicing time) of an event triggered by the user operation, take the event of the continuity triggered by the user as a session, if only one page related to the data in the session is available, the page is a single-page web page, and then may identify the single-page web pages in the log. Or, an event triggered by a user operation may be recorded in a log in detail, and the page staying time determining device may determine whether a certain page is a single-page webpage according to the log in the foregoing manner, where the specific implementation is not particularly limited in this embodiment.
S203, subtracting the access start time of the next page from the access start time of the target page, and subtracting the page loading duration of the next page to obtain a time difference.
Specifically, if the target page is not the preset page, subtracting the access start time of the target page from the access start time of the next page, and then subtracting the page loading duration of the next page to obtain a time difference, and determining the page retention time according to the time difference to eliminate the influence of the page loading duration on the page retention time.
For example, in FIG. 2, if the target page is page 1, the time difference is t4-t2-T1It should be noted that, when the page access start time and the page loading time are collected, they are generally collected separately, so that when the time difference is calculated, the time length is obtained by subtracting the page loading duration from the access start time of the next page by the access start time of the target page, instead of subtracting the access start time of the target page from the start loading time of the next page.
S204, judging whether the time difference is larger than zero or not; if yes, go to step S205; otherwise, step S206 is executed.
Specifically, after the time difference is obtained, the page dwell time can be determined according to the time difference.
In practical applications, operations of users are various, and therefore, there is a case where the page loading duration of the next page is greater than the access start time of the next page minus the access start time of the target page, that is, the time difference is smaller than zero. For example: after the user clicks the page a at the time A, the user clicks the page B at the time B again after the page 1 is successfully loaded, the page a is completely loaded at the time C, the time C is considered as the access starting time of the page a and is later than the loading starting time B of the page B, and the calculated time difference is smaller than zero. Therefore, in this embodiment, after obtaining the time difference, the time difference is determined, whether the time difference is greater than zero is determined, and different processing means are adopted according to different situations.
S205, determining the time difference as the page staying time of the target page.
Specifically, if the time difference is greater than zero, the time difference may be directly determined as the page dwell time of the target page.
S206, determining the page stay time of the target page to be zero.
If the time difference is less than or equal to zero, the page dwell time of the target page may be determined to be zero, or other processing may be performed.
And S207, acquiring the page loading duration of the target page.
Specifically, if the target page is a preset page, the page loading duration of the target page is obtained, and the page staying duration of the target page is corrected by adopting the page loading duration of the target page.
And S208, subtracting the access starting time of the next page from the access starting time of the target page, and subtracting the page loading duration of the next page to obtain a time difference.
Similar to the step S203, when the target page is the preset page, the access start time of the next page is subtracted from the access start time of the target page, and then the page loading duration of the next page is subtracted, so as to obtain a time difference, and the page retention time is determined according to the time difference.
S209, judging whether the time difference is greater than the page loading duration of the target page; if yes, go to step S210; otherwise, step S211 is executed.
Specifically, after the time difference is obtained, the size relationship between the time difference and the page loading duration of the target page is judged, and the page staying duration of the target page is determined according to the judgment result.
S210, determining the time difference as the page staying time of the target page.
Specifically, if the time difference is greater than the page loading duration of the target page, the time difference is determined as the page staying duration of the target page.
S211, determining the page loading duration of the target page as the page staying duration of the target page.
Specifically, if the time difference is less than or equal to the page loading duration of the target page, the page retention duration of the target page is corrected by using the page loading duration of the target page, and the page loading duration of the target page is determined as the page retention duration of the target page.
In view of the fact that the obtained page loading duration may be abnormal due to a calculation error, a reading error or other reasons, in order to improve the accuracy of the obtained page loading duration, in this embodiment, after the page loading duration is obtained, it may be determined whether the page loading duration is within a preset time interval with the first preset duration and the second preset duration as endpoints, and whether the page loading duration is modified is determined according to a determination result.
The second preset time period is longer than the first preset time period, the first preset time period may be 0, for example, and the second preset time period may be 3 minutes, for example. Of course, the above is only an example, and the first preset time period and the second preset time period may also be other values, which is not particularly limited in this embodiment. In addition, the page loading duration may include the obtained page loading duration of the target page and the page loading duration of the next page.
In specific implementation, if the page loading duration is not within the preset time interval, the page loading duration can be corrected to be a first correction duration when the page loading duration is less than the first preset duration; and when the page loading duration is longer than a second preset duration, correcting the page loading duration into a second correction duration.
The first correction time length is greater than or equal to a first preset time length and less than or equal to a second preset time length, and the second correction time length is greater than or equal to the first preset time length and less than or equal to the second preset time length. That is, the first correction duration and the second correction duration may be any values in the preset time interval, and the first correction duration and the second correction duration may be equal to or unequal to each other. In most application scenarios, the first modification duration may be set to be less than the second modification duration, and in some special cases, the first modification duration may also be set to be greater than or equal to the second modification duration. As an alternative, the first modification duration may be a first preset duration, and the second modification duration may be a second preset duration.
If the page loading duration is within the preset time interval, the page loading duration may not be modified, or other manners may also be adopted to modify the page loading duration, which is not particularly limited in this embodiment.
In addition, in this embodiment, after the page loading duration is modified to the first modification duration or the second modification duration, a modification identifier may be added to the modified page loading duration, so as to visually identify that the page loading duration is modified, so as to distinguish from an original page loading duration that is not modified.
In another embodiment, the page loading duration before correction can be stored as the associated information of the page loading duration after correction, so that data statistics on the page loading duration can be facilitated, research and development personnel can find abnormality in the page loading duration in time, further find out the reason of the abnormality, and help is provided for optimizing the page loading duration.
According to the page stay time length determining method provided by the embodiment, when the page stay time length of the target page is determined, different determining methods are adopted for different pages, so that the accuracy of the page stay time length calculation result can be improved.
Those skilled in the art will readily appreciate that the above embodiments are illustrative and not intended to limit the invention. Where possible, the order of execution of one or more of the above steps may be adjusted, or selectively combined, to arrive at one or more other embodiments.
For example, the execution sequence of step S202 and step S203 may be performed in advance of each other, or may be performed simultaneously. In some embodiments, the method may include the step of determining the page staying time when the target page is a preset page and the target page is not a preset page, or may include the step of determining the page staying time when the target page is one of the preset page and the non-preset page, without limiting the step of determining the page staying time in the other case. The skilled person can select any combination of the above steps according to the needs, and all that does not depart from the essence of the invention will fall within the protection scope of the invention.
Fig. 4 is a schematic structural diagram of a page staying time duration determining apparatus according to an embodiment of the present invention, and as shown in fig. 4, the apparatus according to the embodiment includes:
an obtaining module 110, configured to obtain an access start time of a target page, an access start time of a next page adjacent to the target page, and a page loading duration of the next page;
the determining module 120 is configured to determine the page staying time of the target page according to the access start time of the target page, the access start time of the next page, and the page loading time of the next page.
As an optional implementation manner of the embodiment of the present invention, the apparatus further includes:
the determining module 130 is configured to determine whether the target page is a preset page, where the preset page is: a first page or a single-page webpage in the multi-page webpage;
the determining module 120 is specifically configured to: when the determining module 130 determines that the target page is not the preset page, subtracting the access start time of the target page from the access start time of the next page, and then subtracting the page loading duration of the next page, to obtain a time difference; when the time difference is greater than zero, determining the time difference as the page staying time of the target page; and/or when the time difference is less than or equal to zero, determining the page stay time of the target page as zero.
As an optional implementation manner of the embodiment of the present invention, the apparatus may further include:
the determining module 130 is configured to determine whether the target page is a preset page, where the preset page is: a first page or a single-page webpage in the multi-page webpage;
the obtaining module 110 is further configured to obtain a page loading duration of the target page when the determining module 130 determines that the target page is the preset page;
the determining module 120 is specifically configured to: judging whether the time difference is greater than the page loading duration of the target page or not; if the time difference is larger than the page loading duration of the target page, determining the time difference as the page staying duration of the target page; and/or determining the page loading duration of the target page as the page staying duration of the target page if the time difference is less than or equal to the page loading duration of the target page.
As an optional implementation manner of the embodiment of the present invention, the apparatus further includes:
the correcting module 140 is configured to determine whether the page loading duration is within a preset time interval with a first preset duration and a second preset duration as endpoints, where the second preset duration is greater than the first preset duration; if the page loading duration is not within the preset time interval, correcting the page loading duration to a first correction duration when the page loading duration is less than the first preset duration, wherein the first correction duration is greater than or equal to the first preset duration and is less than or equal to a second preset duration; and/or if the page loading duration is not within the preset time interval, correcting the page loading duration to a second correction duration when the page loading duration is longer than the second preset duration, wherein the second correction duration is longer than or equal to the first preset duration and is shorter than or equal to the second preset duration.
As an optional implementation manner of the embodiment of the present invention, the modification module 140 is further configured to add a modification identifier to the modified page loading duration.
As another optional implementation manner of the embodiment of the present invention, the modification module 140 is further configured to store the page loading duration before modification as the associated information of the page loading duration after modification.
The apparatus provided in this embodiment may perform the above method embodiments, and the implementation principle and the technical effect are similar, which are not described herein again.
Fig. 5 is a schematic structural diagram of a page staying time length determining device according to an embodiment of the present invention, and as shown in fig. 5, the page staying time length determining device according to the embodiment includes: a memory 210 and a processor 220, the memory 210 for storing computer programs; the processor 220 is adapted to perform the method according to the above-described method embodiments when invoking the computer program.
The page staying time duration determining device provided in this embodiment may implement the above method embodiments, and the implementation principle and the technical effect are similar, which are not described herein again.
Embodiments of the present invention further provide a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the method described in the above method embodiments.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media having computer-usable program code embodied in the medium.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). The memory is an example of a computer-readable medium.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in the process, method, article, or apparatus that comprises the element.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solution of the present invention, and not to limit the same; while the invention has been described in detail and with reference to the foregoing embodiments, it will be understood by those skilled in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present invention.
Claims (10)
1. A method for determining a dwell time of a page, comprising:
acquiring the access starting time of a target page, the access starting time of the next page adjacent to the target page and the page loading duration of the next page;
and determining the page dwell time of the target page according to the access starting time of the target page, the access starting time of the next page and the page loading time of the next page.
2. The method of claim 1, wherein prior to determining the page dwell time of the target page, the method further comprises:
judging whether the target page is a preset page or not, wherein the preset page is as follows: a first page or a single-page webpage in the multi-page webpage;
if the target page is not a preset page, determining the page dwell time of the target page according to the access start time of the target page, the access start time of the next page and the page loading time of the next page, including:
subtracting the access starting time of the next page from the access starting time of the target page, and subtracting the page loading duration of the next page to obtain a time difference;
if the time difference is larger than zero, determining the time difference as the page staying time of the target page; and/or the presence of a gas in the gas,
and if the time difference is smaller than or equal to zero, determining the page staying time of the target page as zero.
3. The method of claim 1, wherein prior to determining the page dwell time of the target page, the method further comprises:
judging whether the target page is a preset page or not, wherein the preset page is as follows: a first page or a single-page webpage in the multi-page webpage;
if the target page is a preset page, acquiring the page loading duration of the target page;
the determining the page staying time of the target page according to the access starting time of the target page, the access starting time of the next page and the page loading time of the next page includes:
subtracting the access starting time of the next page from the access starting time of the target page, and subtracting the page loading duration of the next page to obtain a time difference;
judging whether the time difference is greater than the page loading duration of the target page or not;
if the time difference is larger than the page loading duration of the target page, determining the time difference as the page staying duration of the target page; and/or
And if the time difference is less than or equal to the page loading duration of the target page, determining the page loading duration of the target page as the page staying duration of the target page.
4. The method according to any one of claims 1-3, wherein after obtaining the page load duration, the method further comprises:
judging whether the page loading time length is within a preset time interval with a first preset time length and a second preset time length as endpoints, wherein the second preset time length is greater than the first preset time length;
if the page loading duration is not within the preset time interval, correcting the page loading duration to be the first correction duration when the page loading duration is less than the first preset duration, wherein the first correction duration is greater than or equal to the first preset duration and less than or equal to the second preset duration; and/or the presence of a gas in the gas,
if the page loading time length is not within the preset time interval, when the page loading time length is greater than the second preset time length, the page loading time length is corrected to be the second correction time length, and the second correction time length is greater than or equal to the first preset time length and less than or equal to the second preset time length.
5. The method of claim 4, wherein after the modifying the page loading duration to the first modified duration or the second modified duration, the method further comprises:
adding a correction identifier for the corrected page loading duration; and/or the presence of a gas in the gas,
and storing the page loading duration before correction as the associated information of the page loading duration after correction.
6. A page dwell time determination apparatus, comprising:
the system comprises an acquisition module, a processing module and a display module, wherein the acquisition module is used for acquiring the access starting time of a target page, the access starting time of the next page adjacent to the target page and the page loading duration of the next page;
and the determining module is used for determining the page staying time of the target page according to the access starting time of the target page, the access starting time of the next page and the page loading time of the next page.
7. The apparatus of claim 6, further comprising:
the judging module is used for judging whether the target page is a preset page or not, wherein the preset page is as follows: a first page or a single-page webpage in the multi-page webpage;
the determining module is specifically configured to: when the judging module judges that the target page is not a preset page, subtracting the access starting time of the next page from the access starting time of the target page and then subtracting the page loading duration of the next page to obtain a time difference; when the time difference is larger than zero, determining the time difference as the page staying time of the target page; and/or when the time difference is less than or equal to zero, determining the page stay time of the target page as zero.
8. The apparatus of claim 6, further comprising:
the judging module is used for judging whether the target page is a preset page or not, wherein the preset page is as follows: a first page or a single-page webpage in the multi-page webpage;
the obtaining module is further configured to obtain a page loading duration of the target page when the judging module judges that the target page is a preset page;
the determining module is specifically configured to: judging whether the time difference is greater than the page loading duration of the target page or not; if the time difference is larger than the page loading duration of the target page, determining the time difference as the page staying duration of the target page; and/or if the time difference is less than or equal to the page loading duration of the target page, determining the page loading duration of the target page as the page staying duration of the target page.
9. A page dwell time determination apparatus, comprising: a memory for storing a computer program and a processor; the processor is adapted to perform the method of any of claims 1-5 when the computer program is invoked.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the method according to any one of claims 1-5.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201810931262.8A CN110889065B (en) | 2018-08-15 | 2018-08-15 | Page stay time determination method, device and equipment |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201810931262.8A CN110889065B (en) | 2018-08-15 | 2018-08-15 | Page stay time determination method, device and equipment |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN110889065A true CN110889065A (en) | 2020-03-17 |
| CN110889065B CN110889065B (en) | 2023-05-09 |
Family
ID=69744143
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201810931262.8A Active CN110889065B (en) | 2018-08-15 | 2018-08-15 | Page stay time determination method, device and equipment |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN110889065B (en) |
Cited By (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN111274521A (en) * | 2020-04-29 | 2020-06-12 | 北京仁和汇智信息技术有限公司 | Document HTML page display method and device and electronic equipment |
| CN113761443A (en) * | 2021-08-24 | 2021-12-07 | 百安居信息技术(上海)有限公司 | Website page data acquisition and statistics method, storage medium and equipment |
| CN114217923A (en) * | 2021-11-30 | 2022-03-22 | 无线生活(杭州)信息科技有限公司 | Page information processing method and device |
| CN115687040A (en) * | 2022-08-31 | 2023-02-03 | 中国工商银行股份有限公司 | Access duration determination method, device, device, medium and program product |
| CN117112953A (en) * | 2023-08-15 | 2023-11-24 | 康键信息技术(深圳)有限公司 | Methods, devices, storage media and computer equipment for determining the duration of page stay |
Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN102495874A (en) * | 2011-12-01 | 2012-06-13 | 江苏仕德伟网络科技股份有限公司 | Method for confirming net citizen single visiting website and web page viewing quantity and time |
| CN104572912A (en) * | 2014-12-26 | 2015-04-29 | 北京京东尚科信息技术有限公司 | Method and system for loading web pages |
| CN105376311A (en) * | 2015-11-11 | 2016-03-02 | 北京北信源软件股份有限公司 | Method and device for determining page stay duration based on terminal access |
| US20180081984A1 (en) * | 2013-10-25 | 2018-03-22 | Uc Mobile Co., Ltd. | Methods and devices for preloading webpages |
-
2018
- 2018-08-15 CN CN201810931262.8A patent/CN110889065B/en active Active
Patent Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN102495874A (en) * | 2011-12-01 | 2012-06-13 | 江苏仕德伟网络科技股份有限公司 | Method for confirming net citizen single visiting website and web page viewing quantity and time |
| US20180081984A1 (en) * | 2013-10-25 | 2018-03-22 | Uc Mobile Co., Ltd. | Methods and devices for preloading webpages |
| CN104572912A (en) * | 2014-12-26 | 2015-04-29 | 北京京东尚科信息技术有限公司 | Method and system for loading web pages |
| US20180004857A1 (en) * | 2014-12-26 | 2018-01-04 | Beijing Jingdong Shangke Information Technology Co., Ltd. | Webpage loading method and system |
| CN105376311A (en) * | 2015-11-11 | 2016-03-02 | 北京北信源软件股份有限公司 | Method and device for determining page stay duration based on terminal access |
Cited By (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN111274521A (en) * | 2020-04-29 | 2020-06-12 | 北京仁和汇智信息技术有限公司 | Document HTML page display method and device and electronic equipment |
| CN113761443A (en) * | 2021-08-24 | 2021-12-07 | 百安居信息技术(上海)有限公司 | Website page data acquisition and statistics method, storage medium and equipment |
| CN114217923A (en) * | 2021-11-30 | 2022-03-22 | 无线生活(杭州)信息科技有限公司 | Page information processing method and device |
| CN115687040A (en) * | 2022-08-31 | 2023-02-03 | 中国工商银行股份有限公司 | Access duration determination method, device, device, medium and program product |
| CN117112953A (en) * | 2023-08-15 | 2023-11-24 | 康键信息技术(深圳)有限公司 | Methods, devices, storage media and computer equipment for determining the duration of page stay |
Also Published As
| Publication number | Publication date |
|---|---|
| CN110889065B (en) | 2023-05-09 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN110889065B (en) | Page stay time determination method, device and equipment | |
| CN105354126B (en) | Monitor method and apparatus abnormal in page script file | |
| CN106897347B (en) | Webpage display method, operation event recording method and device | |
| US20190132348A1 (en) | Vulnerability scanning of attack surfaces | |
| US8966359B2 (en) | Web application content mapping | |
| CN110020339B (en) | Webpage data acquisition method and device based on non-buried point | |
| CN109344046B (en) | Data processing method, device, medium and electronic equipment | |
| CN109600272B (en) | Crawler detection method and device | |
| US20170270106A1 (en) | Methods and apparatuses for storing file path and accessing local file | |
| WO2017016408A1 (en) | Service invocation-based fault handling method, device and system | |
| CN106874293B (en) | Data processing method and device | |
| CN113127788B (en) | Page processing method, object processing method, device and equipment | |
| CN112583944B (en) | Processing method and device for updating domain name certificate | |
| CN107103243B (en) | Vulnerability detection method and device | |
| CN116450970A (en) | Page display method, device and medium | |
| US11126520B2 (en) | Skew detector for data storage system | |
| US20190251130A1 (en) | Method and apparatus for detecting page redirection circulation | |
| CN108234196B (en) | Fault detection method and device | |
| US11237938B2 (en) | Click heatmap abnormality detection method and apparatus | |
| CN109587198B (en) | Image-text information pushing method and device | |
| CN110968754B (en) | Detection method and device for crawler page turning strategy | |
| CN110971578B (en) | User identity confirmation method and device | |
| CN114090310A (en) | An abnormality detection method and device | |
| CN111367750B (en) | Exception handling method, device and equipment thereof | |
| CN110955847B (en) | Information processing method, device, storage medium and processor |
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 | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant |