CN110677447B - User stay time length determining method, device, equipment and storage medium - Google Patents

User stay time length determining method, device, equipment and storage medium Download PDF

Info

Publication number
CN110677447B
CN110677447B CN201810719597.3A CN201810719597A CN110677447B CN 110677447 B CN110677447 B CN 110677447B CN 201810719597 A CN201810719597 A CN 201810719597A CN 110677447 B CN110677447 B CN 110677447B
Authority
CN
China
Prior art keywords
page
user
heartbeat
server
information
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
CN201810719597.3A
Other languages
Chinese (zh)
Other versions
CN110677447A (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.)
Baidu Online Network Technology Beijing Co Ltd
Original Assignee
Baidu Online Network Technology Beijing 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 Baidu Online Network Technology Beijing Co Ltd filed Critical Baidu Online Network Technology Beijing Co Ltd
Priority to CN201810719597.3A priority Critical patent/CN110677447B/en
Publication of CN110677447A publication Critical patent/CN110677447A/en
Application granted granted Critical
Publication of CN110677447B publication Critical patent/CN110677447B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/60Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/10Active monitoring, e.g. heartbeat, ping or trace-route
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/535Tracking the activity of the user
    • 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
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Health & Medical Sciences (AREA)
  • Cardiology (AREA)
  • General Health & Medical Sciences (AREA)
  • Computer Hardware Design (AREA)
  • General Engineering & Computer Science (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention provides a method, a device, equipment and a storage medium for determining the stay time of a user. The method comprises the following steps: a server receives a request message sent by a client; the server determines whether to start a heartbeat function according to the access information of the user to the page, which is carried by the request message; if so, the server determines a heartbeat interval according to the access information of the user to the page; and the server sends the heartbeat interval to the client so that the client sends heartbeat information to the server according to the heartbeat interval, and the server determines the stay time of the user on the page according to the heartbeat information. The embodiment of the invention can collect more accurate user stay time data to the maximum extent.

Description

User stay time length determining method, device, equipment and storage medium
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a method, an apparatus, a device, and a storage medium for determining a user staying time.
Background
With the development of internet technology, more and more users use the internet to search and watch videos, and the users generally use browsers to perform some operations. By acquiring the retention time of the user on the page of the browser, the user behavior can be researched, the webpage content can be analyzed, and therefore the user experience is improved.
In the related art, the dwell time of the user on the page is determined by knowing the time of the user requesting access and the time of closing the page. Under a traditional statistical tool, the closing time of the last page accessed by a user is difficult to obtain, and when the user closes the browser quickly, does not operate the page for a long time, saves electricity of a mobile phone browser or is caused by other network reasons, the server cannot acquire the closing information of the page, so that the closing time of the last page cannot be determined, the calculation of the stay time of the user is inaccurate, and the real user behavior cannot be reflected.
Disclosure of Invention
The invention provides a method, a device, equipment and a storage medium for determining the stay time of a user, which are used for acquiring the stay time of the user under the condition that the page closing time is not collected.
In a first aspect, the present invention provides a method for determining a user dwell time, including:
a server receives a request message sent by a client;
the server determines whether to start a heartbeat function according to the access information of the user to the page, which is carried by the request message;
if so, the server determines a heartbeat interval according to the access information of the user to the page;
and the server sends the heartbeat interval to the client so that the client sends heartbeat information to the server according to the heartbeat interval, and the server determines the stay time of the user on the page according to the heartbeat information.
In a second aspect, the present invention provides a method for determining a user staying time, including:
the client sends a request message to the server; the request message carries the access information of the user to the page;
the client receives the heartbeat interval sent by the server; the heartbeat interval is determined by the server according to the access information of the user to the page after determining whether to start the heartbeat function according to the access information of the user to the page;
and the client sends heartbeat information to the server according to the heartbeat interval so that the server determines the stay time of the user on the page according to the heartbeat information.
In a third aspect, the present invention provides a device for determining a user staying time period, including:
the receiving module is used for receiving a request message sent by a client;
the processing module is used for determining whether to start a heartbeat function according to the access information of the user to the page, which is carried by the request message;
the processing module is further configured to determine a heartbeat interval according to the access information of the user to the page if it is determined that the heartbeat function needs to be started;
and the sending module is used for sending the heartbeat interval to the client so that the client sends heartbeat information to the server according to the heartbeat interval, and the server determines the stay time of the user on the page according to the heartbeat information.
In a fourth aspect, the present invention provides a device for determining a user staying time period, including:
the sending module is used for sending a request message to the server; the request message carries the access information of the user to the page;
the receiving module is used for receiving the heartbeat interval sent by the server; the heartbeat interval is determined by the server according to the access information of the user to the page after determining whether to start the heartbeat function according to the access information of the user to the page;
the sending module is further configured to send heartbeat information to the server according to the heartbeat interval, so that the server determines the stay time of the user on the page according to the heartbeat information.
In a fifth aspect, the invention provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the method of any of the first or second aspects.
In a sixth aspect, the present invention provides an electronic device, comprising:
a processor; and
a memory for storing executable instructions of the processor;
wherein the processor is configured to perform the method of any of the first aspects via execution of the executable instructions.
In a seventh aspect, the present invention provides an electronic device, comprising:
a processor; and
a memory for storing executable instructions of the processor;
wherein the processor is configured to perform the method of any of the second aspects via execution of the executable instructions.
According to the method, the device, the equipment and the storage medium for determining the stay time of the user, provided by the embodiment of the invention, the server receives a request message sent by the client; the server determines whether to start a heartbeat function according to the access information of the user to the page, which is carried by the request message; if so, the server determines a heartbeat interval according to the access information of the user to the page; the server sends the heartbeat interval to the client so that the client sends heartbeat information to the server according to the heartbeat interval to enable the server to determine the stay time of the user on the page according to the heartbeat information.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and together with the description, serve to explain the principles of the disclosure.
FIG. 1 is a schematic flow chart of an embodiment of a method for determining a user staying time period according to the present invention;
FIG. 2 is a schematic diagram illustrating an embodiment of a method for determining a user staying time according to the present invention;
FIG. 3 is a schematic flow chart of another embodiment of a method for determining a user staying time period according to the present invention;
FIG. 4 is a schematic structural diagram of an embodiment of a user staying duration determining apparatus provided in the present invention;
FIG. 5 is a schematic structural diagram of another embodiment of the apparatus for determining the staying time of the user according to the present invention;
FIG. 6 is a schematic structural diagram of an embodiment of an electronic device provided in the present invention;
fig. 7 is a block diagram of another embodiment of an electronic device provided by the present invention.
With the foregoing drawings in mind, certain embodiments of the disclosure have been shown and described in more detail below. The drawings and written description are not intended to limit the scope of the disclosed concepts in any way, but rather to illustrate the disclosed concepts to those skilled in the art by reference to specific embodiments.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. The following description refers to the accompanying drawings in which the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
The terms "comprising" and "having," and any variations thereof, in the description and claims of this invention and the drawings described herein are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements but may alternatively include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
First, the nouns and application scenarios related to the present invention are introduced:
the user stay time refers to the time length of stay of each visit of the website by the visitor, namely the time length from entering the first page to leaving the last page.
Under a traditional statistical tool, the closing time of the last page accessed by a user is difficult to obtain, and when the user closes the browser quickly, does not operate the page for a long time, saves electricity of a mobile phone browser or is caused by other network reasons, the server cannot acquire the closing information of the page, so that the closing time of the last page cannot be determined, the calculation of the stay time of the user is inaccurate, and the real user behavior cannot be reflected. Inaccurate user dwell time data may lead to misjudgments of promotional effectiveness, website content, visitor experience, and user stickiness. With the increasing popularity of mobile devices and the increase of content sites, the problem of being unable to obtain the closing time of the last page will occur more and more frequently.
In the related art, if the closing time of the last page is not obtained, a mode of endowing the last page with a fixed access time length is adopted, or the average access time length of all the previous pages is taken as the access time length of the last page. However, the first method cannot reflect real user behaviors, the second method cannot be used for the case of accessing only one page, and for content websites such as novel, video and live broadcast, the stay time of a content page is often greatly different from other pages such as a home page and a directory, and the real user behaviors cannot be reflected by using average value calculation.
The method provided by the embodiment of the invention is applied to determining the stay time of the user accessing the webpage, provides analysis data for other Internet applications, determines whether to start the heartbeat function through the server, and determines the heartbeat interval so as to enable the client and the server to interact at the heartbeat interval.
Fig. 1 is a schematic flow chart of an embodiment of a method for determining a user staying time period according to the present invention. The execution subject of the embodiment is a user stay time period determination device, and the device is arranged in a server. As shown in fig. 1, the method provided by this embodiment includes:
step 101, the server receives a request message sent by a client.
Specifically, when a user accesses a webpage, the client sends a request message to the server to request the server to perform access amount statistics, and the request message carries access information of the user to the webpage.
The historical access information of the user to the page comprises at least one of the following:
browser information, network information, or page Uniform Resource Locator (URL) information of the user. The network information includes, for example, a network operator, a network status, and the like.
And step 102, the server determines whether to start a heartbeat function according to the access information of the user to the page, which is carried by the request message.
Optionally, before step 102, the following operations may also be performed:
the server trains historical page access information to obtain a return probability model for determining the probability of receiving the page closing time; the backhaul probability model includes: inputting parameters and outputting parameters; the input parameters comprise the access information of the user to the page, and the output parameters comprise the probability of receiving the closing time of the page.
Specifically, the server determines whether to start the heartbeat function according to the access information of the user to the page. Specifically, the determination may be made through a trained backhaul probability model, where the output of the backhaul probability model is the probability of receiving the page closing time, and if the probability of receiving the page closing time is greater than a preset threshold, it indicates that the probability of receiving the page closing time is greater, and it is not necessary to start the heartbeat function, otherwise, the heartbeat function is started.
When the probability is larger than the preset threshold value, the heartbeat function can be closed, because the existing statistical data can reflect the behaviors of most users, the statistical significance is achieved, and the server burden is not required to be further increased.
Specifically, historical page access information can be trained through algorithm models such as deep learning, and a return probability model is obtained. The collected information such as the browser, the network information, the page URL and the like is processed to form characteristics, and training is carried out by taking whether the page closing time is received as a label, so that a return probability model is obtained.
Wherein the historical page access information comprises:
browser information, network information, page URL information, or page close time information of the user.
Optionally, step 102 may be specifically implemented by the following method:
the server determines the probability of receiving the closing time of the page according to the access information of the user to the page and the return probability model;
and if the probability of the received page closing time is smaller than a preset probability threshold, the server determines to start the heartbeat function.
Specifically, the probability of receiving the page closing time can be obtained by inputting the access information of the user to the page, such as the browser information, the network information or the page URL information of the user, into the return probability model.
And if the probability of the received page closing time is smaller than a preset probability threshold, starting a heartbeat function.
And 103, if so, determining the heartbeat interval by the server according to the access information of the user to the page.
Specifically, if it is determined that the heartbeat function needs to be started, an intelligent judgment mechanism is introduced to the collected client in order to reduce the pressure of the server, and it is decided which frequency is better to send the heartbeat information, that is, the heartbeat interval is determined.
Optionally, before step 103, the following operations may be performed:
the server trains historical page access information corresponding to the received page closing time to obtain a stay time expectation model for determining expected page stay time; the stay time expectation model comprises an input parameter and an output parameter; the input parameters comprise the access information of the user to the page, and the output parameters comprise the expected user stay time of the page.
Specifically, historical page access information can be trained through algorithm models such as deep learning, and a stay duration expectation model is obtained. The method comprises the steps of processing information such as a browser, network information and a page URL corresponding to the received page closing time to form characteristics, training by taking the page staying time as a label, and obtaining a staying time expectation model.
And then, determining the heartbeat interval according to the access information of the user to the page, the return probability model and the stay duration expectation model.
Alternatively, the heartbeat interval can be determined according to the access information of the user to the page and the stay duration expectation model
If the heartbeat information is sent before and after the expected user stay time output by the stay time expectation model, the method is favorable for collecting data and judging whether the access time of the website tends to increase or decrease.
And step 104, the server sends the heartbeat interval to the client, so that the client sends heartbeat information to the server according to the heartbeat interval, and the server determines the user stay time of the user on the page according to the heartbeat information.
Specifically, after the server determines the heartbeat interval, the heartbeat interval is sent to the client, so that the client sends heartbeat information to the server according to the heartbeat interval, and the server determines the user stay time of the user on the page according to the heartbeat information.
For example, heartbeat information is sent to the server every 1 minute. Therefore, even if the closing time of the user page cannot be sent to the server side due to the browser or the network, the server side can still obtain the approximate user stay time through the time of the last heartbeat information.
Wherein the heartbeat interval may be fixed or variable.
As shown in fig. 2, the client side that installs the browser interacts with the server by sending a request, the server is requested to send JS codes for access amount statistics, the server determines whether to start a heartbeat function and determines a heartbeat interval according to the return probability model and the stay time duration expectation model, the heartbeat interval is sent to the client side along with the JS codes, and the client side sends heartbeat information to the server according to the heartbeat interval.
In the method of the embodiment, a server receives a request message sent by a client; the server determines whether to start a heartbeat function according to the access information of the user to the page, which is carried by the request message; if so, the server determines a heartbeat interval according to the access information of the user to the page; the server sends the heartbeat interval to the client, so that the client sends heartbeat information to the server according to the heartbeat interval, the server determines the stay time of the user on the page according to the heartbeat information, more accurate stay time data of the user can be collected to the maximum extent, the stay time of the user can be obtained under the condition that a user closing log is not collected compared with the original scheme, in addition, a data model is used, the heartbeat information sent to the server is reduced as much as possible, the heartbeat frequency sent to the server by the client is reduced, and the pressure of a server end is reduced.
On the basis of the foregoing embodiment, optionally, step 103 may be specifically implemented by the following method:
the server determines expected stay time of the user according to the access information of the user to the page and the stay time expectation model;
the server multiplies the probability of the received page closing time by the expected user stay time to obtain the heartbeat interval;
correspondingly, the sending, by the server, the heartbeat interval to the client includes:
the server sends a preset rule, a preset range of heartbeat intervals and the heartbeat intervals to the client, so that the client sends heartbeat information to the server according to the preset rule, the preset range of the heartbeat intervals and the heartbeat intervals.
Specifically, the expected stay time of the user can be obtained by inputting the expected stay time model of the access information of the user to the page, such as the browser information, the network information or the page URL information of the user.
The probability of the received page closing time is multiplied by the expected user stay time to obtain a heartbeat interval, the heartbeat interval can be used as an initial heartbeat interval, and a subsequent heartbeat interval can be adjusted according to a preset rule, for example, the subsequent heartbeat interval is increased or decreased according to a fixed or variable step length, or the subsequent heartbeat interval is increased or decreased according to a weight. The server may also set a preset range of heartbeat intervals, for example, no less than 10s at the shortest and no more than 1800s at the longest. The reason why the time is not less than 10s is to prevent the server from being overstressed, and the reason why the time is not more than 1800s is to prevent the reason that the time is mistaken for the closing log return timeout (closing log return includes page closing time return) if the video website has no operation for a long time, so that the access is ended.
The server sends a preset rule, a preset range of the heartbeat interval and the heartbeat interval to the client, so that the client determines a subsequent heartbeat interval according to the preset rule, the preset range of the heartbeat interval and sends heartbeat information according to the heartbeat interval.
Further, the method of this embodiment further includes:
the server receives heartbeat information sent by the client; the heartbeat information includes: access information of a user to a page;
the server determines a new heartbeat interval according to the access information of the user to the page, the return probability model and the stay time expectation model;
and the server sends the new heartbeat interval to the client.
Specifically, the server may also re-determine a new heartbeat interval to send to the client after receiving the heartbeat interval of the client, and the determination method is the same as the above method, and is not described here again.
In the above specific embodiment, an intelligent determination mechanism is introduced to reduce the pressure of the server, and a decision is made as to how often the heartbeat information is sent, that is, the heartbeat interval, and the determined heartbeat interval is sent to the client, so that the client sends the heartbeat information according to the heartbeat interval.
Fig. 3 is a schematic flowchart of another embodiment of the method for determining a user staying time period according to the present invention. The execution subject of the embodiment is a user stay time determination device, and the device is arranged in the client. As shown in fig. 3, the method provided by this embodiment includes:
step 301, the client sends a request message to the server; the request message carries the access information of the user to the page;
step 302, the client receives the heartbeat interval sent by the server; the heartbeat interval is determined by the server according to the access information of the user to the page after determining whether to start the heartbeat function according to the access information of the user to the page;
step 303, the client sends heartbeat information to the server according to the heartbeat interval, so that the server determines the stay time of the user on the page according to the heartbeat information.
Optionally, step 303 may be specifically implemented by the following method:
the client sends heartbeat information to the server according to a preset rule sent by the server, a preset range of heartbeat intervals and the heartbeat intervals.
The method of this embodiment is similar to the implementation principle and technical effect of the method embodiment shown in fig. 1, and is not described herein again.
Fig. 4 is a structural diagram of an embodiment of a user staying length determining apparatus provided in the present invention, and as shown in fig. 4, the user staying length determining apparatus of the embodiment is disposed in a server, and includes:
a receiving module 401, configured to receive a request message sent by a client;
a processing module 402, configured to determine whether to start a heartbeat function according to access information of a user to a page, where the access information is carried in the request message;
the processing module 402 is further configured to determine a heartbeat interval according to the access information of the user to the page if it is determined that the heartbeat function needs to be started;
a sending module 403, configured to send the heartbeat interval to the client, so that the client sends heartbeat information to the server according to the heartbeat interval, so that the server determines, according to the heartbeat information, a dwell time of the user on the page.
Optionally, the processing module 402 is specifically configured to:
training historical page access information to obtain a return probability model for determining the probability of receiving the page closing time; the backhaul probability model includes: inputting parameters and outputting parameters; the input parameters comprise the access information of the user to the page, and the output parameters comprise the probability of receiving the closing time of the page;
training historical page access information corresponding to the received page closing time to obtain a stay time expectation model for determining expected page stay time; the stay time expectation model comprises input parameters and output parameters; the input parameters comprise the access information of the user to the page, and the output parameters comprise the expected user stay time of the page.
Optionally, the historical access information includes at least one of:
browser information, network information, page URL information, or page close time information of the user.
Optionally, the processing module 402 is specifically configured to:
determining the probability of receiving the closing time of the page according to the access information of the user to the page and the return probability model;
and if the probability of receiving the page closing time is smaller than a preset probability threshold value, starting a heartbeat function.
Optionally, the processing module 402 is specifically configured to:
and determining the heartbeat interval according to the access information of the user to the page, the probability of receiving the closing time of the page and the expected staying time period model.
Optionally, the processing module 402 is specifically configured to:
determining expected stay time of the user according to the access information of the user to the page and the stay time expectation model;
multiplying the probability of the received page closing time by the expected user stay time to obtain the heartbeat interval;
correspondingly, the sending module 403 is specifically configured to:
sending a preset rule, a preset range of a heartbeat interval and the heartbeat interval to the client, so that the client sends heartbeat information to the server according to the preset rule, the preset range of the heartbeat interval and the heartbeat interval.
Optionally, the receiving module 401 is further configured to:
receiving heartbeat information sent by the client; the heartbeat information includes: access information of a user to a page;
the processing module 402 is further configured to:
determining a new heartbeat interval according to the access information of the user to the page, the return probability model and the stay time expectation model;
the sending module 403 is further configured to: and sending the new heartbeat interval to the client.
Optionally, the historical access information of the user to the page includes at least one of:
browser information, network information, or page URL information of the user.
The apparatus of this embodiment may be configured to implement the technical solutions of the above method embodiments, and the implementation principles and technical effects are similar, which are not described herein again.
Fig. 5 is a structural diagram of another embodiment of the user staying length determining apparatus provided by the present invention, and as shown in fig. 5, the user staying length determining apparatus of the present embodiment is disposed in a client, and includes:
a sending module 501, configured to send a request message to a server; the request message carries the access information of the user to the page;
a receiving module 502, configured to receive a heartbeat interval sent by the server; the heartbeat interval is determined by the server according to the access information of the user to the page after determining whether to start the heartbeat function according to the access information of the user to the page;
the sending module 501 is further configured to send heartbeat information to the server according to the heartbeat interval, so that the server determines a staying time of the user on the page according to the heartbeat information.
Optionally, the sending module 501 is specifically configured to:
and the client sends heartbeat information to the server according to a preset rule sent by the server, a preset range of heartbeat intervals and the heartbeat intervals.
Fig. 6 is a structural diagram of an embodiment of an electronic device provided in the present invention, and as shown in fig. 6, the electronic device may be configured with a client, and includes:
a processor 601, and a memory 602 for storing executable instructions for the processor 601.
Optionally, a display screen 603 may also be included, such as may be used for a web page.
The processor 601 is configured to execute the corresponding method in the foregoing method embodiment by executing the executable instruction, and the specific implementation process thereof may refer to the foregoing method embodiment, which is not described herein again.
Fig. 7 is a block diagram of another embodiment of an electronic device provided in the present invention, and as shown in fig. 7, the electronic device may be a server, and includes:
a processor 701, and a memory 702 for storing executable instructions for the processor 701.
Optionally, a communication interface 703 may also be included, such as may be used for web pages.
The processor 701 is configured to execute the corresponding method in the foregoing method embodiment by executing the executable instruction, and the specific implementation process of the method may refer to the foregoing method embodiment, which is not described herein again.
The embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored, and when the computer program is executed by a processor, the method in the foregoing method embodiment is implemented.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. The invention is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice in the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (20)

1. A method for determining a user dwell time, comprising:
a server receives a request message sent by a client;
the server determines whether to start a heartbeat function according to the access information of the user to the page, which is carried by the request message;
if so, the server determines a heartbeat interval according to the access information of the user to the page;
and the server sends the heartbeat interval to the client so that the client sends heartbeat information to the server according to the heartbeat interval, and the server determines the stay time of the user on the page according to the heartbeat information.
2. The method of claim 1, wherein prior to determining whether to turn on heartbeat function, further comprising:
the server trains historical page access information to obtain a return probability model for determining the probability of receiving the page closing time; the backhaul probability model includes: inputting parameters and outputting parameters; the input parameters comprise the access information of the user to the page, and the output parameters comprise the probability of receiving the closing time of the page;
the server trains historical page access information corresponding to the received page closing time to obtain a stay time expectation model for determining expected page stay time; the stay time expectation model comprises input parameters and output parameters; the input parameters comprise the access information of the user to the page, and the output parameters comprise the expected user stay time of the page.
3. The method of claim 2, wherein the historical page access information comprises at least one of:
browser information, network information, page URL information, or page close time information of the user.
4. The method of claim 2 or 3, wherein the determining whether to turn on a heartbeat function comprises:
the server determines the probability of receiving the closing time of the page according to the access information of the user to the page and the return probability model;
and if the probability of the received page closing time is smaller than a preset probability threshold, the server determines to start the heartbeat function.
5. The method of claim 4, wherein the server determines a heartbeat interval according to the access information of the user to the page, comprising:
and the server determines the heartbeat interval according to the access information of the user to the page, the probability of receiving the closing time of the page and the expected staying time period model.
6. The method of claim 5, wherein the determining the heartbeat interval comprises:
the server determines expected stay time of the user according to the access information of the user to the page and the stay time expectation model;
the server multiplies the probability of the received page closing time by the expected user stay time to obtain the heartbeat interval;
correspondingly, the sending, by the server, the heartbeat interval to the client includes:
the server sends a preset rule, a preset range of heartbeat intervals and the heartbeat intervals to the client, so that the client sends heartbeat information to the server according to the preset rule, the preset range of the heartbeat intervals and the heartbeat intervals.
7. The method of claim 6, further comprising:
the server receives heartbeat information sent by the client; the heartbeat information includes: access information of a user to a page;
the server determines a new heartbeat interval according to the access information of the user to the page, the return probability model and the stay time expectation model;
and the server sends the new heartbeat interval to the client.
8. The method of any of claims 1-3, wherein the historical access information of the user to the page comprises at least one of:
browser information, network information, or page URL information of the user.
9. A method for determining a user dwell time, comprising:
the client sends a request message to the server; the request message carries the access information of the user to the page;
the client receives the heartbeat interval sent by the server; the heartbeat interval is determined by the server according to the access information of the user to the page after determining whether to start the heartbeat function according to the access information of the user to the page;
and the client sends heartbeat information to the server according to the heartbeat interval so that the server determines the stay time of the user on the page according to the heartbeat information.
10. The method according to claim 9, wherein the client sends heartbeat information to the server according to the heartbeat interval, comprising:
the client sends heartbeat information to the server according to a preset rule sent by the server, a preset range of heartbeat intervals and the heartbeat intervals.
11. A user stay time determination apparatus, comprising:
the receiving module is used for receiving a request message sent by a client;
the processing module is used for determining whether to start a heartbeat function according to the access information of the user to the page, which is carried by the request message;
the processing module is further configured to determine a heartbeat interval according to the access information of the user to the page if it is determined that the heartbeat function needs to be started;
and the sending module is used for sending the heartbeat interval to the client so that the client sends heartbeat information to a server according to the heartbeat interval, and the server determines the stay time of the user on the page according to the heartbeat information.
12. The apparatus of claim 11, wherein the processing module is specifically configured to:
training historical page access information to obtain a return probability model for determining the probability of receiving the closing time of the page; the backhaul probability model includes: inputting parameters and outputting parameters; the input parameters comprise the access information of the user to the page, and the output parameters comprise the probability of receiving the closing time of the page;
training historical page access information corresponding to the received page closing time to obtain a stay time expectation model for determining expected page stay time; the stay time expectation model comprises input parameters and output parameters; the input parameters comprise the access information of the user to the page, and the output parameters comprise the expected user stay time of the page.
13. The apparatus of claim 12, wherein the historical page access information comprises at least one of:
browser information, network information, page URL information, or page close time information of the user.
14. The apparatus according to claim 12 or 13, wherein the processing module is specifically configured to:
determining the probability of receiving the closing time of the page according to the access information of the user to the page and the return probability model;
and if the probability of receiving the page closing time is smaller than a preset probability threshold value, starting a heartbeat function.
15. The apparatus according to claim 14, wherein the processing module is specifically configured to:
and determining the heartbeat interval according to the access information of the user to the page, the probability of receiving the closing time of the page and the expected staying time period model.
16. A user stay time determination apparatus, comprising:
the sending module is used for sending a request message to the server; the request message carries the access information of the user to the page;
the receiving module is used for receiving the heartbeat interval sent by the server; the heartbeat interval is determined by the server according to the access information of the user to the page after determining whether to start the heartbeat function according to the access information of the user to the page;
the sending module is further configured to send heartbeat information to the server according to the heartbeat interval, so that the server determines the stay time of the user on the page according to the heartbeat information.
17. The apparatus of claim 16, wherein the sending module is specifically configured to:
and sending heartbeat information to the server according to a preset rule sent by the server, a preset range of a heartbeat interval and the heartbeat interval.
18. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the method of any one of claims 1 to 10.
19. An electronic device, comprising:
a processor; and
a memory for storing executable instructions of the processor;
wherein the processor is configured to perform the method of any of claims 1-8 via execution of the executable instructions.
20. An electronic device, comprising:
a processor; and
a memory for storing executable instructions of the processor;
wherein the processor is configured to perform the method of any of claims 9-10 via execution of the executable instructions.
CN201810719597.3A 2018-07-03 2018-07-03 User stay time length determining method, device, equipment and storage medium Active CN110677447B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810719597.3A CN110677447B (en) 2018-07-03 2018-07-03 User stay time length determining method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810719597.3A CN110677447B (en) 2018-07-03 2018-07-03 User stay time length determining method, device, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN110677447A CN110677447A (en) 2020-01-10
CN110677447B true CN110677447B (en) 2022-05-20

Family

ID=69065626

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810719597.3A Active CN110677447B (en) 2018-07-03 2018-07-03 User stay time length determining method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN110677447B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111683262B (en) * 2020-06-04 2022-03-15 广州酷狗计算机科技有限公司 Method, device, server, terminal and storage medium for determining continuous microphone time
CN112311629B (en) * 2020-10-30 2022-04-26 广州华多网络科技有限公司 Data processing method, device, server and computer readable storage medium
CN115334141A (en) * 2022-08-03 2022-11-11 上海艺赛旗软件股份有限公司 Bidirectional data transmission system, method and device based on heartbeat mechanism

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0939516A2 (en) * 1998-01-19 1999-09-01 Michael Robinson User communication and monitoring system for computer networks
CN103605689A (en) * 2013-11-01 2014-02-26 北京奇虎科技有限公司 Method and device for acquiring visiting staying time
CN103778254A (en) * 2014-02-24 2014-05-07 北京国双科技有限公司 Method, device and system for processing page access data

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030131052A1 (en) * 2002-01-10 2003-07-10 International Business Machines Corporatioin Method and system for HTTP time-on-page monitoring without client-side installation

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0939516A2 (en) * 1998-01-19 1999-09-01 Michael Robinson User communication and monitoring system for computer networks
CN103605689A (en) * 2013-11-01 2014-02-26 北京奇虎科技有限公司 Method and device for acquiring visiting staying time
CN103778254A (en) * 2014-02-24 2014-05-07 北京国双科技有限公司 Method, device and system for processing page access data

Also Published As

Publication number Publication date
CN110677447A (en) 2020-01-10

Similar Documents

Publication Publication Date Title
KR102151457B1 (en) Method and apparatus for reducing page load time in a communication system
CN110677447B (en) User stay time length determining method, device, equipment and storage medium
CN105187396A (en) Method and device for identifying web crawler
CN102624920A (en) Method and device for performing access through proxy server
EP2857987A1 (en) Acquiring method, device and system of user behavior
CN104980512A (en) Method and equipment for providing target object based on mobile application
EP2176796A2 (en) Method for media discovery
CN106599270B (en) Network data capturing method and crawler
JP5112401B2 (en) Web action history acquisition system, Web action history acquisition method, gateway device, and program
CN111045934A (en) Page analysis method, device, client, storage medium and electronic equipment
CN111881391A (en) Static network resource preloading method, data model training method and device
CN108573053B (en) Information pushing method, device and system
JP5933487B2 (en) QoE estimation apparatus, QoE estimation method and program
CN113055420B (en) HTTPS service identification method and device and computing equipment
CN112035205A (en) Data processing method, device, equipment and storage medium
CN105095398B (en) A kind of information providing method and device
CN111338928A (en) Chrome-based browser testing method and device
CN111756744B (en) H5 user identification method, device, equipment and storage medium
CN111159509B (en) Data processing method and related product
US20140237133A1 (en) Page download control method, system and program for ie core browser
CN113127788B (en) Page processing method, object processing method, device and equipment
KR101057205B1 (en) Apparatus and method for converting web page script in mobile communication network
EP3236364B1 (en) Web tracking method and system
KR101498920B1 (en) Web page pre-caching system and method for offline-executing
CN110601926A (en) Statistical method and device for throughput of Web service end system

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