Skip to main content
Required ACL: analytics

Usage

// Initialize the client
var client = new AbtestingClient(
  new AbtestingConfig("ALGOLIA_APPLICATION_ID", "ALGOLIA_API_KEY", "ALGOLIA_APPLICATION_REGION")
);

// Call the API
var response = await client.EstimateABTestAsync(
  new EstimateABTestRequest
  {
    Configuration = new EstimateConfiguration
    {
      EmptySearch = new EmptySearch { Exclude = true },
      MinimumDetectableEffect = new MinimumDetectableEffect
      {
        Size = 0.03,
        Metric = Enum.Parse<EffectMetric>("ConversionRate"),
      },
    },
    Variants = new List<AddABTestsVariant>
    {
      new AddABTestsVariant(new AbTestsVariant { Index = "AB_TEST_1", TrafficPercentage = 50 }),
      new AddABTestsVariant(new AbTestsVariant { Index = "AB_TEST_2", TrafficPercentage = 50 }),
    },
  }
);
// >LOG

See the full API reference

For more details about input parameters and response fields.
I