May 24, 2021
An article by Sergey Matrosov
Before starting to advertise your mobile app using Google App Campaign, you must be sure that all your app conversions, based on events, are tracked by Firebase. The way the marketer can check it is similar to debugging events at Google Tag Manager, but it’s a little bit trickier. You see, you need to have an emulated Android device, connected to Firebase.
1. So, you need to install Android Studio.
2. Start Android Studio and go to Configure.
3. Choose AVD Manager, where AVD stands for Android Virtual Devices.
4. Choose a Device with a pre-installed “Play Store” and click on the green arrow (which symbolizes “Play” action) in the Action column.
4.1. If there is no such device, click on “Create Virtual Device”.
4.2. Then choose a device from Play Store to install. (In our case, this is Phone Category -> Pixel 4.)
4.3. Then select the preferable system image to download (R in our case).
5. After clicking on the “Play” button, the device will be emulated.
6. Go to Google Play and install your app just like you do on your own smartphone.
7. Then go to Terminal/Command Line and proceed to C:\Users\YOURUSERNAME\AppData\Local\Android\Sdk\platform-toolsusing this command:
(usually, you are already at C:\Users\YOURUSERNAME\ so you need to just write cd AppData\Local\Android\Sdk\platform-tools)
8. When executing the following commands:
adb shell setprop debug.firebase.analytics.app YOURAPPID
YOURAPPID is the id of your application at Google Play. You can find it by going to the web page of your application in the Play Store. For example, suppose I want to know the id of the Google Translate app.
Here is the page. In the URL, you can find out that the id is “com.google.android.app.translate”.
So, the command, in this case, would be:
adb shell setprop debug.firebase.analytics.app com.google.android.app.translate
9. Then go to Firebase or GA4 -> Analytics -> DebugView.
10. Using the emulator, start your application and check if Firebase receives the events.
When it comes to checking events on iOS, everything is pretty similar, but you need to use Xcode instead of Android Studio and different commands to enable debug mode. Just specify the following command-line argument in Xcode:
Follow this instruction to emulate devices with iOS. Then go to Firebase to check the event’s flow.