Skip to content

trackkit / queues/types / QueuedEvent

Interface: QueuedEvent

Defined in: queues/types.ts:19

Base queued event structure used by the facade’s in-memory queue.

This captures enough information to re-dispatch the original facade call once policy allows (e.g. after consent is granted).

Extended by

Properties

id

id: string

Defined in: queues/types.ts:23

Unique identifier for this queued event.


type

type: EventType

Defined in: queues/types.ts:28

High-level event type ('track', 'pageview', 'identify').


timestamp

timestamp: number

Defined in: queues/types.ts:33

Timestamp when the event was enqueued (ms since epoch).


args

args: unknown[]

Defined in: queues/types.ts:42

Raw argument list for the facade method.

The concrete shapes are specialised in the more specific QueuedTrackEvent, QueuedPageviewEvent and QueuedIdentifyEvent types.


category

category: ConsentCategory

Defined in: queues/types.ts:49

Consent category this event belongs to.

Used by the consent gate and flushEssential/clearNonEssential.


pageContext?

optional pageContext: PageContext

Defined in: queues/types.ts:56

Snapshot of the page context captured at enqueue time.

May be omitted for some calls.

Released under the MIT License.