1. Support
  2. Knowledge base
  3. Transaction monitoring
  4. Exclude A/B tests from transaction requests

Exclude A/B tests from transaction requests

We’re changing our user interface. Some info may not yet be up to date. Please check From classic to new UI.

A/B testing tools split the traffic to your web page by directing one group of users to version A and the other group of users to version B of your web page. Your transaction monitoring may generate errors due to your A/B testing because of the different page contents. For example, if you labeled a button in version A, “Add to cart,” and you labeled the same button in version B, “Add to shopping cart,” you will see errors if the script’s success relies on finding the text “Add to cart.” When the transaction monitoring script relies on finding an element that is only on version A of your page, the script will fail if it receives version B. You can prevent this error by excluding the URL for your A/B testing tool from the requests the Uptrends monitor performs on your site.

Note: Of course, this also applies to Real Browser Check and Full Page Check monitors if you’re performing a check for specific content and that content changes during an A/B test.

Excluding A/B testing tool URLs

To exclude the A/B testing tool URLs:

  1. Log into your Uptrends account.
  2. Click Monitors from within the Monitor drop-down on the main menu.
  3. Click the monitor to view the monitor’s details.
  4. Click to open the Advanced tab.
  5. Find the text field labeled, “Block these (parts of) URLs.”
  6. Type the URL for your testing tool into the text field. Place each excluded URL on its own line.
  7. Click Save.

That’s all you need to do. Once you add your excluded URLs, Uptrends doesn’t send an outgoing request to your A/B testing tool when checking your site. Without the outgoing request, Uptrends never triggers the A/B testing script.

Example

In the “Block these (parts of) URLS” provide the URL for your A/B testing tool; for example, if you use Visual Website Optimizer for your A/B testing, type visualwebsiteoptimizer.com in the field. If you use Optimizely, you need to exclude optimizely.com.

Note: Although we do actively filter the request coming from the excluded URL, we do include it in the waterfall report indicated by the response header “X-Blocked-By-Uptrends: true.”
By using the Uptrends website, you consent to the use of cookies in accordance with our Cookie Policy.