Skip to content

Latest commit

 

History

History

README.md


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

Installation

Requires @react-native-firebase/app to be installed.

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:

{
  "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

Additional Topics

License


Built and maintained with 💛 by Invertase.