Integrate Convert Experiences with Roistat

This Article Will Help You:


Convert-Roistat Integration

Integration of Roistat with Convert Experiences will help you to import Convert data into your Roistat reports and dashboards. 

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

Add Tracking Code Snippets

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

Then, create a Roistat account. On every page that you want to install Roistat, paste the code snippet inside the HTML <body> tag. 

Send Custom Events

You should then create through the Developments menu the custom events you want to send (e.g. Convert Experiment Name and Convert Variation Name that the website visitor is bucketed into):


You can send a custom event from anywhere in the page where Convert experiences are running:

Example code for sending Experiment Name and Variation Name:

var refObject = window['convert']['data']['experiments']
for (var key in window["convert"]["currentData"]["experiments"]) {
if (!window["convert"]["currentData"]["experiments"].hasOwnProperty(key)) {
continue;
}}

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.onRoistatAllModulesLoaded = function () {
roistat.event.send('curVariant', {'Variation ID':curVariant});
roistat.event.send('curExperimentName', {'Experiment ID':curExperimentName});
};

View Convert Data in Roistat

The Custom Events will now be included in every Roistat visit.