# A/B Testing with Confidence Variables

**URL:** <https://community.hubspot.com/t/a-b-testing-with-confidence-variables/147377>\
**Category:** Email Marketing Tool\
**Tags:** best-practices\
**Created:** [March 17, 2026, 10:40pm UTC](https://community.hubspot.com/t/a-b-testing-with-confidence-variables/147377 "2026-03-17T22:40:42Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![taylorjamila](https://avatars.discourse-cdn.com/v4/letter/t/5daacb/32.png) [@taylorjamila](https://community.hubspot.com/u/taylorjamila)\
**Post date:** [March 17, 2026, 10:40pm UTC](https://community.hubspot.com/t/a-b-testing-with-confidence-variables/147377/1 "2026-03-17T22:40:42Z")

</div>

Hello,

Has anyone set up A/B testing with confidence variables? How did you complete this? Did you use a third party application or rely on Data/BI scripting?

---

<div class="post-metadata">

**Author:** ![STierney](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/stierney/32/186066_2.png) [@STierney](https://community.hubspot.com/u/STierney)\
**Post date:** [March 18, 2026, 12:19am UTC](https://community.hubspot.com/t/a-b-testing-with-confidence-variables/147377/2 "2026-03-18T00:19:11Z")

</div>

Hey @taylorjamila,  
Thanks for posting in the Community!  
I’d like to tag in a couple of Community experts to see if they have any advice for us on A/B testing with these variables. @Josh, @RomyFuchs1, and @HFisher7 - any insight here?  
Shane, Senior Community Moderator

---

<div class="post-metadata">

**Author:** ![GRajput](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/grajput/32/102020_2.png) [@GRajput](https://community.hubspot.com/u/GRajput)\
**Post date:** [September 28, 2026, 8:32am UTC](https://community.hubspot.com/t/a-b-testing-with-confidence-variables/147377/3 "2026-09-28T08:32:18Z")

</div>

Hi @taylorjamila

There are two approaches to handle this.

If you are already using HubSpot’s native A/B testing, you can export the results and use a BI/data-analysis layer such as Excel, Google Sheets, or Python to calculate statistical significance and confidence intervals; by this, you will get more control over the analysis.

The other option is to use a dedicated CRO/A/B testing platform that has built-in statistical significance and then integrate the results with HubSpot.

For a HubSpot-only setup, I would go with the data/BI approach if you only need the confidence calculation. You can take the A/B test data and calculate whether the observed difference is statistically significant rather than relying only on the raw performance difference shown in HubSpot.

The key is also to define the primary metric and required sample size before starting the test, rather than stopping as soon as variation comes.

I hope this helps you out. Please mark it as **Solution Accepted and Like** to help another Community member.  
This post was created with the assistance of AI tools

Thanks!

---

<div class="post-metadata">

**Author:** ![SBhat3](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/sbhat3/32/228848_2.png) [@SBhat3](https://community.hubspot.com/u/SBhat3)\
**Post date:** [October 1, 2026, 7:00pm UTC](https://community.hubspot.com/t/a-b-testing-with-confidence-variables/147377/4 "2026-10-01T19:00:22Z")

</div>

Hi @taylorjamila

I’ve looked into this before, and I’d separate the actual A/B test from the confidence calculation. HubSpot can handle the A/B test itself, but if you need a specific statistical confidence level, I wouldn’t try to force that logic into HubSpot properties or workflows.

The approach I’d use is to let HubSpot collect the test results, then send/export the variant-level data to a BI tool or a small script for the statistical calculation.

For example, if you’re testing an email CTA and have:

Variant A: 120 conversions from 2,000 recipients  
Variant B: 145 conversions from 2,000 recipients

You can calculate the conversion rate for each variant and then use a two-proportion statistical test to determine whether the difference is statistically significant. If you’re using a 95% confidence level, you’d typically look for a p-value below 0.05.

For a one-off or occasional test, I’d honestly just export the results and run the calculation in a spreadsheet/Python script. There’s not much benefit in introducing another platform just for that.

If you’re running these tests regularly, though, I’d automate it. HubSpot → data export/API → BI or Python → calculate confidence interval/p-value → report the result back to the team.

One thing I’d be careful about is repeatedly checking the results and stopping the test the moment it crosses 95% confidence. That can make the statistical result less reliable. It’s better to define the sample size/test duration and confidence threshold before starting the experiment.

So I’d personally keep HubSpot responsible for the experiment and raw results, and use BI/scripting for the statistical layer. That gives you much more flexibility without having to build a complicated workaround inside HubSpot.

---

<div class="post-metadata">

**Author:** ![IMakkar](https://avatars.discourse-cdn.com/v4/letter/i/b38774/32.png) [@IMakkar](https://community.hubspot.com/u/IMakkar)\
**Post date:** [November 17, 2026, 6:27am UTC](https://community.hubspot.com/t/a-b-testing-with-confidence-variables/147377/5 "2026-11-17T06:27:04Z")

</div>

Hi, @taylorjamila

I’d probably go with a third-party A/B testing tool if you’re planning to run tests regularly. It makes setting up variations, splitting traffic and tracking conversions much easier than building the whole process yourself.

Tools like VWO and Optimizely are worth looking at. They let you compare different page versions and track metrics like conversion rate, clicks and form submissions. They also provide statistical significance and confidence estimates to help you understand whether a change is actually making a difference.

If you prefer having more control over the analysis, you can also export the experiment data and use Python or Power BI to calculate conversion rates, confidence intervals and statistical significance. This works well if you already have your own reporting setup, but you’ll need to handle traffic allocation and experiment tracking separately.

One thing I’d pay attention to is sample size. Don’t stop a test just because one variation is performing better after a few days. Give both versions enough traffic and allow the test to run long enough to account for differences in visitor behaviour across days.

I’d keep an eye on the sample size throughout the test too. Even if one version starts performing better early on, it’s worth waiting for enough data before making a decision.

Note: I wrote this myself and just used AI to tidy up the wording.
