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

  1. Graham George on October 8, 2023 at 8:36 pm

    Agency Only: [[ab_split_test_report]]

    Does not work on the LTD version of the plugin atm.

    • Tom on October 11, 2023 at 1:40 pm

      Sorry there was an issue with the article, it’s now been updated. It is a single square bracket around ab_split_test_report



Leave a Comment

You must be logged in to post a comment.

SEARCH DOCUMENTATION

"thank you as always for the great app and your support"
"wow, it's deceptively powerful"
"I love how the AI comes up with compelling alternatives"
This is a test, did you notice?