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?