Integrate Convert Experiences with Snowplow Analytics

Convert-Snowplow Integration

Snowplow Analytics technology give you control of your own data, setting your team free to use data to be transformative. This article will walk you through how to setup 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 the 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"));

Setup a Snowplow Collector

Follow these instructions to setup your Snowplow collector.

Setup a Snowplow Javascript Tracker

Follow these instructions to setup your Snowplow javascript tracker. You can even setup the remaining steps as described here but that is 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