Android event taxonomy
Every attribute the Android SDK captures, by event, with the type it carries and whether it is required.
Overview
What the Android SDK captures, event by event.
📘 Android events are stored in collections, with names and types only
Android events are stored in event collections like the other sources: session_start, session_end, view_screen, leave_screen, app_install_upgrade, touch_event, change_event, fragment_transition, added_to_cart, removed_from_cart, product_ordered and product_viewed. A collection is shared by every source in the project, so view_screen, leave_screen, session_start, session_end and app_install_upgrade also hold iOS events. Two things set this page apart from the other sources, and both are visible below.
- There is no Example column, because the Android schemas carry names and types only.
- Attributes are grouped by the record the SDK sends, named above each table, together with the collection it is stored in.
The full wire record for each, envelope included, is in Android record taxonomy.
The shared envelope
Identical on every event below, so it is stated once here rather than repeated in each table: eventId, profileId, userId, sessionId, pageId and timestamp. Only eventId, profileId and timestamp always arrive.
Events
Session start
Sent as the sessionStart record, stored in the session_start collection.
| Attribute | Type | Required |
|---|---|---|
userAttributes.deviceType | String | No |
userAttributes.carrier | String | No |
userAttributes.platform | String | No |
userAttributes.region | String | No |
userAttributes.country | String | No |
userAttributes.city | String | No |
data.sessionStartEventName | String | No |
data.deviceName | String | No |
data.source | String | No |
data.appName | String | No |
data.appVersion | String | No |
data.androidId | String | No |
sessionAttributes.advertiserId | String | No |
data.appIdentifier | String | No |
sessionAttributes.androidId | String | No |
Session end
Sent as the sessionEnd record, stored in the session_end collection.
| Attribute | Type | Required |
|---|---|---|
userAttributes.deviceType | String | No |
userAttributes.carrier | String | No |
userAttributes.platform | String | No |
userAttributes.region | String | No |
userAttributes.country | String | No |
userAttributes.city | String | No |
data.sessionStartEventName | String | No |
data.deviceName | String | No |
data.source | String | No |
data.appName | String | No |
data.appVersion | String | No |
data.appIdentifier | String | No |
data.androidId | String | No |
data.sessionEndEventName | String | No |
data.sessionDuration | Long | No |
data.sessionEventCount | Long | No |
View screen
Sent as the viewScreen record, stored in the view_screen collection.
| Attribute | Type | Required |
|---|---|---|
data.activity | String | No |
data.fullActivity | String | No |
data.screenName | String | No |
Leave screen
Sent as the leaveScreen record, stored in the leave_screen collection.
| Attribute | Type | Required |
|---|---|---|
data.activity | String | No |
data.fullActivity | String | No |
data.screenName | String | No |
data.timeOnScreen | Decimal | No |
App install or upgrade
Sent as the appInstall record, stored in the app_install_upgrade collection.
| Attribute | Type | Required |
|---|---|---|
data.currentVersionCode | Decimal | No |
data.previousVersionCode | Decimal | No |
data.previousBuildType | String | No |
data.currentBuildType | String | No |
data.isUpgrade | Boolean | No |
data.reason | String | No |
data.deviceToken | String | No |
userAttributes.fcm_token_<sourceId> | String | No |
Touch
Sent as the touch record, stored in the touch_event collection.
| Attribute | Type | Required |
|---|---|---|
data.targetElement | String | No |
data.hierarchy | String | No |
data.targetText | String | No |
data.targetClass | String | No |
data.targetId | String | No |
data.fullTargetId | String | No |
data.targetValue | String | No |
data.targetResourceId | String | No |
Change event
Sent as the change record, stored in the change_event collection.
| Attribute | Type | Required |
|---|---|---|
data.targetElement | String | No |
data.hierarchy | String | No |
data.targetText | String | No |
data.targetClass | String | No |
data.targetId | String | No |
data.fullTargetId | String | No |
data.targetResourceId | String | No |
data.targetValue | String | No |
Fragment transition
Sent as the fragmentTransition record, stored in the fragment_transition collection.
| Attribute | Type | Required |
|---|---|---|
data.visibleFragment | String | No |
data.addedFragment | String | No |
data.removedFragment | String | No |
Added to cart
Sent as the addedToCart record, stored in the added_to_cart collection.
| Attribute | Type | Required |
|---|---|---|
data.productId | String | No |
data.quantity | Decimal | No |
Removed from cart
Sent as the removedFromCart record, stored in the removed_from_cart collection.
| Attribute | Type | Required |
|---|---|---|
data.productId | String | No |
data.quantity | Decimal | No |
Product ordered
Sent as the productOrdered record, stored in the product_ordered collection.
| Attribute | Type | Required |
|---|---|---|
data.productId | String | No |
data.quantity | Decimal | No |
data.amount | Decimal | No |
data.revenue | Decimal | No |
data.currency | String | No |
Product viewed
Sent as the productViewed record, stored in the product_viewed collection.
| Attribute | Type | Required |
|---|---|---|
data.productId | String | No |
Identify
Sent as the identify record.
Carries the shared envelope only. Nothing beyond identity is captured on this event.
