简体   繁体   English

Facebook iOS SDK-移动应用安装跟踪不起作用

[英]Facebook iOS SDK- Mobile App Install Tracking not working

I'm using Facebook SDK version 4.5.1 in my application. 我在应用程序中使用的是Facebook SDK版本4.5.1。 The APP ID, URL scheme, App display name etc have been incorporated into the info.plist correctly. APP ID,URL方案,App显示名称等已正确合并到info.plist中。 We have Authentication as well as Share features inside the app all of which are working perfectly as expected. 应用程序内部具有身份验证和共享功能,所有这些功能均按预期运行。 For Event tracking we have; 对于事件跟踪,我们有;

- (void)applicationDidBecomeActive:(UIApplication *)application{

 [FBSDKAppEvents activateApp]; 

}

I can confirm that analytics is working seeing the Dashboard, ie Installs and App events are getting reported correctly. 我可以确认分析板正在运行,即安装和应用程序事件已正确报告。

But when I run an Ad Campaign I would expect the SDK to correctly report the Mobile Installs but unfortunately I don't see any of that data coming in, ie Mobile App Ad Installs are showing "0" installs. 但是,当我运行广告系列时,我希望SDK能够正确报告移动安装,但不幸的是,我看不到任何数据,例如,移动应用广告安装显示“ 0”安装。

An interesting thing to note here - when Checking with Facebook's App Ad Helper , It seems to show the "Last iOS Install" data on the top correctly but interestingly enough the second row ie "Installs over the last 7 days" seems to show an "X". 这里需要注意的一件有趣的事情-当使用Facebook的App Ad Helper进行检查时,似乎正确地在顶部显示了“ Last iOS Install”数据,但有趣的是第二行,即“过去7天的安装次数”似乎显示了“ X”。

Here's a screenshot of the same 这是相同的屏幕截图 在此处输入图片说明

But here's the screenshot which confirms that installs are getting reported. 但是这是确认安装报告的截图。 在此处输入图片说明

Facebook is tracking organic install now. Facebook现在正在跟踪自然安装。 I also faced similar situation and i came across the concept of organic app install tracking. 我也面临类似的情况,并且遇到了有机应用安装跟踪的概念。

Just install the app on a fresh device (which was not used with my application earlier). 只需将应用程序安装在新设备上(之前我的应用程序未使用过)。 You will be able to see the install in the facebook dashboard after few minutes. 几分钟后,您将能够在Facebook仪表板中看到安装。

Thats all! 就这样!

Hope this helps 希望这可以帮助

I managed to get this working eventually. 我最终设法使它开始工作。 Haven't got the confirmation officially from Facebook dev team on this but it turned out that the "Advanced settings" section in the App Facebook Setting has an "Collect the Apple Advertising Identifier (IDFA) with App Events" switch which was turned Off for our App. 尚未得到Facebook开发团队的正式确认,但事实证明,应用程序Facebook设置中的“高级设置”部分具有“通过应用程序事件收集Apple广告标识符(IDFA)”开关,该开关已关闭我们的应用程序。 The App was created a pretty long time back and this had to be turned On. 该应用程序是在很久以前创建的,因此必须将其打开。 Although the description below it seems to suggest that this might not have been the real reason behind the issue, I can confirm that installs started reporting once we had this turned ON. 尽管下面的描述似乎暗示这可能不是问题背后的真正原因,但我可以确认一旦打开此按钮,安装就会开始报告。

在此处输入图片说明

You must have the iPhone Facebook App installed for their analytics to work. 您必须安装iPhone Facebook App才能进行分析。

I had the exact same symptoms, and after installing the FB app it worked. 我有完全相同的症状,并且在安装FB应用程序后运行正常。 Seems really like they're bypassing sandboxing somehow, but there you go. 似乎真的好像他们以某种方式绕过了沙箱,但是您去了。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM