Rich In-App Events - Android and iOS

IntroductionEvent TypesImportantExamples

travel.png

Introduction

AppsFlyer’s rich in-app events provide advertisers with the ability to track any post-install event and attribute it to the originating media sources.

If your users perform registrations, complete tutorials, add items to the shopping cart or make purchases, the in-app events data can show it, with details.

Rich in-app events are essential in determining the value of your users, and the quality of the traffic you get from different media sources. Therefore, although they are optional to implement, AppsFlyer HIGHLY recommends doing so.

Another important aspect of using in-app events, is the ability to map AppsFlyer's in-app events with advanced ad networks. This enables the networks to efficiently optimize on their traffic and sometimes also build highly targeted audiences.

The TrackEvent API

An in-app event is comprised of an event name and event parameters. 

You can use any event name string of your choice. However, AppsFlyer's SDK supplies the recommended event names via enumerations and definitions (see the Event Types tab for the list of recommended events and parameter names).

Event names are case sensitive, e.g., by sending both af_purchase and af_PURCHASE as event names, two separate events are created.

Syntax:

Android iOS
public static void trackEvent(Context context, String eventName, Map eventValues)

Context
Use getApplicationContext()
eventName
Any string to define the event name. 
eventValues
A map of event parameters that comprise a rich event.

 Warning

Different networks have their own limitations regarding the permitted characters in the event names. To avoid any possible problems AppsFlyer recommends using only lower-case alpha-numeric characters (a-z and 0-9) for your in-app event names.
 

Was this article helpful?
5 out of 11 found this helpful