You may connect your device with Charles Proxy or a similar proxy tool in order to see the data being transmitted via Localytics. (Instructions for doing so may be found in This Article).
As you view your data being transmitted, each upload contains a list of all Localytics events (as JSON strings) in the order in which they occurred on the device. These events are grouped together in a “blob,” which contains a unique ID and sequence number, as well as a JSON header describing the blob and the common elements of its events.
Below are examples of each blob:
Blob Header
{
“dt”:“h”, // data type, h for header
"pa": int, // persistent store created at: when the app was launched for the
first time and the Localytics persistent storage was created (integer, seconds from Unix epoch)
“seq”: int, // blob sequence number, incremented on each new blob,
// remembered in the persistent store
"u": string, // A unique ID for the blob. Must be the same if the blob is re-uploaded!
“attrs”: {
“dt”: “a” // data type, a for attributes
"au":string // Localytics Application Id
"du":string // Device UUID
"s":boolean // Whether the app has been stolen
"j":boolean // Whether the device has been jailbroken
"lv":string // Library version
"av":string // Application version
"dp":string // Device Platform
"dll":string // Locale Language
"dlc":string // Locale Country
"nc":string // Network Country (iso code)
“dc”:string // Device Country (iso code)
“dma”:string // Device Manufacturer
"dmo":string // Device Model
"dov":string // Device OS Version
"nca":string // Network Carrier
"dac":string // Data Connection Type
"mnc":int // mobile network code
"mcc":int // mobile country code
"bs":string // Birth Session
"b":int // Birth Time (seconds since epoch)
“tdid”:string // Telephony Device Id (meid or imei) at install time
"ctdid":string // Telephony Device Id (meid or imei) at session start time
"iu":string // install id
"udid":string // client side hashed version of the udid
"cid":string // customer id
"cem":string // customer email
"adid":string // install time advertising ID
"cadid":string // current advertising ID
"vid":string //vendor id
"fbat":string // facebook attribution id for Android
"push":string //push ID
"dpush":string // developer push ID
"lad":string // limit advertising
"or":string //orientation l or p (landscape of portrait)
“aid”:string // Android ID at install time
"caid":string // Android ID at session start time
"pkg":string // Android package name (ie, com.company.app)
“bid”:string // iOS Bundle ID
},
“ids”: {
“key”:“value”
}
}
Session Start
{
“dt”:“s”, // data type, s for session
"ct": long, // seconds since Unix epoch
"u": string // A unique ID attached to this session
"nth": int, // This is the nth session on the device. First will be
// 1, then 2, …
“new”: boolean,
“sl”: long, // seconds since last session
"lat": double,
“lng”: double,
“c0” : string, (custom dimensions)
“c1” : string,
“c2” : string,
“c3” : string,
“utm”: {
“utm_source”:“Facebook”,
“utm_medium”:“Banner”,
“utm_campaign”:“Campaign Name”
}
}
Event
{
“dt”:“e”, // data type, e for event
"ct":1302559181,
“u”:“48afd8beebd3”,
“au":“086108ea1288ecd9e911b68-XXXXXXXX-f306-11e2-XXXX-00a426b17dd8” (App Key)
“su”:“696c44ebf6f”, (unique session Id; same as “u” in the Session Start or Session Close blob)
“v”: // Lifetime Value,
“n”:“Button Clicked”, // Event Name
"lat": double,
“lng”: double,
“or”: // Orientation p = portrait, l = landscape
"attrs": (event attribute)
{
“Button Type”:“Round”
},
“c0” : string, (Custom Dimensions)
“c1” : string,
“c2” : string,
“c3” : string
}
Screen
{
“dt”:“sc”, // data type, sc for screen
"ct":1302559181,
“u”:“48afd8beebd3”,
“su”:“696c44ebf6f”,
“n”:“Button Clicked”,
“lat”: double,
“lng”: double,
“attrs”:
{
“Button Type”:“Round”
}
}
Session Close
{
“dt”:“c”, // data type, c for header session close
"u":“abec86047d-ae51”,
“ss”: session_start_time,
“su”:“696c44ebf6f”,
“ct”:1302559195,
“ctl”:114,
“cta”:60,
“fl”:[“screen1”,“screen2”,“screen3”],
“ffl”:[“screen1”,“event1”,“event2”,“event3”,“screen2”,“event4”,“event5”,“screen3”,“event6”],
“efl”:[“event1”,“event2”,“event3”,“event4”,“event5”,“event6”],
“lat”: double,
“lng”: double,
“c0” : string, (custom dimensions)
“c1” : string,
“c2” : string,
“c3” : string
}
Funnel Flows
{
dt: “f”, // DataType = Flow
ct: ts, // Time of message creation
u: “unique id”, //Global UUID for this message
ss: ts, // Session start time in seconds (not milliseconds). This values should be identical over multiple messages for the same session
od : [ {s: “splash”}, {e:“sign_on”}, {s: “sign_on”} ], //OLD Session flow.
nw : [ {e: “enter_data”}, {e:“login_button”}, {s:“main_screen”} ] //New Session Flow
}