Category: AB Testing
This integration is only available for Web projects
What to expect
This integration will allow you to analyse AB Test campaigns directly in Experience Analytics and easily discover and explore customer behavior across all digital channels and devices in order to build and test ever-better customer experiences. For instance, you can segment all sessions that experienced an AB test variation from the Analysis Context in Contentsquare and see corresponding metrics in the Zone-based Heatmaps and Session Replay modules in order to deeply understand UX behaviors and the corresponding performance.
What we collect
Dynamic Variables
Key | Value | Data Type |
AB_Maxymiser_{Campaign Name} | {Variation Name} | Text |
AB_MaxymiserQA_{Campaign Name} | {Variation Name} | Text |
Implementation
Implementation Steps
For the legacy platform scroll down.
For the non-legacy platform resume from here:
Step 1
Inside of a campaign in campaign builder click on ADD AN INTEGRATION
Step 2
Click on ContentSquare, then check the Enable box and then click Save.
Step 3
You’ll now see ContentSquare listed as an integration for this campaign.
Legacy Platform
If you are not using Maxymiser’s Campaign Builder then the following guide will show you how to deploy the integration.
Step 1
From the main menu click on Site Settings. Note – the site settings part only needs to be completed once.
Step 2
Check that you have the main integration module script. It will look like the below. If you don’t have this script please contact Maxymiser support.
Step 3
If you have the main Integration Module script you can proceed with deployment. Add a new site script called CSIntegration using the code below.
The Code
(function() { var CS = { version: '3.0.2', campaignRequired: true, validate: function(integration) { return true; }, check: function(integration) { return true; }, timeout: 7000, exec: function(integration) { return helpers.send(integration); } }; var helpers = { send: function(integration) { var csPrefix = 'AB_Maxymiser__'; if (integration.isProduction === false) { csPrefix = 'AB_MaxymiserQA_'; } var csKey = csPrefix + integration.campaign.getName(); var csValue = integration.campaignExperience; window._uxa = window._uxa || []; window._uxa.push(["trackDynamicVariable", {key: decodeURI(csKey), value: decodeURI(csValue)} ]); return true; } }; // Register and export if (typeof modules === 'object' && typeof modules.define === 'function') { modules.require('Integrations').register('Content Square', CS); } })();
The CSIntegration script should be mapped site wide (under Site Script Mappings) to run after the main IntegrationModule script. In the example below, the IntegrationModule script will run first (because it has order -150) and the CSIntegration script will run second.
Your site settings are now complete and do not need to be modified again (note that they will need to be published).
Step 4
Inside of your campaign expand Additional Settings and then click on Campaign Scripts
Step 5
Add the CSTrigger script below and save it.
Integrations.run('Content Square', {
campaign:campaign,
redirect:false
});
Step 6
Finally map the CS trigger script to the page or pages that the elements are mapped to:
Step 7
Your campaign setup should now look something like this and is ready for QA:
Verifying it works
You can use the chrome extension to check the results are sent to CS
Load the Maxymiser QA tool on the page where your test runs. It will show you the variants currently being displayed and you can use the ContentSquare Tracking Setup Assistant Chrome Extension to verify that ContentSquare is getting the data.
How To Analyse The Maxymiser Campaigns
Create a segment
Inside of segments create a new segment and drag across a Dynamic Variable. The “key” dropdown will be automatically populated with all of the tests that ContentSquare has been sent data for. Once you select a test the “value” dropdown will be automatically populated with variants that ContentSquare has been sent data for.
You now have a segment that will contain only the visitors that were exposed to this variant. This segment can be used across all of the ContentSquare modules.
Session Replay
Session Replay will automatically display the correct versions of a page i.e. default or variant.
Zoning
We need to snapshot the correct version of the page. This can be done as follows.
- Inside of Campaign Builder click on Preview, select the variant you want to snapshot and then “copy URL”.
- Inside of ContentSquare click on Define, Mappings and then select the mapping that contains the page you want to analyse.
- Select the page where the test runs and then click on the icon (top right) to see further options.
- Click on “Url of page preview”, paste in the URL you copied from the previous step and click Update.
When you create a new zone for this page it will create it using the preview link and hence you’ll see the variant.
Note — you should be logged into the Maxymiser UI when you create the zoning.