Monitor android application for user debug - android

I wish to monitor app behavior and debug application on different devices.
I am trying to select the best approach, Firebase analytics, crashlitics, Goole analytics etc...
The problem:
User report on some devices they see incorrect app behavior (Not crash). For example user reports button not working, I wish to check if the user actually clicked the button and what happened.
What I need:
I need to find that specific user (or phone) in the monitoring system mentioned above and check the logs I added (for example: firebaseAnalytics.logEvent...)
Solution questions
Can I find specific user or phone in firebaseAnalytics? What is the best approach to addressing my requirements?

You can use Firebase Analytics Event Logging & Set User Id.
With this feature, you can keep track of users' logs, later generate statistics in Firebase Analytics or Google Analytics, and track specific users if you wish.
check this links
Firebase Analytics Set User Id
Firebase Analytics Event Logging
And If you want check not you wanted situation, you can add a custom exception to firebase.
try like this code.
if(isExpectedSituation) {
// some your codes.
} else {
FirebaseCrashlytics.getInstance().recordException(YourCustomException());
}

Related

Reporting logcat output to Firebase upon crash

I'm looking to improve and get better insights into the apps behaviour right before a crash. In the production we have a lot of Timber.d and Log.XX calls issued but it is not possible to currently see the full application's log-stack in Firebase Crashlytics section. We only see the stacktrace of the crash as well as all the custom Firebase events that have been called.
Can someone advise on any feasible methods of forcing the application to submit the full log-stack upon a crash such that it would also be visible in Firebase?
There is no way to post full log files to Crashlytics.
What you can do:
Log events with Analytics at key points in your app's flow, which will then also show up (as a sort of breadcrumb) in your Crashlytics views by adding custom keys.
Write custom log messages for key points in your code leading up to the crash.
Set a user ID for your app instance, and then write the log file to another cloud based storage location (like Cloud Storage, for which there's also a Firebase SDK) with that same user id, after the app is restarted.

Firestore statistics

I would like to implement google firestore in my app, to collect some basic data about what options of app users use the most and how. Since it is not a small task, before I do, I would like to know, is there a way to get some statistics from that database and filter categories (all categories will be provided by users) like country, type of OS, version of app, and search for specific user by his id/email?
I don't think Firestore will have the functionality of providing statistics about the app user. However, most of the details you mentioned can be tracked with Google Analytics for Firebase.
Additionally, it is also possible to create other Custom Events and log these events from your application, as mentioned in the Log events section of the documentation.
If you want to know what events are automatically logged, refer to the Automatically collected events page of the GA4 documentation.

Android app - debug log data sorted by user available realtime for customer service purposes

We are using Firebase today for crash logging and some debugging. However for the production app we are looking for the best way to achieve the following scenario;
Customer calls in with a problem, it might be with one of the embedded devices the app communicates with or the app itself.
Agent logs in to a service, selects the user account (AWS Cognito) and fetch a human readable log of the latest actions and settings done on that particular users account.
Are any of the known services today made for this to happen in an easy way? Seems most is focused towards debugging, but this is more a production intent and to be able to help customers in a better way.
You can introduce Firebase Analytics to the app and then distinguish user by setting user ID: https://firebase.google.com/docs/analytics/userid
I think you'll need some work on adding the analytics logs for the actions in the app you want to track

Firebase Analytics user properities

I have problem with Google Firebase
I use Firebase Analytics and I want to use user properities for sepatare group users on my app.
Now I´m triing
FirebaseAnalytics analytics = FirebaseAnalytics.getInstance(this.getApplicationContext());
analytics.setUserProperty("myGroup", "1");
and another user
FirebaseAnalytics analytics = FirebaseAnalytics.getInstance(this.getApplicationContext());
analytics.setUserProperty("myGroup", "2");
I don´t see on console Firebase Analytics. How I set user properities correctly? And than where I will see on console Firebase?
The Developer Guide mentions that you should first register the user property in the Analytics page of the Firebase console. You'll find a tab there entitled "User Properties". After you register "myGroup" there, start logging more events after setting "myGroup" in your app and you will be able to filter those event reports using "myGroup" after a few hours.
Actually, as from my experience using BigQuery as well with Firebase, I want to add some more depth information about it using the comment above:
Yes, as mentioned above, to see your User Properties you need to add them like mentioned above on your Firebase Console (for filtering, etc.).
However, not adding is doesn't mean that they are not collected. It's logging regardless, they are not available on Firebase Console until you add them. However, as raw data they're there. Not necessarily an information you needed but it's good to know the truth behind it. Firebase Console doesn't let you see the raw data so you won't see it but, mentioning that it's not logging wouldn't be true.

Is tracking individual user behavior possible in Google Analytics Premium for Android app?

Is Tracking of user Behavior like which activity user saw, what time he saw them , and all possible. Or Can this only be done from the back end ?
Does Google Analytic Premium has this feature ?
Edit:
We are looking to track the user behavior on android application and want to know the details of the pages the user has visited within the app.
The Google Analytics gives me the count of the visits however it does not confirm as to who visited which page. The user_id tracking for Google Analytics is not working for some reasons.
Is there a tool where we can record the user behavior to eventually improve the app functionality.
If you want to track individual users, you need to send a unique userId to google analytics as a custom dimension value. Make sure the Id you send to google is not PII as that is against google's privacy policy. You don't need to have a premium account to implement this behavior.
If you are not aware of how custom dimensions work, please check this link for more info on it
https://support.google.com/analytics/answer/2709828?hl=en
Also for things like at what time a particular user viewed a page, you can look at generating Custom Reports. Select Parameter Time from Dimensions Tab in Custom Reports. More info here.
https://support.google.com/analytics/answer/1151300?hl=en

Categories

Resources