Skip to main content
Required ACL: search For details where this event is used, see Event types.

Examples

For more information about initializing the JavaScript Insights client aa, see Initialize the Insights client.
JavaScript

Parameters

string
required
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.
string
required
Name of the Algolia index.Format: same as the index name used by the search engine.Some API clients use index instead of indexName.
string[]
required
List of object IDs for items of an Algolia index.You can include up to 20 object IDs.
string
required
Anonymous user identifier.See also: User token
string
Pseudonymous identifier for authenticated users.
Donโ€™t include personally identifiable information in user tokens.
See also: User token
Last modified on March 23, 2026