- Edit distance
- Timestamp (queries within 30 s are aggregated)
- User ID
Query aggregation and backend search
If you make search requests from your backend, the user ID for all searches would be your server’s IP address, which leads to inaccurate analytics. To obtain accurate analytics, you must provide unique user IDs. To provide unique user IDs, select one of these options:- Set a user token for analytics
- Forward user IP addresses
Forward user IP addresses
If you make search requests from your backend servers, and you don’t want to explicitly set user tokens, you can add theX-Forwarded-For
header to forward your users’ IP addresses to Algolia.
Revenue transactions
To track revenue associated with a search, events must include the following properties:eventSubtype
with the valuepurchase
objectData
queryID
eventSubtype
or queryID
properties,
events with query IDs that don’t correspond to searches, and
events with and eventSubtype
set to addToCart
won’t be included in revenue metrics.
For more information, see the Insights API reference.
All items in the
objectData
array of a single event are part of a single transaction, even if they have different query IDs.
The revenue associated with each item in the objectData
array will be associated with a search according to the item-level query ID.
or with the event-level query ID if none is provided for an item.queryID
or objectIDs
.
JSON