Event Builder

With the extensive options that Attribution Analytics™ (AA) provides for event measurement, it can be overwhelming to know which events to measure and how to actually measure them in your code.

We have a list of recommended events to measure, and starting from the TUNE Android SDK version 3.8, iOS SDK 3.9 and compatible plugins, we’re introducing the TuneEvent class to simplify the way you build event measurement calls.

Building an Event

Basic

When constructing an event, only the eventName is required. If these are the only values you care about measuring, you do not need to use the event builder (simply use measureEvent directly with your eventName):

Select a preferred platform.

Advanced

For more complex events, we’ll use measureEvent with the TuneEvent parameter. We first instantiate a new TuneEvent object with a required eventName.

Select a preferred platform.

You may then set any additional parameters to this TuneEvent. A full list of parameters can be found below. You may add new parameters you discover onto an existing TuneEvent object to update it, as long as it is built before the measureEvent call.

For example, to measure revenue and currency code with a “purchase” event:

Select a preferred platform.

You may add as many applicable parameters as you like:

Select a preferred platform.

Event Items

Event Items have a similar builder helper, here we have an example of its use in conjunction with TuneEvent:

Select a preferred platform.

Builder Methods

List of parameters that can be linked with a TuneEvent:

Select a preferred platform.

For event templates and sample code, please visit Event Function Templates.

No Comments

Leave a reply