Skip to main content

How to enable the GA4/Firebase DebugView for Android apps

Mark Rochefort16 December 20212 min read
How to enable the GA4/Firebase DebugView for Android apps

Want to know how to enable the GA4/Firebase DebugView for Android apps? Let's take you through the process step-by-step!

1. Download and install Android Studio

You will need this to be installed even if the app is being developed in another framework or engine.

2. Connect the Android device via USB

Plug it in!

3. Find the adb (Android Debug Bridge) tool

This is via the Command Prompt for Windows (cmd.exe), or the Terminal app for MacOS.

Part of this install includes a tool called ADB (for "Android Debug Bridge"). It will be installed to your Android --> SDK folder --> Platform Tools Folder (which is referred to as [path_to_adb] below).

To get to that folder in the cmd/terminal window, use the command:

cd [path_to_adb]

For me, on Windows was (assuming installed on C:):

cd C:\ProgramData\Microsoft\AndroidSDK\25\platform-tools

And on MacOS was:

cd /Users/mark/Library/Android/sdk/platform-tools

4. Run adb with the relevant parameters

This is achieved by typing the following in the terminal, with the command prompt being at the location of the adb (as found above):

adb shell setprop debug.firebase.analytics.app [package_name]

So if the [package_name] is com.my.app, you would use:

adb shell setprop debug.firebase.analytics.app com.my.app

(For MacOS, prefix the adb command with ./ to execute it.)

If you don't know what the app's package name is, you can run:

adb shell "pm list packages -f"

To return a list of installed packages you can use to determine what the relevant package package name is.

If the app is available on the Google Play Store, you can also navigate to the app’s listing page via a web browser and look at the value for the id URL query string parameter. For example, play.google.com/store/apps/details?id=com.example.app123 where the app's package name is com.example.app123.

5. Accept the connection on the device and verify

If the device hasn't been verified, you may find running this command prompts a verification dialogue on the device.

If successful, you will be able to see the device listed by running the following:

adb devices

Suggested content

Measurelab awarded Google Cloud Marketing Analytics Specialisation

At the start of the year, if you’d asked us whether Measurelab would be standing shoulder to shoulder with Europe’s biggest consultancies by September, we would've been surprised. Not because we don't believe in ourselves, but because these things feel so distant - until suddenly, they’re not. So, here it is: we’ve been awarded the Marketing Analytics Services Partner Specialisation in Google Cloud Partner Advantage. What’s the big deal? In Google’s own words (with the obligatory Zs): “Spec

Will Hayes11 Sept 2025

BigQuery AI.GENERATE tutorial: turn SQL queries into AI-powered insights

BigQuery just got a major upgrade, you can now plug directly into Vertex AI using the new AI.GENERATE function. Translation: your analytics data and generative AI are now best friends, and they’re hanging out right inside SQL. That opens up a whole world of new analysis options for GA4 data, but it also raises some questions: * How do you actually set it up? * What’s it good for (and when should you avoid it)? * Why would you batch the query? Let’s walk through it step by step. Step 1: H

Katie Kaczmarek3 Sept 2025

How to start forecasting in BigQuery with zero training

If you’d told me five years ago that I’d be forecasting product demand using a model trained on 100 billion time points… without writing a single line of ML code… I probably would’ve asked how many coffees you’d had that day ☕️ But its a brand new world. And it’s possible. Let me explain What is TimesFM? TimesFM is a new foundation model from Google, built specifically for time-series forecasting. Think of it like GPT for time, instead of predicting the next word in a sentence, it predicts t

Katie Kaczmarek14 Jul 2025