Firebase Google Analytics

Integrate UXCam with Firebase Google Analytics to get more insights about your events and better analyze your data.

Even with tons of data from events triggered in your app, sometimes it’s hard to know why your user’s made some decisions, why they’re not adopting the new features, or not using your app the way you expected them to. While Firebase can provide you with quantitative data, by sending and connecting the events to UXCam, you’ll have a better understanding of your user’s behavior.

Connect UXCam with Firebase to have your Session’s and User's URLs on each of your Firebase Events and easily watch the video recording. You can also analyze the whole user experience to have more insights and pinpoint roadblocks on your user’s journey.

Why integrate with Firebase?


  1. Have more consistency in your data by sending the events to Firebase and UXCam.
  2. Understand the reasons behind all your Firebase data, better analyze your user’s behavior, and address problems more precisely.

How to do it?


You need to have a Firebase Google Analytics account and a UXCam account.

In Firebase:

  1. On your Firebase project Dashboard, under the Analytics section click on Custom Definitions and then go to “Create custom dimensions”.

  2. Give a descriptive name of the dimension (Event) that you want to link to UXCam.

  3. Add a parameter to this dimension in “Event parameter” (here you will add your UXCam URL) with a name that you desire, i.e. UXCam_links in example below.

In UXCam:

  1. Please make sure that the Event name that you use in UXCam and the Event Parameter are the same that you’ve created on Firebase.

  2. Following our example it should be: Event: ‘purchase_completed’ and event parameter: ‘UXCam_links

UXCam.start(withKey: "APP_KEY") { (started) in
    if started{
        //Add any event name or parameter name you prefer
        if let sessionURL = UXCam.urlForCurrentSession(){
            Analytics.logEvent("purchase_completed", parameters: ["UXCam_links": sessionURL])
        }
    }
}
[UXCam startWithKey:@"APP_KEY" buildIdentifier:nil completionBlock:^(BOOL started) {
    if (started){
        //Add any event name or parameter name you prefer
        [FIRAnalytics logEventWithName:@"purchase_completed" parameters:@{@"UXCam_links":[UXCam urlForCurrentSession]}];
    }
}];
// Inside onCreate method of all activity that is an entry point to your app add
mFirebaseAnalytics = FirebaseAnalytics.getInstance(this);
UXCam.startWithKey("APP_KEY");
    
UXCam.addVerificationListener(new OnVerificationListener() {
    @Override
    public void onVerificationSuccess() {
        Bundle bundle = new Bundle();
        bundle.putString("UXCam_links", UXCam.urlForCurrentSession());
        mFirebaseAnalytics.logEvent("purchase_completed", bundle);
    }
      
    @Override
    public void onVerificationFailed(Strings) { }
    
});
final FirebaseAnalytics analytics;
//Make sure the session was started.
FlutterUxcam.urlForCurrentSession().then((value) {
    analytics.logEvent(name: "purchase_completed", parameters: {"UXCam_links": value});
});

Find your Sessions' and Users' URLs in Firebase:


When analyzing your Events on Firebase you can see the custom parameters and all the UXCam URLs for that event, so you can export all these data or just go to the URL and watch the sessions directly on UXCam Dashboard to understand how the event was triggered.

📘

We suggest send the same events that you’ve on Firebase to UXCam, to have more consistency in your data and collect more insights into your users’ behavior. Send Events to UXCam →

Note:

Events in Firebase can take up to 24 hours to appear in the dashboard, but if you want to make sure that you are logging the events properly, run the following:

adb shell setprop debug.firebase.analytics.app "yourpackagename"

This will enable the DebugView that is also located under the Analytics section in your firebase console and will let you see if the events are being properly logged.