跳过内容

iOS 属性追踪

GitHub

Apple AdServices

Apple AdServices部分

Apple不提供一个通用的App Store安装referrer等价于Google Play Install Referrer。

在iOS上,这个插件使用Apple AdServices attribution。 getReferrer() 返回一个 AdServices 属性令牌,您可以将其发送到您的后端或移动测量伙伴。

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

原生 Apple 属性查找

原生 Apple 属性查找

此插件也可以将令牌发送到 Apple 的 AdServices 端点,从原生 code 中获取。

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

在此模式下,应用程序本身应接收 Apple 的属性载荷。请在您的后端或属性提供商处交换令牌时设置为 false。 fetchAppleAttribution 返回的字段

返回的字段

字段
描述返回的字段
platform始终 ios.
attributionToken苹果广告服务Attribution令牌。
appleAttribution当使用苹果属性时可选的载荷 fetchAppleAttribution 是的,正确。
  • 在 iOS 14.3 及之后版本中,Apple AdServices 属性令牌可用。
  • attribution 信息包含了苹果广告搜索的 attribution, 而不是任意的 App Store 引荐 URL。
  • 不需要仅为了获取 AdServices 属性令牌而显示 App 跟踪透明度提示。

继续从iOS Attribution

iOS 属性分发后继续

如果您正在使用 iOS Attribution 连接它以计划native插件工作 使用 @capgo/capacitor-install-referrer 使用 @capgo/capacitor-install-referrer 的native能力 Capgo 插件目录 Capgo 插件目录中的产品工作流 Capacitor 由 Capgo 的插件 Capacitor 由 Capgo 的插件实现细节 添加或更新插件 添加或更新插件的实现细节,以及 Ionic Enterprise插件替代方案 Ionic Enterprise插件替代方案中的产品工作流