SDK
Mobile and web SDKs for event ingest, attribution, and conversion tracking.
The Layers SDK ships events from your app into the Layers attribution
and ads pipeline. Events POST to https://in.layers.com/events, get
stored in sdk_events, and are forwarded server-side to Meta CAPI,
TikTok Events API, and Apple Search Ads where configured.
Overview
What the SDK does and when to use it.
Architecture
How events flow from app → ingest → attribution → CAPI.
Quickstart
Install a published SDK and fire your first event.
Published SDKs
These are available on npm today (alpha):
Web / JavaScript
@layers/client — browsers, WebViews, any JS runtime.
React Native
@layers/react-native — iOS + Android autolinked.
Expo
@layers/expo — config plugin around React Native.
@layers/node is also published for server-side event firing (same API
as @layers/client, runs on Node).
Not yet published
These platforms have no first-party Layers SDK yet. Interim workarounds (mostly the web or RN SDK, or a direct HTTPS POST) are documented on each page:
iOS (native)
Swift SDK — planned. Use React Native today.
Android (native)
Kotlin SDK — planned. Use React Native today.
Flutter
pub.dev package — planned.
Unity
UPM package — planned.
Cordova / Capacitor
Use @layers/client inside the WebView.
Migration guides
From AppsFlyer
Dual-send, then cut over.
From Adjust
Event mapping, stitching.
From Branch
Deep links, attribution.
From Singular
Event names, install referrer.
From Firebase
Analytics → Layers events.