Amplitude provides event tracking and advanced reporting capabilities to gain insight to your data sets.
The following guide explains how to associate a UXCam session URL with Amplitude event enabling you to see a step by step session replay for your every event.
Sign up and Integrate UXCam
UXCam website will walk you through how to sign up and set up UXCam. To create an Amplitude account, visit Amplitude's website.
Integrate with Amplitude
/* Import UXCam and Amplitude header at the top of your AppDelegate.m */
#import "Amplitude.h"
#import <UXCam/UXCam.h>
/* Add this call as the first line of your application:didFinishLaunchingWithOptions: method */
[UXCam startWithKey:@"App-key from https://www.uxcam.com" appVariantIdentifier:nil completionBlock:^(BOOL started) {
//Tag your Amplitude events with UXCam recording URLS. Example:
NSMutableDictionary *uxcamURL = [NSMutableDictionary dictionary];
[uxcamURL setValue:[UXCam urlForCurrentSession] forKey:@"UXCam: Session Recording link"];
[uxcamURL setValue:[UXCam urlForCurrentUser] forKey:@"UXCam: User Recordings link"];
[[Amplitude instance] logEvent:@"Dropped off at Checkout Page" withEventProperties:uxcamURL];
}];
// Inside onCreate method of all activity that is an entry point to your app add
UXCam.startWithKey("App-key from UXCam");
UXCam.addVerificationListener(new UXCam.OnVerificationListener() {
@Override
public void onVerificationSuccess() {
//Tag your Amplitude events with UXCam recording URLS. Example:
JSONObject eventProperties = new JSONObject();
try {
eventProperties.put("UXCam: Session Recording link", UXCam.urlForCurrentSession());
eventProperties.put("UXCam: User Recording link", UXCam.urlForCurrentUser());
} catch (JSONException exception) {
}
Amplitude.getInstance().logEvent("UXCam URL", eventProperties);
}
@Override
public void onVerificationFailed(String errorMessage) {
}
});
UXCam URL in Amplitude
