@react-native-firebase/analytics
v24.1.1
Published
React Native Firebase - The analytics module provides out of the box support with Google Analytics for Firebase. Integration with the Android & iOS allows for in-depth analytical insight reporting, such as device information, location, user actions and mo
Readme
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.
Installation
Requires @react-native-firebase/app to be installed.
yarn add @react-native-firebase/analyticsExpo
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
- See LICENSE
