AB Split Test Conversions – Updated Guide

AB Split Test supports nine conversion (goal) types, offering flexible ways to track user actions. From simple page visits to custom code triggers.

  1. Page or Post Visit

  2. URL

  3. Text on Page

  4. Element Click

  5. Link Click

  6. Time Active

  7. Conversion Block / Module / Element Class

  8. JavaScript

  9. Conversion Pixel (same domain only)

URL 

The URL Visit goal triggers a conversion when a specific URL path on your own site (e.g. /checkout/thank-you/) is visited. It’s useful for tracking dynamic or custom URLs not listed in the Page dropdown, but it won’t work with external sites like Calendly or YouTube.

Screenshot of a web form for setting a conversion goal trigger, with a URL option selected and a sample URL entered: "your-conversion-page?maybe=this#orthat".


PAGE OR POST VISIT

Select a Page from the dropdown that will trigger a conversion in the same way as the URL conversion method above.

A dropdown menu displays page options to set as a conversion trigger in a website settings interface, with "7: SHOP : [PAGE] shop" selected.


TEXT ON PAGE

Text on Page is a conversion goal type that triggers when a specific piece of text appears on the page—usually as part of a confirmation or thank-you message after a form is submitted, a booking is completed, or a purchase goes through.

Screenshot of a "Conversion / Goal Trigger" settings page, showing a goal set to trigger when the text "Thanks for reaching out!" appears on a page.


ELEMENT CLICK

A super flexible conversion selector used to track when a user clicks on a button or any other element using CSS selectors.

You can define a click of any element with CSS selectors you can think of. More information on all the options here

  • Element with an ID
    Use the # operator
    Example: #mybutton

  • Element with a class
    Use the . operator
    Example: .mybutton

  • Link pointing to an external URL
    Use an attribute selector
    Example: a[href*='yoururl']

Advanced Mode:
To trigger a conversion on an event other than click, use advanced mode by adding a pipe | and the event type.
Example: #buy|mousedown


LINK CLICK

Link Click conversion tracks when someone clicks a specific URL on your page. Works with external or internal links.

Screenshot of a web form for setting a conversion goal trigger, with "Link Click" selected and "thank-you" entered as the link pattern.


TIME ACTIVE

Fires after a user has been actively engaging (scrolling, moving, tapping) for a set number of seconds (e.g. 30s). Great for engagement-based conversions.

A settings page for configuring a conversion goal trigger based on user time active, with a field set to 2 seconds before a conversion is triggered.


CONVERSION BLOCK / MODULE / ELEMENT CLASS

Automatically trigger conversion when a specific CSS class (e.g. ab-123 ab-convert) appears on the page. Useful for template or code-driven triggers.

A form shows a dropdown for selecting “Conversion Block / Module / Element Class” and a text box with “ab-1653 ab-convert” entered, plus setup instructions and a “view page »” link.


JAVASCRIPT

The JavaScript conversion method is an advanced method for coders.

The function abstConvert(TestId) is all you need to trigger a conversion with JavaScript.

You'll need a few things for this to work.

  • Wait until document.ready to fire a conversion.
  • You need the Test ID.

Conversion Value

On Agency plans and above, you can include an order value with your conversion.

abstConvert(TestId, orderValue);

If you want to fire a conversion on an external URL page, we recommend using the external conversion pixel

You can see the prefilled script with the ID included by selecting the JavaScript Conversion method.


CONVERSION PIXEL (SAME DOMAIN ONLY)

Similar to the old external pixel, but restricted to same-domain usage useful in headless setups or custom tracking scenarios.

Screenshot of a webpage demonstrating how to set up a conversion pixel, including a dropdown menu and an HTML snippet for embedding an invisible 1px image.

Leave a Comment

You must be logged in to post a comment.