Installez le SDK
Choisissez votre framework, copiez les étapes — ou confiez le tout à votre assistant IA.
1. Installer
npx expo install @traqio/sdk2. Initialiser (une fois au démarrage)
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. Tracker un event
Traqio.track("purchase", { value: 9.99, currency: "USD" });✨ Setup IA-friendly
Collez ça dans Cursor, Claude Code ou n'importe quel assistant IA, et il branche le SDK pour vous.
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.