Shortcodes
In many cases, WordPress shortcodes are a simple and easy way to trigger a conversion, or just test simple bits of text.
Agencies also get a special shortcode for automatic reporting.
Test Variations
Content inside your shortcode will be used as test content. Make sure you update the eid to your experiment ID and give the var a name
[ab_split_test eid="1234" var="default"]Buy Now![/ab_split_test][ab_split_test eid="1234" var="cart"]Add to cart[/ab_split_test]
Conversion
Trigger a conversion when a page with this shortcoad is loade. Replace EID with your experiment ID.
Not as useful, but you can also change type to selector and then update the selector value to a jquery selector that will trigger on click of the selected element.
[abtest_conversion eid="" type="load" selector=""]
Reports (Agency Only)
Display a report in your emails or create a results page on your website.
[ab_split_test_report]
2 Comments
Leave a Comment
You must be logged in to post a comment.
Agency Only: [[ab_split_test_report]]
Does not work on the LTD version of the plugin atm.
Sorry there was an issue with the article, it’s now been updated. It is a single square bracket around ab_split_test_report