This article explains how you can setup analytics for your iOS app via Firebase.
The steps differ based on the fact
- if you already have created a Firebase project during your Android setup:
Select your app in https://console.firebase.google.com/
and scroll down to step B in this article.
- if you haven't done that yet. Start with Step A in this article.
A. Create a Firebase project
This article provides a step-by-step guide on how and where to:
- Navigate to https://console.firebase.google.com/
Login with your Google account if needed
- On the welcome screen, click Add project.
- Enter a name for your project.
- Accept the terms of service.
- Click Create project.
- Enter a name for your Firebase project and click Continue.
- If you would like to track your app using Google Analytics, then make sure that the option is enabled before using the Continue button to proceed.
- Choose or create a Google Analytics account and click on the Create Project button to finish creating the Firebase project.
- Now that the Firebase project has been created, we're going to start by adding an app to the project.
B. Add iOS app to existing Firebase project
- Click + Add app below the name of your app
- Click on the iOS+ button
- Copy the Bundle ID of the app found in AppMachine in this screen:
- and paste that as the Android Package name. Click Register app to continue.
- Download the google-services.plist file . You'll have to upload this file later in AppMachine.
Click Next to continue.
- Step 3 Add Firebase SDK. Click Next. Do not change any settings.
- Step 4: Add initilization code Click Next. Do not change any settings.
- Step 5: Next steps Continue to Console to proceed.
- Go back to AppMachine
- Open the Publish dashboard
- Open the dropdown in the Apple App store tile and choose Certificates & Api keys
- Scroll dow to Firebase certificates
- Click + Certificate
- Select the plist file which you just created
- Click Upload
- Upload the plist fileYou've now successfully completed the Firebase configuration.
You will need to do a new Store update to the Apple App store before your app will start tracking analytics.