We’ve migrated our documentation to a new site, which means some URLs have changed.
Audience

/public/widget/visibility

Report visibility of recommendations for a content widget.

Unlike the API methods for configuring content widgets, this method does not require HTTPS or any form of authentication.

In most cases there is no need to make direct requests to this API method. On the web page the cx.cce.js script will handle that automatically.

Request

The request object has the following fields:

Name

Type

Required

Description

impressions

List of Impressions

Yes

The list of seen recommendations (impressions) you'd like to report visibility of.

"Impression" request object

An Impression object can have the following fields:

Name

Type

Description

clickUrl

String

The click URL of a visible recommendation received in the response from /public/widget/data.

visibilitySeconds

Integer

The number of seconds the recommendation has been visible for. Must be equals or greater than 0.

Response

The successful response object will be empty.

Last updated: