Analytics
The @react-query-firebase/analytics
package provides hooks for triggering analytics events.
Usage
To use the hooks, export your Auth
instance from your codebase, e.g:
import { initializeApp } from 'firebase/app';
import { getAnalytics } from 'firebase/analytics';
const firebase = initializeApp({
...
});
export const analytics = getAnalytics(firebase);