---
title: "Configuring and Activating the A/B Tasty Plugin"
slug: "configuring-and-activating-the-ab-tasty-plugin"
updated: 2024-03-21T13:40:05Z
published: 2024-03-21T13:40:05Z
canonical: "docs.mapp.com/configuring-and-activating-the-ab-tasty-plugin"
---
> ## Documentation Index
> Fetch the complete documentation index at: https://docs.mapp.com/llms.txt
> Use this file to discover all available pages before exploring further.
# Configuring and Activating the A/B Tasty Plugin
## Implementation Methods
> The plugin is available in Tag Integration. Alternatively, you can integrate it in the standard pixel as a separate JavaScript file.
The A/B Tasty extension makes it easier for you to analyze the displayed A/B test and variants. Mapp Intelligence integration on your website is required for a successful setup. Using the extension, the information from A/B Tasty tests is sent directly to Mapp Intelligence.
This document describes the technical integration and configuration of the extension on your website.
For a detailed description of the A/B Tasty system, visit the company’s website at [www.abtasty.com](https://www.abtasty.com/).
## Configuration in Mapp Q3
Data is recorded using one event parameter. This must be saved in Mapp Q3 under *Configuration > Custom parameters > Event parameters*.
Although you can choose your own names for them, We recommend using the following configuration:
| Parameter | Datatype | Amount Parameter Values |
| --- | --- | --- |
| A/B Tasty Variation | Text | Single Value |
## Integration
### Download
You can find the package on our [Github page](https://github.com/Webtrekk/Webtrekk-Smart-Pixel/releases).
**Browser**
The A/B Tasty extension file should ideally be integrated directly into the header area of the page after the Smart Pixel.
```xml
Homepage
The content of your website is placed here.
```
**Node**
```bash
$ npm install @webtrekk-smart-pixel/abtasty
```
```javascript
var webtrekkSmartPixel = require('@webtrekk-smart-pixel/core');
var webtrekkABTasty = require('@webtrekk-smart-pixel/abtasty');
var wtSmart = webtrekkSmartPixel.use(window, window.document);
wtSmart.push(webtrekkABTasty);
```
**RequireJS**
```javascript
requirejs(['wtSmart', 'wtSmartABTasty'], function(wtSmart, wtSmartABTasty) {
window.wtSmart = window.wtSmart ? window.wtSmart : wtSmart.use(window, window.document);
window.wtSmart.push(wtSmartABTasty);
// do tracking stuff here
});
```
## Methods and properties
### name
Get the name of the extension.
```javascript
/**
* @type {string}
*/
wtSmart.extension.abtasty.name;
```
### version
Get the version of the extension.
```javascript
/**
* @type {string}
*/
wtSmart.extension.abtasty.version;
```
### config
Set and get the current configuration of the extension.
- parameterIdVariation: Contains the ID of the event parameter that you created via the Mapp Q3 interface.
The extension used automatically "abtasty_<>_<>" as predefined action name.
```javascript
/**
* @param {{
* parameterIdVariation: string
* }} [config]
*
* @returns {object}
*/
wtSmart.extension.abtasty.config(config);
```
### isActivated
Get the status, if the extension is enabled.
```javascript
/**
* @returns {boolean}
*/
wtSmart.extension.abtasty.isActivated();
```
### activate
Activate the extension.
```javascript
wtSmart.extension.abtasty.activate();
```
### deactivate
Deactivate the extension.
```javascript
wtSmart.extension.abtasty.deactivate();
```
### Example
```javascript
// is abtasty activated
var isActivated = wtSmart.extension.abtasty.isActivated();
// set abtasty config
wtSmart.extension.abtasty.config({
parameterIdVariation: '17'
});
// get abtasty config
var abtastyConfig = wtSmart.extension.abtasty.config();
// activate abtasty
wtSmart.extension.abtasty.activate();
// deactivate abtasty
wtSmart.extension.abtasty.deactivate();
```
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." |
| Use event name for test and variant | 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.
1. [Download](/v1/docs/ab-tasty-technical-requirements-and-download) the JavaScript file.
2. In the JavaScript file "pixel-abtasty.min.js," make the following adjustments: **Example**
```javascript
(function(window) {
var wt_abtastyConfig = window.wt_abtastyConfig || {
parameterIdVariation: "7",
useVariationInActionName: false
};
/* ... */
})(window)
```
| 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_<>_<>." |
| useVariationInActionName | 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 ("abtasty_<>_<>_<>"). |
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**
```javascript
var webtrekkConfig = {
trackId: "111111111111111" ,
trackDomain: "track.webtrekk.net" ,
domain: "www.website.com" ,
executePluginFunction: "wt_abtasty"
};
```
5. **Example page-specific configuration**
```javascript
var wt = new webtrekkV3();
wt.contentId = "de.startseite" ;
wt.executePluginFunction = "wt_abtasty" ;
wt.sendinfo()
```
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.