Menu
Amazon Mobile Analytics
User Guide

Creating a Custom Event

You assign an eventType to your custom event . As a best practice, we recommend you give a general name to a custom event and specific names to attributes or metrics. For example, using "Item Bought" instead of "Item XYZ" as a custom event name helps keep the report from having too many distinct event names that are hard to read and aggregate.

Creating a Custom Event in iOS or Android Apps

Custom events in iOS and Android apps are created and defined using an event object that the app submits to Mobile Analytics. To create these event objects, the app must first create an event client object, and then request individual event objects from the event client.

After the app has used an event client object to obtain a single event object, the app customizes the event object by adding attributes and metrics that specify data values to report. After the event object is customized, the app calls the event client object to record the event.

For information about creating custom events in iOS or Android apps, see:

Creating a Custom Event in JavaScript Apps

To create a custom a custom event in a JavaScript app, call the manager object to record a custom event, passing the attributes and metrics you want to capture as parameters.

For information about creating custom events in JavaScript apps, see Mobile Analytics SDK for JavaScript.

Creating a Custom Event in Unity or Xamarin Apps

Custom events in Unity or Xamarin apps are created and defined using an event object the app submits to Mobile Analytics. After the app has created an event object, the app customizes the event object by adding attributes and metrics that specify data values to report. After the event object is customized, the app calls the manager object to record the event.

For information about creating custom events in Unity or Xamarin apps, see: