Integrate Convert Experiences with Snowplow Analytics

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 Collector and 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 Snowplow.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","//d1fc8wv8zag5ca.cloudfront.net/2.9.0/sp.js","snowplow_name_here"));

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. You can even set up the remaining steps as described here, according to your needs.

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_name_here('trackStructEvent', 'Convert Experiences', 'Visit a Variation', '', 'Variation Name', 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.

Have more questions? Submit a request

Comments