invertase / react-native-firebase

🔥 A well-tested feature-rich modular Firebase implementation for React Native. Supports both iOS & Android platforms for all Firebase services.
https://rnfirebase.io
Other
11.69k stars 2.21k forks source link

Firebase Analytics Param : Items not sent #3886

Closed ghost closed 4 years ago

ghost commented 4 years ago

Problem: I can't receive the param called 'items' in the firebase console.

Project Files React Native : 0.61.5

package.json : "@react-native-firebase/analytics": "^7.1.7", "@react-native-firebase/app": "^8.0.0", "@react-native-firebase/messaging": "^7.2.1", "@types/react": "^16.9.19",

Code: var item = { item_category: 'test_category_name', item_id: 'test_id' , item_name: 'test_name', price: 123, currency : 'PHP', quantity : 1 } analytics().logEvent('view_item_list',{ item_list_id : model.item_list_id, item_list_name : model.item_list_name, items : [item], section_name : model.section_name })

The result of this code in Debug View of Firebase Analytics is :

Screen Shot 2020-07-06 at 2 50 38 PM
LuccaValenca commented 4 years ago

@iancorales I think the items param only can be access by google big query, when we use the param items we only can see the param ga_extra_params_ct where show the number of indexes on array sented.

Another way to see the value of items is implements the google tag manager and sent the events to Google Analytics Standard. This is the events to can sent to the GA: https://developers.google.com/tag-manager/android/v5/enhanced-ecommerce?hl=pt-br I do this with this tutorial: https://adswerve.com/blog/react-native-firebase-gtm-integration-installation/

stale[bot] commented 4 years ago

Hello 👋, to help manage issues we automatically close stale issues. This issue has been automatically marked as stale because it has not had activity for quite some time. Has this issue been fixed, or does it still require the community's attention?

This issue will be closed in 15 days if no further activity occurs. Thank you for your contributions.

mikehardy commented 4 years ago

Upstream issue, no action possible, details: https://github.com/invertase/react-native-firebase/issues/4018#issuecomment-682174087