Search code examples
androidgoogle-playinstallationreferrerfacebook-ads-api

How facebook measure app installs - Android/IOS


Facebook ads has a feature that it can knows how many apps are installed from advertising in facebook https://developers.facebook.com/docs/ads-for-apps/mobile-app-ads#advanced

I know google provide referrer/campaign feature to detect which campaigns, websites, and other apps are referring users to Google Play Store to download my app https://developers.google.com/analytics/devguides/collection/android/v4/campaigns#overview . But when I see facebook sdk(android) source code, it doesn't use google campaign mesurement, so which technique it use to measure app installs? And can My app knows if it is installed from advertising in facebook or not(with google campaign, my app can catch the intent after installing and get referrer information to know utm_source)


Solution

  • I did a research on this back in Q4/2015 and have found no way to manually track Facebook install ads in Google Analytics, because Facebook overrides the referrer field, which you'd read from INSTALL_REFERRER intent.

    The only official info on this I was able to find is this question on FB help page

    We do not support install tracking for web apps not hosted on facebook.com, but you could try using URL tags in order to track specific landing destinations within your app through a third-party analytics platform. Learn more here: https://www.facebook.com/business/help/1016122818401732/?ref=u2u

    As an alternative, you can register your app with the Facebook SDK and measure your app installations that way. You can find out how to do that in this developer's guide: https://developers.facebook.com/docs/app-ads/measuring/?ref=u2u

    As stated in the first paragraph, there are Facebook's measaurement partners, offering solutions for automating the measurement and pairing the data with your campaigns.

    These partners have exclusive access to FB data and are able to track your installs (and generally any in-app activity) from ads.


    In theory, if you're the app developer, you can try filling some arbitrary data (not UTM tags) into your ads' url_tags and check if it gets propagated to your app upon install (or deeplinking). If you're able to read the data in the app, you should be able to manually track the event in Google Analytics. But to use this in practice would mean tagging each ad with some unique value and then pairing it with app event. Which is basically what measurement partners do, but way more difficult, because you don't have the data they have.