search
Use this event to track when users convert on items unrelated to a previous Algolia request.
For example, if you donโt use Algolia to build your category pages,
use convertedObjectIDs
.
For details where this event is used, see Event types.
Related methods:
convertedObjectIDsAfterSearch
: track conversion events related to Algolia requests.addedToCartObjectIDs
: specifically track Add to cart events.purchasedObjectIDs
: specifically track Purchase events.sendEvents
: if you donโt want to send real-time events.
Examples
For more information about initializing the JavaScript Insights clientaa
,
see Initialize the Insights client.
JavaScript
Parameters
Name of the specific event.Format: 1-64 ASCII characters, except control characters.To maximize the impact of your events,
use consistent event names and consistent formattingโfor example, โProduct Added To Cartโ (always in title case).For example, you can adopt Twilio Segmentโs object-action framework.
Name of the Algolia index.Format: same as the index name used by the search engine.Some API clients use
index
instead of indexName
.List of object IDs for items of an Algolia index.You can include up to 20 object IDs.
Anonymous user identifier.See also: User token
Pseudonymous identifier for authenticated users.See also: User token
Donโt include personally identifiable information in user tokens.