Menu
Amazon Mobile Analytics
User Guide

Exported Event JSON

The following JSON shows the data written for a hypothetical event that contains all elements and attributes. Not all elements are valid for all event types.

Copy
{ "event_type": "hypothetical_event", "event_timestamp": 1415390144920, "arrival_timestamp": 1415390151679, "event_version": "3.0", "application": { "app_id": “a376fb15e8d9460fab172014a1236e25", "package_name": "com.amazon.exampleapp", "version_name": "1.0", "version_code": "1", "title": "Example App", "cognito_identity_pool_id": "us-east-1:156b8012-aaaa-4da9-9c44-a39198aebf7b", "sdk": { "name": "aws-sdk-android", "version": "2.1.1" } }, "client": { "client_id": "47b63bb3-aaaa-bbbb-9ab7-2df4f1bccc82", "cognito_id": "us-east-1:4cbe503d-dd92-4224-8193-f3ba95cbec8f" }, "device": { "model": "KFTT", "make": "Amazon", "platform": { "name": "ANDROID", "version": "4.0.3" }, "locale": { "code": "en_US", "language": "en", "country": "US" } }, "session": { "session_id": "f1bccc82-20141107-193640206", "start_timestamp": 1415389000206, "stop_timestamp": 1415389000206, }, "monetization": { "transaction": { "transaction_id": "ABCDABCD-ABCD-ABCD-ABCD-ABCDABCDABCD", "store": "Amazon", "item_id": "com.yourcompany.exampleitem", "quantity": 1, "price": { "reported_price": "$0.99", "amount": 0.99, "currency": { "code": "USD", "symbol": "$" } } } }, "attributes": { "levelName": "Level 5", "playerClass": "Wizard" }, "metrics": { "score": 100400, "timeToCompleteMinutes": 3.5 } }

The following table describes each element.

JSON Event Schema Data

Attribute Description
amount The numerical price value. Used only in a monetization event.
app_id The app ID that was used to identify the app. This ID was assigned on the App Management page of the console.
arrival_timestamp The time when the event was received by Amazon Mobile Analytics servers, expressed as an epoch time with milliseconds.
client_id Used to correlate events from the same app instance (app on a specific device).
code The locale code.
code Currency code for the purchase. Used only in a monetization event.
cognito_id If Amazon Cognito was used, this is the Amazon Cognito client ID. If not using Amazon Cognito, this attribute will not exist.
cognito_identity-pool_id If Amazon Cognito was used, this is the Amazon Cognito identity pool ID. If not using Amazon Cognito, this attribute will not exist.
country The country part of the locale.
event_timestamp The time the event occurred, expressed as an epoch time with milliseconds.
event_type The name that was specified when the event was created. Events such as _session.start and _session.stop are generated by the system.
event_version Version of the schema of the event.
item_id An identifier for the item purchased. Used only in a monetization event.
language The language part of the locale.
make The make of the device.
model The model of the device.
name The name of the AWS Mobile SDK used by the app.
name If the Mobile SDK was used, this is the Android or iPhone OS () or the value you specified when using the PutEvents API.
package_name The package name.
quantity The quantity of items purchased. Used only in a monetization event.
reported_price A string representation of the price reported by the purchasing library. Used only in a monetization event.
session_id An ID for all events that occurred in the same session.
start_timestamp Time when the session began, expressed as an epoch timestamp with milliseconds. Used only on _session.start events.
stop_timestamp Time when the session ended, expressed as an epoch timestamp with milliseconds. Used only on _session.stop events.
store The name of the store where the transaction took place. Used only in a monetization event.
symbol Currency symbol for the purchase. Used only in a monetization event.
title The title of the app.
transaction_id An identifier for the transaction. Used only in a monetization event.
version The platform version.
version The version of the Mobile SDK used by the app.
version_code The version code.
version_name The version name.