Preview URL parameters

A URL parameter can force an A/B test variant, so you can see each version on demand. Add ?test_variant=test to a page's URL to see your test's variant, or ?test_variant=control to see the original. Visits with these parameters don't count in your test results.

On this pageThe parametersWhich one to useWith other parameters in the URLGood to know

Updated November 28, 2026

The app builds these links for you in the test's preview dialog — see Preview a test on your site. This page explains what each parameter does, so you can build or share them yourself.

The parameters

Parameter

Example

What it does

test_variant=test

/pricing?test_variant=test

Shows the first variant of the tests on this page.

test_variant=control

/pricing?test_variant=control

Shows the original (control) version.

test_variant=<variant ID>

/pricing?test_variant=VARIANT_ID

Shows one specific variant, for tests with
several variants
. The preview dialog fills the ID in.

croforce_preview + croforce_preview_variant

from the preview dialog

Opens a test's preview, including a draft, on a chosen variant. Copy the whole link from the preview dialog — the IDs aren't the ones you see elsewhere.

croforce_quiz_preview

from the quiz builder

Shows a quiz's current draft on your page.

None of these visits count in your results: no test view is recorded for them, and a previewed quiz isn't counted.

Which one to use

You want to…

Use

Check a draft test before publishing it

The preview link or QR code from
Preview test
.

Check a live test's variant on your phone or another browser

?test_variant=test

See the original page while a test is live

?test_variant=control

Check a
redirect test
before or after it's live

?test_variant=test — it works on redirect tests that aren't active, too.

Show a quiz draft on your own page

The live preview from the quiz builder.

With other parameters in the URL

Use & when the URL already has a query string:

HTML
https://www.example.com/pricing?utm_source=newsletter&test_variant=test

When a redirect test sends you to its variant, the check parameters (test_variant, croforce_preview, croforce_preview_variant) are left off the destination URL, while your other parameters, like UTM tags, carry over.

Good to know

  • Nothing is remembered. The forced variant applies only to that page load. Open the next page without the parameter and you're back to your normal variant.
  • It applies to every test on the page. With two tests running on the same page, test_variant=test shows the first variant of both.
  • The tracking script must be on the page. Without it, the parameters do nothing — see Check your installation.
  • Bots are never put in a test, so these links don't work in tools that identify themselves as bots, like some screenshot services.

Frequently asked questions

Do preview visits count in my test results?

No. A visit forced with test_variant or opened from a preview link isn't counted as a view of the test, so it doesn't change your results.

Can I preview a test before it's live?

Yes. Use the preview link or QR code from the test's Preview dialog — it works on drafts. For redirect tests, test_variant also works before the test is live.

Why doesn't test_variant change anything?

The tracking script isn't on that page, the page doesn't match the test's page rules, or — for a visual editor test — the test isn't live yet. Use the preview link for drafts.

Was this article helpful?

Try it on your own site

Add a popup, form or quiz to your site in a few minutes and see what it does for your conversions.