Analytics
Google Analytics setup
Create a Firebase account
Visit the Firebase Console and either sign in or create a new account.
Create a new projects for IOS and Android
You need to create a separate app registration for each platform within the same Firebase project.
1. Create a new project for IOS
- Enter your iOS app bundle ID (e.g.
expo.launch
) - Download the
GoogleService-Info.plist
file - Place it into the root of your Xcode project directory
2. Create a new project for Android
- Enter your Android package name (e.g.
expo.launch
) - Download the
google-services.json
file - Move it into your app-level
/
directory
You're ready to go!
That's it — your Firebase Analytics setup is complete.
Once connected, analytics events will be sent automatically, and you can start logging custom events using firebaseAnalytics.logEvent(...)
.