Integrate Convert Experiences with Amplitude

Convert-Amplitude Integration

Integration of Amplitude with Convert Experiences will help you to import Convert data into your Amplitude 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.

Then, create an Amplitude account. If you have not already done so, go to https://amplitude.com and register for an account. Then, create an organization and a project. You will immediately receive an API Key for the project you have just created. On every page that you want to install Amplitude analytics, paste the code snippet just before the </head> tag.

Send Events

You can send an 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 ");

var eventProperties = {
 'Exp_Name': curExperimentName,
 'Var_Name': curVariant
};

amplitude.getInstance().logEvent('Convert', eventProperties);

View Convert Data in Amplitude

In order to see the data sent, you must login into your Amplitude account and create your own dashboard/chart based on the events you sent:

Have more questions? Submit a request
CONVERT MORE

Reliably Convert More Site Visitors, Even If Everything Else is Changing in Your Business.

START 15-DAY FREE TRIAL
✓ No Credit Card  ✓ Easy Set-Up  ✓ Access All Features

Comments