This is the React InstantSearch v7 documentation.
If you’re upgrading from v6, see the upgrade guide.
If you were using React InstantSearch Hooks,
this v7 documentation applies—just check for necessary changes.
To continue using v6, you can find the archived documentation.
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
React