You can pass options to the assignment of the localyticsSession
variable in order to track various types of data.
Option |
Type |
Description |
Default |
appVersion |
string |
Your application’s version |
undefined |
networkCarrier |
string |
The current device’s carrier |
undefined |
polling |
number |
Frequency in milliseconds that Localytics polls for the end of a session |
10,000 |
uploadTimeout |
number |
Upload timeout in milliseconds |
60,000 |
sessionTimeoutSeconds |
number |
Timeout in seconds until Localytics marks the session as closed |
30 |
session |
number |
Maximum number of characters Localytics is allowed to use from the
localStorage |
100,000 |
loggers |
boolean |
Whether to enable console logging |
false |
var options = {
appVersion: "v1.5",
networkCarrier: "AT&T"
polling: 10000,
uploadTimeout: 60000,
sessionTimeoutSeconds: 30,
storage: 100000,
logger: true};
var localyticsSession = LocalyticsSession(APP_KEY, options);