Integrating with Google Optimise (Beta)

Please note: at the time of writing Google Optimise is currently still in it's beta phases and the integration options may change when the public releases are made.

When using Google Optimise it is possible to insert specific code blocks for the tests you run. This then enables you to harness the power of a Google Optimise and SessionCam side by side.

You simply need to include our Custom Variable code (as can be seen below) into each of your variants to then identify them within the SessionCam console. You can set up the integration code by editing the body element on your page in Google Optimise, then selecting to Run JavaScript, in the box that appears you then enter the code below and modify the "Test1" value to be relevant to your test.

<script type="text/javascript">
if(!window.sessioncamConfiguration) window.sessioncamConfiguration = new Object();
window.sessioncamConfiguration.customDataObjects = []; var item = { key: "GoogleOptimise", value: "Test1" }; window.sessioncamConfiguration.customDataObjects.push(item); </script>

You will be able to select the Custom Variable by using the following filter setup:

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

You can also include the 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 "GoogleOptimise" is "Entered"
  2. Create an Export, in the export you will use the segment you just created and in the Fields to export in section 2 you will just add "GoogleOptimise" as the field
  3. When you then create the CSV file you will see a file where users have seen one of your variants and also the variant they saw (based on the value you added to the variable).