Integrate Convert Experiences with New Relic

Convert-New Relic Integration

New Relic is the all-in-one Web application performance tool that lets you see the performance from the end-user experience, through servers, and down to the line of application code. This article will walk you through how to push custom attributes and events to New Relic.

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 is installed on your page.

In addition, the New Relic javascript code should be installed on your page. New Relic tracking code looks like this:

Activate Integration Manually

Once you verify that the tracking codes are installed add this extra code to your website to track custom attributes:

		var refObject = window['convert']['data']['experiments']
	for (var key in window["convert"]["currentData"]["experiments"]) {
		if (!window["convert"]["currentData"]["experiments"].hasOwnProperty(key)) {
	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 ");

if (typeof newrelic == 'object') {		
newrelic.setCustomAttribute('Exp Name', curExperimentName);
newrelic.setCustomAttribute('Var Name', curVariant);

View Convert Data in New Relic

You will be able to view all of your Convert Experiences data as they associate to the values that you pass in these attributes and events.

Once logged in, go to New Relic Insights > Data Explorer > Events and search for the custom attribute you created:

Need assistance? Start a conversation with our Support Team.

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

✓ No Credit Card  ✓ Easy Set-Up  ✓ Access All Features