Skip to main content

i4w_splittest

Usage

This shortcode provides a mechanism to conduct content split testing based on a round-robin cycle.

Each new visitor is associated with a distinct split test and this association remains valid throughout the visitor's session (sticky). As such, content split testing can be carried out over a series of pages and posts.

Multiple, distinct split tests can be conducted for each user.

[ELSE_splittest] conditional branching is NOT supported.

Shortcode nesting is NOT supported.

Parameters

ParameterDescriptionDefaultRequired
nameThe name of the split test, case insensitive.NoneYes
caseThe case within a split test, must be an integer between 1 and "max_cases".1Yes
max_casesDetermines the maximum number of split test cases. When the maximum is reached, the next visitor is assigned case "1".NoneYes

Example

Shortcode
[i4w_splittest name='MySplitTest' case='1' max_cases='3']
Display content for visitors assigned to case "1" of split test "MySplitTest".
Content can be text, HTML, other shortcodes, order forms and web forms.
[/i4w_splittest]
Shortcode
[i4w_splittest name='MySplitTest' case='2' max_cases='3']
Display content for visitors assigned to case "2" of split test "MySplitTest".
Content can be text, HTML, other shortcodes, order forms and web forms.
[/i4w_splittest]
Shortcode
[i4w_splittest name='MySplitTest' case='3' max_cases='3']
Display content for visitors assigned to case "3" of split test "MySplitTest".
Content can be text, HTML, other shortcodes, order forms and web forms.
[/i4w_splittest]