Open ghost opened 7 years ago
Just log your screen
Something like this..
import Analytics from 'react-native-firebase-analytics';
// somewhere in your code, for example componentDidMount
// Firebase Analytics
Analytics.logEvent('view_my_screenX', {
'item_id': product._id,
'in_stock': product.inStock,
'some_nice': "other_value"
});
Will this work ? for tracking screen view ?
Analytics.logEvent("screen_view",{ "name":"my_screen_name" })
Analytics.setScreenName('my_screen_name')?
@evollu I think Analytics.setScreenName('Screen Name') makes more sense, however one needs to be careful to tag all screens otherwise screen names will be incorrectly assigned to the last tagged screen
I think he wants to track screen with custom dimensions
@sibelius I don’t think firebase SDK supports that
Is there a way to track screen view particular to a user as we do in google analytics ?