React Native Firebase - Analytics

Coverage NPM downloads NPM version License Maintained with Lerna

Chat on Discord Follow on Twitter Follow on Facebook

--- Analytics integrates across Firebase features and provides you with unlimited reporting for up to 500 distinct events that you can define using the Firebase SDK. Analytics reports help you understand clearly how your users behave, which enables you to make informed decisions regarding app marketing and performance optimizations. [> Learn More](https://firebase.google.com/products/analytics/) ## Installation Requires `@react-native-firebase/app` to be installed. ```bash yarn add @react-native-firebase/analytics ``` ### Expo If you use Expo, including EAS Build, and want to configure iOS Analytics Podfile flags, add the Analytics config plugin to your `app.json` / `app.config.js`: ```json { "expo": { "plugins": [ [ "@react-native-firebase/analytics", { "ios": { "withoutAdIdSupport": true, "googleAppMeasurementOnDeviceConversion": true } } ] ] } } ``` The `withoutAdIdSupport` option adds `$RNFirebaseAnalyticsWithoutAdIdSupport = true` during prebuild, which excludes `FirebaseAnalytics/IdentitySupport`. The `googleAppMeasurementOnDeviceConversion` option adds `$RNFirebaseAnalyticsGoogleAppMeasurementOnDeviceConversion = true`, which includes Google Analytics on-device conversion measurement support. You may omit either option if it is not needed. ## Documentation - [Quick Start](https://rnfirebase.io/analytics/usage) - [Reference](https://rnfirebase.io/reference/analytics) ### Additional Topics - [Screen Tracking](https://rnfirebase.io/analytics/screen-tracking) ## License - See [LICENSE](/LICENSE) ---

Built and maintained with 💛 by Invertase.

---