AB Split Test has a few great ways to allow you to simple create an AB test "conversion"
URL visit
Page visit
External URL Conversion Script
Element Click Selector
JavaScript
Time Active
CSS class loaded
Enter the URL of a page on this website that will trigger a conversion when the page is loaded.
When you hit save, we parse tyhe URL to make sure it points to a page on your WordPress website. Check back to see that we have correctly parsed the URL to a page on your website.
Examples that would work, assuming the pages/posts exist.
/checkout/
/subscribe/thankyou/
The following would NOT work
https://google.com (no external URL's)
Select a Page from the dropdown that will trigger a conversion in the same way as the URL conversion method above.
Trigger Woo conversion on order complete or other special Woo events. Scroll to the bottom of the conversion page dropdown to see.
Choose the cart or checkout page here, rather than messing with URLS. Scroll to the bottom of the conversion page dropdown to see.
\
See the external conversion pixel help guide
A super flexible conversion selector, this can be used for button clicks, or using the power of CSS selectors to choose almost element.
You can define a click of any element with CSS selectors you can think of. More information on all the options here
Use the "#" operator to denote an ID
e.g. #mybutton
Use the "." operator to denote an class
e.g. .mybutton
Use a[href*=' yoururl']" to target any a link pointing to that URL
If you want to trigger a conversion on an event other than click - you can use advanced mode
Your element selector, then add a pipe "|" then event type. e.g. #buy|mousedown
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.
Trigger a test conversion after x seconds of user activity
If you want to hardcode in a website conversion on page load. Add this CSS class to anywhere on the page and the conversion will trigger.
Careful not to add the code to every page via a header, footer or page template, unless you want every page to trigger a conversion.
Add these 2 classes to trigger a conversion
ab-{test id} ab-convert
where {test-id} is the ID of your test. Grab your test ID by viewing your test, then looking for the post={test id}