Skip to main content

browser-tracker.setbuffersize

Home > @snowplow/browser-tracker > setBufferSize

setBufferSize() function

Set the buffer size Can be useful if you want to stop batching requests to ensure events start sending closer to event creation

Signature:
declare function setBufferSize(newBufferSize: number, trackers?: Array<string>): void;

Parameters

ParameterTypeDescription
newBufferSizenumberThe value with which to update the bufferSize to
trackersArray<string>The tracker identifiers which will be flushed
Returns:

void