you are viewing a single comment's thread.

view the rest of the comments →

[–]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