iOS 获取活动 URL 负责下载

iOS get campaign URL responsible for download

当我生成 'campaign url' 时,此处:

https://analytics.itunes.apple.com/#/campaigngenerator?app=$myappid

如果我的广告系列名为 'facebook',则 url 为:

https://itunes.apple.com/app/apple-store/id$myappid?pt=...&ct=facebook&mt=8

如果我的广告系列名为 'pinterest',则 url 为:

https://itunes.apple.com/app/apple-store/id$myappid?pt=...&ct=pinterest&mt=8

假设我 运行 在 facebook 和 pinterest 上投放广告。

然后,在 applicationDidFinishLaunchingWithOptions:

有没有我可以调用的函数

[[UIApplication sharedApplication]     get_campaign_url_for_download:^(NSString*) URL 
{
  NSLog(@"link I clicked to download this app was %@",URL);
}];

要知道该用户是通过我的 Pinterest 活动 URL 还是我的 Facebook 活动 URL 下载了我的应用程序?

苹果官方回复是

Thank you for contacting Apple Developer Technical Support (DTS). Our engineers have reviewed your request and have concluded that there is no supported way to achieve the desired functionality given the currently shipping system configurations.

如果 Apple 不支持此功能,那么我 100% 确定也没有外部服务可以提供此功能