evollu / react-native-firebase-analytics

React native bridge for firebase analytics
MIT License
206 stars 54 forks source link

Tracking user actions #8

Closed alexHlebnikov closed 8 years ago

alexHlebnikov commented 8 years ago

Hi! Thanks for the component.

Is there a way to track certain user action with this component (for example, certain user clicks, searches, etc)? If I correctly understand, I need to get Device ID and track user according to it. So I need to write a bridge ObjectiveC - RN for this? Or there any other ways to do it?

alexHlebnikov commented 8 years ago

@evollu can you help me with my question?

evollu commented 8 years ago

you can use

Analytics.setUserId('11111');
Analytics.setUserProperty('propertyName', 'propertyValue');