Implementation Methods

The plugin is available in Tag Integration. Alternatively, you can integrate it in the standard pixel as a separate JavaScript file.

Integrate the A/B Tasty plugin into the container in which the webpage to be measured is located.

To add plugins to the desired container, proceed as follows:

  1. In the container overview, select the required container by clicking the corresponding entry.

  2. Click Add Plugin. You will be forwarded to the overview of all available plugins.


  3. Select A/B Tasty Tracking by clicking the appropriate button. The plugin configuration dialog opens.




  4. Now enter the following information:

    Parameter

    Description

    Action parameter for the variants

    Enter the parameter ID of the respective event parameter you created in Mapp Q3, for example, "7."

    To better filter results if a visitor sees both versions in one visit, you can save the test and variant name as event name instead of parameters.
  5. Click Next to go to the "Assign rules" area. Here you define where the plugin is activated.

  6. Then click Add plugin.

  7. Finally, click Publish to publish your container including the newly added A/B Tasty plugin.

Since version 3.2.x of the Mapp Intelligence tracking script, the use of plugins is supported. A plugin is all JavaScript functions that are transferred to the Mapp Intelligence pixel.

For the integration of the A/B Tasty plugin, you need the JavaScript file "pixel-abtasty.min.js."

  1. Download the JavaScript file.

  2. In the JavaScript file "pixel-abtasty.min.js," make the following adjustments:

    Example

    (function(window) {
    	var wt_abtastyConfig = window.wt_abtastyConfig || {
    		parameterIdVariation: "7",
    		useVariationInActionName: false
    	};
    	/* ... */
    })(window)
    JS

    Parameter

    Description

    parameterIdVariant

    Enter the parameter ID of the respective event parameter you created in Mapp Q3, for example, "7."

    As a predefined action name, the plugin automatically uses "abtasty_<<Test Name>>_<<Test ID>>."

    useVariationInActionNameTo better filter results if a visitor sees both versions in one visit, you can save the test and variant name as event name instead of parameters ("abtasty_<<Test Name>>_<<Test ID>>_<<Variation Name>>").
  3. Include the script file in your website in advance so that it provides the method "wt_abtasty" under the object "window".


  4. The parameter "executePluginFunction" is used for the activation itself. This can be set either in the configuration variable (webtrekkConfig) in the global pixel file (for example, "webtrekk_v3.js") or as a parameter of a page-specific pixel object.

    Example global configuration

    var webtrekkConfig = {
    	trackId: "111111111111111" ,
    	trackDomain: "track.webtrekk.net" ,
    	domain: "www.website.com" ,
    	executePluginFunction: "wt_abtasty"
    };
    JS
  5. Example page-specific configuration

    var wt = new webtrekkV3();
    wt.contentId = "de.startseite" ;
    wt.executePluginFunction = "wt_abtasty" ;
    wt.sendinfo()
    JS

    If you want to measure the data on all your pages, we recommend global integration. The page-specific configuration is used for the measurement of individual pages.