Integrate Convert Experiences with Segment

Convert-Segment Integration

Integration of Segment with Convert Experiences will help you to import Convert data into your Segment warehouse. 

For each experiment, the integration uses semantic track events to pass along the experiment name and variation name that the visitor is currently bucketed into (if any).

For more use cases regarding this integration you can read our Segment blog article.

Add Tracking Code Snippets

Make sure the Convert tracking code and the Segment tracking code (analytics.js) are installed on your page. 

Activate Integration in Convert

Go to your Convert experience settings and under Integrations select the Segment.Io. Then click Save and Continue. Once activated, Segment will automatically capture all active experiments and exposed variation as a semantic event for a given page.

mceclip0.png

Activate Integration Manually

If you do not want to activate the integration through Convert interface, you can do it manually by adding to your website events. The example code below will send Convert Experience and Variation names to Segment Debugger/Schema:

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 ");
		
analytics.track('Convert Experiences', {
	Exp_Name: curExperimentName,
	Var_Name: curVariant
	});

View Convert Data in Segment

Using a semantic event in Segment, you will be able to view all of your Convert Experiences data as they associate to the values that you pass in the event.

When you log in to your Segment account, you should go to your Schema. Inside your Schema, you can see all of the track events that you are sending through Segment, and if they are active or inactive.

If you used the checkbox method from above you should see the event like this:

mceclip0.png

If you used the manual integration code you should see the event like this:

mceclip1.png

Need assistance? Start a conversation with our Support Team.
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