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

Deprecated

use ExposureTrackingProvider instead

Hierarchy

  • ExperimentAnalyticsEvent

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.