positions property

List<int>? positions
final

Position of the click in the list of Algolia search results.

This field is required if a queryID is provided. One position must be provided for each objectID.

The position value must be absolute, not relative, to the result page. For example, when clicking on the third record of the second results page, assuming 10 results per page, the position should be 13. Since page starts at 0, you can use the following formula: $positionOnPage + $page * hitsPerPage

Note: For InstantSearch implementations, this position is available through the hit.__position attribute

Only include this parameter when sending click events.

Implementation

final List<int>? positions;