Creating Variations

Back to Documentation

Setting Up A/B Test Variations

SwapTopic allows you to create multiple content variations to test which performs best with your audience.

Creating Your First Variation

  1. Select the page path where you want to add personalization
  2. Choose a rule type (First Time Visitor, Returning Visitor, etc.)
  3. Enter the HTML element selector to target (e.g., h2, .hero-heading, #main-cta)
  4. Enter your content in the “Variation A” field

Adding Multiple Variations

  1. Click the “+ Add Variation” button to create Variation B
  2. Enter alternative content for this variation
  3. Adjust the percentage weight for each variation (e.g., 50% / 50% for equal testing)

Managing Variation Weights

  • Each variation has a percentage weight that determines how often it’s shown
  • Total weights must add up to 100%
  • Adjust weights by changing the number in each variation’s weight field
  • Examples:
    • 50% / 50%: Equal testing between two variations
    • 80% / 20%: Show Variation A more frequently than B
    • 100% for a single variation (no A/B testing)

Testing Multiple Elements

  1. Click “+ Add Element” to target another HTML element on the same page
  2. Create variations for each element independently
  3. SwapTopic will handle all combinations consistently for each visitor

Analyzing Variation Performance

After your variations have been live, review their performance:

  1. Navigate to the Analytics & Tracking section
  2. View metrics for each variation:
    • Views: How many times each variation was shown
    • Conversions: How many visitors converted after seeing each variation
    • Rate: The conversion rate as a percentage

Based on these metrics, you can:

  • Adjust weights to favor better-performing variations
  • Replace underperforming variations with new ideas
  • Move successful variations to 100% weight once a clear winner emerges

Best Practices

  1. Start with meaningful differences between variations
  2. Let tests run long enough to gather significant data (100+ views per variation)
  3. Focus on one element at a time for clearer results
  4. Use clear, action-oriented language in your variations
  5. Consider how variations might perform across different segments