Web options

You can pass a number of options to the init method of your Localytics instance.

Option Description
appVersion Your app's version number
sessionTimeout Time in seconds until Localytics marks the session as closed. Default: 1800
customDimensions An array of custom dimension values. Use this to set custom dimensions before the first session.
domain Changes the domain used for cookies. Use this to track users across subdomains.
trackPageView Automatically track page view events. The default value is false.
ll('init', 'YOUR_APP_KEY', {trackPageView: true, domain: 'localytics.com'});