Skip to main content

What is A/B Testing?

A/B testing shows different versions of your app to different users, then measures which performs better. Version A might have a blue button, version B a green button - data shows which gets more clicks. Why A/B test?
  • Remove guesswork from design decisions
  • Improve conversion rates with data
  • Validate changes before rolling out to everyone

Simple A/B Test

Start with a basic two-variant test:
Set up in Grain Dashboard:
  1. Create config key: hero_variant
  2. Set values: A for 50% of users, B for the other 50%
  3. Track which variant converts better

Multi-Variant Testing

Test more than two options:
Test multiple variants to find the optimal price and messaging.

Component-Based Testing

Swap entire components:
Test completely different design approaches.

Tracking Test Results

Track when users see and interact with variants:
Now you can compare conversion rates: test_converted / test_viewed for each variant.

Personalized Testing

Combine A/B testing with user segmentation:
Set rules in the dashboard to show different variants based on user properties.

Button Style Test

Test button designs:

Feature Launch Testing

Test new features with a subset of users:
Start with 10% of users, gradually increase if metrics improve.

Best Practices

1. Test One Thing: Change one element at a time to know what caused the difference.
2. Track Both Impressions and Conversions: Know how many saw each variant and how many converted. 3. Run Tests Long Enough: At least 1-2 weeks to account for day-of-week variations. 4. Significant Sample Size: Need enough users to draw conclusions (typically 1000+ per variant). 5. Document Tests: Track what you’re testing and why in your dashboard.

Analyzing Results

After running your test, compare metrics in the Grain Dashboard:
  • Impressions: How many saw each variant
  • Conversions: How many completed the goal action
  • Conversion Rate: Conversions / Impressions
  • Statistical Significance: Is the difference real or luck?

Gradual Rollout

Once you have a winner, roll it out gradually:
This catches any issues before full deployment.

Next Steps

Remote Config

Learn about configuration management

Feature Flags

Control features with flags

Analytics Dashboard

Build analytics dashboards