![app-specific-guide-header-image](https://res.cloudinary.com/doznx7l91/image/upload/v1694086995/prompt_logo_c00c0b69b8.png)
How to Use Custom Events for A/B Testing
Welcome to our definitive guide on utilizing custom events for A/B testing. By embracing custom events in your A/B tests, you stand to benefit from a more nuanced understanding of user behavior, paving the way for data-driven decisions that can significantly uplift your conversion rates.
1
Navigate to Campaigns
Login to Customer.io and go to the Campaigns tab usually located at the left-hand side menu.
2
Create New Campaign
Click the 'New Campaign' button, usually located at the top-right corner of the Campaigns page.
3
Fill Out the Campaign Details
Fill in all relevant details for your campaign, including the name, description, and any other settings. Make sure to give your campaign a name that's easy to remember and identify later.
4
Choose Your Target Audience
Select the audience you want to target with this campaign. This could be a specific segment or the entire customer base.
5
Add Email to Your Workflow
Navigate to the campaign's workflow and drag the 'Email' action from the available options into the sequence.
6
Click 'Turn On A/B Test'
Find and click the 'Turn On A/B Test' option, usually visible once you've added an email to the workflow.
7
Design Your Variant Emails
Create multiple email variants, inserting personalized elements based on the custom event, for example, {{objects.online_classes[0]}}.
8
Assign Distribution Weight
Here, you can assign the distribution weight for each variant, which determines how frequently each will be displayed to the test audience.
9
Review and Start Campaign
Go through all your settings to make sure everything is set up correctly. If everything looks fine, hit the 'Start Campaign' button to set your campaign live.
You have now mastered the art of using custom events for A/B testing, equipping you with the knowledge to create more targeted and effective tests that are grounded in real-time, actionable data. As you forge ahead, always remember that the power of A/B testing lies in its iterative nature; continually refining your approach through careful analysis of custom event data will be your gateway to sustained success.