DATAGRAN

ANDROID SDK

For mobile app developers, looking to track application usage.

Common Parameters

appKey
App specific API key. Notice that if a developer has multiple apps (data sources in Datagran jargon), then each app will have its own key
deviceInfo
A parent node containing all device specific information
deviceInfo.currentDate
Timestap in Unix Epoch
deviceInfo.deviceId
Android device Id (Android ID, shared only subject to user having granted permissions to the app)
deviceInfo.deviceModel
Device Model
deviceInfo.SystemVersion
Android OD Version running on device
deviceInfo.deviceName
Device brand (e.g. Xiaomi)
event.type
This can be one of the following
onClick
onLongClick
onKeyPress
onFocusChange
onOptionsItemSelected
customEvent
referrer
firstOpen
Notice that the identify method actually generates a custom event with type = ‘ce’. The name of the event in this case is always ‘identify’
event.name
Descriptive name of the event
event.time
Event timestamp in Unix Epoch format
event.payload
The actual event data. This is standardized in case of built-in events but can be completely arbitrary for custom events
event.latitude
Latitude of the location where event was generated
event.longitude
Longitude of location where event was generated

Event Specific Parameters

Event name
Payload parameters
onClick, onLongClick, onKeyPress
- elementType – type of the UI element which triggered event (e.g. a button)
- elementName – name of the UI element
onFocusChange
- elementName – contains the name of the element from which focus was changed
onKeyPress
- elementName – contains the value code of key pressed
onOptionsItemSelected
- elementName – Value of the selected menu item