Sharing data with Google Universal Analytics

About this page

This page is about how to share Experiment results with Google Universal Analytics.

Sharing data with Google Universal Analytics

To share information with Google Universal Analytics, prepare these steps:
* Set up Google Universal Analytics
* Set up Kaizen Platform
* Edit the HTML

Set up Google Universal Analytics

First, create a new custom dimension in your Google Universal Analytics-account. On their Admin-page, select Custom Definitions and Custom Dimensions to do this.
You will get an index-number. Input that index-number into our Index of custom dimension-field.

To better measure results of different Experiments, it is recommended to create a Custom Dimension for each Experiment. Because when the results of multiple tests come into the same analytics report, information may be combined or overwritten, making results and differences unclear.

Set up Kaizen Platform

Select Edit Experiment and next the More Options-tab.

Look for the 3rd Party Integrations, which includes a section on Google Universal Analytics. Tick the box to link.
Input your Google Universal Analytics index-number into the Index of custom dimension-field. Click save when completed.

When using a modified tracking code and name, please enter that name in the Custom tracker-field.

In this example the Custom tracker-name is tracker2.

ga('create', 'UA-XXXXXXX-XX', { 'name': "tracker2"});

To implement this function, add the Google Universal Analytics JavaScript snippet to the page HTML.

Edit the HTML

To start sharing Experiment data, the following JavaScript snippet needs to be input in the page HTML:

try { kzs("activateUniversalAnalytics"); } catch(e) {}

Where to position the snippet:

  • After the Kaizen Platform JavaScript snippet
  • After the Google Universal Analytics snippet
  • After ga('create', 'UA-XXXXXXX-XX');
  • Before ga('send', 'pageview');

HTML example:

<script data-kz-key="XXXXXXXXXX"
  (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
  ga('create', 'UA-XXXXXXX', 'auto', {'name': "tracker2"});
  try { kzs("activateUniversalAnalytics"); } catch(e) {}
  ga('tracker2.send', 'pageview');

Example of Experiment data send to Google Universal Analytics:

  • Visitors come to the Experiment URL
  • The Experiment ID for this test is 100355
  • The Variation ID for the applied Variation is 102222
  • The Custom Dimension for this Experiment is Exp_100355_Variation_102222

Where to find the details:

  • In the list with all Variations, the name and ID of the original design are Original design, with the value -1
  • Select an Experiment to see the Experiment ID. It is mentioned before the Experiment name, at the top of the page

  • The design Variation ID is mentioned at the top of each thumbnail, on the Report and Variations-tabs.

  • You can assign variable only with the URL to be tested.
Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request


Please sign in to leave a comment.