setOfflineCacheSize
The setOfflineCacheSize() method sets the size limit for storing events in local storage. The default value is 4 Mb (4x1024x1024 bytes).
Syntax
tracker.setOfflineCacheSize(bytes);
tracker.offlineCacheSize = bytes
Parameters
bytes (number, required)
The size limit (in bytes) for storing events in local storage. Default value: 4 Mb (4x1024x1024 bytes). If 0 is set, the size is unlimited.
Examples
To set the size limit to 2 Mb (2 x1024x1024 bytes):
tracker.setOfflineCacheSize(2 * 1024 * 1024);
tracker.offlineCacheSize = 2 * 1024 * 1024
Related methods
Updated 6 days ago