AppsFlyer Rich In-App Events - iOS

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

An in-app event is comprised of an event name and event parameters (see below lists of recommended event and parameter names)

Syntax:

‐ (void) trackEvent:(NSString *)eventName withValues:(NSDictionary*)values 

eventName is any string to define the event name.

values is a dictionary of event parameters that comprise a rich event.

Example 1:

AFEventParamRevenue of a single item with a revenue of 200 USD, content_id “1234567” and of type  “category_a”:

[[AppsFlyerTracker sharedTracker] trackEvent:AFEventPurchase withValues: @{
    AFEventParamContentId:@"1234567",
    AFEventParamContentType : @"category_a",
   AFEventParamRevenue: @200,
    AFEventParamCurrency:@"USD"}];

Example 2:  Complex In-App Event

The following is an example of a complex In-App Event that can be sent.

{"af_revenue":"50.87","af_currency":"USD","af_receipt_id":"57601333","product":
[{"af_content_id":"1164_8186","af_price":"8.97","af_quantity":"1"},
{"af_content_id":"1164_8186","af_price":"8.97","af_quantity":"1"},
{"af_content_id":"1164_8186","af_price":"8.97","af_quantity":"1"},
{"af_content_id":"1177_8185","af_price":"8.97","af_quantity":"1"},
{"af_content_id":"0153_9077","af_price":"14.99","af_quantity":"1"}]}

In-App Event Types

The following in­-app event types are defined and recommended: 

Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request
Powered by Zendesk