How Does Nelio A/B Testing Work?

Nelio A/B Testing helps you improve your website by comparing different versions of your content and measuring which one performs best. It automatically shows different visitors different variants, tracks how they interact with each one, and analyzes the results so you can make data-driven decisions.

Although everything happens seamlessly, the process involves three main components working together.

The Three Main Components

Nelio A/B Testing works by combining three components that handle test creation, variant delivery, and data processing:

1. WordPress Plugin

The Nelio A/B Testing plugin integrates directly into your WordPress dashboard. From there, you can:

  • Configure the plugin’s settings.
  • Create and manage tests.
  • Create variants using the WordPress editor.
  • Define conversion goals.
  • Review reports and statistics.

Everything is managed without leaving WordPress.

2. Tracking Script (JavaScript)

Each page on your website includes a lightweight JavaScript tracking script.

When a visitor loads a page, the script:

  • Determines whether the page is part of an active test.
  • Assigns the visitor to a variant (or retrieves an existing assignment).
  • Ensures the visitor always sees the same variant throughout the test.
  • Tracks page views and conversion events.
  • Sends anonymous tracking data to Nelio Cloud.

The tracking script is optimized for performance and designed to work alongside modern caching solutions.

3. Nelio Cloud

Instead of processing test data on your WordPress server, Nelio A/B Testing sends tracking information directly to Nelio Cloud.

Nelio Cloud:

  • Stores page views and conversions.
  • Processes test statistics.
  • Generates reports.
  • Builds heatmaps and session recordings (when enabled).

Offloading analytics to the cloud keeps your WordPress site fast while providing reliable, up-to-date results.

What happens when a visitor loads a page?

Whenever a user accesses a page /some-page/ in your site, this is what happens:

  1. The visitor requests a page.
  2. The tracking script checks whether the page is part of an active test.
  3. If the page is under test, the visitor is assigned to the appropriate variant (or their previous assignment is reused).
  4. The correct version of the page is displayed.
  5. As the visitor interacts with the page, Nelio tracks page views and conversion events and sends the data to Nelio Cloud.

🔎 Learn more in How Variant Delivery Works Internally

Performance and Caching

Nelio A/B Testing is designed to work efficiently with modern WordPress websites.

Depending on your site’s configuration, variants can be delivered using different mechanisms to maximize compatibility and performance, including support for cache plugins and dynamic caching solutions.

🔎 Learn more in How Nelio A/B Testing Works With Cache Plugins and CDNs

Debugging Tests

If you’re validating a test before launching it, you can use the built-in Debug Tools.

When your site is in Staging Mode (or when using the nabstaging query parameter), the Debug panel lets you verify in real time:

  • whether tracking is active;
  • which variant has been assigned;
  • which tests affect the current page; and
  • which page views and conversion events are being recorded.

This makes it easy to confirm that your tests are working correctly without opening your browser’s developer tools.

🔎 Learn more in: