Create Android and iOS Sources
In the Zeotap CDP, create:
- A Source of category App Events with data source Android Native SDK — copy the Android
write_key. - A Source of category App Events with data source iOS Native SDK — copy the iOS
write_key.
Install the package
From your project root:Confirm
zeo-collect is listed under dependencies in package.json.Set up the Android native SDK
In project-level In app-level If your app targets Android 13+ and you want the SDK to retrieve the AdID:Add Gson if you don’t already include it:Build → Clean Project, sync Gradle, Build → Rebuild Project.
build.gradle (or settings.gradle):build.gradle:Set up the iOS native SDK
Confirm CocoaPods is installed: After
pod --version. If not, install it from guides.cocoapods.org.From your React Native project root:pod install completes, close Xcode and reopen yourApp.xcworkspace (not .xcodeproj).Initialize the package in your App entry point
In
App.js (or App.tsx), call initialiseZeoCollect from inside a useEffect so it runs once on mount:Key names must match exactly as shown in the configuration reference.
android_write_key and ios_write_key are always strings.Next steps
Configure all options
Consent flags, batching, hashing, country.
Capture user identities
Stitch events to profiles using email, phone, login ID, or custom IDs.
Set up consent
Default opt-in, TCF 2.0, or custom consent.
See examples
Component patterns, identity flow, payloads.