Skip to content

createClickIngestor

function createClickIngestor(options): ClickIngestor;

Defined in: src/clicks/ingestor.ts:65

Create a batching ingestor in front of an analytics sink.

Parameter Type
options ClickIngestorOptions

ClickIngestor

const ingestor = createClickIngestor({ sink: createKvAnalytics({ storage }) });
ingestor.capture(clickEvent);
await ingestor.close(); // graceful shutdown