Issue with promotion impressions and clicks on Firebase and GTM

274 views
Skip to first unread message

Rafael Fracaroli Tolentino

unread,
Oct 6, 2020, 12:19:59 PM10/6/20
to Firebase Google Group

I'm trying to implement promotion impression on my app, following the Google's documentation for enhanced e-commerce on GTM for android:

https://developers.google.com/tag-manager/android/v5/enhanced-ecommerce

I'm having issues with promo impressions and promo clicks.

When I was using the 17.2.2 version of the Firebase SDK, everything worked as expected, I was able to send the events and get them to appear on my App view from Google Analytics (Universal Analytics)

But when I upgraded to the SDK version 17.5.0, I get an error when trying to log the promo view and promo click events.

I'm getting error code 20 for view_item event, saying that the "promotions" name is invalid

https://firebase.google.com/docs/analytics/errors

stack.png

stack-2.png

I'm following the documentation provided, but I keep getting this error with sdk version 17.5.0, but not with sdk version 17.2.2

Here's the part of the code that I'm using:

// Define promotion with relevant parameters

Bundle promotion = new Bundle();
promotion.putString( Param.ITEM_ID, "PROMO_1234" ); // promotion ID; either ITEM_ID or ITEM_NAME is required
promotion.putString( Param.ITEM_NAME, "Summer Sale" ); // promotion name
promotion.putString( Param.CREATIVE_NAME, "summer_banner2" );
promotion.putString( Param.CREATIVE_SLOT, "banner_slot1" );

// Prepare ecommerce bundle

ArrayList promotions = new ArrayList();
promotions.add(promotion);

Bundle ecommerceBundle = new Bundle();
ecommerceBundle.putParcelableArrayList("promotions", promotions );

// Log view_item, view_item_list, or view_search_results event with ecommerce bundle

mFirebaseAnalytics.logEvent(Event.VIEW_ITEM, ecommerceBundle );
  


I've also tried the new e-commerce events for firebase, but it only worked in the app+web property, even though I've created a tag for this event on GTM.

https://firebase.google.com/docs/analytics/measure-ecommerce#apply_promotions

Can anyone give me a hand with this, please?

Thanks

Kato Richardson

unread,
Oct 18, 2020, 12:46:58 PM10/18/20
to Firebase Google Group
Hi Rafael,

Sorry we didn't answer this promptly. Could you submit this as a bug on the SDK repo? It would help to have the device logs showing exactly what is getting sent to the servers from the client in each case for comparison.

☼, Kato

--
You received this message because you are subscribed to the Google Groups "Firebase Google Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to firebase-tal...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/firebase-talk/6b56a353-a323-4ea4-956f-a949fe09e6ddn%40googlegroups.com.


--

Kato Richardson | Developer Programs Eng | kato...@google.com | 775-235-8398

Rafael Fracaroli Tolentino

unread,
Oct 19, 2020, 11:51:39 AM10/19/20
to Firebase Google Group
Hi Kato,

Thanks for the answer. I've submitted as a bug as requested.


Thanks

Reply all
Reply to author
Forward
0 new messages