Integrate Convert Experiences with SessionCam

Convert-SessionCam Integration

SessionCam is an analytics tool that allows you to watch recordings of your website visitors. Using the Convert integration, you can see the impact of your Convert experiments through the actions your customers take on your website. Convert will set properties in SessionCam so that you can segment metrics for each experiment and variation. 

This article will walk you through how to set and push these properties to SessionCam. For each experiment, the integration will pass along the experiment name and variation name that the visitor is currently bucketed into (if any).

Add Tracking Code Snippets

Make sure the Convert tracking code and the SessionCam javascript code are installed on your page. 

Set Up Custom Variables

Custom Variables are the mechanism for pushing data from your website/system into SessionCam. You can push as many data items as you wish, and then within the SessionCam console, you can search for any sessions containing the specific data (for example a reference number).  

Add the below code to your website to send your Convert Experiment and Variation names:


	if (!window.sessioncamConfiguration)
		window.sessioncamConfiguration = new Object();
	if (!window.sessioncamConfiguration.customDataObjects)
		window.sessioncamConfiguration.customDataObjects = [];
	/** You can edit the values below for key and value to send the data you want**/
        var refObject = window['convert']['data']['experiments']
			for (var key in window["convert"]["currentData"]["experiments"]) {
				if (!window["convert"]["currentData"]["experiments"].hasOwnProperty(key)) {
					continue;
				}}
            
		var currentExperiment = window["convert"]["currentData"]["experiments"][key];
		var curExperimentName = refObject[key] && refObject[key].n ? refObject[key].n : "unknown experiment name";
		curExperimentName = curExperimentName.replace("Test #", "Test ");
		var curVariant = currentExperiment['variation_name'] ? currentExperiment['variation_name'] : "unknown variant";
		curVariant = curVariant.replace("Var #", "Variation ");

	    var item1 = {key: "Experiment Name",value: curExperimentName}; 
        var item2 = {key: "Variation Name",value: curVariant}; 

    window.sessioncamConfiguration.customDataObjects.push(item1, item2);

Additional variables can be sent by duplicating the lines with itemx.

View Convert Data in SessionCam Console

Turn recording on for your site and view Convert data to SessionCam console which is accessible here

Have more questions? Submit a request

Comments