When using any of the following connectors in your front-end with the
insightsmiddleware, Algolia automatically sends default
viewevents when hits are rendered.
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
Article is closed for comments.