The InteractiveProduct sub-controller provides an interface for handling long presses, multiple clicks, etc. to ensure analytics events are logged properly when a user selects a product.
InteractiveProduct
Prepares to select the result after a certain delay, sending analytics if it was never selected before.
In a DOM context, it's recommended to call this method on the touchstart event.
touchstart
Cancels the pending selection caused by beginDelayedSelect.
beginDelayedSelect
In a DOM context, it's recommended to call this method on the touchend event.
touchend
Selects the result, logging a UA event to the Coveo Platform if the result wasn't selected before.
In a DOM context, it's recommended to call this method on all of the following events:
contextmenu
click
mouseup
mousedown
Optional
The
InteractiveProduct
sub-controller provides an interface for handling long presses, multiple clicks, etc. to ensure analytics events are logged properly when a user selects a product.