I'm in process of evaluating an Analytic tool for our Android and Ios app. Firebase is one of the options being evaluated. have been researching around the possibility of defining events using Firebase Analytic and using the same to fire notifications to users. Would wish to know if that's possible and the approach towards implementing it?
Asked
Active
Viewed 2,134 times
1 Answers
1
Google Analytics for Firebase has events distributed in 3 categories:
- Automatically Collected Events - Developer need not to write any code for these events to be collected.
- Predefined Events - A set of events that are provided by specific usecases, Eg. Retail/e-commerce.
- Custom Events - Events that developer can log by writing code in the logEvents method call.
For sending notification based on events, the developer can create an audience in Analytics. This audience would contain the event for which the developer needs to send the notification. Finally, Go to Notifications in Firebase console and select Target as User Segment, App as the app AND audience that was created in Analytics created with the event. Sending notification would send it to all the app users who are contained in the audience definition that logged the event of your choice.

AniV
- 3,997
- 1
- 12
- 17
-
Thank u AniV. I want to precisely know if this can be automatically triggered like some analytic tools do for ex: Localytics. When ever my user exits out of cart page without making a payment, I want to reach out to him and provide assistance if required. – user2513495 Jun 12 '17 at 17:20
-
1For that you can make use of the Firebase Cloud Functions and make use of the Analytics Trigger as mentioned in this doc https://firebase.google.com/docs/functions/analytics-events and here is a sample code for similar kind of use case https://github.com/firebase/functions-samples/tree/master/coupon-on-purchase – AniV Jun 12 '17 at 19:18
-
Is there a way to disable some automatic events? I mean not all the automatically collected events, just some of them that I don't need. – Hayk Mkrtchyan Mar 09 '22 at 08:07