Setting up Workflow for A/B testing
Prerequisite - Sitecore Analytics should be set up correctly.
To verify - select any component in Experience editor and make sure you see this icon
- A/B testing will be added as a step to a new or existing workflow.
- Here I am going to Copy the existing "Sample Workflow" to create my own workflow and add A/B testing.
- Workflow States -
- Under Awaiting Approval add the following commands (/sitecore/templates/System/Workflow/Command) with the below fields -
Approve with Test -
Field Value Next State Workflows/AB testing Workflow/Approved Appearance Evaluator Type Sitecore.ContentTesting.Workflows.TestCandidatesCommandStateEvaluator, Sitecore.ContentTesting Approve without Test -
Field Value Next State Workflows/AB testing Workflow/Approved Appearance Evaluator Type Sitecore.ContentTesting.Workflows.TestCandidatesCommandNameEvaluator, Sitecore.ContentTesting Reject -
Field Value Next State Workflows/AB testing Workflow/Draft Appearance Evaluator Type - Under Each command, add the following Actions -
- Approve with Test -
Add action "Launch Create Test Dialog" with template /sitecore/templates/System/Content Testing/Workflow/Launch Create Test Dialog Action.
Field Value Type stringSitecore.ContentTesting.Workflows.LaunchCreateTestDialogAction, Sitecore.ContentTesting Create Suggested Tests If No WizardChecked
- Approve without Test -
Add action "Remove Tests Action" with template /sitecore/templates/System/Content Testing/Workflow/Remove Tests Action.
Field Value Type stringSitecore.ContentTesting.Workflows.RemoveTestsAction, Sitecore.ContentTesting Delete Test Definition unchecked
- Reject has no action steps.
- Approve with Test -
Finally workflow looks like as under -