開始使用
快速開始
從註冊到歸屬沙箱安裝,創作者可以一次性看到它。
1. 建立您的帳戶
註冊於 app.tapapplink.com 並創建一個應用程式。 Production 和 Sandbox 從第一天起就是獨立的環境。
2. 頒發SDK密鑰
開啟應用程式卡,然後開啟 SDK 設定。 為您正在測試的環境建立密鑰。 將沙箱金鑰保留在測試版本上。 在商店建置中發送生產密鑰。
3.安裝SDK
React Native 範例。 相同形狀 iOS, Android, Flutter.
yarn add @tapapplink/react-native@^0.3.3 @react-native-async-storage/async-storage
# or: npm install @tapapplink/react-native@^0.3.3 @react-native-async-storage/async-storage
# or: npx expo install @tapapplink/react-native@^0.3.3 @react-native-async-storage/async-storage重建本機二進位。 Expo Go 無法載入 Play Install Referrer。 請改用開發客戶端。
4. 配置、追蹤、識別
import { TapAppLink } from "@tapapplink/react-native";
import Purchases from "react-native-purchases";
TapAppLink.configure({
publicKey: "YOUR_TAPAPPLINK_KEY",
environment: __DEV__ ? "sandbox" : "production",
});
await TapAppLink.trackInstall();
await TapAppLink.setAppUserId(await Purchases.getAppUserID());
const offer = TapAppLink.getOffer();
if (offer?.billingOfferId) {
const offerings = await Purchases.getOfferings();
const discounted = offerings.all[offer.billingOfferId];
// Present this offering on the paywall
}5. 建立創作者、連結和(可選)程式碼
- 邀請創作者。 他們有自己的儀表板登入資訊。
- 建立追蹤連結。 對於第一個測試,在 Sandbox 中建立它並使用 Live Attribution Debugger 而不是手動開啟 go.tapapplink.com。
- 啟動應用程式。 歸因應在幾秒鐘內出現。
- 附上折扣碼。如果他們改為輸入代碼,
applyCode()仍然歸因於客戶。 細節: 折扣碼.
6.連線計費
將 RevenueCat、Stripe、Superwall、Adapty 或 Qonversion 指向「應用程式」中的 Webhook URL,然後指向「收入」。 然後 setAppUserId() 使用該提供者的客戶 ID(對於 Stripe,與您在metadata.app_user_id 上放置的相同 ID)。 網路銷售使用相同的收入步驟,每個步驟有一個額外的步驟。 對於 RevenueCat Web 購買連結,請在結帳前設定 tap_creator_code 訂閱者屬性。 對於一次性 Stripe 銷售,請啟用發票建立。 每個提供者都有自己的儀表板點擊路徑: 帳單 Webhook.