Quantcast
Channel: Active questions tagged react-native+typescript - Stack Overflow
Viewing all articles
Browse latest Browse all 6214

How to call a function at every user interaction for tracking purposes

$
0
0

I'm currently working on an app using react native and redux. Now I want to add tracking of the events that are happening and I've made an async function trackUserEvent(category:string, action:string, data:any) for tracking that I want to be called every-time a user-interaction happens (eg button press, new screen, select/unselect etc). Is there a way of implementing this for all components at once instead of having to add it manually at every place in the project code?


Viewing all articles
Browse latest Browse all 6214

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>