useTracking provides methods for enabling tracking features.
useTracking pulls the Sajari Pipeline, as provided by the closest SearchProvider, and forwards a set of utilities which are useful for various tracking use-cases. For more in-depth on how to use it, please refer to the Tracking section.
useTracking returns an object containing the following properties:
|The callback to attach on result when click, can be used in conjunction with GoogleAnalytics,...|
|Method to consume pos/neg token when using PosNegTracking.|
|PosNegLocalStorageManager||instance of PosNegLocalStorageManager for localstorage based management of PosNeg tokens. See Advanced tracking for more details.|