Google Optimize | Send data to SessionCam

Integrating SessionCam with Google Optimize is the best way to understand the qualitative impact of your tests because it ensures you get a holistic view of the customers experience. Setting up this integration will allow you to do a number of things and some of these include:
  • Segment your recordings using variants as a filter
  • Compare customer struggle scores between variants and the control
  • Use heatmaps to get a clear understanding of how variants impact UX at a page level

To integrate Google Optimize with Sessioncam, you need to include our Custom Variable code (as can be seen below) into each of your variants to identify them within the SessionCam console.

You can set up the integration code by editing the body element on your page in Google Optimize and then selecting Run JavaScript. Enter the code below in the box that appears and modify the "Test1" value relevant to your test.

if (!window.sessioncamConfiguration)
  window.sessioncamConfiguration = new Object();
if (!window.sessioncamConfiguration.customDataObjects) window.sessioncamConfiguration.customDataObjects = [];
var item = { key: "GoogleOptimize", value: "Test1"


SessionCam console using the following filter setup: You’ll then be able to filter your sessions within the

"Field Value" for "GoogleOptimize" is "Exactly" "Test1" to pull out the sessions related to the variable above.

How to filter by the values in SessionCam

You can also filter for any sessions that have seen the variable (including its value) by following the instructions below:

  1. Create a Segment which has a filter reading "Field Value" for "GoogleOptimize" is "Entered".
  2. Create an Export. In the export use the segment you just created and in the Fields to export (section 2) add "GoogleOptimize" as the field.

When you create the CSV file you’ll see a file where visitors have seen one of your variants and also the variant they saw (based on the value you have added to the variable).

For more information on debugging and filtering by custom variables, please see our main Custom Variable article