Analytics

The @react-query-firebase/analytics package provides hooks for triggering analytics events.

Installation

npm i --save @react-query-firebase/analytics

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);

Documentation