Install the SDK
Pick your framework, copy the steps — or hand the whole thing to your AI assistant.
1. Install
npx expo install @traqio/sdk2. Initialize (once at startup)
import { Traqio } from "@traqio/sdk";
import { getNativeBridge } from "@traqio/sdk/native";
Traqio.init({
sdkKey: "YOUR_SDK_KEY",
endpoint: "https://ingest.traqio.app",
native: getNativeBridge(),
userId: currentUserId, // same id you pass to RevenueCat.logIn()
});3. Track an event
Traqio.track("purchase", { value: 9.99, currency: "USD" });✨ AI-friendly setup
Paste this into Cursor, Claude Code, or any AI assistant and it'll wire the SDK for you.
Integrate the Traqio mobile-attribution SDK into this Expo app.
Constraints: deterministic install attribution only (Android Play Install Referrer) + SKAN on iOS. No pasteboard, no fingerprinting.
1) Install:
npx expo install @traqio/sdk
2) Initialize once at app startup:
import { Traqio } from "@traqio/sdk";
import { getNativeBridge } from "@traqio/sdk/native";
Traqio.init({
sdkKey: "YOUR_SDK_KEY",
endpoint: "https://ingest.traqio.app",
native: getNativeBridge(),
userId: currentUserId, // same id you pass to RevenueCat.logIn()
});
3) Track a revenue event — pass the SAME userId you give RevenueCat.logIn() so revenue attributes to the install:
Traqio.track("purchase", { value: 9.99, currency: "USD" });
SDK key: YOUR_SDK_KEY
Ingest endpoint: https://ingest.traqio.app
Behavior: send the install exactly once (persist a flag), then send events as they occur. eventId is generated per event for dedup. Do not add any tracking beyond this.