Items support in Google Analytics Ecommerce events on React Native #8819
-
|
Hi I am a bit confused around the support of So, I'm using Expo with the packages I have managed to log some simple events and wanted to implement the In this section of the documentation, there is a link to event methods, which unfortunately leads to a 404 page. However, I found out I can do a call like this for logEvent(analytics, 'add_to_cart', {
currency: item.currency ?? 'SEK',
value: item.price ?? 0,
items: [
{
affiliation: item.restaurantName ?? 'unknown',
item_name: item.name ?? 'unknown',
item_id: `${item.id}`,
item_list_id: `${deliveryLocationId}`,
quantity: 1,
price: item.price ?? 0,
},
],
})When looking at the data sent in the browser console, I noticed that the
I started digging around in the source code and ended up at this TODO, from over 1 year ago, to add support for I also tried using the deprecated Long story short, what is the state of I did not manage to find any similar issues / questions, do people use other frameworks than Firebase when integrating Google Analytics to a React Native app? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
|
Could you please shed some light on this? Is this only on an issue for the web version? If so, would you accept a PR for it? |
Beta Was this translation helpful? Give feedback.

Hey @AndrewKMoses sorry for the delay, thank you for your patience. We would happily accept a PR for this - at any given time any of the modules here are fully implemented for some past release of the underlying SDKs, but - a happy problem - firebase is continuously adding new functionality and creating new gaps for us. We gratefully accept PRs to close those gaps and do our best ourselves to close them of course but don't have infinite resources. Same story for every software project I suppose - but with open source at least you can directly impact the any gap that directly affects you if so motivated. I believe analytics was just converted to typescript so is hopefully a bit easier to w…