CN110889065B - Page stay time determination method, device and equipment - Google Patents

Page stay time determination method, device and equipment Download PDF

Info

Publication number
CN110889065B
CN110889065B CN201810931262.8A CN201810931262A CN110889065B CN 110889065 B CN110889065 B CN 110889065B CN 201810931262 A CN201810931262 A CN 201810931262A CN 110889065 B CN110889065 B CN 110889065B
Authority
CN
China
Prior art keywords
page
time
target
preset
loading
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.)
Active
Application number
CN201810931262.8A
Other languages
Chinese (zh)
Other versions
CN110889065A (en
Inventor
姚宇豪
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Gridsum Technology Co Ltd
Original Assignee
Beijing Gridsum Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Gridsum Technology Co Ltd filed Critical Beijing Gridsum Technology Co Ltd
Priority to CN201810931262.8A priority Critical patent/CN110889065B/en
Publication of CN110889065A publication Critical patent/CN110889065A/en
Application granted granted Critical
Publication of CN110889065B publication Critical patent/CN110889065B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • YGENERAL 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
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE 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/00Energy 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 page stay time, wherein the method comprises the following steps: acquiring access starting time of a target page, access starting time of a next page adjacent to the target page and page loading time of the next page; and determining the page stay 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. The technical scheme provided by the invention can reduce the error of the calculated page stay time and improve the accuracy of the calculated page stay time result.

Description

Page stay time determination method, device and equipment
Technical Field
The present invention relates to the field of computer networks, and in particular, to a method, an apparatus, and a device for determining a residence time of a page.
Background
At present, many website systems can monitor the behavior of a user, and through analyzing the data obtained by monitoring the behavior of the user, enterprises can know the behavior habit of the user more in detail and clearly, so that the problems existing in the marketing environment of the enterprises such as websites, popularization channels and the like are found out, the enterprises are helped to discover pages with high conversion rate, and the purpose of improving advertising benefits of the enterprises while improving user experience is achieved.
The page stay time is the stay time of the user on the web page, reflects the viscosity of the web page to a certain extent, and is important analysis data in user behavior analysis. Currently, when calculating a page stay time of a user, it is general to subtract an access start time of a previous page from an access start time of a next page as a page stay time of the previous page.
However, when the page loading time length is increased due to network problems, slow website response, irregular operation of a user or the like, a larger error exists in the page stay time length calculated by adopting the method.
Disclosure of Invention
In view of the above, the invention provides a method, a device and equipment for determining the residence time of a page, which are used for improving the accuracy of the calculation result of the residence time of the page.
In order to achieve the above object, in a first aspect, an embodiment of the present invention provides a method for determining a residence time of a page, including:
acquiring access starting time of a target page, access starting time of a next page adjacent to the target page and page loading time of the next page;
and determining the page stay 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.
Acquiring access starting time of a target page, access starting time of a next page adjacent to the target page and page loading time of the next 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, determining the page stay time of the target page, namely considering the page loading time when determining the page stay time of the target page, the error of the calculated page stay time can be reduced, and the accuracy of the calculation result of the page stay time is improved.
As an optional implementation manner of the embodiment of the invention, before determining the page stay time of the target page, the method further comprises:
judging whether the target page is a preset page, wherein the preset page is as follows: a first page or a single page of the multi-page web page;
if the target page is not the preset page, determining the page stay 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 start time of the target page from the access start time of the next page, and subtracting the page loading time of the next page to obtain a time difference;
If the time difference is greater than zero, determining the time difference as the page stay time of the target page; and/or the number of the groups of groups,
and if the time difference is smaller than or equal to zero, determining the page stay 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 page stay time calculation result can be improved.
As an optional implementation manner of the embodiment of the invention, before determining the page stay time of the target page, the method further comprises:
judging whether the target page is a preset page, wherein the preset page is as follows: a first page or a single page of the multi-page web page;
if the target page is a preset page, acquiring the page loading time of the target page;
determining the page stay 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 start time of the target page from the access start time of the next page, and subtracting the page loading time of the next page to obtain a time difference;
judging whether the time difference is larger than the page loading time length of the target page;
If the time difference is greater than the page loading time of the target page, determining the time difference as the page stay time of the target page; and/or
If the time difference is smaller than or equal to the page loading time of the target page, determining the page loading time of the target page as the page stay time of the target page.
By correcting the page stay time of the preset page, the accuracy of the page stay time calculation result can be improved.
As an optional implementation manner of the embodiment of the present invention, after obtaining the page loading duration, the method further includes:
judging whether the page loading time is in a preset time interval taking a first preset time length and a second preset time length as endpoints, wherein the second preset time length is longer than the first preset time length;
if the page loading time is not in the preset time interval, when the page loading time is smaller than the first preset time, correcting the page loading time to be the first correction time, wherein the first correction time is longer than or equal to the first preset time and is shorter than or equal to the second preset time; and/or the number of the groups of groups,
if the page loading time is not in the preset time interval, when the page loading time is longer than a second preset time, correcting the page loading time to be a second correction time, wherein the second correction time is longer than or equal to the first preset time and shorter than or equal to the second preset time.
By correcting the page loading time length, the accuracy of the page loading time length can be improved, and the accuracy of the calculation result of the page stay time length can be improved.
As an optional implementation manner of the embodiment of the present invention, after correcting the page loading duration to the first correction duration or the second correction duration, the method further includes:
adding a correction identifier for the corrected page loading time length; and/or the number of the groups of groups,
and storing the page loading time before correction as the associated information of the page loading time after correction.
By adding the correction identification for the corrected page loading time length, the page loading time length can be conveniently distinguished to be corrected; the page loading time before correction is used as the associated information of the page loading time after correction to be stored, so that the data analysis of the page loading time in the later period can be facilitated, and the data support is provided for the acquisition method for optimizing the page loading time.
In a second aspect, an embodiment of the present invention provides a device for determining a residence 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 time of the next page;
The determining module is used for determining the page stay 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 alternative 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, wherein the preset page is: a first page or a single page of the multi-page web page;
the determining module is specifically configured to: when the judging module judges that the target page is not a preset page, subtracting the access start time of the target page from the access start time of the next page and subtracting the page loading time of the next page to obtain a time difference; when the time difference is greater than zero, determining the time difference as the page stay 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 alternative 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, wherein the preset page is: a first page or a single page of the multi-page web page;
The acquisition module is also used for acquiring the page loading time length of the target page when the judgment module judges that the target page is a preset page;
the determining module is specifically configured to: judging whether the time difference is larger than the page loading time length of the target page; if the time difference is greater than the page loading time of the target page, determining the time difference as the page stay time of the target page; and/or if the time difference is smaller than or equal to the page loading time of the target page, determining the page loading time of the target page as the page stay time of the target page.
As an alternative 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 is in a preset time interval taking a first preset time and a second preset time as endpoints, wherein the second preset time is longer than the first preset time; if the page loading time is not in the preset time interval, when the page loading time is smaller than the first preset time, correcting the page loading time to be the first correction time, wherein the first correction time is longer than or equal to the first preset time and is shorter than or equal to the second preset time; and/or if the page loading time is not in the preset time interval, correcting the page loading time to be the second correction time when the page loading time is longer than the second preset time, wherein the second correction time is longer than or equal to the first preset time and shorter than or equal to the second preset time.
As an optional implementation manner of the embodiment of the present invention, the correction module is further configured to add a correction identifier to the corrected page loading duration; and/or the number of the groups of groups,
the storage module is used for storing the page loading time before correction as the associated information of the page loading time after correction.
The advantages of the apparatus provided by the second aspect and the possible embodiments of the second aspect may be referred to the advantages of the first aspect and the possible embodiments of the first aspect, and are not described herein.
In a third aspect, an embodiment of the present invention provides a device for determining a residence time of a page, including: a memory and a processor, the memory for storing a computer program; the processor is configured to perform the method of the first aspect or any implementation of the first aspect when the computer program is invoked.
The advantages of the apparatus provided by the third aspect and the possible embodiments of the third aspect may be referred to the advantages brought by the foregoing first aspect and the possible embodiments of the first aspect, and are not described herein.
In a fourth aspect, an embodiment of the present invention provides a computer readable storage medium, on which a computer program is stored, which when executed by a processor implements the method according to the first aspect or any implementation of the first aspect.
The advantages of the computer readable storage medium according to the fourth aspect and the possible embodiments of the fourth aspect may be referred to the advantages of the first aspect and the possible embodiments of the first aspect, and are not described herein.
Drawings
Fig. 1 is a flow chart of a method for determining a residence time of a page according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of page access time according to an embodiment of the present invention;
FIG. 3 is a flowchart illustrating another method for determining a residence time of a page according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a device for determining a residence time of a page according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of a device for determining a residence time of a page according to an embodiment of the present invention.
Detailed Description
The current page stay time calculation method is to subtract the access start time of the previous page from the access start time of the next page to serve as the page stay time of the previous page, namely the page stay time includes the page loading time of the next page. In an ideal case, the page loading time is very short and is far less than the page stay 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 websites, irregular operation of users and the like, so that larger errors exist in the page stay time length calculated by the method.
Aiming at the technical problem that the page stay time error calculated by the current page stay time calculation method is large, the embodiment of the invention provides a method, a device and equipment for determining the page stay time, which mainly comprise the steps of obtaining the access start time of a target page, the access start time of the next page adjacent to the target page and the page loading time of the next page; and determining the page stay 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, so as to reduce the error of the calculated page stay time and improve the accuracy of the calculation result of the page stay time.
Embodiments of the present invention are described below with reference to the accompanying drawings.
Fig. 1 is a schematic flow chart of a method for determining a residence time of a page according to an embodiment of the present invention, where an execution body of the method may be a device for determining a residence time of a page, as shown in fig. 1, and the method provided in this embodiment may include steps S101 to S102 as follows:
s101, acquiring access starting time of a target page, access starting time of a next page adjacent to the target page and page loading time of the next page.
In this embodiment, when calculating the page stay time, the page loading time is taken into consideration, and before calculating the page stay time, 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 acquired.
In specific implementation, the information can be acquired through a data collection server, wherein the data collection server records events generated by operation behaviors of a user on a website to form a log, and the page stay time determining device can acquire log information from the data collection server to obtain the access start time of a target page, the access start time of a next page adjacent to the target page and the page loading time of the next page. For ease of understanding, these time information are exemplified below.
FIG. 2 is a schematic diagram of page access time provided by an embodiment of the present invention, as shown in FIG. 2, a user is at t 1 Clicking page 1 at the moment, page 1 at t 2 The moment loading is successful, the user starts to access the page 1, namely the page loading time length of the page 1 is T 1 (i.e. t 2 -t 1 ) The access start time of page 1 is t 2 . The user is again at t 3 Clicking on page 2 at the moment (i.e. the next page next to page 1), page 2 at t 4 The time loading is successful, namely the page loading time length of the page 2 is T 2 (i.e. t 4 -t 3 ) The access start time of page 2 is t 4 . Similarly, page 3 (i.e., the next page adjacent to page 2) has a page load duration T 3 (i.e. t 6 -t 5 ) The access start time of page 3 is t 6 The page loading time length of the page n is T n (i.e. t 2n -t 2n-1 ) The access start time of page n is t 2n . Wherein the target page can be any one of pages 1 to n, and can be in the log when in specific implementationAnd (4) taking the collected page access time context of each page as a target page in sequence to calculate the page stay time.
S102, determining the page stay 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.
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 time of the next page are obtained, the page stay time of the target page can be calculated according to the time information. When the page stay time is determined, the page loading time is taken into consideration, so that errors caused by the page loading time to the calculation result of the page stay time are reduced, and the accuracy of the calculation result of the page stay time is improved.
When the page stay time of the target page is specifically determined, the access start time and the page loading time of the target page may be subtracted from the access start time of the next page to obtain a time difference, taking the above-mentioned fig. 2 as an example, assuming that the target page is page 1, the time difference is t 4 -t 2 -T 1 Then determining the time difference as the page stay time of the target page; the page stay time of the target page may also be determined according to the time difference, and the specific implementation manner is not particularly limited.
According to the page stay time determining method provided by the embodiment, 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 time of the next page are obtained; 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, determining the page stay time of the target page, namely considering the page loading time when determining the page stay time of the target page, the error of the calculated page stay time can be reduced, and the accuracy of the calculation result of the page stay time is improved.
Fig. 3 is a flow chart of another method for determining a residence time of a page according to an embodiment of the present invention, which 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 in this embodiment may include one or more of the following steps S201 to S211:
S201, acquiring access starting time of a target page, access starting time of a next page adjacent to the target page and page loading time of the next page.
This step may refer to the description of the embodiment shown in fig. 1 corresponding to step S101, which is not repeated here.
S202, judging whether a target page is a preset page or not; if not, executing step S203; if yes, step S207 is performed.
The preset page is as follows: a first page of a multi-page web page or a single page web page. Typically, a website is composed of a plurality of web pages, and when a user clicks a link in a web page, the user jumps to the next page, and the homepage of the website is often the first page of the multi-page web page. For example, when logging in a shopping website with multiple pages such as jindong, naughty, etc., the homepage of the website is the first page of the website, and we click on a certain commodity, we will jump to the specific information page of the commodity. Of course, some websites are formed by single pages, the pages are mainly used for information introduction and display, no links exist on the webpages, the webpages cannot jump to other webpages, and the pages corresponding to the websites are the first pages.
Specifically, for special pages such as the first page or the single page in the multi-page webpage, even if the user clicks the next page quickly, the line of sight of the user may still be cut back to the special pages, so that whether the target page is the special pages (i.e. the preset pages) can be judged before the residence time of the page is determined, if the target page is the special pages, special processing can be performed on the special pages, that is, for different judging results, when the step S102 is implemented, different page residence time determining methods are adopted.
When determining whether the target page is the top page, the determination may be made according to a specific field of the page in the log sent by the data collecting 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 a 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 the home page, the field may not be added to the description information of the page, and of course, other manners may also be adopted to determine whether the target page is the home page, which is not particularly limited in this embodiment.
When judging whether the target page is a single-page webpage, the target page can be determined according to the log. Specifically, the user may have a series of operations to visit the website, and the data collection server may perform session segmentation on these operations. In particular implementation, the data collection server may determine the user operation according to some relevant attributes (such as user identity, user source, and splitting time) of the event triggered by the user operation, and use the event of continuity triggered by the user as a session, if there is only one page related to the data in the session, the page is a single page webpage, and then the single page webpages may be identified in the log. Or, the event triggered by the user operation may be recorded in detail in the logs, and the page stay time determining device may determine whether a certain page is a single page webpage according to the logs in the above manner, and the embodiment is not particularly limited.
S203, subtracting the access start time of the target page from the access start time of the next page, and subtracting the page loading time 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 time of the next page to obtain a time difference, and determining the page stay time according to the time difference so as to eliminate the influence of the page loading time on the page stay time.
Taking the above fig. 2 as an example, assuming that the target page is page 1, the time difference is t 4 -t 2 -T 1 In the collecting pageThe surface access start time and the page loading time are generally collected separately, so when the time difference is calculated, the access start time of the next page is subtracted from the access start time of the target page, and then the page loading time is subtracted from the access start time of the target page, so that the time is long, and the start loading time of the next page is not subtracted from the access start time of the target page.
S204, judging whether the time difference is larger than zero; if yes, go to step S205; otherwise, step S206 is performed.
Specifically, after the time difference is obtained, the page stay time can be determined according to the time difference.
In practical applications, the operations of the user are various, so that there is a case where the page loading time of the next page is longer than the access start time of the next page minus the access start time of the target page, that is, the time difference is less than zero. For example: after the user clicks the page a at the time A, and does not wait for the page 1 to be successfully loaded, the user clicks the page B at the time B, and the page a is loaded at the time C, wherein the time C is considered as the access starting time of the page a, and the time is later than the loading starting time B of the page B, so that the calculated time difference is smaller than zero. Therefore, in this embodiment, after the time difference is obtained, the time difference is determined, and 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 stay time of the target page.
Specifically, if the time difference is greater than zero, the time difference may be directly determined as the page stay time of the target page.
S206, determining the page stay time of the target page as zero.
If the time difference is less than or equal to zero, the page stay time of the target page may be determined to be zero, or other processing may be performed.
S207, acquiring page loading time length of the target page.
Specifically, if the target page is a preset page, acquiring the page loading time length of the target page, and correcting the page stay time length of the target page by adopting the page loading time length of the target page.
S208, subtracting the access start time of the target page from the access start time of the next page, and subtracting the page loading time of the next page to obtain a time difference.
Similarly to the above step S203, when the target page is a 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 time of the next page to obtain a time difference, and determining the page residence time according to the time difference.
S209, judging whether the time difference is larger than the page loading time of the target page; if yes, go to step S210; otherwise, step S211 is performed.
Specifically, after the time difference is obtained, the size relation between the time difference and the page loading time length of the target page is judged, and the page stay time length of the target page is determined according to the judging result.
S210, determining the time difference as the page stay time of the target page.
Specifically, if the time difference is greater than the page loading duration of the target page, determining the time difference as the page stay duration of the target page.
S211, determining the page loading time length of the target page as the page stay time length of the target page.
Specifically, if the time difference is smaller than or equal to the page loading time of the target page, correcting the page stay time of the target page by adopting the page loading time of the target page, and determining the page loading time of the target page as the page stay time of the target page.
In order to improve accuracy of the obtained page loading time, in this embodiment, after the obtained page loading time, whether the page loading time is within a preset time interval taking the first preset time and the second preset time as endpoints may be determined, and whether to correct the page loading time is determined according to a determination result.
The second preset time period is longer than the first preset time period, and the first preset time period may be, for example, 0, and the second preset time period may be, for example, 3 minutes. Of course, the foregoing is merely an example, and the first preset duration and the second preset duration may be other values, which is not limited in particular in this embodiment. In addition, the page loading time length may include the acquired page loading time length of the target page and the page loading time length of the next page.
When the method is specifically implemented, if the page loading time is not in the preset time interval, the page loading time can be corrected to be the first correction time when the page loading time is smaller than the first preset time; and when the page loading time length is longer than the second preset time length, correcting the page loading time length to be the second correction time length.
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 value in the preset time interval, and the first correction duration and the second correction duration may be equal or unequal. In most application scenarios, the first correction duration may be set to be less than the second correction duration, although in some special cases, the first correction duration may also be set to be greater than or equal to the second correction duration. As an alternative, the first correction duration may be a first preset duration, and the second correction duration may be a second preset duration.
If the page loading time length is within the preset time interval, the page loading time length may not be modified, or may be modified in other manners, which is not particularly limited in this embodiment.
In addition, in this embodiment, after correcting the page loading time length to the first correction time length or the second correction time length, a correction identifier may be added to the corrected page loading time length, so that it may be intuitively identified that the page loading time length is corrected, so as to distinguish the page loading time length from the original page loading time length that is not corrected.
In another embodiment, the page loading time before correction can be stored as the associated information of the page loading time after correction, so that data statistics on the page loading time can be conveniently carried out, a researcher can timely find out the abnormality of the page loading time, further find out the reason of the abnormality, and provide help for optimizing the page loading time.
According to the page stay time determining method, when the page stay time of the target page is determined, different determining methods are adopted for different pages, and therefore accuracy of a page stay time calculation result can be improved.
Those skilled in the art will readily appreciate that the above embodiments are exemplary and not intended to limit the present invention. The order of execution of one or more of the above steps may be modified, if possible, or may be combined selectively to yield one or more other embodiments.
For example, the execution sequence of step S202 and step S203 may be performed before or simultaneously. In some embodiments, the method may include the step of determining the page stay time when the target page is not the preset page, or the step of determining the page stay time when the target page is one of the preset page and the non-preset page, and the step of determining the page stay time when the target page is not the preset page is not limited. Those skilled in the art can select and combine any of the above steps according to the need, and all the steps do not depart from the spirit of the present invention.
Fig. 4 is a schematic structural diagram of a device for determining a residence time of a page according to an embodiment of the present invention, as shown in fig. 4, where the device provided in this embodiment includes:
the acquiring module 110 is configured to acquire 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 of the next page;
the determining module 120 is configured to determine a page stay 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 load time of the next page.
As an alternative implementation manner of the embodiment of the present invention, the apparatus further includes:
the judging module 130 is configured to judge whether the target page is a preset page, where the preset page is: a first page or a single page of the multi-page web page;
the determining module 120 is specifically configured to: when the judging module 130 judges 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 subtracting the page loading time of the next page to obtain a time difference; when the time difference is greater than zero, determining the time difference as the page stay 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 alternative implementation manner of the embodiment of the present invention, the apparatus may further include:
the judging module 130 is configured to judge whether the target page is a preset page, where the preset page is: a first page or a single page of the multi-page web page;
the obtaining module 110 is further configured to obtain a page loading duration of the target page when the judging module 130 judges that the target page is a preset page;
the determining module 120 is specifically configured to: judging whether the time difference is larger than the page loading time length of the target page; if the time difference is greater than the page loading time of the target page, determining the time difference as the page stay time of the target page; and/or if the time difference is smaller than or equal to the page loading time of the target page, determining the page loading time of the target page as the page stay time of the target page.
As an alternative implementation manner of the embodiment of the present invention, the apparatus further includes:
the correction module 140 is configured to determine whether the page loading duration is within a preset time interval taking a first preset duration and a second preset duration as endpoints, where the second preset duration is longer than the first preset duration; if the page loading time is not in the preset time interval, when the page loading time is smaller than the first preset time, correcting the page loading time to be the first correction time, wherein the first correction time is longer than or equal to the first preset time and is shorter than or equal to the second preset time; and/or if the page loading time is not in the preset time interval, correcting the page loading time to be the second correction time when the page loading time is longer than the second preset time, wherein the second correction time is longer than or equal to the first preset time and shorter than or equal to the second preset time.
As an optional implementation manner of the embodiment of the present invention, the correction module 140 is further configured to add a correction identifier to the corrected page loading duration.
As another optional implementation manner of the embodiment of the present invention, the correction module 140 is further configured to store the page loading duration before correction as the associated information of the page loading duration after correction.
The device provided in this embodiment may perform the above method embodiment, and its implementation principle is similar to that of the technical effect, and will not be described herein again.
Fig. 5 is a schematic structural diagram of a device for determining a residence time of a page according to an embodiment of the present invention, as shown in fig. 5, where the device for determining a residence time of a page according to the embodiment includes: a memory 210 and a processor 220, the memory 210 for storing a computer program; the processor 220 is configured to perform the method described in the method embodiments above when the computer program is invoked.
The page stay time determining device provided in this embodiment may execute the above method embodiment, and its implementation principle is similar to that of the technical effect, and will not be described herein again.
The embodiment of the invention also provides a computer readable storage medium, on which a computer program is stored, which when being executed by a processor, implements the method described in the above method embodiment.
It will be appreciated by those skilled in the art that 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 therein.
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 flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations 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 one typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include volatile memory in a computer-readable medium, random Access Memory (RAM) and/or nonvolatile memory, etc., such as Read Only Memory (ROM) or flash memory (flashRAM). 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 storage media for a computer 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, which can be used to store information that can be accessed by a computing device. Computer-readable media, as defined herein, does not include transitory computer-readable media (transmission media), such as modulated data signals and carrier waves.
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 one … …" does not exclude the presence of other like elements in a process, method, article or apparatus that comprises an element.
Finally, it should be noted that: the above embodiments are only for illustrating the technical solution of the present invention, and not for limiting the same; although the invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some or all of the technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit of the invention.

Claims (7)

1. The method for determining the page stay time is characterized by comprising the following steps of:
Acquiring access starting time of a target page, access starting time of a next page adjacent to the target page and page loading time of the next page;
determining the page stay 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;
before determining the page stay time of the target page, the method further comprises:
judging whether the target page is a preset page, wherein the preset page is: a first page or a single page of the multi-page web page;
if the target page is a preset page, acquiring page loading time of the target page;
the determining the page stay 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 includes:
subtracting the access start time of the target page from the access start time of the next page and subtracting the page loading time of the next page to obtain a time difference;
judging whether the time difference is larger than the page loading time length of the target page;
If the time difference is larger than the page loading duration of the target page, determining the time difference as the page stay duration of the target page; and/or
If the time difference is smaller than or equal to the page loading time of the target page, determining the page loading time of the target page as the page stay time of the target page;
after obtaining the page loading time length, the method further comprises the following steps:
judging whether the page loading time is in a preset time interval taking a first preset time and a second preset time as endpoints, wherein the second preset time is longer than the first preset time;
if the page loading time is not in the preset time interval, correcting the page loading time to be a first correction time when the page loading time is smaller than the first preset time, wherein the first correction time is longer than or equal to the first preset time and is shorter than or equal to the second preset time; and/or the number of the groups of groups,
if the page loading time is not in the preset time interval, correcting the page loading time to be a second correction time when the page loading time is longer than the second preset time, wherein the second correction time is longer than or equal to the first preset time and is shorter than or equal to the second preset time.
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, wherein the preset page is: a first page or a single page of the multi-page web page;
if the target page is not the preset page, determining the page stay 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 includes:
subtracting the access start time of the target page from the access start time of the next page and subtracting the page loading time of the next page to obtain a time difference;
if the time difference is greater than zero, determining the time difference as the page stay time of the target page; and/or the number of the groups of groups,
and if the time difference is smaller than or equal to zero, determining the page stay time of the target page as zero.
3. The method of claim 1, wherein after correcting the page load duration to the first corrected duration or the second corrected duration, the method further comprises:
Adding a correction identifier for the corrected page loading time length; and/or the number of the groups of groups,
and storing the page loading time before correction as the associated information of the page loading time after correction.
4. A page stay time determining apparatus, comprising:
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 time of the next page;
the determining module is used for determining the page stay 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;
the apparatus further comprises:
the first judging unit is used for judging whether the target page is a preset page, wherein the preset page is: a first page or a single page of the multi-page web page; if the target page is a preset page, acquiring page loading time of the target page;
the determining module is further configured to subtract the access start time of the target page from the access start time of the next page and subtract the page loading time of the next page to obtain a time difference; judging whether the time difference is larger than the page loading time length of the target page; if the time difference is larger than the page loading duration of the target page, determining the time difference as the page stay duration of the target page; and/or if the time difference is smaller than or equal to the page loading time of the target page, determining the page loading time of the target page as the page stay time of the target page;
After obtaining the page loading time length, the device further comprises:
the second judging unit is used for judging whether the page loading time is in a preset time interval taking a first preset time length and a second preset time length as endpoints, wherein the second preset time length is longer than the first preset time length; if the page loading time is not in the preset time interval, correcting the page loading time to be a first correction time when the page loading time is smaller than the first preset time, wherein the first correction time is longer than or equal to the first preset time and is shorter than or equal to the second preset time; and/or if the page loading time is not in the preset time interval, correcting the page loading time to be a second correction time when the page loading time is longer than the second preset time, wherein the second correction time is longer than or equal to the first preset time and is shorter than or equal to the second preset time.
5. The apparatus of claim 4, wherein the apparatus further comprises:
the judging module is used for judging whether the target page is a preset page, wherein the preset page is: a first page or a single page of the multi-page web page;
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 target page from the access starting time of the next page and subtracting the page loading time of the next page to obtain a time difference; when the time difference is greater than zero, determining the time difference as the page stay time of the target page; and/or when the time difference is smaller than or equal to zero, determining the page stay time of the target page as zero.
6. A page stay time determination apparatus, characterized by comprising: a memory and a processor, the memory for storing a computer program; the processor being adapted to perform the method of any of claims 1-3 when the computer program is invoked.
7. A computer readable storage medium, on which a computer program is stored, which computer program, when being executed by a processor, implements the method according to any of claims 1-3.
CN201810931262.8A 2018-08-15 2018-08-15 Page stay time determination method, device and equipment Active CN110889065B (en)

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 CN110889065A (en) 2020-03-17
CN110889065B true 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)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111274521B (en) * 2020-04-29 2021-09-07 北京仁和汇智信息技术有限公司 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

