agrid-react-native
v1.0.8
Published
Analytics library for React Native apps, similar to PostHog.
Downloads
17
Maintainers
Readme
Agrid React Native Analytics
A React Native analytics library similar to PostHog, providing event tracking, user identification, and screen analytics for mobile apps.
Installation
npm install agrid-react-native
# or
yarn add agrid-react-nativeUsage
import analytics from 'agrid-react-native'
// Setup with your API key
await analytics.setup('PUBLIC_API_KEY', {
host: 'YOUR HOST',
captureApplicationLifecycleEvents: true
})
// Track events
analytics.capture('User Signed Up', {
plan: 'premium',
source: 'mobile_app'
})
// Identify users
analytics.identify('user123', {
email: '[email protected]',
name: 'John Doe'
})
// Track screen views
analytics.screen('Home Screen', {
from: 'login'
})Configuration
The library supports various configuration options for iOS and Android platforms, including automatic capture of lifecycle events, deep links, and device information.
Questions?
Please refer to the documentation or create an issue in the repository.
