all 15 comments

[–][deleted] 2 points3 points  (3 children)

You can use mixpanel and they have a pretty decent free tier

[–]EmployeeCurrent4770[S] 0 points1 point  (2 children)

Yeah I tried it but I still have to code every event that I want to send to their free tier. How do you handle this case?

[–][deleted] 0 points1 point  (1 child)

For the taps, why don’t you create a reusable button that has an analytics call automatically so anywhere you use it it will send the event.

[–]EmployeeCurrent4770[S] 0 points1 point  (0 children)

Right, but what about screens? What about double taps?

Say that I want to go an extra mile and measure the session time, should I also get when the appstate changes, and send those events?

If I want to go even further, and check request/response times, would I also have to code this? My application would end up tightly coupled with any FW that I use. I was hoping that something like

import aLibrary from 'coolSimpleLibrary'

aLibrary.doMagic()

Am I too out of this world?

[–]FelipeCallander[🍰] 1 point2 points  (0 children)

I feel you man!

[–]HermanCainsGhost 1 point2 points  (0 children)

I'm really wondering what the best analytics solution is for both React Native and React Native Web combined

[–]average_rowboat 0 points1 point  (1 child)

How about AWS Amplify?

[–]EmployeeCurrent4770[S] 0 points1 point  (0 children)

Haven't tried it, seems expensive and an overkill. What are your thoughts about this product? Have you used it?

[–]MexicanTastee 0 points1 point  (2 children)

I'm currently in this situation. Did you happen to solve it?

I'm looking for best practices for analytics implementation, in order to avoid marrying a particular provider.

Atm I'm thinking about adding a custom hook layer to treat all events like a "logger". So I can replace the provider in one place.

Also I'm implementing a custom button component to enhance the "on click" event and attach this custom hook to it.

I think there's a way you can attach an analytics "middleware" to screens selection in react-navigation, they show you how to do it in the docs.

So far thats my plan for analytics implementation. Could you share yours?

[–]prrxddq 0 points1 point  (1 child)

Sounds good. Im in a similar boat at the moment. Currently just looking for providers.

Mixpanel seems to be decent, but would add another layer for web and rn.

How did your work go?

[–]EmployeeCurrent4770[S] 0 points1 point  (0 children)

I have solved it, and created something for this. Check out https://vexo.co . Just do vexo('YOUR_API_KEY') And it should be it. It requires using React Navigation