Integrate Convert Experiences with Webtrekk

Convert-Webtrekk Integration

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

For each experiment, the integration can pass along the experiment name and variation name that the visitor is currently bucketed into (if any).

This integration is still in beta status. Use with caution the steps described below.

Add Tracking Code Snippets

Make sure the Convert tracking code and the Webtrekk Tag are installed on your site. Integrating the Webtrekk tracking script into the head of the website is fundamental for the
implementation of Webtrekk. The JavaScript file has to be hosted on your web server and
should be integrated at the highest position on all your pages. 

Create Webtrekk Container

Webtrekk Tag Integration is managed with the help of containers.

Add Webtrekk Plugin

Once the tracking script is integrated in the website and the container has been created, only
the Webtrekk plugin is missing to complete the basic Webtrekk implementation. Follow the steps on Webtrekk interface and fill in relevant information.

If you have followed the instructions to this point, you have implemented Webtrekk in the
standard configuration and tracking runs on autopilot. Now comes the interesting part: The
customization of tracking with additional values so your individual requirements are met. This
is achieved by integrating the data layer in Tag Integration.

Example code for data layer to send Convert Experiment and Variation names:

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 ");  
	
window._ti = window._ti || {};
window._ti['contentGroup'] = {
1: curExperimentName,
2: curVariant
};

View Convert Data in Webtrekk

In order to see the Convert data sent, you must login into your Webtrends account and go to your Reports. 

Have more questions? Submit a request

Comments