Google Analytics with Firebase is a free app measurement solution that provides insight into app usage and user engagement.
To add Google Analytics to your app you will first need to sign up for a Firebase account and create a property.
In this article:
- Signing up for a Google Analytics Account
- Creating a property
- Adding a data stream
Signing up for a Google Analytics Account
- Go to https://analytics.google.com.
- In Admin, click Create, then select Account
- Provide an account name.
- Click Next to add the first property to the account.
Setting up a property in Google Analytics will also configure Firebase for you.
Creating a property
You need the Editor role to add properties to a Google Analytics account. If you created this account, you automatically have the Editor role.
To create a property:
- Are you continuing from "Create an Analytics account", above? If so, skip to step 2. Otherwise, in Admin, click Create, then select Property.
- Enter a name for the property (e.g. "My Business, Inc website") and select the reporting time zone and currency. If a visitor comes to your website on a Tuesday in their time zone, but it's Monday in your time zone, the visit is recorded as having occurred on Monday.
- Click Next. Select your industry category and business size.
- Click Next. Select how you intend to use Google Analytics.
Note: Google Analytics tailors the set of default reports based on the information you provide about how you intend to use Analytics. For example, if you choose "Generate more leads," you will see a collection of reports to help you measure lead generation. Learn more
- Click Create and (if you are setting up a new account) accept the Analytics Terms of Service and the Data Processing Amendment.
- Continue to Add a data stream to start collecting data.
Adding a data stream
Once you have created a property you are then presented with 3 platform options. iOS, Android and Web. You will need to set up each of these or just iOS and Android if you don't plan to use a web version.
Let's start with the first one. Click the iOS app button.
1. Enter the following details:
- iOS bundle ID: You can find this information on the Project Overview page or contact our team at email@example.com to confirm your ID.
- App name: This is your chosen app name
- App Store ID (optional): If your Apple app store listing is already created or live then you will have been assigned an app store ID. This is listed on the App Information Page on your App Store Connect account.
Click register app.
It will automatically begin provisioning and configuring your Google Cloud project in step 2. Click Next once it's finished and all 4 items are ticked.
2. Download the config file (GoogleService-Info.plist) and send this to firstname.lastname@example.org or your Client Success Manager. This file contains the necessary codes to add to the app build.
Then click Next.
3. The remaining steps (4, 5, and 6) are not necessary to complete. This information is already included in the app build. Please click Next through to step 6 "Run your app to verify installation" and then click Skip this Step.
4. Your iOS set-up will now show as a data stream. Next, click on "Add Stream" and then select Android App from the drop-down menu.
5. Enter the following:
- Package name: You can find this information on the Project Overview page or contact our team at email@example.com to confirm your ID.
- App Name: This is your chosen app name
Click Register App.
6. Download the config file (google-service.json) and send this to firstname.lastname@example.org or your Customer Success Manager along with iOS config file. This file contains the necessary codes to add to the app build.
7. The remaining steps (3 and 4) have are not necessary to complete. This information is already included in the app build. Please click Next through to step 6 "Run your app to verify installation" and then click Skip this Step.
8. Your Android set-up will now show as a data stream, along with your iOS stream. If you are going to have a web app as well as a native app then click on "Add Stream" and then select Web from the drop-down menu.
9. Select Web and enter the following details:
- Website URL: [shortname].stqry.app
- Stream Name: This is your chosen app name
10. Copy Measurement ID
When creating the JSON and Plist files for the first time, if you encounter issues locating the files despite having created the data stream, consider deleting the current data stream. Follow the steps outlined above once more to generate the files again. Keep in mind that deleted files cannot be recovered, so exercise caution in making this decision. If you require assistance, don't hesitate to reach out to our support team.
Please email email@example.com the GoogleService-Info.plist and the google-service.json config files. If adding Web please send Measurement ID. We will add the files to your app. Once your new app or a new version of your existing app is live it will start reporting back to you Google Analytics account in about 24 hours.
Was this article helpful?
Thank you for your feedback
Sorry! We couldn't be helpful
Thank you for your feedback
We appreciate your effort and will try to fix the article