There are essentially two types of page tests you can run:
1. Regular Page Test
This is the standard approach, where the alternative version is created directly through our plugin. In this setup, the alternative content isn’t published as a separate page. Instead, it shares the original page URL (for example, https://example.com/some-page/) and is only shown when:
- The test is active, and
- A visitor is randomly assigned to that variant.
Since the same URL can now serve different versions of the page, we need a way to identify which version a visitor should see. That’s why you’ll notice the nab query parameter being used (for example, https://example.com/some-page/?nab=x, where x identifies the assigned variant).
2. Existing Pages Test
This method compares two pages that already exist on your site. It’s often used as a fallback when the regular page test isn’t suitable for a particular setup.
With this approach, you first create and publish the alternative page, which means it has its own URL separate from the original page. The test then compares those two URLs.
When a visitor lands on either page, our plugin checks whether they’re viewing the variant they’ve been assigned to. If not, it automatically sends them to the correct version.
Which option should you use?
If your goal is to have both variants share the same URL, in general I’d recommend using the Regular Page Test (option 1).
With an Existing Pages Test, each variant has its own URL by design. However, there’s a setting when creating the test that can make the experience look more seamless: URL rewriting. When enabled, the visitor may be redirected from the original page to the variant… but the browser then rewrites the URL to continue showing the original one.
For example:
- The visitor lands on
https://example.com/variant-a/
- Our plugin determines they should see Variant B
- We redirect them via JavaScript to
https://example.com/variant-b/
- The browser changes the URL (without a redirection) back to
https://example.com/variant-a/
So from the visitor’s perspective, it appears they’re still on the original page, even though they’re actually viewing the alternative version.