1
Set up Google Analytics
2
Create the middleware to send events
In the event listener, send events to Google Analytics.
This example debounces the event for 3 seconds but adjust this to your needs.
JavaScript
3
Inject the middleware into the InstantSearch lifecycle
Vue