Client support · A/B tests

Connect your A/B tests.

For whoever runs your tests: how the tracker learns which version each visitor saw, so the platform can show results per version. There are three ways to do it; most sites only need the first.

Other help: Client support · Install the tracker · Privacy and GDPR · Technical questions · Cart and order events · Platform help

How it works

  1. When a visitor is shown a version of a test, the tracker records an event called experiment with two values: the test key and the version key.
  2. It then counts whether that visitor goes on to reach the test’s goal: a purchase, an add to cart, a checkout or an email sign-up.
  3. A visitor counts for the first version they saw. If they see another version later, it doesn’t move them.
  4. The platform matches the keys to the tests set up there and shows visitors, goals reached and confidence for each version.

The test in the platform

In the platform (app.denuomarketing.com), each test has:

  • A test key: the name the tracker sends for this test, for example vwo-14 or pdp-trust.
  • A list of versions: each with its version key (what the tool or the line sends) and a name (how it shows in the platform). The first version is the control, the one every other version is compared with.
  • A goal: purchase, add to cart, checkout or email sign-up.

Keys the tracker sees that are not on the test are listed on the test page under “Versions the tracker saw that are not on this test”, so a typo shows up instead of going missing.

Which way for which tool

Find your tool, then follow the section for its way.

ToolWay
VWO, AB Tasty, Convert, Kameleoon, Optimizely Web1 · Automatic: nothing to add
Split-URL or redirect tests, in any tool2 · Link parameter
Shopify A/B apps3 · One line, or the link parameter if the app sends visitors to different addresses
Popup tools3 · One line in each version of the popup, or the link parameter on its button links
Email tools3 · One line in each version of an onsite sign-up form; the link parameter on the links in each version of an email
Your own code3 · One line

1 · Automatic, from the testing tool

VWO, AB Tasty, Convert, Kameleoon and Optimizely Web are read from the tool’s own script on the page. When the tool’s Google Analytics 4 integration is switched on, they are also read from the experience_impression event it sends to the dataLayer. Nothing needs adding to the test or the site.

The test key is the tool’s name in lower case, a dash, and the test’s id in the tool. The version keys are the tool’s own variation ids.

ToolTest keyControl
VWOvwo-14Combination 1 is the control
AB Tastyabtasty-777Variation 0 is the original
Convertconvert-100The original’s variation id, as shown in Convert
Kameleoonkameleoon-5Variation 0 is the original
Optimizely Weboptimizely-24681357900The original’s variation id, as shown in Optimizely

The numbers in the table are examples. Your test’s id is shown in its address when you open the test or campaign in the tool, or on its settings page. In the platform, put the control’s key first in the list of versions.

3 · One line in each version

For any other tool: popup tools, email tools, Shopify apps or your own code. Add this line to each version of the test, with that version’s key (A for the original, B for the variant, and so on):

denuo('event', 'experiment', { test: 'TEST_KEY', variant: 'B' });

If the line may run before the tracker has loaded, for example in a script high up in the page, put this first line before it. It holds the call until the tracker is ready:

<script>window.denuo=window.denuo||function(){(denuo.q=denuo.q||[]).push(arguments)};</script> <script>denuo('event', 'experiment', { test: 'TEST_KEY', variant: 'B' });</script>

Example: a test of trust badges on product pages, with test key pdp-trust. The original runs { test: 'pdp-trust', variant: 'A' } and the variant runs { test: 'pdp-trust', variant: 'B' }.

Keys

  • Characters: lower case letters, numbers, dots, colons, underscores and dashes. No spaces.
  • Exact match: the key sent by the tool, the link or the line must be the same as the key in the platform, character for character.
  • Automatic tools: the keys are set by the tool, so copy them as they are: vwo-14, and the variation ids as the tool shows them.
  • Link parameter and one line: you choose the keys. A short name for the test (pdp-trust) and a letter per version (A, B) are enough.

Checking it works

  1. Open the page once with each version showing: with the link parameter, open each address; with a testing tool, use a private window until each version has shown.
  2. The platform refreshes once a day. After the next daily update, the test in the platform shows visitors under each version.
  3. If a version stays at zero and a key appears under “Versions the tracker saw that are not on this test”, the keys don’t match. Correct the key in the platform or in the tool.

If your device is left out as internal traffic (opened with ?denuo_internal=1), your own visits don’t count. Check from another browser or device, or undo it with ?denuo_internal=0. For checks in the browser’s Network tab, see Testing on the technical page.

Sizing and reading results

Before a test starts, the sample size calculator shows how many visitors each version needs and how long that takes at your traffic.

In the platform, each version shows its visitors, how many reached the goal, the rate, the change against the control, and a confidence figure. Confidence comes from a two-sided test of each version against the control; 95% or more counts as a result. To check figures from another source, use the significance calculator.

Privacy

Test versions add no cookies. The version is stored with the visit, like the tracker’s other events, and follows the same consent rules: in strict mode nothing is sent before consent, test versions included. Only the tool, the test and version keys, and the names the tool gives them are sent, so keep personal data out of test and version names. The rest is on the Privacy and GDPR page.

Questions

Our testing tool isn’t on the list.
Use the link parameter if the tool sends each version to a different address, or the one line in each version otherwise. Both work with any tool.
A visitor saw both versions.
They count for the first version they saw, and only for that one.
Does Miguel need to know about each test?
The test needs to be in the platform with its key and versions. If it isn’t, send Miguel the test’s name, the tool and the test’s id (or the key you chose), and he adds it.
The platform shows fewer visitors than our testing tool.
The two tools count in different ways: consent, ad blockers and bots all play a part. The reasons are listed under Why numbers differ from other tools. The comparison between versions stays fair, because the same rules apply to every version.
Something else.
Email Miguel at hello@denuomarketing.com with the test key and your site id (it is in your tracker code after ?site=). Miguel replies within 2 business days.