Skip to content

Core Concepts

Understanding the key concepts in Experiment Plus.

Feature Flags

Feature flags (also called feature toggles) let you turn features on or off without deploying code.

Use cases:

  • Gradual rollouts
  • Kill switches
  • A/B testing
  • User segmentation

Experiments

Experiments let you test variations and measure their impact with statistical significance.

Components:

  • Control: The baseline (usually your current implementation)
  • Variants: Alternative versions to test
  • Metrics: What you're measuring (conversion, revenue, etc.)

Events

Events are user actions you track to measure experiment impact.

typescript
// Track a conversion event
await client.track('purchase_completed', {
  userId: 'user-123',
  properties: {
    amount: 99.99,
    currency: 'USD'
  }
})

Targeting Rules

Control who sees what with targeting rules:

  • User attributes: country, plan, signup date
  • Percentage rollout: show to X% of users
  • Specific users: target by user ID
  • Segments: predefined user groups

Statistical Significance

We automatically calculate when results are statistically significant, so you know when you can trust the data.

Built with VitePress