# US 2018/0027083 A1 · Determining a duration content is visible to a user of an online system

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2018/0027083 A1
- Document ID: US20180027083A1
- Status: Published application
- Kind: A1
- Application number: 15/214,226
- Filed: 2016-07-19
- Published: 2018-01-25
- Earliest claimed: 2016-07-19
- Assignees: Facebook, Inc.
- Applicants: Facebook, Inc.
- Inventors: Aleksey Sergeyevich Fadeev; Luxi Guo; Laszlo Juracz
- Web page: https://patentgrep.com/patent/US20180027083A1

## CPC

- H04L 67/535: {Tracking the activity of the user (network monitoring arrangements H04L43/00; recording of computer activity G06F11/34)}
- G06F 40/14: Tree-structured documents (parsing G06F40/205; validation G06F40/226)
- G06F 40/197: Version control (for software G06F8/71)
- H04L 67/02: based on web technology, e.g. hypertext transfer protocol [HTTP]
- H04L 67/306: User profiles
- H04L 67/53: using third party service providers
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A page of content includes instructions that, when executed by a client device presenting the page, obtain a visibility state of the page describing presentation of the page of content to a user and a time when the visibility state was obtained. Execution of the instructions also generates an identifier with which the visibility state and the time are associated. The instructions also obtained updated visibility states, obtains times when the updated visibility states are obtained, and associates the updated visibility states and their corresponding times with the identifier. The client device communicates the obtained visibility state, updated visibility states, and corresponding times to an online system in association with the identifier. Based on the times corresponding to the visibility state and the updated visibility states, the online system determines a duration the page was presented.

## Claims

### Claim 1

A method comprising:
receiving a content item from an online system at a client device associated with a user of the online system, the content item identifying a page of content including instructions that, when executed by the client device, cause the client device to:
obtain a visibility state of an application presenting the page of content, the visibility state indicating whether at least a threshold amount of the page of content is presented on a display device of the client device,
obtain a time when the visibility state was obtained, and generate an identifier corresponding to execution of the instructions by the client device;
presenting the content item on the client device;
presenting the page of content identified by the content item in the application executing on the client device in response to receiving a selection of the content item;
executing the instructions included in the page of content identified by the content item in response to presenting the page of content identified by the content item; and
transmitting the visibility state in association with the time and the identifier from executing the instructions to the online system.

### Claim 2 (depends on 1)

The method of claim 1, wherein obtain the visibility state of the application presenting the page of content, comprises:
communicate an application programming interface call to the application presenting the page of content; and
obtain the visibility state from the application presenting the page of content in response to the application programming interface call.

### Claim 3 (depends on 1)

The method of claim 1, wherein the visibility state indicates one selected from a group consisting of: the application is presenting the page of content, the application is hiding the page of content, and the application has closed the page of content.

### Claim 4 (depends on 1)

The method of claim 1, wherein the page of content further includes instructions that, when executed by the client device, cause the client device to:
obtain an updated visibility state of the application presenting the page of content;
obtain a time when the updated visibility state was obtained; and
associate the updated visibility state and the time when the updated visibility state was obtained with the generated identifier.

### Claim 5 (depends on 4)

The method of claim 4, wherein obtain the updated visibility state of the application presenting the page of content comprises:
obtain the updated visibility state in response to the application presenting the page of content modifying the visibility state.

### Claim 6 (depends on 4)

The method of claim 4, wherein obtain the updated visibility state of the application presenting the page of content comprises:
obtain the updated visibility state at a periodic time interval.

### Claim 7 (depends on 4)

The method of claim 4, wherein obtain the updated visibility state of the application presenting the page of content comprises:
obtain the updated visibility state in response to the client device receiving a request for the updated visibility state from the online system.

### Claim 8 (depends on 1)

The method of claim 1, wherein obtain the visibility state of the application presenting the page of content comprises:
obtain the visibility state in response to the client device receiving a request for the visibility state from the online system.

### Claim 9 (depends on 1)

The method of claim 1, wherein obtain the visibility state of the application presenting the page of content comprises:
obtain the visibility state in response to the client device identifies an action specified by the instructions.

### Claim 10 (depends on 1)

The method of claim 1, wherein obtain the time when the visibility state was obtained comprises:
obtain a time from a timing system included in the client device when the visibility state was obtained.

### Claim 11

