If you are performing A/B tests on your website through AB Tasty, you may be interested in knowing that user feedback can add valuable insights to these A/B tests.
Simply run a Usabilla survey or analyze your passive feedback button's results to find out which test variant is preferred by your users and why it is. You can even use Usabilla to initially determine what you are going to test next.
Follow the below steps to integrate AB Tasty and Usabilla work closely together.
1. Add AB Tasty test variants to Usabilla through Custom Variables
In order to recognize the test variant a user was in, you can push AB Tasty's test variant ID to Usabilla through custom variables. You are free to choose whether you would only like to use the test variant ID, or whether you would like to add other variables from AB Tasty to Usabilla as well.
- ABTasty.tests – An array of all the tests running on the website.
- ABTasty.getTestsOnPage() – A function that will return all tests running on a specific webpage. You can run this function in order to find the tests and test variants running on a specific webpage.
After running ABTasty.getTestsOnPage() you will know the testID of the test running on the website. This testID can be used to find test variations and names running on the page as follows:
When pushing variables from AB Tasty to Usabilla, please be aware that it's not possible to push nested arrays and objects deeper than two levels. This means that when pushing deeper arrays or objects to Usabilla, they will have to be flattened first.
After implementing the custom variables Usabilla feedback items and campaign results that derive from a page on which an A/B test runs, will be supplemented with the test variant ID. Also campaign results will contain a test variant ID for each user if this ID is present.
The test variant ID then allows you to filter and segment your feedback items or campaign results according to the test variant. Use the filters to compare feedback from different test variants and define which one has your users' preference.
2. Target Usabilla campaigns to a specific test variant
After pushing the Test variant ID to Usabilla you will be able to show a targeted survey to users that are in a specific test or even view a specific test variant. Please find an explanation on how to set up the campaign targeting here.
3. Push user feedback from Usabilla to AB Tasty
Whenever a user has left feedback on your website or when he has responded to a campaign, you will also be able to push those results back to AB Tasty. In AB Tasty you'll then be able to merge the qualitative feedback that derives from Usabilla with the AB Tasty reporting suite.
Also you can follow up on feedback in real time or in following sessions. If your user for instance filed a bug report through Usabilla and your developers fixed this bug, you will be able to report back to the user about the fix during their next session.
Pushing user feedback to AB Tasty works in the same way as adding Usabilla data to your data layer. Using our setEventCallbacks you can trigger a push to AB Tasty, every time a user leaves feedback while AB Tasty is active on the webpage. Please find instructions on how to use the setEventCallbacks here. The push to AB Tasty can be activated as follows:
"cv" is the AB Tasty reserved name for its Custom Variables feature
"key" and "value" are used in AB Tasty to filter your dataset or as targeting criteria for campaigns
We hope this article helps you to get more out of Usabilla and AB Tasty. Any questions? Please reach out to Support@usabilla.com or use the widget below.