Getting Started
Installation
Add the Attriv SDK to your app and start tracking installs.
Install an SDK
Add the SDK for your platform — see SDKs › Capacitor for detailed setup:
Terminal
pnpm add @attriv/capacitor
npx cap sync
Initialize
Initialize the SDK once at app start with your app key from the dashboard:
import { Attriv } from "@attriv/capacitor";
await Attriv.init({
appKey: "ak_your_app_key",
apiUrl: "https://api.getattriv.com",
});
That's it — the SDK automatically tracks installs on first launch and opens on subsequent launches, resolving attribution deterministic-first: App Clip click id (iOS, when App Clips are configured), then 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.