Skip to content

ImpressionRecorder

Defined in: analytics.ts:236

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:239

AnalyticsContext

ImpressionRecorder

get hasFired(): boolean

Defined in: analytics.ts:241

boolean

record(detail): boolean

Defined in: analytics.ts:246

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

ImpressionDetail

boolean