Getting Started
Installation
Add the Attriv Capacitor SDK to your iOS or Android app.
Install the SDK
Add the Attriv Capacitor plugin to your app:
Terminal
pnpm add @attriv/capacitor
Then sync your native projects:
Terminal
npx cap sync
Initialize
Initialize the SDK with your app key from the dashboard:
import { Attriv } from "@attriv/capacitor";
await Attriv.init({ appKey: "YOUR_APP_KEY" });
The SDK automatically tracks installs on first launch and opens on subsequent launches, resolving attribution deterministic-first: deep-link click id, then Play Install Referrer (Android), then pasteboard (iOS), with probabilistic fingerprint matching as a last resort.
Deep links only resolve on verified custom link domains — make sure your app's link domain is configured in the dashboard before testing.