Skip to content

Run an A/B test on a page

Last updated: October 20, 2025

Available with any of the following subscriptions, except where noted:

A/B testing allows you to test two versions of a page at the same URL to see which one performs better. Half of your visitors will see one version of the page, while the other half will see the alternate version. 

You can compare each version's performance in the page's performance data, then select a winning variation. This will set the winning variation as the only live version of the page and revert the other variation to draft. 

Before you get started

  • Learn more about how to run an A/B test from the HubSpot Marketing Blog.
  • Decide what you want to test. HubSpot recommends testing one variable at a time to track clear cause and effect.
  • Create a new page or choose an existing page to serve as the control version of your A/B test.

Set up an A/B test

You can run an A/B test on any published page. If your page is part of a multi-language group, you can run a test for each language variation.

  1. Navigate to your content:

    • Website Pages: In your HubSpot account, navigate to Content > Website Pages.
    • Landing Pages: In your HubSpot account, navigate to Content > Landing Pages.
  2. Click the name of your page. 
  3. In the left sidebar menu, click the testIcon Test icon and then click A/B test. You can also click File menu and select New > Run A/B test at the top of the page.
  4. In the dialog box, enter a name for each page variation, then click Create variation.
After clicking the test icon in the content editor, a dialog box is displayed. Two variations text input fields are shown and a create variation button.
  1. In the content editor, update the content for your page variation. It is recommended to consider testing the following variables:
    • CTAs: experiment with different CTAs. You could test a banner versus an embedded button on the page. 
    • Copy: experiment with the formatting and style of the content. You could test plain paragraphs versus bullet points or a longer block of text vs a shorter block of text.
    • Media: experiment with a different image or video to see how the conversion rate is influenced.
    • Form fields: experiment with the length of your form. You could test requesting only an email address versus asking for more information.

Please note: both versions of the page will have the same live URL, but different preview URLs for testing.

  1. To switch to the page variation you're editing, click the test test variation dropdown menu in the top left and select a variation.

In the content editor, an a/b test has been created. An arrow points to the variation dropdown menu on the top left.

  1. To begin the test, click Publish in the top right, then click Publish now in the dialog box. This will set both versions of your page live. 

Within the same session, visitors will be shown the same version of A/B tested content. Once a session ends, the version of content they are shown will be randomized for the next session. 

Review A/B test results

After your visitors have started engaging with both page variations, you can review the test results. 
  1. Navigate to your content:

    • Website Pages: In your HubSpot account, navigate to Content > Website Pages.
    • Landing Pages: In your HubSpot account, navigate to Content > Landing Pages.
  2. Hover over the name of the page with the A/B test, then click Performance.
  3. Click the Test results tab.
  4. Click the Date range and Frequency dropdown menus and select the timeframe of the results that you want to analyze.
A box is placed around the test results tab for pages. An arrow points to the date range and frequency dropdown menus to filter the test results on the page.
  1. Click a column header in the table to sort the results by a specific metric. 
  2. To choose a variation as the winner of the test, hover over the variation and click Choose as winner. The losing variation will no longer display. 

On the test results tab for pages, a table is displayed. A box is placed around the Choose as winner button when hovering over a variation of the page.

  1. If you want to rerun an A/B test on a losing variant, hover over the variation and click Rerun this variation.
On the test results tab for pages, a table is displayed. A box is placed around the Rerun this variation button when hovering over a variation of the page.

Please note: if you rerun a variation from an A/B test, the variation will be published immediately.  

Was this article helpful?
This form is used for documentation feedback only. Learn how to get help with HubSpot.