Skip to main content

browser-tracker.localstorageeventstoreconfigurationbase.maxlocalstoragequeuesize

Home > @snowplow/browser-tracker > LocalStorageEventStoreConfigurationBase > maxLocalStorageQueueSize

LocalStorageEventStoreConfigurationBase.maxLocalStorageQueueSize property

The maximum amount of events that will be buffered in local storage

This is useful to ensure the Tracker doesn't fill the 5MB or 10MB available to each website should the collector be unavailable due to lost connectivity. Will drop events once the limit is hit

Signature:
maxLocalStorageQueueSize?: number;