> ## Knowledge Base Index
> Fetch the complete knowledge base index at: https://help.trustmary.com/sitemap.xml
> Use this file to discover available pages before exploring further.
> Pure-Markdown content can be obtained by appending a '.md' suffix to the content URLs listed in the sitemap (without the trailing slash).

# How to create A/B tests

Start creating an A/B test by navigating to the **A/B tests** section in Trustmary. From here, you can find the **Create new** button in the top right, which transports you to the editor.

![](https://storage.crisp.chat/users/helpdesk/website/b7f8ac5aa008a000/93843a36-5043-41e0-9999-9fd32e_1wmogfe.png)
In the editor, you're greeted with the widget selection and all the settings you can configure.

The first item on the page is **the widget selection**.

![](https://storage.crisp.chat/users/helpdesk/website/e13ddd18464d8800/763df064-cd74-47d8-b4a7-2b53a7_11mku0x.png)
Here you can select any two of your widgets, or compare one against empty.

![](https://storage.crisp.chat/users/helpdesk/website/b683ed58709a0800/a099bc96-0d75-4474-ab6a-764bd0_1irbis8.png)
The next sections include the experiment type selection (only A/B test at the time), the experiment objectives, and the length of the experiment.

![](https://storage.crisp.chat/users/helpdesk/website/df7323c2bb626000/bd8162f9-35cb-4695-93d2-226cce_z6airk.png)
Next up are the same settings you would find in the widget editor. These differ a bit depending on which widgets you selected before (inpage or popup). For example, you can set which pages the popups activate on and what triggers it.

![](https://storage.crisp.chat/users/helpdesk/website/ebd8565fad7ab800/59353048-045c-4f5e-9d22-b10ec7_xdr0k9.png)
You can also set automatic weighting when experimenting with two widgets by clicking the **Add rule** button. This automatically favors the better performing widget when a certain treshold is crossed.

![](https://storage.crisp.chat/users/helpdesk/website/fde6e29f4f305000/c563e1fc-3d1d-4fe7-bd2d-c67ec9_ckj61r.png)
Next you can select which of the widgets is shown when the experiment is not running, or if you'd like to display nothing.

![](https://storage.crisp.chat/users/helpdesk/website/8699425278845800/2ac8d0b3-ea76-47a2-85dd-0525f9_1k0zfre.png)
If at least one of your widget is an inpage widget, you will also get the embed code for the experiment at the bottom of the screen. Note, that this is not the same embed code as the ones under your widgets.

![](https://tawk.link/63c911a247425128790e845b/kb/attachments/YrpE_AfORp.png)
Finally, you can check that your widget script is installed correctly onto your site, and click **Start experiment** to start the test.

![](https://tawk.link/63c911a247425128790e845b/kb/attachments/_S3e5yRdBL.png)
After starting, you can view the performance metrics and settings of your experiment. The data can also be exported with the **Export to file** button and from the top right corner you can stop the experiment by clicking **End**.

![](https://tawk.link/63c911a247425128790e845b/kb/attachments/vKut1lTqwq.png)