Google Analytics for React Native!
npm install react-native-google-analytics@latest --save
Below is an example that utilizes this library along with
react-native-ab for A/B testing.
'use strict';;constAppRegistryStyleSheetTextViewTouchableHighlight} = React;;;;var ga = thisga = null;var rnabtest = React;var styles = StyleSheet;AppRegistry;
Example of how to use custom dimensions:
// Add a custom dimension with a given index & namega; // This will add &cd1=male to all hitsga;// To remove a custom dimensionga;
TODO: App example that doesn't use react-native-ab
Coming soon. For now, refer to the usage section.