CN110781427A - Method, device, equipment and storage medium for calculating first screen time - Google Patents
Method, device, equipment and storage medium for calculating first screen time Download PDFInfo
- Publication number
- CN110781427A CN110781427A CN201911046583.0A CN201911046583A CN110781427A CN 110781427 A CN110781427 A CN 110781427A CN 201911046583 A CN201911046583 A CN 201911046583A CN 110781427 A CN110781427 A CN 110781427A
- Authority
- CN
- China
- Prior art keywords
- screen
- target page
- target
- visible area
- time
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/957—Browsing optimisation, e.g. caching or content distillation
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/34—Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment
- G06F11/3409—Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment for performance assessment
- G06F11/3419—Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment for performance assessment by assessing time
Abstract
The embodiment of the invention discloses a method, a device, equipment and a storage medium for calculating first screen time; the method comprises the following steps: acquiring a visible area of the target page and position information of each element in the target page, and determining a target element positioned in the visible area; and acquiring the first screen time according to the opening time of the target element and the trigger time of the target page request instruction. According to the technical scheme provided by the embodiment of the invention, the first screen time is calculated and obtained according to the opening time of the target element in the visible area by obtaining the visible area of the target page and the position information of each element in the target page, the first screen time of the webpage actually experienced by the user is obtained, the accuracy and the reliability of obtaining the first screen time are improved, and the quantitative processing of the first screen time is realized in the field of real user access monitoring.
Description
Technical Field
The embodiment of the invention relates to the technical field of networks, in particular to a method, a device, equipment and a storage medium for calculating first screen time.
Background
With the continuous development of network technology, audience groups of a network are continuously expanded, and the first screen time of a user for accessing a webpage is the most intuitive experience in user experience, so that accurate calculation of the first screen time of a real user for accessing the webpage is more important.
In the field of simulating user dial test, the measurement of the first screen time is carried out through the set first screen height (for example, the height of 800 pixels), in the height range, whether the content is filled to the specified height is detected at regular time intervals, and when the content is filled, the time is recorded and is used as the first screen time.
The inventor discovers that a larger error exists between the obtained numerical value and the first screen time in actual use of the user in the first screen time calculation method adopted in the simulation of the dialing test of the user in the process of realizing the invention, and the actual feeling of the user cannot be reflected far; in the field of real user access monitoring, an effective first screen time measuring method is not available at present.
Disclosure of Invention
The embodiment of the invention provides a method, a device, equipment and a storage medium for calculating first screen time, which are used for acquiring the first screen time of a real user for accessing a webpage.
In a first aspect, an embodiment of the present invention provides a method for calculating an initial screen time, including:
when a target page request instruction is acquired, taking the trigger time of the target page request instruction as a starting point of the first screen time timing of the target page;
acquiring a visible area of the target page and position information of each element in the target page;
determining a target element positioned in the visible area according to the visible area and the position information of each element, and acquiring the opening time of the target element;
determining the first screen opening time of the target page according to the opening time of the target element, and taking the first screen opening time as a first screen time timing end point of the target page;
and calculating the first screen time according to the first screen time timing starting point and the first screen time timing end point of the target page.
In a second aspect, an embodiment of the present invention provides an apparatus for calculating an initial screen time, including:
a first screen time timing starting point obtaining module, configured to, when a target page request instruction is obtained, use a trigger time of the target page request instruction as a first screen time timing starting point of the target page;
the visible area and element information acquisition module is used for acquiring the visible area of the target page and the position information of each element in the target page;
the target element determining module is used for determining a target element positioned in the visible area according to the visible area and the position information of each element and acquiring the opening time of the target element;
the first screen time timing end point acquisition module is used for determining the first screen opening time of the target page according to the opening time of the target element and taking the first screen opening time as the first screen time timing end point of the target page;
and the first screen time calculation module is used for calculating the first screen time according to the first screen time timing starting point and the first screen time timing end point of the target page.
In a third aspect, an embodiment of the present invention further provides an apparatus, where the apparatus includes:
one or more processors;
storage means for storing one or more programs;
when the one or more programs are executed by the one or more processors, the one or more processors implement the method for calculating the top screen time according to any embodiment of the present invention.
In a fourth aspect, the embodiment of the present invention further provides a storage medium containing computer-executable instructions, where the computer-executable instructions, when executed by a computer processor, implement the method for calculating the first screen time according to any embodiment of the present invention.
According to the technical scheme provided by the embodiment of the invention, the target element in the visible area is judged by acquiring the visible area of the target page and the position information of each element in the target page, the opening time of the first screen of the target page is determined by the opening time of the target element, and the first screen time is calculated by combining the trigger time of the target page request instruction, so that the first screen time of the webpage actually sensed by a user is acquired, the accuracy and the reliability of acquiring the first screen time are improved, and the quantitative processing of the first screen time is realized in the field of real user access monitoring.
Drawings
Fig. 1A is a flowchart of a method for calculating a first screen time according to an embodiment of the present invention;
FIG. 1B is a schematic diagram illustrating location attribute value positioning of an element according to an embodiment of the present invention;
FIG. 1C is a schematic diagram of a target element location according to an embodiment of the present invention;
fig. 1D is a flowchart of a method for calculating the first screen time according to a first specific application scenario of the present invention;
fig. 2 is a block diagram of a computing apparatus for first screen time according to a second embodiment of the present invention;
fig. 3 is a block diagram of a device according to a third embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
Example one
Fig. 1A is a flowchart of a method for calculating a first screen time according to an embodiment of the present invention, where this embodiment is applicable to calculating the first screen time of a real user accessing a web page, and the method may be executed by a calculation apparatus for calculating the first screen time according to an embodiment of the present invention, where the apparatus may be implemented by software and/or hardware, and may be generally integrated in a terminal device or a server, and the method specifically includes the following steps:
s110, when a target page request instruction is acquired, taking the trigger time of the target page request instruction as a starting point of the first screen time timing of the target page.
The first screen time is the time when the user opens a webpage and can see the first screen content of the webpage, and represents that the user can normally browse and use the first screen content of the webpage. The target page in the embodiment of the present invention includes an HTML (hypertext markup Language) page, and the target page request instruction may be triggered by clicking or sliding. Particularly, in the embodiment of the invention, the target page can be opened through a browser in a mobile terminal such as a mobile phone and a tablet computer, and can also be opened through a browser in a computer; in the embodiment of the present invention, neither the opening mode of the target page nor the triggering mode of the target page request instruction is specifically limited.
And S120, acquiring the visible area of the target page and the position information of each element in the target page.
The visible area of the target page refers to an area of the target page for displaying the content of the first screen; specifically, the acquiring the visible area of the target page includes: and acquiring the visible area of the target page through the window attribute value. A window (Viewport) is used for acquiring a visible area of a webpage, namely a range in which the webpage can be browsed, and since the webpage is opened in a browser, the visible area of the browser window is acquired substantially; the window attribute values include a width offset (width) and a height offset (height) from the origin of the upper left corner of the page.
Acquiring the position information of each element in the target page, including: and sequentially acquiring each element in the target page according to the DOM structure, and acquiring the position information of each element relative to the origin of the upper left corner of the target page through a position set acquisition function. A DOM (Document Object Model) structure defining the objects and attributes of all elements in an HTML web page and a method for accessing each element, including operations of acquiring, modifying, adding, deleting, etc. each element; the method comprises the steps that a position set obtaining function, namely a getBoundingClientRect function, is used for obtaining position information of each element in a webpage relative to an origin point at the upper Left corner of a target page and the size of each element, wherein the position information is positioned through Top, Left, Right and Bottom attribute values; as shown in FIG. 1B, Top is the distance value from the upper boundary of the element to the upper boundary of the page; left is the distance value from the Left boundary of the element to the Left boundary of the page; right is the distance value from the Right border of the element to the left border of the page; bottom is the distance value from the lower boundary of the element to the upper boundary of the page, and according to the four position attribute values, the position information of the element is determined, and the size of the element is also determined.
S130, determining a target element positioned in the visible area according to the visible area and the position information of each element, and acquiring the opening time of the target element.
Specifically, the position information of each element is respectively compared with the visible area, and whether each element is located in the visible area is judged; if the element is located in the visible area, determining that the element is a target element in the visible area, and acquiring the opening time of the target element; if the element is not located in the visible area, determining that the element is a target element in the non-visible area; wherein an element is considered to be within the visible region if all or part of its content is within the visible region, e.g., as shown in fig. 1C, all of the content of element a is within the visible region, part of the content of element B is within the visible region, no content of element C is within the visible region, element a and element B are considered target elements within the visible region, and element C is considered target elements within the non-visible region.
Optionally, in this embodiment of the present invention, before comparing the position information of each of the elements with the visible area and determining whether each of the elements is located in the visible area, the method includes: and judging whether each element is visible or not. The attribute information of the element comprises whether the element is a visible element or not, and whether the element is visible or not is judged according to the attribute information; whether the element is visible in the target page request can be judged according to the user identity, for example, the element D is member exclusive display information, if the current user identity is a member, the element D belongs to a visible element in the target page request, and if the current user identity is a non-member, the element D belongs to an invisible element in the target page request. Correspondingly, the comparing the position information of each element with the visible area respectively to determine whether each element is located in the visible area includes: if the element is visible, comparing the position information of the element with the visible area, and judging whether the element is positioned in the visible area; and when the element is not visible, skipping the element, continuously acquiring the next element, and continuously judging whether the next element is visible or not.
S140, determining the first screen opening time of the target page according to the opening time of the target element, and taking the first screen opening time as the first screen time timing end point of the target page.
Optionally, in this embodiment of the present invention, the determining the opening time of the first screen of the target page according to the opening time of the target element includes: and when the element is determined to be a target element in the non-visible area, determining the opening time of the target element adjacent to the element as the opening time of the first screen of the target page. The browser loads and renders the elements from top to bottom in sequence according to the DOM structure, and only the elements rendering the height of the first screen are monitored, and the content of the first screen is presented at the moment, so that when the acquired elements are judged to be target elements in a non-visible area, the acquired elements are determined to be the target elements, and the elements before the acquired elements are all the target elements, so that the target elements adjacent to the acquired elements, namely the opening time of the last element of the acquired elements is determined to be the opening time of the first screen of the target page.
Optionally, in this embodiment of the present invention, the determining the opening time of the first screen of the target page according to the opening time of the target element includes: and determining the latest opening time according to the opening time of the target element, and determining the latest opening time as the opening time of the first screen of the target page. If the target element comprises a plurality of elements, determining the latest opening time of the elements according to the opening time of the elements, and taking the latest opening time as the opening time of the first screen; if the target element is an element, the opening time of the element is the latest opening time.
S150, calculating the first screen time according to the first screen time timing starting point and the first screen time timing end point of the target page.
And the difference value between the first screen time timing end point and the first screen time timing start point is the first screen time.
Compared with the simulation user dialing test, the method has the advantages that a monitoring program based on customization, for example, a browser kernel program for monitoring is customized to take place of Hook-related events, access data similar to real users are obtained in a mode of simulating user access, but the access data are not actually access data of the real users, because the real users use common browser access webpages instead of monitoring clients of enterprise customized kernels; the method can embed JS (Javascript) codes in < head > tags of webpage HTML codes, and the obtained data are the access data of real users and can be suitable for scenes that the real users access the webpages by using a common browser, so the method has universal applicability; in particular, the js (javascript) code may be written in the original code of the web page, or may be inserted into the written web page code, for example, in the form of a monitor probe.
According to the technical scheme provided by the embodiment of the invention, the target element in the visible area is judged by acquiring the visible area of the target page and the position information of each element in the target page, the opening time of the first screen of the target page is determined by the opening time of the target element, and the first screen time is calculated by combining the trigger time of the target page request instruction, so that the first screen time of the webpage actually sensed by a user is acquired, the accuracy and the reliability of acquiring the first screen time are improved, and the quantitative processing of the first screen time is realized in the field of real user access monitoring.
Specific application scenario one
Fig. 1D is a data flow chart of a method for calculating the first screen time according to a first specific application scenario of the present invention, where the method specifically includes:
and S210, acquiring the actual visible area of the browser window of the user through the Viewport attribute value.
S220, sequentially obtaining elements in the target page according to the DOM structure, and obtaining the size of each element and the position of each element relative to the origin of the target page through a getBoundingClientRect function.
S230, judging whether the acquired current element is visible or not; if yes, go to S240; if not, the process returns to the step S220.
S240, comparing the position of the current element with the visual area, and judging whether the current element is in the visual area; if yes, go to S250; if not, go to S260.
And S250, acquiring the opening time of the current element, and returning to execute S220.
S260, using the opening time of the last element of the current element as the opening time of the first screen of the target page; s270 is executed.
And S270, calculating the first screen time according to the first screen opening time and the trigger time of the page request instruction.
According to the technical scheme provided by the embodiment of the invention, the position information of each element in the target page is sequentially acquired according to the DOM structure and is compared with the visual area until the elements outside the visual area are acquired, the rendering of the top page of the target page is determined to be completed, the top screen time is determined according to the opening time of the target element adjacent to the element, the webpage top screen time actually sensed by a user is acquired, the accuracy and the reliability of acquiring the top screen time are improved, and the quantitative processing of the top screen time is realized in the field of real user access monitoring.
Example two
Fig. 2 is a block diagram of a computing apparatus for calculating an initial screen time according to a second embodiment of the present invention, where the apparatus specifically includes: a first screen time timing starting point obtaining module 210, a visible area and element information obtaining module 220, a target element determining module 230, a first screen time timing end point obtaining module 240, and a first screen time calculating module 250.
A first screen time timing starting point obtaining module 210, configured to, when a target page request instruction is obtained, use a trigger time of the target page request instruction as a first screen time timing starting point of the target page;
a visible area and element information obtaining module 220, configured to obtain a visible area of the target page and position information of each element in the target page;
a target element determining module 230, configured to determine, according to the visible area and the position information of each of the elements, a target element located in the visible area, and obtain an open time of the target element;
a first screen time timing end point obtaining module 240, configured to determine a first screen opening time of the target page according to the opening time of the target element, and use the first screen opening time as a first screen time timing end point of the target page;
and a first screen time calculation module 250, configured to calculate a first screen time according to the first screen time timing starting point and the first screen time timing ending point of the target page.
According to the technical scheme provided by the embodiment of the invention, the target element in the visible area is judged by acquiring the visible area of the target page and the position information of each element in the target page, the opening time of the first screen of the target page is determined by the opening time of the target element, the first screen time is calculated by combining the trigger time of the target page request instruction, the first screen time of the webpage actually sensed by a user is acquired, the accuracy and the reliability of acquiring the first screen time are improved, and the quantitative processing of the first screen time is realized in the field of real user access monitoring.
Optionally, on the basis of the above technical solution, the visible area and element information obtaining module 220 specifically includes:
and the visible area acquisition unit is used for acquiring the visible area of the target page through the window attribute value.
Optionally, on the basis of the above technical solution, the visible area and element information obtaining module 220 specifically includes:
and the element information acquisition unit is used for sequentially acquiring each element in the target page according to the DOM structure and acquiring the position information of each element relative to the origin of the upper left corner of the target page through a position set acquisition function.
Optionally, on the basis of the foregoing technical solution, the target element determining module 230 specifically includes:
the information comparison unit is used for comparing the position information of each element with the visible area respectively and judging whether each element is positioned in the visible area or not;
and the target element determining unit is used for determining the element as a target element in the visible area if the element is positioned in the visible area.
Optionally, on the basis of the above technical solution, the device for calculating the first screen time further includes:
and the element visible judging module is used for judging whether each element is visible or not.
Optionally, on the basis of the above technical scheme, the information comparing unit is specifically configured to:
if the element is visible, comparing the position information of the element with the visible area, and judging whether the element is positioned in the visible area.
Optionally, on the basis of the above technical solution, the device for calculating the first screen time further includes:
a non-target element determining module, configured to determine that the element is a target element in a non-visible region if the element is not located in the visible region.
Optionally, on the basis of the foregoing technical solution, the first screen time timing end point obtaining module 240 includes:
and the first screen time timing end point acquisition unit is used for determining the opening time of a target element adjacent to the element as the first screen opening time of the target page when the element is determined to be the target element in the non-visible area.
Optionally, on the basis of the foregoing technical solution, the first screen time timing end point obtaining module 240 includes:
and the second first screen time timing end point acquisition unit is used for determining the latest opening time according to the opening time of the target element and determining the latest opening time as the first screen opening time of the target page.
The device can execute the calculation method of the first screen time provided by any embodiment of the invention, and has corresponding functional modules and beneficial effects of the execution method. For technical details not described in detail in this embodiment, reference may be made to the method provided in any embodiment of the present invention.
EXAMPLE III
Fig. 3 is a schematic structural diagram of an apparatus according to a third embodiment of the present invention. Fig. 3 illustrates a block diagram of an exemplary device 12 suitable for use in implementing embodiments of the present invention. The device 12 shown in fig. 3 is only an example and should not bring any limitations to the functionality and scope of use of the embodiments of the present invention.
As shown in FIG. 3, device 12 is in the form of a general purpose computing device. The components of device 12 may include, but are not limited to: one or more processors or processing units 16, a system memory 28, and a bus 18 that couples various system components including the system memory 28 and the processing unit 16.
The system memory 28 may include computer system readable media in the form of volatile memory, such as Random Access Memory (RAM)30 and/or cache memory 32. Device 12 may further include other removable/non-removable, volatile/nonvolatile computer system storage media. By way of example only, storage system 34 may be used to read from and write to non-removable, nonvolatile magnetic media (not shown in FIG. 3, and commonly referred to as a "hard drive"). Although not shown in FIG. 3, a magnetic disk drive for reading from and writing to a removable, nonvolatile magnetic disk (e.g., a "floppy disk") and an optical disk drive for reading from or writing to a removable, nonvolatile optical disk (e.g., a CD-ROM, DVD-ROM, or other optical media) may be provided. In these cases, each drive may be connected to bus 18 by one or more data media interfaces. System memory 28 may include at least one program product having a set (e.g., at least one) of program modules that are configured to carry out the functions of embodiments of the invention.
A program/utility 40 having a set (at least one) of program modules 42 may be stored, for example, in system memory 28, such program modules 42 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each of which examples or some combination thereof may comprise an implementation of a network environment. Program modules 42 generally carry out the functions and/or methodologies of the described embodiments of the invention.
The processing unit 16 executes various functional applications and data processing by executing programs stored in the system memory 28, for example, to implement the calculation method of the first screen time provided by the embodiment of the present invention. Namely: when a target page request instruction is acquired, taking the trigger time of the target page request instruction as a starting point of the first screen time timing of the target page; acquiring a visible area of the target page and position information of each element in the target page; determining a target element positioned in the visible area according to the visible area and the position information of each element, and acquiring the opening time of the target element; determining the first screen opening time of the target page according to the opening time of the target element, and taking the first screen opening time as a first screen time timing end point of the target page; and calculating the first screen time according to the first screen time timing starting point and the first screen time timing end point of the target page.
Example four
The fourth embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the method for calculating the first screen time according to any embodiment of the present invention; the method comprises the following steps:
when a target page request instruction is acquired, taking the trigger time of the target page request instruction as a starting point of the first screen time timing of the target page;
acquiring a visible area of the target page and position information of each element in the target page;
determining a target element positioned in the visible area according to the visible area and the position information of each element, and acquiring the opening time of the target element;
determining the first screen opening time of the target page according to the opening time of the target element, and taking the first screen opening time as a first screen time timing end point of the target page;
and calculating the first screen time according to the first screen time timing starting point and the first screen time timing end point of the target page.
Computer storage media for embodiments of the invention may employ any combination of one or more computer-readable media. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
A computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations for aspects of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.
Claims (10)
1. A method for calculating first screen time is characterized by comprising the following steps:
when a target page request instruction is acquired, taking the trigger time of the target page request instruction as a starting point of the first screen time timing of the target page;
acquiring a visible area of the target page and position information of each element in the target page;
determining a target element positioned in the visible area according to the visible area and the position information of each element, and acquiring the opening time of the target element;
determining the first screen opening time of the target page according to the opening time of the target element, and taking the first screen opening time as a first screen time timing end point of the target page;
and calculating the first screen time according to the first screen time timing starting point and the first screen time timing end point of the target page.
2. The method of claim 1, wherein the obtaining the visible area of the target page comprises:
and acquiring the visible area of the target page through the window attribute value.
3. The method according to claim 1, wherein the obtaining the position information of each element in the target page comprises:
and sequentially acquiring each element in the target page according to the DOM structure, and acquiring the position information of each element relative to the origin of the upper left corner of the target page through a position set acquisition function.
4. The method according to claim 3, wherein said determining a target element located within said visible region based on said visible region and position information of each of said elements comprises:
comparing the position information of each element with the visible area respectively, and judging whether each element is positioned in the visible area or not;
and if the element is positioned in the visible area, determining that the element is a target element in the visible area.
5. The method of claim 4, wherein before comparing the position information of each of the elements with the visual area and determining whether each of the elements is located in the visual area, the method comprises:
judging whether each element is visible;
comparing the position information of each element with the visible area respectively, and judging whether each element is located in the visible area, including:
if the element is visible, comparing the position information of the element with the visible area, and judging whether the element is positioned in the visible area.
6. The method of claim 4, wherein after comparing the position information of each of the elements with the visible area and determining whether each of the elements is located in the visible area, the method further comprises:
if the element is not located in the visible area, determining that the element is a target element in the non-visible area;
the determining of the opening time of the first screen of the target page according to the opening time of the target element comprises:
and when the element is determined to be a target element in the non-visible area, determining the opening time of the target element adjacent to the element as the opening time of the first screen of the target page.
7. The method of claim 4, wherein determining the opening time of the first screen of the target page according to the opening time of the target element comprises:
and determining the latest opening time according to the opening time of the target element, and determining the latest opening time as the opening time of the first screen of the target page.
8. An apparatus for calculating an initial screen time, comprising:
a first screen time timing starting point obtaining module, configured to, when a target page request instruction is obtained, use a trigger time of the target page request instruction as a first screen time timing starting point of the target page;
the visible area and element information acquisition module is used for acquiring the visible area of the target page and the position information of each element in the target page;
the target element determining module is used for determining a target element positioned in the visible area according to the visible area and the position information of each element and acquiring the opening time of the target element;
the first screen time timing end point acquisition module is used for determining the first screen opening time of the target page according to the opening time of the target element and taking the first screen opening time as the first screen time timing end point of the target page;
and the first screen time calculation module is used for calculating the first screen time according to the first screen time timing starting point and the first screen time timing end point of the target page.
9. An apparatus, characterized in that the apparatus comprises:
one or more processors;
a storage device for storing one or more programs,
when executed by the one or more processors, cause the one or more processors to implement the method for calculating the first screen time of any one of claims 1-7.
10. A storage medium containing computer-executable instructions for performing the method of calculating the top screen time of any of claims 1-7 when executed by a computer processor.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911046583.0A CN110781427A (en) | 2019-10-30 | 2019-10-30 | Method, device, equipment and storage medium for calculating first screen time |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911046583.0A CN110781427A (en) | 2019-10-30 | 2019-10-30 | Method, device, equipment and storage medium for calculating first screen time |
Publications (1)
Publication Number | Publication Date |
---|---|
CN110781427A true CN110781427A (en) | 2020-02-11 |
Family
ID=69387881
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201911046583.0A Pending CN110781427A (en) | 2019-10-30 | 2019-10-30 | Method, device, equipment and storage medium for calculating first screen time |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110781427A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112131493A (en) * | 2020-08-27 | 2020-12-25 | 长沙市到家悠享网络科技有限公司 | Page first screen time determining method and device, electronic equipment and storage medium |
DE202022101830U1 (en) | 2022-04-05 | 2022-05-18 | Iftikar Ahmed | Wearable medical device for monitoring screen time with Internet of Things sensor |
CN115640477A (en) * | 2022-08-26 | 2023-01-24 | 百度在线网络技术(北京)有限公司 | Content recommendation method, device, equipment, medium and product of application program home page |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20140249447A1 (en) * | 2013-03-04 | 2014-09-04 | Anne Bibiana Sereno | Touch sensitive system and method for cognitive and behavioral testing and evaluation |
CN104899336A (en) * | 2015-07-01 | 2015-09-09 | 北京博睿宏远科技发展有限公司 | Method for measuring full rendering time of front page of webpage |
CN105373617A (en) * | 2015-11-27 | 2016-03-02 | 中国联合网络通信集团有限公司 | Web page first screen determination method and apparatus |
CN106656666A (en) * | 2016-12-13 | 2017-05-10 | 中国联合网络通信集团有限公司 | Method and device for acquiring first screen time of web page |
CN108322359A (en) * | 2018-01-08 | 2018-07-24 | 阿里巴巴集团控股有限公司 | A kind of acquisition methods and device of page initial screen time |
-
2019
- 2019-10-30 CN CN201911046583.0A patent/CN110781427A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20140249447A1 (en) * | 2013-03-04 | 2014-09-04 | Anne Bibiana Sereno | Touch sensitive system and method for cognitive and behavioral testing and evaluation |
CN104899336A (en) * | 2015-07-01 | 2015-09-09 | 北京博睿宏远科技发展有限公司 | Method for measuring full rendering time of front page of webpage |
CN105373617A (en) * | 2015-11-27 | 2016-03-02 | 中国联合网络通信集团有限公司 | Web page first screen determination method and apparatus |
CN106656666A (en) * | 2016-12-13 | 2017-05-10 | 中国联合网络通信集团有限公司 | Method and device for acquiring first screen time of web page |
CN108322359A (en) * | 2018-01-08 | 2018-07-24 | 阿里巴巴集团控股有限公司 | A kind of acquisition methods and device of page initial screen time |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112131493A (en) * | 2020-08-27 | 2020-12-25 | 长沙市到家悠享网络科技有限公司 | Page first screen time determining method and device, electronic equipment and storage medium |
DE202022101830U1 (en) | 2022-04-05 | 2022-05-18 | Iftikar Ahmed | Wearable medical device for monitoring screen time with Internet of Things sensor |
CN115640477A (en) * | 2022-08-26 | 2023-01-24 | 百度在线网络技术(北京)有限公司 | Content recommendation method, device, equipment, medium and product of application program home page |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10055507B2 (en) | Infinite scrolling | |
US9756140B2 (en) | Tracking user behavior relative to a network page | |
EP1894081B1 (en) | Web usage overlays for third-party web plug-in content | |
US9606712B1 (en) | Placement of user interface elements in a browser based on navigation input | |
CN110717121B (en) | Method and device for determining first screen time of page | |
CN110781427A (en) | Method, device, equipment and storage medium for calculating first screen time | |
KR20140091555A (en) | Measuring web page rendering time | |
US9275398B1 (en) | Obtaining metrics for client-side display of content | |
US20230251878A1 (en) | Capturing and processing interactions with a user interface of a native application | |
CN111124564A (en) | Method and device for displaying user interface | |
CN110781063B (en) | Method, device, equipment and storage medium for measuring first screen time of web page | |
CN114115681A (en) | Page generation method and device, electronic equipment and medium | |
CN107391534A (en) | The page is shown, pagefile return method and device, computer-readable storage medium | |
US20170147159A1 (en) | Capturing and storing dynamic page state data | |
EP4022481B1 (en) | Protecting user privacy in user interface data collection for native applications | |
CN111783010B (en) | Webpage blank page monitoring method, device, terminal and storage medium | |
CN110275753B (en) | Value added service acquisition method, device and equipment of application program | |
CN110088750B (en) | Method and system for providing context function in static webpage | |
CN113378036A (en) | Page operation analysis and point burying method, device, equipment and storage medium | |
CN112749528A (en) | Text processing method and device, electronic equipment and computer readable storage medium | |
CN110879738B (en) | Operation step display method and device and electronic equipment | |
CN109450993B (en) | Method and apparatus for presenting information | |
CN109559174B (en) | Method for dotting popularization resource and counting click of popularization resource | |
US20230325455A1 (en) | Method and system for controlling display of a web page | |
CN114489446A (en) | Data processing method, device, equipment and readable storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |