What It Does
Track Events Everywhere:- Web SDK for browser tracking
- Server SDK (Node.js) for backend events
- iOS SDK for native Apple apps
- React Native SDK for cross-platform mobile apps
- Consistent API across all platforms
- Automatic identity resolution across devices
Available SDKs
Web SDK (JavaScript)
Best For:- Website tracking
- Single-page applications (SPAs)
- Client-side event tracking
- Attribution tracking
- Session management
- Automatic pageview tracking
- Custom event tracking
- User identification
- Attribution capture
- Fingerprinting
- Cookie management
- Container/tag manager support
Server SDK (Node.js)
Best For:- Backend event tracking
- Server-side conversions
- Webhook processing
- API integrations
- Bulk data imports
- Server-side event tracking
- Identity resolution
- Event batching
- Automatic retries
- Offline queue
- TypeScript support
iOS SDK (Swift)
Best For:- Native iOS apps
- iPad apps
- App Store attribution
- SKAdNetwork integration
- Native Swift API
- App lifecycle tracking
- Attribution tracking
- SKAdNetwork support
- Session management
- Offline queue
React Native SDK
Best For:- Cross-platform mobile apps (iOS + Android)
- React Native projects
- Expo apps
- Works on both iOS and Android
- React Native hooks support
- Attribution tracking
- Session management
- Offline queue
- TypeScript support
Choosing the Right SDK
Use Web SDK when:- Tracking website visitors
- Building web applications
- Need browser attribution data
- Want automatic pageview tracking
- Processing backend events
- Tracking server-side conversions
- Building webhooks or APIs
- Need secure API key tracking
- Building native iOS apps
- Need SKAdNetwork integration
- Want App Store attribution
- Require native performance
- Building cross-platform apps
- Using React Native framework
- Need both iOS and Android support
- Want single codebase
Common Features
All SDKs Include:- Event tracking with custom properties
- User identification
- Anonymous visitor tracking
- Session management
- Event batching and queue
- Automatic retries
- Offline support
- Debug mode
anonymousId, userId, visitorId) to link users across platforms and devices.
Event Format:
Events tracked from any SDK appear identically in DATALYR dashboard with platform-specific metadata.
Authentication
Web SDK: UsesworkspaceId (public identifier from tracking script)
Server/Mobile SDKs: Require apiKey (secret key from Settings → API Keys)
Keep API keys secure - never expose in client-side code.
Getting Started
Quick Start:- Choose SDK for your platform
- Install via npm/Swift Package Manager
- Initialize with workspace ID or API key
- Track your first event
- Verify in Event Stream
- Use Web SDK for browser tracking
- Use Server SDK for backend events
- Use Mobile SDKs for apps
- Combine SDKs for full-stack tracking
- Track same user across platforms with
identify()
Event Limits
All tracked events count toward your plan limits regardless of SDK used. See Pricing for event limits.Support
SDK Issues:- GitHub Issues for each SDK repository
- Email [email protected]