Skip to main content

Overview

batchTrack() sends an array of events to Analytiq in one single network request instead of one request per event. Use this when you need to track multiple events at the same time, like when a page loads and you want to record several things at once.

Signature

Parameters

BatchEvent object

Each item in the array is a BatchEvent with these fields:

Example

When to use batchTrack vs track

Example — App startup events

TypeScript