Skip to content
  • There are no suggestions because the search field is empty.

How to Integrate with Medallia Digital Experience Analytics

 Track Convert A/B Test Data in Medallia for Deeper Customer Insights

 THIS ARTICLE WILL HELP YOU:



Convert Experiments - Medallia Digital Experience Analytics Integration

Integrating Medallia Digital Experience Analytics with Convert Experiences allows you to analyze behavior derived from the variations in your A/B test experiments. 

You will have to install an additional script to your website, along with the Convert Experiments and Medalia tracking codes.

In order for this to work for all current and future campaigns, this will only need to be done once on the pages that you want to track.

Ensure you have installed the Convert Experiences tracking code and it is working properly

See Check if Convert Experiences Is Installed Correctly.

Install the Medalia tracking code on your site

https://knowledgebase.decibelinsight.com/articles/710-decibel-insight-tracking-code

Make sure the Medalia tracking code comes before the Convert Experiences Tracking code on your page(s).

Enable "Generic AB Testing" in Medalia

https://knowledgebase.decibelinsight.com/articles/640-generic-ab-testing

Install the integration code

Add the following code to the Global Project JavaScript section found on your Convert Project Configuration page. It waits until Convert has evaluated the experiences on the page and Medallia DXA has loaded, then sends the variation ID and the experience and variation names for each experience the visitor is in. When data anonymization is on in your project, it sends the experience and variation IDs instead of the names.

This code works with the current Convert tracking script. If your project still uses the Legacy tracking script, move to the current script first. For more on the window.convert object, see The window.convert Object in the developer docs.

window._conv_q = window._conv_q || [];
window._conv_q.push({
what: 'addListener',
params: {
event: 'snippet.goals_evaluated',
handler: function () {
var rows = getConvertData();
whenReady(function () { return window.decibelInsight; }, function () {
rows.forEach(function (row) {
decibelInsight('ready', function () {
decibelInsight('sendIntegrationData', 'ConvertIntegration', {
id: row.variationId,
name: row.experienceName + ' ' + row.variationName
});
});
});
});
}
}
});

// Returns the experiences the visitor is in on this page, with their variation.
// With data anonymization on, it uses IDs instead of names.
function getConvertData() {
var rows = [];
var current = convert.currentData.experiences || {};
var configured = convert.data.experiences || [];
var settings = convert.data.project && convert.data.project.settings;
var anonymize = !!(settings && settings.data_anonymization);
for (var experienceId in current) {
if (!current.hasOwnProperty(experienceId)) continue;
var variation = current[experienceId].variation || {};
var experience = configured.filter(function (e) {
return String(e.id) === String(experienceId);
})[0];
rows.push({
experienceId: experienceId,
variationId: String(variation.id),
experienceName: anonymize ? experienceId : (experience ? experience.name : experienceId),
variationName: anonymize ? String(variation.id) : variation.name
});
}
return rows;
}

// Waits up to 10 seconds for the tool's code to load, then sends the data.
function whenReady(isReady, send) {
var tries = 0;
(function check() {
if (isReady()) return send();
if (tries++ < 50) setTimeout(check, 200);
})();
}

Turn Off Data Anonymization

In order for the script to access human readable experiment data, you’ll need to turn off Data Anonymization in your Project Configuration.

mceclip0 (1)-3

Make sure Data Anonymization is un-checked.

After the Installation

Upon collecting Generic A/B Testing Variations, you can begin to use these by creating Segments based on them:

mceclip0-Jul-17-2024-09-54-28-9211-AM