Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where do I find the ga_trackingId for Firebase Analytics?

I am creating a global tracker for firebase analytics for all events.

I am following the instructions from this site: https://developers.google.com/analytics/devguides/collection/android/v4

The page tells you to add an xml file to your Android project and add your trackingID to it:

<?xml version="1.0" encoding="utf-8"?>
<resources>
  <string name="ga_trackingId" translatable="false">${YOUR_TRACKING_ID}</string>
</resources>

Cleverly, it does not say anywhere in the instruction anything about where the trackingID came from.

Having searched for the answer extensively already, I found that you can create a ga_trackingId in Google Analytics Console... but my team uses the Firebase Analytics Console, and nowhere can I find where I can create a trackingID in Firebase Analytics...

Does anyone have experience with this?

like image 909
James Avatar asked Oct 27 '25 06:10

James


1 Answers

I know the question itself is a bit old. However I spent some time to find ga_tracking_Id myself so it might be still useful to answer it to save someone's time.

  1. Open Firebase console and then the project you want to get ga_trackingId for
  2. Click "Project settings" -> "Integrations" -> at the "Google Analytics" section click "Manage" -> "View in Google Analytics"
  3. Once Google analytics page is loaded click on the project name at the top of it
  4. The number you'll see below you project name at the "Properties & Apps" column is your project ga_trackingId
like image 179
Volodymyr Shalashenko Avatar answered Oct 29 '25 20:10

Volodymyr Shalashenko



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!