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?
- Have more consistency in your data by sending the events to Firebase and UXCam.
- 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:
- On your Firebase project Dashboard, under the Analytics section click on Events and then go to the Event that you want to link to UXCam.
- Click in the three dots on the right of your Custom Event and select Edit Parameter reporting.
- Click on Add reporting parameter (here you will add your UXCam URL)
- Set type to: Text and enter the name that you desire, i.e. UXCam_links in example below.
In UXCam:
Please make sure that the Event name that you use in UXCam and the Reporting parameter are the same that you’ve created on Firebase.
Following our example it should be: Event: ‘purchase_completed’ and Reporting parameter: ‘UXCam_links’
UXCam.start(withKey: "APP_KEY", buildIdentifier: nil) { (started) in
if started{
//Add any event name or parameter name you prefer
if let sessionURL = UXCam.urlForCurrentSession(){
Analytics.logEvent("purchase_completed", parameters: ["session_url": 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_link":[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_link", 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_link": 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 you send to UXCam the same events that you’re sending to Firebase to have more consistency in your data and have more insights about your users’ behavior.