trackImpression

suspend fun EngageBySailthru.trackImpression(sectionId: String, urls: List<URI>?)

Asynchronously registers an impression - a reasonable expectation that a user has seen a piece of content - with Marigold SPM. Can be used in conjunction with RecyclerView.Adapter#onViewAttachedToWindow or similar to know when a particular content item has entered the user's viewport.

Parameters

sectionId

the Section ID on Marigold SPM corresponding to the section being viewed. Must not be null.

urls

a List of the URLs of the items contained within this section. Useful if multiple items of content are contained within a section, otherwise just pass a single-item array. May be null.

Throws

Thrown if there is an error processing the request.