Citations (3)

* Cited by examiner, † Cited by third party
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

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2015058546A1 (en) * 2013-10-25 2015-04-30 优视科技有限公司 Webpage preloading method and device

Patent Citations (3)

* Cited by examiner, † Cited by third party
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

Also Published As

Publication number Publication date
CN110889065A (en) 2020-03-17

Similar Documents

Publication Publication Date Title
CN106202235B (en) Data processing method and device
CN110020339B (en) Webpage data acquisition method and device based on non-buried point
CN107147645B (en) Method and device for acquiring network security data
CN105607986A (en) Acquisition method and device of user behavior log data
US20160350379A1 (en) Search results based on a search history
US8639559B2 (en) Brand analysis using interactions with search result items
CN110297767B (en) Automatic execution method, device, equipment and storage medium for test cases
CN110889065B (en) Page stay time determination method, device and equipment
CN105138675A (en) Database auditing method and device
CN112583944B (en) Processing method and device for updating domain name certificate
CN110955846A (en) Propagation path diagram generation method and device
CN109600272B (en) Crawler detection method and device
CN107948234B (en) Data processing method and device
CN106911636B (en) Method and device for detecting whether backdoor program exists in website
CN109587198B (en) Image-text information pushing method and device
CN106611118B (en) Method and device for applying login credentials
US20190251130A1 (en) Method and apparatus for detecting page redirection circulation
CN110708270B (en) Abnormal link detection method and device
CN108984572B (en) Website information pushing method and device
CN104391956A (en) Network update content detection method and device
CN110968754B (en) Detection method and device for crawler page turning strategy
CN110971578B (en) User identity confirmation method and device
CN109426540B (en) Element click condition detection method and device, storage medium and processor
CN111367750B (en) Exception handling method, device and equipment thereof
CN110020268B (en) Page returning method and device

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