Settings
Manage your project configuration and API keys
API Keys
Public
Used in the SDK for sending events. Safe to include in client-side code.
Secret
Used for querying data. Never expose in client-side code.
SDK Integration
1. Install the package
npm install @bananalytics/react-native @react-native-async-storage/async-storage
2. Initialize in your app
import { Bananalytics } from '@bananalytics/react-native';
Bananalytics.init({
apiKey: 'rk_your_write_key',
endpoint: 'https://your-server.com',
});
// Track events
Bananalytics.track('button_clicked', { button: 'signup' });
Bananalytics.identify('user-123', { plan: 'pro' });
Bananalytics.screen('HomeScreen');