Experiment JS Client Documentation - v1.16.1
    Preparing search index...

    Interface ExperimentAnalyticsEvent

    Analytics event for tracking events generated from the experiment SDK client. These events are sent to the implementation provided by an ExperimentAnalyticsProvider.

    use ExposureTrackingProvider instead

    interface ExperimentAnalyticsEvent {
        key: string;
        name: string;
        properties: Record<string, string>;
        user: ExperimentUser;
        userProperties?: Record<string, unknown>;
        userProperty: string;
        variant: Variant;
    }
    Index

    Properties

    key: string

    The key of the flag/experiment that the user has been exposed to.

    name: string

    The name of the event. Should be passed as the event tracking name to the analytics implementation provided by the ExperimentAnalyticsProvider.

    properties: Record<string, string>

    Event properties for the analytics event. Should be passed as the event properties to the analytics implementation provided by the ExperimentAnalyticsProvider. This is equivalent to

    {
    "key": key,
    "variant": variant,
    }

    The user exposed to the flag/experiment variant.

    userProperties?: Record<string, unknown>

    User properties to identify with the user prior to sending the event. This is equivalent to

    {
    [userProperty]: variant
    }
    userProperty: string

    The user property for the flag/experiment (auto-generated from the key)

    variant: Variant

    The variant of the flag/experiment that the user has been exposed to.