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.
ReadonlyinterceptorsInterceptors that can mutate/augment outgoing events or optimization state.
Protected Optional ReadonlyonOptional callback invoked when an event call is blocked.
ReadonlystatesExposed observable state references.
Send all queued events grouped by profile and clear the queue.
Optional flush controls.
Optionalforce?: booleanWhen true, bypass offline/backoff/circuit gates and attempt immediately.
Determine whether the named operation is permitted based on consent and allowed event type configuration.
The method name; component view/flag methods are normalized
to 'component', component click methods are normalized to 'component_click',
and component hover methods are normalized to 'component_hover' for
allow‑list checks.
true if the operation is permitted; otherwise false.
ProtectedreportPublish blocked event metadata to both callback and blocked event signal.
Reason the method call was blocked.
Product that blocked the method call.
Name of the blocked method.
Original blocked call arguments.
Queue a component click event for the active profile.
Component click builder arguments.
A promise that resolves when the event has been queued.
Queue a component hover event for the active profile.
Component hover builder arguments.
A promise that resolves when the event has been queued.
Queue a component view event for the active profile.
Component view builder arguments.
A promise that resolves when the event has been queued.
Queue a flag view event for the active profile.
Flag view builder arguments.
A promise that resolves when the event has been queued.
Analytics implementation that maintains local state (consent, profile) and queues events until flushed or the queue reaches a maximum size.
Remarks
Repeated flush failures are managed by the configured QueueFlushPolicy using bounded backoff and a temporary circuit-open window.