Create a new stateful analytics instance.
Options to configure the analytics product for stateful environments.
Protected Optional ReadonlyallowedAllow‑list of event type keys permitted when consent is not present.
Protected ReadonlyapiOptimization API client used to send events to the Experience and Insights APIs.
Protected ReadonlybuilderEvent builder used to construct strongly‑typed events.
ReadonlyduplicationDeduplication helper used to track previously seen values within optional scopes
ReadonlyinterceptorsInterceptors that can mutate/augment outgoing events or optimization state.
ReadonlystatesExposed observable state references.
Determine whether the named operation is permitted based on consent and allowed event type configuration.
The method name; 'trackComponentView' is normalized
to 'component' for allow‑list checks.
true if the operation is permitted; otherwise false.
Guard used to suppress duplicate component/flag view events based on a duplication key and the component identifier.
The operation name (unused).
Tuple of [builderArgs, duplicationScope].
true if the event is NOT a duplicate and should proceed.
Hook invoked when an operation is blocked due to missing consent.
The blocked operation name.
The original arguments supplied to the operation.
Hook invoked when an operation is blocked by the duplication guard.
The blocked operation name.
The original arguments supplied to the operation.
Reset analytics‑related signals and the last emitted event.
Queue a component view event for the active profile.
Component view builder arguments.
Optional string used to scope duplication (used
by guards); an empty string '' is converted to the undefined scope
Queue a flag view event for the active profile.
Flag view builder arguments.
Optional string used to scope duplication (used
by guards); an empty string '' is converted to the undefined scope
Analytics implementation that maintains local state (consent, profile) and queues events until flushed or the queue reaches a maximum size.