React Native firebase analytics app install tracking - reactjs

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.

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.

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.

Related

firebase setup with react with init or without?

I am trying to tie my react app to firebase,
I understand the general idea behind but the it seems like there are few different binding
options depending on how much you want get into functionality of firebase.
0.0 basically without registering a firebase app in the project to my react app and using any service lets say from authentication or database. Ive been able to use make POST and GET request as well as sign up and in users without regiestering an app from firebase website.
just have to use the end points given by the service you wish to use.
1.0 I guess this is the more proper way which registering a firebase app to my react app
either by using npm or script/cdn. I am new to firebase so i did not know that i had to do this.
2.0 basically the same step as 1.0 but also initializing/configuring firebase app(?) with Firebase CLI which creates things like
A firebase.json configuration file that lists your project configuration.
A .firebaserc file that stores your project aliases.
this is now where i get confused as to how to go about combiniing with my react app.
for example, locally, react app is running on port 3000 but when i use CLI's firebase emulators: start script, what will happen to my react app which is running on 3000.
How do you guys set this up correctly? i guess it depend on how much backend i want to use but what i need firebase for mostly is to use authentication and database...

How to provide offline access to an app in React Native?

I am new to React Native and currently building an App in Expo. I am trying to add an offline feature in my app. Take Profile Screen for e.g. if a user updates his/ her name in the app and it doesn't have the internet access/ is offline so when the user gets back online his/ her name will be uploaded on the database. Till then, it should be able to see his updated name on his phone only.
So far I have build only front end part which accepts Name only. But don't know how to add this feature in my app ?
I am good at developing frontend but don't have a good knowledge how to connect frontend to db and backend. It will be helpful if someone can put some highlight for that?
Can anyone tell me how to achieve this type of offline feature ?
There are many way to achieve something like this. This works out of the box with Cloud Firestore, which is one way to accomplish offline functionality/persistence.
Check out this: Using Firebase with Expo.
One more way is you can use Asyncstorage if it's only a name field you want to store offline expo asyncstorage.
To send the updated name to database when user is online, you can use Netinfo expo netinfo to check whether user is able to access internet or not.

React with ReactRouter nas PHP hosting

I'm looking for a simple solution to deploy small React app with full React router support (no # urls). I've been using firebase so far, but I need to send an email from form, and used PHP for that.
Is there a service like firebase but with PHP support? Or can I somehow connect PHP file from other hosting (now I receive an error trying do so)?
You can use google cloud functions which allows to connect with the firebase.
For an example
-> ReactApp Form for UI
-> Firebase stores data based on users input through React App.
-> Google cloud function which gets called when there is an event in firebase database for an example (Create, update and delete). You can write logic in function which sends an email through send grid. You can write function in Nodejs and golang.
Example (https://cloud.google.com/functions/docs/tutorials/sendgrid)

How do I add an app to a workspace through the Watson Workspace API?

I know how to add an app manually to a workspace using the Watson Workspace GUI, but now I need to automate this.
Is there a way to connect an app to a specific workspace using the API?
I don’t think there is an API to achieve this. As far as I am aware of there’s a webhook to see if there are any changes happening in a space like users added or removed.
You can find the GraphQL API and other details here

Google APIs and extension force install list

I have an app on GAE in which I'm using the Google Directory API for retrieving organization units and users. I am wondering if this API or any other have the option to update the extension force install list. Currently it's done by copying links and IDs to the Google Admin Console, but I am looking for a solution (if one even exists) to have this feature implemented directly in my application.
Thanks!

Resources