The Nantu QA Tab is a small floating panel that appears on the side of a webpage to help testers and QA engineers monitor and control A/B tests running on the site. It provides an easy way to see which tests are active, what variation you are viewing, and even lets you switch between different versions of a test or turn off tests entirely.
How Does It Work? #
- Automatic Setup:
- The QA tab automatically appears on the right side of your browser screen when the page is loaded.
- It shows the current list of tests running on the page.
- What You See:
- A list of tests with their test ID (name), the variation you’re currently viewing, and a set of buttons.
- What You Can Do:
- Switch Variations: Click buttons to quickly switch between different versions of the test (like “v1” or “v2”).
- Turn Off a Test: A button labeled “OFF” allows you to stop seeing the test’s effects.
- Edit Mode: By clicking the “Edit Variations” button, hidden options appear, letting you experiment with variations.
Example of Using the QA Tab #
Imagine you’re on an e-commerce website testing two layouts for the product page:
- One layout shows the “Add to Cart” button at the top of the page.
- Another layout shows it at the bottom of the page.
With the Nantu QA Tab:
- You can see that a test called “Product Page Button Position” is running.
- The QA tab shows you’re currently viewing “Variation 1” (button at the top).
- If you click the button for “Variation 2,” the page will reload, and now you see the button at the bottom.
Example URL to Trigger the QA Tab #
To enable or force specific test variations, the system uses a special URL format. Here’s an example:
https://example.com?nantu_variations=123:v1,456:v2
- 123:v1: Test ID 123 is showing variation “1.”
- 456:v2: Test ID 456 is showing variation “2.”
When you visit this URL:
- The page will load with these variations applied.
- The QA Tab will display information about these tests, and you can adjust them further if needed.
Why Is It Useful? #
- Quick Testing: See all active tests and make changes on the fly without needing to edit any code.
- Easy Debugging: Switch variations to ensure everything works as expected.
- Flexible Control: Turn tests on or off for QA purposes, ensuring a smooth experience for end users.
The Nantu QA Tab makes managing A/B tests simple, helping testers focus on what matters most—ensuring the website works flawlessly for users.
The Nantu QA Tab includes the following elements, which facilitate QA testing and mode configuration for Nantu experiments:
-
Nantu Mode Cookie and Query:
A variable that checks the values of both thenantu_mode
query parameter and thenantu_mode
cookie. -
Nantu Mode OFF:
A trigger that activates when thenantu_mode
query parameter equals “off.” -
Nantu Mode QA:
A trigger that activates when thenantu_mode
query parameter equals “qa.” -
Nantu Mode QA Event:
A trigger that fires on thenantu_qa_mode
event. This is an alternative method for enabling QA mode. -
Nantu Mode QA Query Var:
A trigger that fires only when thenantu_mode
query parameter equals “qa.” -
Nantu QA Tab:
A custom HTML tag responsible for rendering the QA tab interface. -
Nantu Set QA Cookie:
A tag that sets thenantu_mode
cookie to enable QA Mode. -
nantu_experiment:
A Data Layer variable containing the experiment name. -
nantu_mode_cookie:
A variable that retrieves the value of thenantu_mode
cookie. -
nantu_mode_query_var:
A variable that retrieves the value of thenantu_mode
query parameter. -
nantu_test_id:
A Data Layer variable containing the experiment ID. -
nantu_test_variations:
A Data Layer variable containing data for all variations in the experiment. -
nantu_variation:
A Data Layer variable containing the ID of the selected variation. -
nantu_variation_name:
A Data Layer variable containing the name of the selected variation.