AppsFlyerを使用する@capgo/capacitor-appsflyer
CapacitorはAppsFlyerのAttribution、Analytics、Deep Linkのプラグインです。
インストール
bun add @capgo/capacitor-appsflyer
bunx cap sync
このプラグインが公開するもの
initSDK- このメソッドを使用して、AppsFlyer SDKを初期化して開始します。このAPIは、Appが起動したときに呼び出す必要があります。startSDK- AppsFlyer SDKを開始するには、このメソッドを使用します。ただし、手動起動モードのみです。logEvent- インストール済みのアプリ内イベントをログします。setCustomerUserId- 自分の顧客IDを設定すると、自分のユニークIDをAppsFlyerのユニークIDと他のデバイスのIDと照合できます。このIDは、RAWデータレポートとPostback APIで利用できます。
例の使用方法
initSDK
Use this method to initialize and start AppsFlyer SDK. This API should be called as soon as the app launched.
import { AppsFlyer } from '@capgo/capacitor-appsflyer';
await AppsFlyer.initSDK({} as AFInit);
startSDK
Use this method to start AppsFlyer SDK, only on manual start mode.
import { AppsFlyer } from '@capgo/capacitor-appsflyer';
await AppsFlyer.startSDK();
logEvent
アプリ内イベントをログします。
import { AppsFlyer } from '@capgo/capacitor-appsflyer';
await AppsFlyer.logEvent({} as AFEvent);
setCustomerUserId
自分の顧客IDを設定すると、自分のユニークIDをAppsFlyerのユニークIDと他のデバイスのIDと照合できます。このIDは、raw-dataレポートとPostback APIで利用できます。
import { AppsFlyer } from '@capgo/capacitor-appsflyer';
await AppsFlyer.setCustomerUserId({} as AFCuid);
フルリファレンス
- GitHub: https://github.com/Cap-go/capacitor-appsflyer/
- ドキュメント: /docs/plugins/appsflyer/
Using @capgo/capacitor-appsflyerから続けてください。
あなたが使用している場合 Using @capgo/capacitor-appsflyer ネイティブ プラグインの作業計画を立てるには、接続する @capgo/capacitor-appsflyer for the implementation detail in @capgo/capacitor-appsflyer, はじめに はじめにの実装詳細については Capgo プラグイン ディレクトリ Capgo プラグイン ディレクトリの製品ワークフローについて Capacitor Plugins by Capgo for the implementation detail in Capacitor Plugins by Capgo, and プラグインの追加または更新 プラグインの追加または更新の実装詳細については