A method comprising:
including instructions in a page of content that, when executed by a client device presenting the page of content, cause the client device to:
obtain a visibility state of an application presenting the page of content, the visibility state indicating whether at least a threshold amount of the page of content is presented on a display device of the client device,
obtain a time when the visibility state was obtained,
obtain one or more updated visibility states of the application presenting the page of content,
obtain one or more times when each of the one or more updated visibility states were obtained, and
generate an identifier corresponding to execution of the instructions by the client device;
receiving the visibility state and the time when the visibility state was obtained in association with the identifier;
receiving the one or more updated visibility states and the one or more times when each of the one or more updated visibility states were obtained in association with the identifier; and
determining a duration the page of content was presented based on the visibility state, the time when the visibility state was obtained, the one or more updated visibility states, and the one or more times when each of the updated visibility states were obtained.

### Claim 12 (depends on 11)

The method of claim 11, wherein the visibility state indicates the application is presenting the page of content and wherein determining the duration the page of content was presented comprises:
determining the duration the page of content was presented as a difference between a time when an updated visibility state indicates the application closed the page of content was obtained and the time when the visibility state was obtained.

### Claim 13 (depends on 11)

The method of claim 11, wherein determining the duration the page of content was presented comprises:
identifying an earliest time when the visibility state indicates the application is presenting the page of content or when an updated visibility state indicates the application is presenting the page of content;
identifying a time when the modified visibility state indicates the application has closed the page of content;
for an interval between the earliest time and the time, identifying amounts of time between times when a modified visibility state indicating the application hid the page of content and earlier times when a consecutive modified visibility state indicating the application presented the page of content was obtained or an earlier time when the visibility state was obtained if the visibility state is consecutive with the modified visibility state indicating the application hid the page of content and was obtained earlier than the modified visibility state indicating the application hid the page of content; and
determining the duration the page of content was presented as a combination of the identified amounts of time.

### Claim 14 (depends on 10)

The method of claim 10, further comprising:
modifying subsequent selection of content items identifying the page of content for presentation to users based on the determined duration.

### Claim 15 (depends on 14)

The method of claim 14, modifying subsequent selection of content items identifying the page of content for presentation to users based on the determined duration comprises:
increasing a characteristic of a content item identifying the page of content used by one or more selection processes in response to the determined duration equaling or exceeding a threshold amount of time.

### Claim 16 (depends on 14)

The method of claim 14, modifying subsequent selection of content items identifying the page of content for presentation to users based on the determined duration comprises:
decreasing a characteristic of a content item identifying the page of content used by one or more selection processes in response to the determined duration being less than a threshold amount of time.

### Claim 17

A computer program product comprising a computer readable storage medium having instructions encoded thereon that, when executed by a processor, cause the processor to:
include additional instructions in a page of content that, when executed by a client device presenting the page of content, cause the client device to:
obtain a visibility state of an application presenting the page of content, the visibility state indicating whether at least a threshold amount of the page of content is presented on a display device of the client device,
obtain a time when the visibility state was obtained,
obtain one or more updated visibility states of the application presenting the page of content,
obtain one or more times when each of the one or more updated visibility states were obtained, and
generate an identifier corresponding to execution of the instructions by the client device;
receive the visibility state and the time when the visibility state was obtained in association with the identifier;
receive the one or more updated visibility states and the one or more times when each of the one or more updated visibility states were obtained in association with the identifier; and
determine a duration the page of content was presented based on the visibility state, the time when the visibility state was obtained, the one or more updated visibility states, and the one or more times when each of the updated visibility states were obtained.

### Claim 18 (depends on 17)

The computer program product of claim 17, wherein the visibility state indicates the application is presenting the page of content and wherein determine the duration the page of content was presented comprises:
determine the duration the page of content was presented as a difference between a time when an updated visibility state indicates the application closed the page of content was obtained and the time when the visibility state was obtained.

### Claim 19 (depends on 17)

The computer program product of claim 17, wherein determine the duration the page of content was presented comprises:
identify an earliest time when the visibility state indicates the application is presenting the page of content or when an updated visibility state indicates the application is presenting the page of content;
identify a time when the modified visibility state indicates the application has closed the page of content;
for an interval between the earliest time and the time, identify amounts of time between times when a modified visibility state indicating the application hid the page of content and earlier times when a consecutive modified visibility state indicating the application presented the page of content was obtained or an earlier time when the visibility state was obtained if the visibility state is consecutive with the modified visibility state indicating the application hid the page of content and was obtained earlier than the modified visibility state indicating the application hid the page of content; and
determine the duration the page of content was presented as a combination of the identified amounts of time.

### Claim 20 (depends on 17)

The computer program product of claim 17, wherein the computer readable storage medium further has instructions encoded thereon that, when executed by the processor cause the processor to:
modify subsequent selection of content items identifying the page of content for presentation to users based on the determined duration.
