Guide/A/B test a campaign

Test two versions. Keep the one that gets the click.

Show version A to half of your campaign visitors and version B to the other half, count who clicks your button, then publish the winner. Everything is decided before the page is sent, so visitors never see the other version flash by.

Campaign link50/50 splitOne count per browserPublish the winner

An A/B test answers one question: which of two versions makes more visitors click your button? Fastpage runs it on the visitors of one campaign link, for example the link of your Instagram ad or of your newsletter.

The essentials

You place the blocks of version A and version B on your page, then open Test a variant in a Block Visibility Rules block. Visitors who arrive with your campaign link are split 50/50 and each one keeps the same version. Your page counts visitors and clicks on the button you chose for each version. When you are happy with the result, you publish A or B.

How the test works #

WhoWhat they seeCounted?
A visitor arriving with your campaign link, test runningA or B, drawn at random on the first visit, then always the same version on that browserYes, once per browser
A visitor with no campaign link, or another campaignVersion ANo
You, in the editor previewVersion A, or the version you open with Preview A / Preview BNo
Anyone, while the test is in Draft or publishedA in Draft, the published version for campaign visitorsNo

The version is chosen on our server before the page is sent: the blocks of the other version are simply not in the page. There is no flicker and no script to load.

The campaign is recognised by the utm_campaign part of the link, for example fastpage.app/yourpage?utm_campaign=spring-sale. It must match the name you enter in the test exactly, including upper and lower case.

Before you start #

  1. Choose one change to test

    A headline, a button text, an offer, a photo. Change one thing at a time: if A and B differ on three things, you will not know which one made the difference.

  2. Build both versions on the page

    Keep your current blocks as version A. Add the blocks of version B next to them (for example a second heading and a second button). Blocks that both versions share (your photo, your links) stay as they are and are not part of the test. You can draft the new copy with the AI assistant.

  3. Pick the button that counts as a success

    One button in A and its twin in B: the one you want visitors to click (Book, Buy, Contact). The test measures clicks on that button only.

  4. Choose a campaign name

    Letters, numbers, dashes or underscores, for example spring-sale. It is the name you will put in the link of your ad or email.

Set up the test #

  1. Add or open a Block Visibility Rules block

    In the editor, add the Block Visibility Rules block (or open the one you already have) and unfold Test a variant.

  2. Fill in the test

    Campaign name used in the link: your campaign name. Blocks of version A and Blocks of version B: the numbers of the blocks of each version, separated by commas (the # number shown on each block in the rules). Button measured in A and Button measured in B: the number of the button of each version. A block cannot be in both lists.

  3. Save in Draft and check

    Leave Status on Draft (show A) and click Update. Reload the editor: Preview A and Preview B appear. Open both to check what each visitor will see. If a red message says the test is not valid, check the campaign name and that each version has its own blocks.

  4. Start the test

    Choose Run 50/50 test, click Update, then share your campaign link in your ad, email or post.

Tip

Keep the blocks of the test switched on and out of other visibility rules while it runs: a block hidden by another rule cannot be seen, so it cannot be clicked.

The four statuses #

StatusCampaign visitors seeResults
Draft (show A)Version ANot counted. Use it to prepare and preview.
Run 50/50 testA or B, half each, the same version on every returnCounted
Publish AVersion A onlyCounting stops, past results stay
Publish BVersion B onlyCounting stops, past results stay

Read the results #

Reload the editor and open Test a variant. A table shows, for A and for B:

ColumnMeaning
VisitorsBrowsers that saw this version through the campaign link. A visitor who comes back is not counted again.
Button clicksOf those visitors, how many clicked the measured button. At most one click per visitor.
Click rateButton clicks divided by visitors. This is the number to compare.

Fastpage does not tell you when the difference is certain. With few visitors, a lead can be pure luck. Wait until both versions have had plenty of visitors and the gap stays the same for several days before you decide. A small gap on a small audience is not a winner.

Changing the campaign name, the blocks of a version or a measured button starts a new series: the table starts again from zero. Your earlier figures are kept and come back if you restore the same settings.

Publish the winner #

Choose Publish A or Publish B and click Update. Campaign visitors now all see that version. Visitors without the campaign link still see A.

If B won and you want everyone to see it, make it permanent: copy the winning text into the version A blocks (or delete the A blocks), then remove the test by emptying the campaign name.

Good practices #

  • One change per test, one goal button per version.
  • Do not edit the texts of A or B while the test runs: you would be comparing something else.
  • Run the test over full weeks, so weekdays and weekends are both in it.
  • Form submissions are not part of the click rate. You find them in your contacts.
  • To change the text for a visitor without a test, use a merge tag. To show different blocks to a whole campaign, see Personalize a page for a campaign.

Frequently asked questions #

Why do my results stay at zero?

Check that the status is Run 50/50 test, that the link you shared contains utm_campaign= followed by exactly your campaign name, and that you are not testing from the editor preview, which is never counted.

Can a visitor see both versions?

Not on the same browser: the version is remembered. The same person on another phone or browser counts as a new visitor and may get the other version.

Does the test slow my page down?

No. The choice is made on the server and the other version's blocks are not sent at all.

Can I test more than two versions?

One test compares two versions. Test the winner against a new challenger afterwards.

Can I run several tests at the same time?

Yes, with one Block Visibility Rules block per test and a different campaign name for each, so their visitors never mix.