Facebook Mobile app install ad tracking (without SDK) - android

What are the alternative ways for us to track downloads without installing the FB Android SDK (we prefer not using SDKs due to various reasons)? Ideally, we want to route the click to our tracking server prior to sending the user to the Play Store, but could settle with adding a referrer without routing the user to our tracking server. If the latter is an option, where in the setup do we specify the referrer value?

It would appear you could also use the Google Analytics SDK to capture the Intent containing referral data.
Essentially you'd create a BroadcastReceiver (AnalyticsReceiver/CampaignTrackingReceiver) that listens for the installation event and passes and Intent with referral data after install to the app.
Valuable information regarding this method can be seen in the links below:
How to test android referral tracking?
https://support.google.com/analytics/answer/3389142?hl=en

Related

Play Install Referrer vs Firebase Deeplinking

I want to have referral links to get the referral code with in the application (after installation) to provide credits based on the code for both Android and iOS.
I was able to explore these options:
1. Play Install Referrer API
Where the url would look something like: https://play.google.com/store/apps/details?id=com.example.myapp&referrer=utm_source%3Dstaff-referral%26utm_content%3713491235
Where I can get the content 713491235 using the Play Install Referrer API. However the problem here is this is very specific to Android and cannot work for iOS.
2. Firebase deep linking
Where the url would look something like: https://myapp.page.link/?link=https://mywebapp.com/713491235&apn=com.example.myapp
Where I can get the url https://mywebapp.com/713491235 using the Firebase deeplink api. This seems to solve for Android and iOS, but there isn't much information on how long the deeplink is alive, meaning
What happens if I install the app using deeplink but don't open the app for few days. Will it still be available when I open the app later.
What happens if I click on the link, but do not install then are there. Instead install it later by searching on playstore and installing. Will I still be able to get the link once the app is open?
Is there a way to combine both the Play Install Referrer API and Firebase deeplink? like - https://myapp.page.link/?link=https://mywebapp.com&apn=com.example.myapp&afl=https://play.google.com/store/apps/details?id=com.example.myapp&referrer=utm_source%3Dstaff-referral%26utm_content%3713491235 so that if the app is not installed on Android, we can use the Play Install Referrer API(which looks more reliable).
And I am not able to understand the purpose of Play Install Referrer Links, if they are not converted to universal links, because often we don't know which device the url will be used on. Sharing a link specific to playstore doesn't seem to help. What exactly is the usecase of Play Install Referrer?
Because in case of Play Install Referrer API they were clearly mentioning:
Caution: The install referrer information will be available for 90
days and won't change unless the application is reinstalled. To avoid
unnecessary API calls in your app, you should invoke the API only once
during the first execution after install.
I'll answer your questions one by one - I think Firebase Dynamic Links are the better choice for you, based on your requirements.
I couldn't find anything in the documentation for this, but it seems that the link will expire roughly 1 hour from install time (as said here and here).
Android and iOS integration methods are interestingly different in Firebase - if an new iOS user taps the link, it will copy the Dynamic Links URL to the clipboard and read it when the app is opened, whereas Android calls the intent handler for the URL, which in turn calls a Firebase function that extracts the link.
This means that an iOS link, until a user copies something else, should still work - which effectively means a short lifetime, as you can't rely on your users not copying something else. For Android, though, the intent handler is the link - if a user breaks the flow, it'll no longer work.
From a technical view, you could completely create a double-link - I'm not sure whether that would be needed, though, as I'm not sure on how the Play Install Referrer API works and I assume it will use a similar method with them both being developed by Google.
The main use case of the Play Install Referrer API is to track the effectiveness of ad campaigns on a mobile app - the data received from the API is similar to the UTM parameters at the end of a URL (e.g. utm_campaign, utm_source) that tell the website owner where the user comes from. They can be used in situations where the advert knows what your device OS is - for example, an advert inside another app.

