Integrate Convert Experiences with Kissmetrics
📈 Track Convert Experiment Data Seamlessly in Kissmetrics Funnels & Reports
🚀 THIS ARTICLE WILL HELP YOU:
- Convert-Kissmetrics Integration
- Add Tracking Code Snippets
- Activate Integration Manually
- View Convert data in Kissmetrics
🔄 Convert-Kissmetrics Integration
We offer an integration with Kissmetrics. Having a solid integration and giving you access to experiences and variation data in the preferred analytics platform is important.
We send over two property names that have values the experience & variation name the user currently sees. This will allow you to continue tracking the effect of a variation in the funnels as well as every other reporting option offered in Kissmetrics.
This article will walk you through how to send data from Convert experiences/variations to your Kissmetrics account. For each experiment, the integration will pass along the experiment name and variation name that the visitor is currently bucketed into (if any) as a snapshot.
📋 Add Tracking Code Snippets
Make sure the Convert tracking code and the Kissmetrics code are installed on your page. Kissmetrics tracking code looks like this:
🧑💻 Activate Integration Manually
Once you have the two tracking codes in your website, then you should add this extra code to track events and properties (one for experiment name and one for variation name). You can add this to the Project Global Javascript section or directly on your pages, after the Kissmetrics and Convert tracking codes.
// No need to check if window.convert exists, as it's guaranteed
var activeExperiences = window.convert.experiences;
// Loop through all active experiences
for (var experienceId in activeExperiences) {
if (!activeExperiences.hasOwnProperty(experienceId)) {
continue;
}
var currentExperience = activeExperiences[experienceId];
// Default fallback for experiment name
var curExperimentName = "Experience " + experienceId;
// Find the experience name in the experiences array
if (Array.isArray(window.convert.data.experiences)) {
for (var i = 0; i < window.convert.data.experiences.length; i++) {
var exp = window.convert.data.experiences[i];
if (exp && exp.id === experienceId) {
curExperimentName = exp.name || curExperimentName;
break;
}
}
}
curExperimentName = curExperimentName.replace("Test #", "Test ");
// Get variation name with basic fallback
var curVariant = "unknown variant";
if (currentExperience.variation && currentExperience.variation.name) {
curVariant = currentExperience.variation.name;
}
curVariant = curVariant.replace("Var #", "Variation ");
// Send to Kissmetrics
if (window._kmq) {
_kmq.push(['set', { 'Experiment Name': curExperimentName }]);
_kmq.push(['set', { 'Variation Name': curVariant }]);
}
}
// Get the variation name from the active experience
var curVariant = currentExperience.variation && currentExperience.variation.name ?
currentExperience.variation.name :
"unknown variant";
curVariant = curVariant.replace("Var #", "Variation ");
// Send to Kissmetrics
_kmq.push(['set', { 'Experiment Name': curExperimentName }]);
_kmq.push(['set', { 'Variation Name': curVariant }]);
👀 View Convert data in Kissmetrics
After integration is enabled and your experiment is activated, you will be able to find in your Kissmetrics account the custom user data that you sent. Go to Settings->Live to search for what you want. In each visitor session two extra properties will be added, one for experiment name and one for variation name: