We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
So where do we need to put the code
var Analytics = require('react-native-firebase-analytics'); componentWillMount() { if (environment === 'staging') { Analytics.setEnabled(false); } Analytics.setUserId('11111'); Analytics.setUserProperty('propertyName', 'propertyValue'); Analytics.logEvent('view_item', { 'item_id': 'login' }); }
on every screen.js / index.ios.js ? and what is UserID? is that custom property or property defined from Google?
The text was updated successfully, but these errors were encountered:
You need to add it onlue in your App.js (or something) - in your root component.
Sorry, something went wrong.
UersID is the same thing as Device ID, you can get it with this package https://github.com/rebeccahughes/react-native-device-info
looks like solved
No branches or pull requests
So where do we need to put the code
on every screen.js / index.ios.js ? and what is UserID? is that custom property or property defined from Google?
The text was updated successfully, but these errors were encountered: