Skip to main content

Configuration

Hyppot provides several configuration options that can be customized during setup. Here's a comprehensive list of all available options and their default values.

Basic Configuration

When setting up Hyppot in your application, you can configure it using the AddHyppot extension method:

builder.Services.AddHyppot(config =>
{
// set the configuration options
});

Available Options

  • DbSetup, Type: IHyppotDbSetup, Required

    Setup of the persistence for experimentation data. You must reference the proper Hyppot DB provider NuGet package and pass the exposed Db Setup class instance.

    Available values: SqlServerDbSetup (available in Hyppot.Sqlserver Nuget Package), PostgreSqlDbSetup (available in Hyppot.Postgresql) and SqliteDbSetup (Hyppot.Sqlite).

  • AdminAuthorizationPolicyName, Type: string, Default: "Hyppot.Admin"

    The name of the authorization policy for the Hyppot admin UI. This policy must be defined in your application's authorization setup.

    Example:

    builder.Services.AddAuthorization(o => o.AddPolicy(HyppotConstants.DefaultAdminAuthorizationPolicyName, policy =>
    policy.RequireRole("Admin")));
  • ConversionWindow, Type: TimeSpan, Default: 24 hours

    The time window during which a conversion is considered after an impression to be associated with it. If a conversion occurs within this window after an impression, it will be linked to that impression.

  • ImpressionLength, Type: TimeSpan, Default: 24 hours

    Time window during which the impression is considered to last. If another attempt to track the impression is made during this time, it is ignored (unless an impression with different, explicitly provided deduplication key is tracked).

  • PathPrefix, Type: string, Default: "hyppot"

    The prefix for the path of the Hyppot API endpoints and Hyppot admin UI. This determines the base URL path where Hyppot will be accessible. If set to "custom-path", the admin panel will be available at /custom-path/panel.