Integrate SessionCam & Google Optimise (Beta)

Google Optimise is currently still in it's beta phases and the integration options may change when the public releases are made. This article explains the current method for integration.

To integrate Google Optimise 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 Optimise and then selecting Run JavaScript.  Enter the code below in the box that appears and modify the "Test1" value relevant to your test.

<script type="text/javascript">

if(!window.sessioncamConfiguration)
window.sessioncamConfiguration = new Object();

if(!window.sessioncamConfiguration.customDataObjects)

window.sessioncamConfiguration.customDataObjects = [];
var item = { key: "GoogleOptimise", value: "Test1" };
window.sessioncamConfiguration.customDataObjects.push(item);
</script>

You’ll 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 use the segment you just created and in the Fields to export (section 2) add "GoogleOptimise" 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 added to the variable).

Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request

Comments

0 comments

Please sign in to leave a comment.