Integrate Convert Experiences with Snowplow Analytics

This Article Will Help You:


Convert-Snowplow Integration

Snowplow Analytics technology gives you control of your own data, setting your team free to use data to be transformative. This article will walk you through how to set up a Snowplow tracker and send custom Convert data to it. 

For each experiment, the integration will 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 and sp.js are installed on your page. Snowplow tracking code looks like this:

;(function(p,l,o,w,i,n,g){if(!p[i]){p.GlobalSnowplowNamespace=p.GlobalSnowplowNamespace||[]; p.GlobalSnowplowNamespace.push(i);p[i]=function(){(p[i].q=p[i].q||[]).push(arguments) };p[i].q=p[i].q||[];n=l.createElement(o);g=l.getElementsByTagName(o)[0];n.async=1; n.src=w;g.parentNode.insertBefore(n,g)}}(window,document,"script","","snowplow"));

Set Up a Snowplow Collector

Follow these instructions to set up your Snowplow collector.

Set Up a Snowplow JavaScript Tracker

Follow these instructions to set up your Snowplow JavaScript tracker. 

Activate Integration Manually

You should add this extra code to your website to track custom structured events:

		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 ");

snowplow('trackStructEvent', {
category: 'Convert Experiences',
action: 'Visit a Variation',
label: 'Variation name',
property: '',
value: curVariant
});

View Convert Data in Snowplow

Snowplow has been designed to make it as easy as possible for analysts to use whatever analysis tools they want, to crunch Snowplow data.

Choose one of the methods described here to make your own analysis.