Conversation
Hi there! Thanks for the PR, I've been itching to get started on this feature. Glad to see someone beat me to it. There are two points which I think is important when considering Ecommerce tracking;
What I've been thinking of is implementing Enhanced Ecommerce transaction tracking for both platforms. Then we bypass the whole deprecation business, and it's possible to build upon it with more features as far as ecommerce tracking goes. I have not tested the differences between the standard and enhanced tracking mechanisms for Ecommerce though. Maybe you are more familiar with it than me? |
Nope I just started playing with ecommerce tracking today. I haven't dived into React Native for Android yet, so I don't know much about that either. Let me know how I can help! |
Awesome! Well code-wise it seems really quite similar to your implementation, other than the fact that the product (equivalent to "item" in the standard tracking), and the ProductAction (equivalent to "transaction") needs to accompany an event or screenView hit. For that event we'd probably want to let people define their own eventCategory and eventAction (even though they will likely name it something like the example, "Ecommerce" and "Purchase"). So I envision something like this for the JS API: The product object should have the following defintion; By the way, in your implementation I see you have included default values in the If you can do the iOS implementation, I can add onto that with an Android implementation. What do you think? |
Sure why not? I just finished adding exception, social interaction, user ID, and iOS install tracking (you can see the branches: https://github.com/gnestor/react-native-google-analytics-bridge). |
Ok I pushed to https://github.com/gnestor/react-native-google-analytics-bridge/tree/feature/enhanced-ecommerce You will need to implement Android methods for |
This is great work, thanks! I'll look into it this evening. Looks like dependencies will have to be updated for |
Thanks for the great work! Since the work has diverged so much I made a new pull request. |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
No description provided.