AB Tasty is an AI-powered experimentation platform that enables businesses to optimize digital experiences through A/B testing, personalization, and feature flags. It allows teams to test ideas, validate features, and improve conversion rates across web and mobile applications without technical barriers, using advanced statistics and real-time insights to make data-driven decisions.
Before you begin
This integration will allow you to analyze client-side AB Test campaigns directly in Experience Analytics and easily discover and explore customer behavior across all digital channels and devices in order to build and test ever-better customer experiences. For instance, you can segment all sessions that experienced an AB test variation from the Analysis Context in Contentsquare and see corresponding metrics in Zone-based Heatmaps and Session Replay in order to deeply understand UX behaviors and the corresponding performance.
Finally, you can target surveys based on AB Tasty experiments.
Note that this integration also supports multi-page tests.
We collect the following data:
| Key | Value | Data Type |
| AB_ABT_{Campaign Name} | {Variation 1} | Text |
Implementation
Implementation Steps
You have 2 options to install this integration, depending on how you run your AB tests with AB Tasty
- If you run your tests client-side, please see the section AB Tasty (Client Side) below
- If you run your tests server-side, please see the section AB Tasty Feature Experimentation and Rollouts (Server Side) below
AB Tasty (Client Side)
Please go to the section How to request an integration to see the instructions to enable the client-side integration. You can then go to the Verifying it works section below.
AB Tasty Feature Experimentation and Rollouts (Server Side)
Note this section is ONLY for AB Tasty Feature Experimentation and Rollouts (server-side tests), not for the client-side tests. Client-side tests must be enabled above.
You would need to use one of these SDKs.
Depending on which SDK you use, you would simply need to add this JavaScript code into the server-side logic you have by using the SDK to obtain the Campaign Names and Variation Names, then pass those to the code below.
/*
*Name: AB Tasty Flagship Server Side Tests CS Integration Start
*Version: 1.1.1
*/
(function () {
var version = "1.1.0";
window._uxa = window._uxa || [];
var tvp = "AB_ABT_SS_";
function callback() {
if (!disableCallback) {
disableCallback = true;
if (window.CS_CONF) {
CS_CONF.integrations = CS_CONF.integrations || [];
CS_CONF.integrations.push("AB Tasty - Flagship - v" + version);
}
}
}
var disableCallback = false;
_uxa.push(["afterPageView", callback]);
function sendToCS(csKey, csValue) {
csKey = tvp + csKey;
_uxa.push([
"trackDynamicVariable",
{
key: csKey,
value: csValue,
},
]);
}
//Add whatever logic you want here in order to get the values of Flagship_campaignName and Flagship_variationName and then replace it in the vars below so that it is dynamically set.
//In addition, if there are multiple tests on the same page then you need to execute the 3 lines below for each test. So run it in a loop forEach campaign.
var campaignName = Flagship_campaignName;
var variationName = Flagship_variationName;
sendToCS(campaignName, variationName.toString());
})();
//AB Tasty Flagship Server Side Tests CS Integration End
The only part that you need to tweak or add your own code logic to is this part:
Replace Flagship_campaignName and Flagship_variationName with the variables you generate in your code and dynamically add them there.
If you have already completed the step above, then continue below.
Verifying it works
You can use the Chrome extension to check that the results are sent to Contentsquare.
How to target Surveys based on AB Tasty experiments
AB Tasty experiments are passed to us as Events that can be used to target Surveys. This means if you'd like to run a survey or collect a list of user testers on a specific variation that you're testing, you can use Events:
- Create a survey.
- In the Targeting section, select 'Specific pages' and choose 'Event' from the dropdown menu.
- Enter an event name in the Event field for an AB Tasty variation.
Note
You can enter any string that describes the variation you're testing. Your string must follow the format ABT_experiment-variation, where you need to replace experiment and variation with your actual experiment and variation names.
For example: ABT_My-Experiment-Test-Variation-A
You can add more Event triggers for other variations by clicking 'Add another', ensuring that you use a different event name for each variation.