Google Analytics: Setting up Google Analytics

Created by Glen Barnes, Modified on Fri, 02 Feb 2024 at 03:41 AM by Natalie Nguyen

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
  • Tips


Signing up for a Google Analytics Account

  1. Go to https://analytics.google.com.
  2. In Admin, click Create, then select AccountAnalytics-Home (1).png
  3. Provide an account name. 
  4. 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:

  1. Are you continuing from "Create an Analytics account", above? If so, skip to step 2. Otherwise, in Admin, click Create, then select Property.
  2. 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.
  3. Click Next. Select your industry category and business size.
  4. 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
  5. Click Create and (if you are setting up a new account) accept the Analytics Terms of Service and the Data Processing Amendment.
  6. Continue to Add a data stream to start collecting data.

Untitled design.gif

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.

Screenshot 2023-11-21 at 17.14.03.png

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 support@stqry.com to confirm your ID.

Apps-Shoreline-Walk-Overview (1).png

- 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.

Screen_Shot_2019-11-11_at_10.33.28_AM.png

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 support@stqry.com or your Client Success Manager. This file contains the necessary codes to add to the app build.

Screen_Shot_2019-11-11_at_10.34.12_AM.png

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.

Screen_Shot_2019-12-13_at_11.42.07_AM.png

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.

Screen_Shot_2019-12-13_at_11.44.29_AM.png

5. Enter the following:

- Package name: You can find this information on the Project Overview page or contact our team at support@stqry.com to confirm your ID.

Apps-Shoreline-Walk-Overview (1).png

- App Name: This is your chosen app name

Click Register App.

Screen_Shot_2019-12-13_at_11.50.30_AM.png

6. Download the config file (google-service.json) and send this to support@stqry.com or your Customer Success Manager along with iOS config file. This file contains the necessary codes to add to the app build.

 

Screen_Shot_2019-12-13_at_11.54.59_AM.png

Click Next

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

Tips!

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.

Untitled design (2).gif

All Done!

Please email support@stqry.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?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select atleast one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article