Skip to content

ImpressionRecorder

Defined in: analytics.ts:137

Records at most one impression per island per page view.

The guard is an instance, not a module global, so two islands on one page each get their own — while a single island being re-rendered, re-subscribed or double-invoked by React strict mode gets exactly one.

new ImpressionRecorder(context): ImpressionRecorder

Defined in: analytics.ts:140

AnalyticsContext

ImpressionRecorder

get hasFired(): boolean

Defined in: analytics.ts:142

boolean

record(detail): boolean

Defined in: analytics.ts:147

Idempotent. Returns true only for the call that actually recorded.

ImpressionDetail

boolean