DOCS
Integrate sniffurl
Track events, identify visitors, and attribute deep links. Use the React Native SDK for mobile, or call the REST API from any other stack.
@kalporg/sniffurlInstallation
Install the SDK and its peer dependency.
On iOS, install the pods:
Quick start
Initialize once on app start. Presence tracking begins automatically.
Configuration
Use configure for auto-tracking and debug logs.
Tracking events
Track any event with optional properties.
User identification
Call after login. Details ride on every later event.
Real-time presence
A 30s heartbeat powers the live-users widget. Pause it while backgrounded.
Deep link tracking
Deep links carry sn_vid for attribution, handled automatically.
Reference
SniffURL.init(options)Initialize. Requires projectKey and apiKey.
SniffURL.configure(options)Adds enableAutoTracking and debug.
SniffURL.trackEvent(event, data?)Track a named event.
SniffURL.trackScreen(name, data?)Track a screen view.
SniffURL.identify(userData)Identify a user.
SniffURL.startPresenceTracking()Resume presence heartbeat.
SniffURL.stopPresenceTracking()Pause presence heartbeat.
SniffURL.handleUrl(url)Process a deep link's sn_vid.