When using any of the following connectors in your front-end with theinsights
middleware, Algolia automatically sends defaultview
events when hits are rendered.
connectAutocomplete
:autocomplete
connectGeoSearch
:geoSearch
connectHits
:hits
connectInfiniteHits
:infiniteHits
If you are sending events from your back end, it is best to send view events manually. Algolia does have access to the query results ("hits") in the network response, but these results may not necessarily reflect what the user views as there are a number of other front-end factors and customizations that could impact what is actually displayed to the user.
By sending view events based on a search's queryID, you can ensure that these events accurately reflect the user experience.
last reviewed Oct. 28, 2028
Comments
0 comments
Article is closed for comments.