Tracking app installs with react-native-fbsdk - ios

I have a iOS React-Native app that uses the react-native-fbsdk.
I'm doing some ad campaigns on Facebook to promote the app.
In Facebook for Developers I already linked the correct advertisement and company IDs to my Facebook-app.
Now I want to know, which installations came from what campaign, but it seems that the react-native-fbsdk doesn't send this event.
My hope was this would be done automatically.
Anyway, I found this list of standard events, but install isn't part of it.

Related

How to identify if the user opened the link to the App store but did not install the app then but later in the future?

Is there any way to know if a user opened the link to your app on the app store from a universal link but did not install it at that time and after say 2-3 days later, installs the app from the app store itself instead of your link.
Currently, when we simulate the same situation at the time of development during the installation of the app via Xcode we still get those parameters. How to identify if the user did install at that moment or at a later point of time.
You can use any third-party SDK.
I have integrated this feature using branch.io SDK
Using their Quick Links option you can achieve this.

Ad-ID (IDFA) and Google Framework

I am currently developing an App for iOS for iPhone with Google AdMob intergrated within it. I implementetd other Firebase functions like Firebase Messaging, because I am planning to push notifications.
As stated by Google, Google uses the Apple IDFA and conforms to its guidelines. Therefore, I assume by submitting this App, I should select IDFA.
But in the same time, I am planning to bring the exact same app without Ads, but still with Google Framework being integrated within it, because, as I said, I am planning to push notifications.
My question is: should I remove the Google AdMob interface before submitting the Ad-Free app? If no need to do so, should I select IDFA on submission? If it has to be removed, what and from where should I exactly remove?
Thanks a lot!
Here is what I have done:
In the Ad-Free version, I removed the complete framework and reinstalled it using "pod install" but this time installing only 'Firbase', 'Firebase/Core' and 'Firebase/Messaging" without AdMob.
My app got accepted without selecting IDFA upon submission.

Testing Facebook App Ads for Installs

I am following this guide https://developers.facebook.com/docs/ads-for-apps/mobile-app-ads and I've done everything as explained: added the Facebook SDK, triggered the "app activate" event with the corresponding App ID in the app delegate, set up the Info.plist with the ID. When I test my application through the simulator and on a testing device I open App Dashboard -> Insights -> App Events -> Overview and I get track of "fb_mobile_activate_app" events almost instantly, they are incrementing. Is this all I should have to know the SDK is implemented correctly and I can update my app on the App Store without worries and then run an Ads campaign on Facebook?
I am asking also because the things are a bit confusing on the Insights -> "Mobile App Installs" page:
This dashboard shows organic and paid app installs reported by either the Facebook SDK for iOS, the Facebook SDK for Android, or a Mobile Measurement Partner. This dashboard serves as as an indicator of app install volume, user demographics, and as a baseline for understanding how ads are increasing installs of your app. Developers can also use this dashboard for debugging to ensure that app installs are being recorded. For detailed data on paid installs, see the analytics in the Ads Manager.
Users who are not logged into a version of the Facebook mobile app released since August 2012 are not counted here.
How do you guys understand this line Developers can also use this dashboard for debugging to ensure that app installs are being recorded.? How can you debug this without having an ad and why do I get zeros on the "Mobile App Installs" graph? Is it possible that Facebook have a faulty description or am I understanding it wrong? Thanks

Determine installation of the app from Facebook

I am using in my app Facebook's Mobile App Ads for Installs.
That means I can see when people install my app from Facebook along with the conversion rates using Facebook's dashboard.
My question:
Is there a way to know that from code?
I mean, is there a way to know when the user installed and launched the app from Facebook versus installed and launched from the App Store?
Thanks!
Using the public iOS APIs the answer is definitely No. You can only catch if your app is launched from a push notification.
A workaround is to create a URL scheme and track the events on your own (when this scheme is called). The official documentation for this is here.

How to test Facebook mobile app install ads “Last Mobile Install Reported” field?

I've integreated Facebook SDK, and put the code [FBSettings publishInstall:YOUR_APP_ID]; in, and it worked all right with return value true.
I'm testing it using ad hoc distribution, for some reason the field Last Mobile Install Reported is not showing up. And the Facebook app summary page I got seems to be different to other people.
My question is:
Do I need to release the app to Apple store first, then download it via Facebook Ad in order for 'Last Mobile Install Reported' to show up?
My guess is that since I installed the app as Ad Hoc to my device, not via Facebook, so that 'Last Mobile Install Reported' didn't work. It is fair enough if that is the case, as I expect Facebook to charge me only when people download and install the app via Facebook Ads. But I'm not sure if my guess is all right or not. Can anyone clarify how facebook mobile app install ads works?
I've read through https://developers.facebook.com/docs/tutorials/mobile-app-ads/ already btw.
Any help would be appreciated.
I know I'm a little late to answer this but maybe this will help someone else. I just ran my first ad campaign on fb for my app and tracked installs.
First, the way you test if your app has the fb framework installed correctly and reporting installs is:
Look for the "fb_mobile_activate_app" event to show up in fb in the App Dashboard -> Insights -> App Events -> Overview. It should show up within a minute of the app opening.
Your app does not have to be released. I was getting install data from the simulator.
FB tracks all opens and if that same user clicked on one of your ads within the last 28 days it counts it as an install.
Your app do not have to be Released to see that feature. We have seen stats even for our development status app.
Last Mobile Install Reported works for non Facebook Ads related installs as well. They basically take in any installs .
It seems like you already have a Mobile Install Reported value in place. I don't think it would report a duplicated device if you set up the Info.plist correctly as instructed in the article below. Under "Advanced steps for mobile measurement", go to step 2.
https://developers.facebook.com/docs/tutorials/mobile-app-ads/
There is a "trick" to seeing your installs.
Yes, you can test "App Installs" on the Simulator or on your device...BUT...you might not see them on the Facebook Dashboard.
Instead, first go to the INSIGHTS tab reached from the left menu on the App Dashboard.
You may see App Installs here - but you might not.
Second, if you don't see any live data for App Installs, look at the section called "APP LAUNCHES." That can be used as a surrogate indicator that your app is working.
Third, if you don't see live data for "App Launches" - look at the date range. Change the date range to extend to TOMORROW's date. Give Facebook 1-2 minutes to update with your data. At that point, now you can see that live App Launches are occurring - and thus will know that your connection to FB is working.

Resources