Setting up Firebase Analytics with Google Tag Manager and Google Analytics integration on Android

I’m building an e-commerce mobile app and need help with analytics tracking. I want to capture user interactions and send them through Firebase Analytics to Google Tag Manager, then forward those same events to Google Analytics.

The flow I’m trying to achieve is:
User action → Firebase Analytics → Google Tag Manager → Google Analytics

I’ve already integrated Firebase Analytics and Google Tag Manager into my Android project. The events show up correctly in the Firebase console and I can see them in debug mode. The Tag Manager dependency is also added to my build.gradle file.

What I’m stuck on is the configuration part. How do I set up the tags and triggers in Google Tag Manager to forward Firebase events to Google Analytics? I need guidance on the proper configuration steps.

Here’s my current event tracking code:

public void trackButtonPress(View view){
    Toast.makeText(this, "Event tracked", Toast.LENGTH_SHORT).show();
    Bundle params = new Bundle();
    params.putString(FirebaseAnalytics.Param.ITEM_ID, "product_123");
    analyticsInstance.logEvent(FirebaseAnalytics.Event.ADD_TO_WISHLIST, params);
}

Can someone explain the Tag Manager setup process for this integration?

GTM setup is pretty simple once you know which variables to use. Create a Firebase - Google Analytics tag in your container (don’t use the regular GA4 tag). Use the Firebase event name as your trigger condition. For ADD_TO_WISHLIST, make a custom event trigger in GTM that matches exactly what Firebase sends. Configure the tag to pull Firebase event parameters directly - GTM gets your ITEM_ID parameter from the Bundle automatically. Here’s what tripped me up: data layer variables. Firebase auto-populates GTM’s data layer with event parameters, so you can reference them as {{event_parameter_item_id}} in your GA4 tag. Double-check your GA4 measurement ID is set correctly. Events can take up to 24 hours to show in standard GA4 reports, but real-time reports are much faster for testing.