Add Google Analytics to Android app without Fireba

2019-02-10 02:39发布

问题:

Has anyone actually tried adding Google Analytics to Android app without using Firebase recently? I can't seem to find the way to get the GA Tracking ID. I actually managed to do it last year by creating the project in Google Developer Console first before adding GA.

Now GA doesn't even give the option of importing mobile app project without using Firebase. Anyone with similar experience?

The reason I am asking for this is because adding GA with or without Firebase shows different console interface. And the app with GA via Firebase doesn't show up on the GA Android App.

回答1:

Found a workaround to use Google Analytics for Mobile Apps without using Firebase.

Steps:

  1. Create a new Google Analytics Property.
  2. You will be asked "What would you like to track?"

If you choose Website:


If you choose Mobile App:


You will notice that there is no option to create a tracking ID for Mobile Apps.

  1. Select Website and simply fill in the Website Name and URL.

A tracking ID will be generated for you.

An "All Web Site Data" view will be created for you.

  1. Open Administration of your account by selecting the Settings icon.

  2. Choose the newly created Property

  3. Click on the View dropdown and select "Create new view"

  4. Select "Mobile app" and fill in the view name

  5. Done! Now, you can delete the web site data view.