Integrate Convert Experiences with ContentSquare

Convert-ContentSquare Integration

Integration of ContentSquare with Convert Experiences will help you to import Convert data into your ContentSquare account. 

For each experiment, the integration can pass along the experiment name and variation name that the visitor is currently bucketed into (if any).

Add Tracking Code Snippets

Make sure the Convert tracking code is installed on your page.

You should also add the ContentSquare main tag (UXA) on your website, just add the following lines of code on every page you want to analyse, either at the end of the body marker, or via a TMS.

Send Custom Variables

Then you should set your custom variables and through them send your Convert data (e.g. Experience id, Variation id) to your ContentSquare account. 

Example code for sending Experiment and Variation names:

window._uxa = window._uxa || [];
var refObject = window['convert']['data']['experiments']
        for (var key in window["convert"]["currentData"]["experiments"]) {
            if (!window["convert"]["currentData"]["experiments"].hasOwnProperty(key)) {
var currentExperiment = window["convert"]["currentData"]["experiments"][key];
    var curExperimentName = refObject[key] && refObject[key].n ? refObject[key].n : "unknown experiment name";
    curExperimentName = curExperimentName.replace("Test #", "Test ");
    var curVariant = currentExperiment['variation_name'] ? currentExperiment['variation_name'] : "unknown variant";
    curVariant = curVariant.replace("Var #", "Variation ");

window._uxa.push(['setCustomVariable', 1, curExperimentName, curVariant]);

View Convert Data in ContentSquare

In order to see the data sent, you must login into your ContentSquare account.


To check whether the ContentSquare code was installed and set up correctly, use the ContentSquare UXA Assistant.

Have more questions? Submit a request