A/B Testing Images
This guide walks you through creating an A/B test experiment, embedding it in your site or emails, tracking events, and completing the test.
Prerequisites
- A Pictify API key
- At least two templates to test
Step 1: Create an Experiment
Create an A/B test with two variants:
The experiment is created in draft status.
Step 2: Start the Experiment
Step 3: Embed in Your Content
Email
Website
Each viewer automatically receives a variant based on the weight distribution.
Step 4: Track Events (Optional)
For server-side or custom tracking:
Always include a write key to prevent third parties from injecting fake events into your experiment.
Step 5: Complete the Experiment
Once you have enough data, declare a winner:
After completion, the experiment URL (/s/email-banner-ctr.png) serves only the winning variant.
Tips
- Check your quota first:
GET /experiments/api/quota shows your plan limits
- Run for at least 7 days to account for day-of-week variations
- Use at least 1,000 impressions per variant before drawing conclusions
- Enable auto-optimization with
banditConfig.enabled: true for low-traffic tests
- Set a fallback image so the experiment URL works even after the experiment expires