zeo-collect) is a JavaScript wrapper around the native iOS and Android SDKs. Install once, configure both platforms with a single options object, and call the same tracking methods from your React Native code regardless of platform.
How it works
- Install the
zeo-collectnpm package. - Pull in the native iOS and Android dependencies for each platform.
- Initialize the package from your app’s entry point with both
android_write_keyandios_write_key. - Import and call tracking functions from any component.
setEventProperties/setEventNameProperties— named events with optional propertiessetInstantEventProperties/setInstantEventNameProperties— events that bypass the batch queuesetPageProperties— screen-level context attached to subsequent eventssetUserProperties— current snapshot of user attributessetUserIdentities/unSetUserIdentities— identifiers used to stitch events to profilessetConsent— user consent signalspauseCollection/resumeCollection— temporarily suspend event capture
New Architecture (Fabric / TurboModules): if you’ve enabled the new architecture, use
zeo-collect version 1.3.0 or higher with the required new-architecture configurations. Contact support@zeotap.com if you hit issues on a higher version.Prerequisites
- Access to a Zeotap CDP instance
- An Android Source and an iOS Source in the CDP (each provides its own
write_key) - React Native 0.65+ recommended
write_keys.
Explore the docs
Quick Start
Install the package, set up both native SDKs, send your first event.
Configuration
All package options — consent, hashing, batching, country.
API Reference
Every exported function, parameter, and example.
Consent Resolution
Default opt-in, GDPR TCF, and custom consent flows.
Examples
Component patterns, identity handling, brand consent.
FAQ
Troubleshooting, linking, accepted identifiers.