Tweak flushAt and flushInterval for segment (#1235)
This commit is contained in:
parent
7068cbd043
commit
06bda6945e
1 changed files with 4 additions and 1 deletions
|
|
@ -15,7 +15,10 @@ export function init(config) {
|
|||
if (!global.analytics) {
|
||||
diagnosticId = config.DiagnosticId;
|
||||
const {height, width} = Dimensions.get('window');
|
||||
global.analytics = new Analytics(Config.SegmentApiKey, {flushAt: 1});
|
||||
global.analytics = new Analytics(Config.SegmentApiKey, {
|
||||
flushAt: 20,
|
||||
flushInterval: 10000
|
||||
});
|
||||
global.analytics_context = {
|
||||
app: {
|
||||
version: DeviceInfo.getVersion(),
|
||||
|
|
|
|||
Loading…
Reference in a new issue