Integrate Convert Experiences with Heap Analytics

This Article Will Help You:



Convert-Heap Analytics Integration

Integration of Heap Analytics with Convert Experiences will help you to import Convert data into your Heap Analytics account. 

For each experiment, the integration uses variables and events to 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 Heap Analytics code are installed on your page.

Activate Integration in Convert

Go to your Convert experience settings and under Integrations select the Heap Analytics. Then click Save and Continue. Once activated, Heap will automatically capture all active experiments and exposed variation as a property on all events for a given page.

Activate Integration Manually

If you do not want to activate the integration through Convert interface, you can send manually additionally custom events with this code:

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

heap.track('Convert Experiences', {
Exp_Name: curExperimentName,
Var_Name: curVariant
});

View Convert Data in Heap Analytics

Using a Custom Event in Heap Analytics, you will be able to view all of your Convert Experiences data as they associate to the values that you pass in the event.

When you log in to your Heap Analytics account, you should go to Organize - Events - Custom Events and find the one for Convert Experiences.