Attribution
How the Layers SDK attributes installs to campaigns, plus the platform-specific settings — iOS clipboard attribution and App Tracking Transparency, and Android Install Referrer.
The SDK attributes installs to the campaigns that drove them automatically — there's no additional wiring beyond initializing it. The platform-specific settings below tune how accurately that attribution resolves.
iOS
App Tracking Transparency
On iOS, request App Tracking Transparency (ATT) permission after onboarding. Once the user consents, the SDK collects the IDFA automatically — you don't handle IDFA yourself. In Expo, add expo-tracking-transparency and set an attUsageDescription in the plugin config (see Installation → Expo); on native iOS the SDK triggers the prompt through the standard ATT API.
Clipboard attribution
Clipboard attribution uses the clipboard to improve iOS install-attribution accuracy. When enabled, users see a brief paste notification when opening a link.
It's off by default and configured per app, not in code: open your project's Events screen in the Layers app, click the gear icon, and toggle Clipboard Attribution under Settings. It's available for iOS apps only.
Android
Android uses Install Referrer for attribution — it's built into the SDK and needs no configuration or per-app setting. Clipboard attribution does not apply on Android.
See also
- Installation — per-platform setup, including the Expo ATT plugin config.
- Tracking events — the events that carry revenue and product context.
- SDK health & verification — confirm attribution and tracking are healthy.