Package com.algolia.model.insights
Class ClickedObjectIDsAfterSearch
java.lang.Object
com.algolia.model.insights.ClickedObjectIDsAfterSearch
- All Implemented Interfaces:
EventsItems
Click event after an Algolia request. Use this event to track when users click items in the
search results. If you're building your category pages with Algolia, you'll also use this event.
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.algolia.model.insights.EventsItems
EventsItems.Deserializer
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddObjectIDs
(String objectIDsItem) addPositions
(Integer positionsItem) boolean
Identifier for authenticated users.Event name, up to 64 ASCII characters.Get eventTypegetIndex()
Index name (case-sensitive) to which the event's items belong.Object IDs of the records that are part of the event.Position of the clicked item the search results.Unique identifier for a search query.Timestamp of the event, measured in milliseconds since the Unix epoch.Anonymous or pseudonymous user identifier.int
hashCode()
setAuthenticatedUserToken
(String authenticatedUserToken) setEventName
(String eventName) setEventType
(ClickEvent eventType) setObjectIDs
(List<String> objectIDs) setPositions
(List<Integer> positions) setQueryID
(String queryID) setTimestamp
(Long timestamp) setUserToken
(String userToken) toString()
-
Constructor Details
-
ClickedObjectIDsAfterSearch
public ClickedObjectIDsAfterSearch()
-
-
Method Details
-
setEventName
-
getEventName
Event name, up to 64 ASCII characters. Consider naming events consistently—for example, by adopting Segment's [object-action](https://segment.com/academy/collecting-data/naming-conventions-for-clean-data/#the-object-action-framework) framework. -
setEventType
-
getEventType
Get eventType -
setIndex
-
getIndex
Index name (case-sensitive) to which the event's items belong. -
setObjectIDs
-
addObjectIDs
-
getObjectIDs
Object IDs of the records that are part of the event. -
setPositions
-
addPositions
-
getPositions
Position of the clicked item the search results. You must provide 1 `position` for each `objectID`. -
setQueryID
-
getQueryID
Unique identifier for a search query. The query ID is required for events related to search or browse requests. If you add `clickAnalytics: true` as a search request parameter, the query ID is included in the API response. -
setUserToken
-
getUserToken
Anonymous or pseudonymous user identifier. Don't use personally identifiable information in user tokens. For more information, see [User token](https://www.algolia.com/doc/guides/sending-events/concepts/usertoken/). -
setAuthenticatedUserToken
-
getAuthenticatedUserToken
Identifier for authenticated users. When the user signs in, you can get an identifier from your system and send it as `authenticatedUserToken`. This lets you keep using the `userToken` from before the user signed in, while providing a reliable way to identify users across sessions. Don't use personally identifiable information in user tokens. For more information, see [User token](https://www.algolia.com/doc/guides/sending-events/concepts/usertoken/). -
setTimestamp
-
getTimestamp
Timestamp of the event, measured in milliseconds since the Unix epoch. By default, the Insights API uses the time it receives an event as its timestamp. -
equals
-
hashCode
public int hashCode() -
toString
-