Skip to content

iOSAttribution

Appleは、Google Play Install Referrerに相当する一般的なApp Storeインストールリファラーを提供していません。iOSでは、このプラグインはApple AdServicesのAttributionを使用します。

標準設定では getReferrer() AppleのAttributionトークンを取得し、バックエンドまたはモバイル測定パートナーに送信できます。

const result = await InstallReferrer.getReferrer();
console.log(result.attributionToken);

プラグインは、ネイティブcodeからAppleのAdServicesエンドポイントにトークンを送信することもできます。

const result = await InstallReferrer.getReferrer({
fetchAppleAttribution: true,
});
console.log(result.appleAttribution);

このモードを使用して、AppleのAttributionペイロードを受信するアプリ自身が受け取ります。 fetchAppleAttribution falseを設定すると、バックエンドまたはAttributionプロバイダーがトークンを交換します。

フィールド説明
platform常に ios.
attributionToken__CAPGO_KEEP_0__
appleAttributionオプションのAppleAttributionPayload fetchAppleAttribution is true の場合

要件

要件
  • iOS 14.3 以降で利用可能な Apple AdServices 属性トークン
  • 属性ペイロードは Apple Search Ads 属性のみをカバーし、アプリストアの任意のリファラURLはカバーされません。
  • App Tracking Transparency のプロンプトは、AdServices 属性トークンを要求するために必要ありません。