For Example, i am using react-native-firebase library. I want to grow my app install and i create a campaign. The question is how can i know my app is installed by clicking ads or my app is downloaded directly on play store. Simply i want to know where was my app downloaded from. I do implement firebase analytics configuration.
2 Answers
It seems like you could follow the advice given in this question: https://stackoverflow.com/a/47893179/4147687
Essentially, if all you want is simply a way to track how your app was installed, you can simply pass utm parameters along with your URL.
For example:
https://link-to-my-app.com/?utm_source=business_card&utm_medium=email&utm_campaign=sign_up_offer
Google Play has it's own URL builder to make this step easier here. If you are not using any specific ad network just set it as "Custom".
Firebase will automatically scrape the source, campaign and medium parameters there and present them to you in the first_open conversion event. Documentation for how this works is here.

- 242
- 3
- 13
The easiest way to do this is by using this npm package https://www.npmjs.com/package/react-native-install-referrer
- You should invoke the API only once during the first execution after install.
- You can do that using AsyncStorage to check if its freshly installed or not and then you can logEvent based on that UTM url and track the users
- After creating the event you can segregate users by creating Audiences in the firebase console.

- 139
- 2
- 4
-
Is that possible to do this for ios also? – Huseyin Akcicek Jan 19 '21 at 20:57
-
No its not possible in IOS using above package – Nik Aug 17 '21 at 05:01
-
Are there any available libraries for iOS currently or is it possible to capture the link from the app install? – MercPls Jul 05 '22 at 03:21