Class ConvertedObjectIDsAfterSearch

java.lang.Object
com.algolia.model.insights.ConvertedObjectIDsAfterSearch

public class ConvertedObjectIDsAfterSearch extends Object
Use this event to track when users convert after a previous Algolia request. For example, a user clicks on an item in the search results to view the product detail page. Then, the user adds the item to their shopping cart. If you're building your category pages with Algolia, you'll also use this event.
  • Constructor Details

    • ConvertedObjectIDsAfterSearch

      public ConvertedObjectIDsAfterSearch()
  • Method Details

    • setEventName

      public ConvertedObjectIDsAfterSearch setEventName(String eventName)
    • getEventName

      @Nonnull public String getEventName()
      Can contain 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.
      Returns:
      eventName
    • setEventType

      public ConvertedObjectIDsAfterSearch setEventType(ConversionEvent eventType)
    • getEventType

      @Nonnull public ConversionEvent getEventType()
      Get eventType
      Returns:
      eventType
    • setIndex

      public ConvertedObjectIDsAfterSearch setIndex(String index)
    • getIndex

      @Nonnull public String getIndex()
      Name of the Algolia index.
      Returns:
      index
    • setObjectIDs

      public ConvertedObjectIDsAfterSearch setObjectIDs(List<String> objectIDs)
    • addObjectIDs

      public ConvertedObjectIDsAfterSearch addObjectIDs(String objectIDsItem)
    • getObjectIDs

      @Nonnull public List<String> getObjectIDs()
      List of object identifiers for items of an Algolia index.
      Returns:
      objectIDs
    • setQueryID

      public ConvertedObjectIDsAfterSearch setQueryID(String queryID)
    • getQueryID

      @Nonnull public String 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.
      Returns:
      queryID
    • setUserToken

      public ConvertedObjectIDsAfterSearch setUserToken(String userToken)
    • getUserToken

      @Nonnull public String getUserToken()
      Anonymous or pseudonymous user identifier. > **Note**: Never include personally identifiable information in user tokens.
      Returns:
      userToken
    • setTimestamp

      public ConvertedObjectIDsAfterSearch setTimestamp(Long timestamp)
    • getTimestamp

      @Nullable public Long getTimestamp()
      Time of the event in milliseconds in [Unix epoch time](https://wikipedia.org/wiki/Unix_time). By default, the Insights API uses the time it receives an event as its timestamp.
      Returns:
      timestamp
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object