Google Play Store Web to Device installation not passing INSTALL_REFERRER

I am adding an install referrer to a Play Store link.
If that link is launched from an Android device then I get the referrer data and everything works well.
But, when using the same link from desktop and choosing Web to Device installation to an Android device, the referrer value is not passed at all.
Is that the expected behavior? If so, Is there any other way to pass a parameter through an Web to Device install?
***** EDIT *****
Ok, it seems like this is the normal behavior according to Google Analytics Docs.
Google Play Campaign Measurement does not currently support web-to-device installs initiated from the web Play Store.
So my updated question is:
Is there any other way or a workaround to make it happen?
One workaround I've seen used is sending the link via SMS. On the desktop, the website visitor sees a "Text Me The App" form where they can enter their phone number and click "Send Link". They receive a link on their phone and open it there.
The link could be an intermediary page that redirects the user either to Google Play or to the iOS app store. So the same link can work on both platforms.
There are of course caveats with this approach: SMS sending fees, infrastructure needed for processing the submitted form data, privacy concerns (user is entering their phone number. Have fun doing this in EU :-) ). User's device needs to have a phone number so it can receive messages.
One commercial offering I've found that does this is https://docs.branch.io/pages/web/text-me-the-app/

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)
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.
Facebook analytic provide that type to show how munch your application install that for use this link and follow steps..
here you have to must register your application on facebook devloper and impliment facebook sdk on your application.
For install check set below code on onResume method with particulate Activity class.
#Override
protected void onResume() {
super.onResume();
//For event in update your app install count..
AppEventsLogger.activateApp(this);
}
Facebook event page in you can get count after some time on app installation.
follow below screenshot

Android (Google Play) Referral Tracking Limitations

Using INSTALL_REFERRER and our own broadcast receiver, we are able to track installs for a referral program in our app. We are, however, running into certain limitations in the tracking process. Has anyone been able to solve andy of these issues?
When we share a campaign URL with another user, when the second user tries to open the URL, he will encounter two options for opening it, browser and Google Play. The referral tracking is done only if user installs the app through Google Play.
For older versions like 2.1, we were not able to capture the referral tracking. So if the second user has OS 2.1, the app does not track the installation.
In order to load the referrer when sending the link to another user (and in order to avoid the browser/google-play question), the link should not be:
https://play.google.com/store/apps/details?id=com.xxx.appname&referrer=abc
but
market://details?id=com.xxx.appname&referrer=abc

Is there a way to pass parameters to the marketplace installer for an app

when providing a user on a mobile, a link to an android application via a web page, it is possible for params from the url to be passed to the app being installed.
I'm guessing the answer is no - but it doesn't help to ask.
The reasoning being that it would be handy for some situations to have a generic app that pulls config information from the referrer.
This is possible only for the use case of referral tracking, using the Analytics Tracking for Mobile Apps SDK. The documentation will have more details, but the basic steps are:
Create referral-tagged market deep link URLs using this tool.
Use these links on web sites that you want to track referrals from.
When a user downloads your app using the referral link, the referral info is stored.
Upon first run of your app, use the Analytics SDK to track a 'first-run event' using trackEvent. If your app was downloaded with referral info, this event (and all future event and pageview tracking) will be tagged with the referral info.
In Analytics, you'll be able to filter these events on campaign/referral info.
I think you can change a bit the scenario of the anlytics referral tracking to pass parameters to your app during installation if you need...
You have to declare a custom receiver for com.android.vending.INSTALL_REFERRER in the custom receiver parse the url from the market.
If you want the analytics to work as well, is better if you extend the com.google.android.apps.analytics.AnalyticsReceiver and call the super.onReceive
There are two parameters that are optional in the referral the campaign term and the campaign content so I will put there the information you want to pass
I worked a bit on this and I wrote a post where I explain even how to test it : http://www.dev-articles.com/article/Analytics-referral-tracking-for-Android-447001

Categories

Resources